function validate() 
{ 
  thisName=document.getElementById("loginName");
  thisPass=document.getElementById("loginPassword");
  thisName=thisName.value;
  thisPass=thisPass.value;
  txtLen1=bytes(thisName);
  txtLen2=bytes(thisPass);
  if(txtLen1<1||txtLen2<4)
  {
  	  document.getElementById("error_msgN").style.display="block";
	  document.getElementById("error_msgN").innerHTML="帐户名/密码格式不对！";
      return false;
  }
return true;
}
function getPass(){
  thisName=document.getElementById("loginName").value;
  thismail=document.getElementById("email").value;
  if(bytes(thisName)>0)
  {
    document.getElementById("error_msgN").style.display="block";
    document.getElementById("error_msgN").innerHTML="邮件正在发送，请等待...";
    AjaxMethod.GetPass(thisName,thismail,get_userPass_Result_CallBack);
  }
}

function get_userPass_Result_CallBack(response)
{
				ds=response.value;
				if(ds != null && typeof(ds) == "boolean"){
				if (ds == true)
				{	
				    document.getElementById("error_msgN").style.display="block";
					document.getElementById("error_msgN").innerHTML="邮件已经发送到您的邮箱，请即时查收";
					document.getElementById("error_msgN").className="item_green";
				}
				else
				    document.getElementById("error_msgN").innerHTML="您输入的用户名或邮件地址错误";
				}
				return
}