// JavaScript Document

//登陆表单验证函数2
function chcekLand()
   {
      var C_user=document.getElementById("C_user").value;
      var C_password=document.getElementById("C_password").value;
	  
	  
	  if(C_user.length<=0)
	  {
	    alert("请填写用户名");
		return false;
	  }
	  
	  else if(C_user.length>=20)
	  {
	     alert("请填写20个字符以内的用户名");
		 return false;
	  }
	  
	   else if(C_password.length>=50 || C_password.length<4)
	  {
	     alert("请填写4-50个字符以内的密码");
		 return false;
	  }
	  
	  
	 
	  else
	  {
	  
	  }
   }
function change_ajax(th,hh,cs1,cs2,num){	
	for(var i=1;i<=num;i++)
	{
		if(((hh+i).toString())==th)
		{
			if(document.getElementById(hh+i)!=null)
			{
			document.getElementById(hh+i).className=cs1;
			}
		}
		else
		{
			if(document.getElementById(hh+i)!=null)
			{
				document.getElementById(hh+i).className=cs2;
			}
		}
	}	
}
