 
function checkForm(theform)
{
  if (theform.user.value.length==0)
  {
    alert("用户名不能为空。");
    mobj = eval("theform.user");
    mobj.focus()
    mobj.select()
    return false;
  }
  

   
  if (theform.user.value.length<2)
  {
    alert("对不起，用户名至少有2位。");
    mobj = eval("theform.user");
    mobj.focus()
    mobj.select()
    return false;
  }
 
  if (theform.pass.value.length==0)
  {
    alert("密码不能为空。");
    mobj = eval("theform.pass");
    mobj.focus()
    mobj.select()
    return false;
  }
   
  if (theform.pass.value.length<2)
  {
    alert("对不起，密码至少有2位。");
    mobj = eval("theform.pass");
    mobj.focus()
    mobj.select()
    return false;
  }  
  	
  if(theform.select7.options[theform.select7.selectedIndex].value=="0")
  {
    alert("请选择会员类型!");
     
    return false;
  }		
  if(theform.select7.options[theform.select7.selectedIndex].value=="1")
		theform.action="geren0biz0/Chkadmin1.asp";
  if(theform.select7.options[theform.select7.selectedIndex].value=="2")
		theform.action="pxd0biz0/Chkadmin1.asp";

  return true;
}  

function filter()
{
  if(document.frm.logon_type[0].checked==false && document.frm.logon_type[1].checked==false)
  {
    alert("请选择会员类型!");
    document.frm.logon_type[0].focus();
    return false;
  }
}
  