<!--#include file="site.asp"-->
<html>
<head><title><%=allsms%></title>
<style type="text/css">
<!--
body {
background-color: #9999CC;
}
input {
background-color: #D5D5EA;
}
textarea {
background-color: #D5D5EA;
}
table {
font-size: 12px;
text-decoration: none;
border: thin dashed #8484C1;
}
td {
font-size: 12px;
border: thin dotted #8484C1;
text-align: left;
}
-->
</style><script language = "JavaScript">
<!--
function Checkform(){
var regu = "^[0-9,a-z,A-Z,_]+$";
var re = new RegExp(regu);
var regu1 = "^[0-9,_]+$";
var re1 = new RegExp(regu1);if (document.form1.username.value.=="") {
   alert("用户名不能为空.");
   document.form1.username.focus();
   return false;
}
if (document.all.form1.username.value.search(re) != -1) {
     } else {
     alert("用户名必须是字母和数字和下划线!")
     return false;
     }
if(document.all.form1.password.value.length<6 || document.all.form1.password.value.length>20){
    alert("密码必须为6到20位");
    document.form1.password.focus();
    return false;
   }
if (document.form1.password2.value!=document.form1.password.value) {
   alert("两次密码不一致.");
   document.form1.password.focus();
   return false;
}
if (document.form1.mail.value!="") {
   if (document.all.form1.mail.value.search(/^[-_A-Za-z0-9]+@([_A-Za-z0-9]+\.)+[A-Za-z0-9]{2,3}$/) != -1){
    }else{
    alert("邮箱格式不正确.");
    document.form1.mail.focus();
    return false;
    }
if (document.form1.quest.value.length == 0) {
   alert("密码提示问题不能为空.");
   document.form1.quest.focus();
   return false;

if (document.form1.getpassword.value.length == 0) {
   alert("密码提示答案不能为空.");
   document.form1.getpassword.focus();
   return false;
}  
return true;
}
// -->
</script></head><center>
<body>
用户注册<br>
(带**为必填项)<br>
<%
=request.QueryString("msg")
%>
<form name="form1" method="post" action="regjudge.asp" onSubmit="javascript:return checkform();">
  <table width="59%" height="105"  border="0" >
    <tr>
      <td width="27%">用户名:</td>
      <td width="73%"><input name="username" type="text" id="username">** 请英文字母、数字和下划线组成</td>
    </tr>
    <tr>
      <td>密码:</td>
      <td><input name="password" type="password" id="password"> ** 长度6-20个字符,可由英文字母、数字组成</td>
    </tr>
    <tr>
      <td>确定密码:</td>
      <td><input name="password2" type="password" id="password2">**</td>
    </tr>
    <tr>
      <td>性别:</td>
      <td><label><input name="sex" type="radio" tabindex="8" value="男" checked="checked">男</label>
  <input type="radio" name="sex" value="女" tabindex="9">
        <label>女</label> </td>
    </tr>
    <tr>
      <td>QQ:</td>
      <td><input name="qq" type="text" id="qq"></td>
    </tr>
    <tr>
      <td>Mail:</td>
      <td><input name="mail" type="text" id="mail">** 用于找回密码以及接受我司各种信息等服务</td>
    </tr>
    <tr>
      <td>提示问题:</td>
      <td><input name="quest" type="text" id="quest">**</td>
    </tr>
    <tr>
      <td>答案:</td>
      <td><input name="getpassword" type="text" id="getpassword">**</td>
    </tr>
    <tr>
      <td>地址:</td>
      <td><input name="add" type="text" id="add"></td>
    </tr>
    <tr>
      <td>个人介绍</td>
      <td><textarea name="personalinfo" cols="30" rows="6" id="personalinfo"></textarea></td>
 </tr>
 <tr>
      <td><input type="submit" name="Submit" value="提交"></td>
    </tr>
  </table>
</form>
</body>
</center>
</html>