<SCRIPT language=JavaScript>
function checkform()
{ var username = document.addnew.user.value;
  if ((username.length<4)||(username=="")) {
  alert("用户名至少为四位!");
  addnew.user.focus();  
      return (false);
  }
 for(i = 0; i < username.length; i++)
  {
  if((username.charCodeAt(i)>128)||(username.charAt(i) == "*" )||( username.charAt(i)== "%"))
   { alert("用户名请使用英文或数字!");
  addnew.user.focus();  
      return (false); 
 }}
 

  var pwd = document.addnew.password.value;
  var pwd2 = document.addnew.password1.value;
  if (addnew.password.value=="") {
  alert("请输入登录密码!");
  addnew.password.focus();  
      return (false);
  }
  if (pwd.length < 3) {
    alert("密码不能少于三位!");
    return false;   
  }

  if (pwd != pwd2) {
    alert("两次密码输入不一致!");
    document.addnew.password.value="";
    document.addnew.password1.value="";
 return false;
  }
  return true;
}
//-->
</SCRIPT>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>个人求职注册</title>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
</head>

<body>

<form name=addnew onsubmit="return checkform();" action="add_person_user.asp" method=post >
 
  <div align="center">
    <center>
  <table width="98%" height="76"cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%" height="35" colspan="3">
  <p align="center">
        <span>个人求职免费会员注册</span></font></td>
    </tr>
    <tr>
      <td width="22%" height="23">用户名</span></p></div></td>
      <td width="16%" height="23" valign="middle"><label>
        <input name="user" type="text" id="user" />
      </label></td>
      <td width="62%" height="23" valign="middle">英文或数字(4-20位),不能有空格</td>
    </tr>
    <tr>
      <td width="22%" height="23">密码</span></p></div></td>
      <td width="16%" height="23" ><label>
        <input name="password" type="text" id="password" />
      </label></td>
      <td width="62%" height="23" >英文或数字(3-20位),注意大小写</td>
    </tr>
    <tr>
      <td width="22%" height="23" ><div align="right">
  <p>重复</span><span>密码</span></p></div></td>
      <td width="16%" height="23"><label>
        <input name="password" type="text" id="password" />
      </label></td>
      <td width="62%" height="23" ></td>
    </tr>
    <tr>
      <td width="100%" height="23" colspan="3" >&nbsp;</td>      
    </tr>
    <tr>
      <td width="100%" colspan="3" height="12"><div align="center">
  <p align="center" style="line-height: 150%">&nbsp;&nbsp;
    <label>
    <input name="B1" type="submit" id="B1" value="提交" />
    </label>
    &nbsp;          
          <input type="reset" value="复  原" name="B2" </p>
      </div></td>
    </tr>
  </table>
    </center>
  </div>
</form>

</body>
</html>