function view(url){
   location.href=url;
}
function managercheck(){
  if(this.mloginform.userName.value==""){
     window.alert("用户名不能为空!");
     return false;
  }
   if(this.mloginform.passWord.value==""){
     window.alert("密码不能为空!");
     return false;
  }
  return true;
}
function checkname(){
    if(this.listkillmessageform.name.value==""){
     window.alert("用户名不能为空!");
     return false;
  }
  return true;
}
function validate(){
   if(document.regterminalform.name.value==""){
     window.alert("用户名不能为空!");
     window.regterminalform.name.focus();
     return false;
   }
   if(document.regterminalform.password.value==""){
     window.alert("密码不能为空!");
     window.regterminalform.password.focus();
     return false;
   }
   return true;
 }  
 function validatelogin(){
    if(document.loginform.name.value==""){
     window.alert("用户名不能为空!");
     window.loginform.name.focus();
     return false;
   }
   if(document.loginform.password.value==""){
     window.alert("密码不能为空!");
     window.loginform.password.focus();
     return false;
   }
   return true;
 }
  function validate(){
   if(document.addorderform.name.value==""){
      window.alert("用户名不能为空!");
      window.addorderform.name.focus();
      return false;
   }
   return true;
 }