﻿
//左边登录检测
function login_check(theform)
{
if (theform.pUserName.value=="")
{
alert("请填写登录帐号！");
theform.pUserName.focus();
return false;
}

if (theform.pUserPwd.value=="")
{
alert("请填写登录密码！");
theform.pUserPwd.focus();
return false;
}

return true;
}

//域名检测
function dse_check(theform) 
{ 
if (theform.name.value=="") 
 { 
 alert("请填写要查询的英文域名！"); 
 theform.name.focus(); 
 return (false); 
 }
 var filter=/^\s*[A-Za-z0-9-]{1,63}\s*$/;
 if (!filter.test(theform.name.value)) { 
 alert("英文域名填写不正确,1-63位！可使用的字符为（a-z 0-9 -)"); 
 theform.name.focus();
 return (false); 
 }
return (true); 
}

function dsc_check(theform) 
{ 
if (theform.name.value=="") 
 { 
 alert("请填写要查询的中文域名！"); 
 theform.name.focus(); 
 return (false); 
 }
//document.all.do_name.value=escape(document.all.myname.value);
//alert(document.all.do_name.value);
return (true); 
}

function domain_manage(theform) 
{ 
if (theform.Domain.value=="") 
 { 
 alert("请填写您的域名！"); 
 theform.Domain.focus(); 
 return (false); 
 }
if (theform.Password.value=="") 
 { 
 alert("请填写域名密码！"); 
 theform.Password.focus(); 
 return (false); 
 }
return (true); 
}

function domain_view(theform) 
{ 
if (theform.domain.value=="") 
 { 
 alert("请填写您的域名！"); 
 theform.domain.focus(); 
 return (false); 
 }
return (true); 
}

function forget_check(theform)
{
if (theform.pUserName.value=="")
	{
	alert("请填写注册帐号/注册邮箱地址！");
	theform.pUserName.focus();
	return (false);
	}
	return (true);
}