<!--
  function login(){
	  if(Trim(document.UserLoginAndRegist.UserName.value).length==0){
		  alert('用户名不能为空');
		  return false;
	  }
	  if(Trim(document.UserLoginAndRegist.password.value).length==0){
		  alert('密码不能为空');
		  return false;
	  }	
	 // alert(Trim(document.UserLoginAndRegist.UserName.value).length);
 	  document.UserLoginAndRegist.submit();
  }
  function Trim(strTemp)
  {
	strTemp=strTemp.replace(/\s/g,"");
	return strTemp;
  }

  function regist()
  {
   document.UserLoginAndRegist.action = "../CommonUser/RCommonUserRead.asp"
  }
  //-->

