function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
function load_focus() {
document.form.user_acc.focus();
}
function form_onsubmit(form) {
	if (form.user_acc.value==""){
		window.alert ("用户名不能为空，请输入...");
		form.user_acc.focus();
		return (false);
	}
		if (form.user_pwd.value==""){
		window.alert ("密码不能为空，请输入...");
		form.user_pwd.focus();
		return (false);
	}
	return (true);
}

function password_back(form) {
	if (form.user_acc.value==""){
		window.alert ("用户名不能为空，请输入...");
		form.user_acc.focus();
		return (false);
	}
}
function moveto(url,width,height) 
{ 
var left,top;
top=(screen.width-width)/2,left=(screen.height-height)/2; 
var popup=window.open(url,'','fullscreen=1'); 
popup.moveTo(top,left); 
popup.resizeTo(width,height); 
} 

function CheckIfEnglish( String )
{ 
    var Letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-";
     var i;
     var c;
      if(String.charAt( 0 )=='-')
	return false;
      if( String.charAt( String.length - 1 ) == '-' )
          return false;
     for( i = 0; i < String.length; i ++ )
     {
          c = String.charAt( i );
	  if (Letters.indexOf( c ) < 0)
	     return false;
     }
     return true;
}
function submitchecken() {

	if (document.checkdomain.domain.value == "") {
		alert("请输入您要查询的英文域名。");
		document.checkdomain.domain.focus();
		return false;
	}

if (!CheckIfEnglish(document.checkdomain.domain.value )) {
		alert("注意：在查询英文域名时应输入英文不能输入中文及非法字符！\n\n域名由不分大小写的英文字母和数字组成，除了开头和结尾以外，\n中间也可以含有“-”（即连字符或称减号）最大长度为26个字符；");
		document.checkdomain.domain.focus();
		return false;
	}

	return true;
}
function moveto(url,width,height) 
{ 
var left,top;
top=(screen.width-width)/2,left=(screen.height-height)/2; 
var popup=window.open(url,'','fullscreen=1'); 
popup.moveTo(top,left); 
popup.resizeTo(width,height); 
} 
function SelectFilesall(Action)
	{
	i=1;
	obj=document.boxobj;
	while(eval('obj.chidf'+i))
		{
		obj1=eval('obj.chidf'+i);
		obj1.checked=Action;
		i++;
		}
	}
	
	function mo(a)
{
 a.bgColor='#ffffff';
}
function ov(a)
{
a.bgColor='#f0f0f0';
a.style.cursor='hand';
}