function changelocation(locationid)
    {
	
     document.Itform.Nclassid.length = 0; 
     var locationid=locationid;
 	 var dalei;
 	 
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
			
            { //这句不是很理解
              document.Itform.Nclassid.options[document.Itform.Nclassid.length] = new Option(subcat[i][0], subcat[i][2]);
			  
              }        
        }
		 for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
			
            { //这句不是很理解
 			  changelocation1(subcat[i][2])
			  break;
              }        
        }
     }   
	 
function changelocation1(locationid)
    {
    document.Itform.jiage1.length = 0; 
     var locationid=locationid;
    var i;
    for (i=0;i < onecount1; i++)
        {
            if (subcat1[i][1] == locationid)
            { //这句不是很理解
             document.Itform.jiage1.options[document.Itform.jiage1.length] = new Option(subcat1[i][0], subcat1[i][2]);
            }        
        }
        
     } 
	 
	 	 function changelocation2(locationid)
    {
 	   document.Itform.zongjia.value=locationid;
         
     }  
	 
	 function changelocation3(locationid)
    {
	    alert(locationid);
         
     }   
	 
	 function checkPWD( sid )
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}
function view(url){ 
var url; window.open(url,'_blank','status=no,scrollbars=yes,top=20,left=110,width=600,height=460'); 
}
  
  function Validation(){
 	//验证Email
	if (document.Itform.anclassid.value.length == 0) 
    {
		alert("Your  game！");
		document.Itform.anclassid.focus();
		return false;
	}
	if (document.Itform.Nclassid.value.length == 0) 
    {
		alert("Your server ！");
		document.Itform.Nclassid.focus();
		return false;
	}
	
	if (document.Itform.jiage1.value.length == 0) 
    {
		alert("please select ！");
		document.Itform.jiage1.focus();
		return false;
	}
	if (document.Itform.shuliang.value.length == 0) 
    {
		alert("count ！");
		document.Itform.shuliang.focus();
		return false;
	}
	 
	
if (document.Itform.EJZ_UserEmail.value.length == 0) 
    {
		alert("The mail cannot be spatial ！");
		document.Itform.EJZ_UserEmail.focus();
		return false;
	}
    if (document.Itform.EJZ_UserEmail.value.charAt(0)=="." ||        
         document.Itform.EJZ_UserEmail.value.charAt(0)=="@"||       
         document.Itform.EJZ_UserEmail.value.indexOf('@', 0) == -1 || 
         document.Itform.EJZ_UserEmail.value.indexOf('.', 0) == -1 || 
         document.Itform.EJZ_UserEmail.value.lastIndexOf("@")==document.Itform.EJZ_UserEmail.value.length-1 || 
         document.Itform.EJZ_UserEmail.value.lastIndexOf(".")==document.Itform.EJZ_UserEmail.value.length-1)
     {
      alert("Mail errors！");
      document.Itform.EJZ_UserEmail.focus();
      return false;
      }

 	//严整密码
	
	if (document.Itform.tel.value.length == 0) 
    {
		alert("Your tel！");
		document.Itform.tel.focus();
		return false;
	}
	if (document.Itform.address.value.length == 0) 
    {
		alert("Your address！");
		document.Itform.address.focus();
		return false;
	}

if (document.Itform.character.value.length == 0) 
    {
		alert("Your character name！");
		document.Itform.character.focus();
		return false;
	}
 	if (document.Itform.country.value.length == 0) 
    {
		alert("Your country！");
		document.Itform.country.focus();
		return false;
	}
	if (document.Itform.username.value.length == 0) 
    {
		alert("Your name！");
		document.Itform.username.focus();
		return false;
	}
 
 	}