<HTML>
<HEAD>
<TITLE>验证身份证号码</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link href="image/style.css" rel="stylesheet">
</HEAD>
<body>
<script language="javascript">
function check(myform){
if(myform.number.value==""){
alert("请输入身份证号码地址!");myform.number.focus();return;
}
if(!checkeNO(myform.number.value)){
alert("您输入身份证号码不正确!");myform.number.focus();return;
}
myform.submit();
}
function checkeNO(NO){
var str=NO;
//在JavaScript中,正则表达式只能使用"/"开头和结束,不能使用双引号
var Expression=/\d{17}[\d|X]|\d{15}/;
var objExp=new RegExp(Expression);
if(objExp.test(str)==true){
return true;
}else{
return false;
}
}
</script>
<FORM name="form1" action="" method="post">
<TABLE cellSpacing=0 cellPadding=0 width=538 align=center border=0>
<TR>
<TD width="548" height=29><SPAN class=style15> &nbsp;欢迎光临<A
href="index.asp">Go电子商城</A>----<A
href="#">会员注册 </A>&gt;&gt;&gt;&gt;
</SPAN></TD>
</TR>
<TR>
<TD>
<TABLE width="100%" height="243" border=1 align=center cellPadding=0 cellSpacing=0>
<TR bgColor=#efefef>
<TD height="25" colSpan=2 class=tablebody1><STRONG>&nbsp;用户基本资料</STRONG></TD></TR>
<TR>
<TD width="20%" align="center" class=tablebody1>用&nbsp;户&nbsp;名: <BR></TD>
<TD height="24" class="tablebody1">&nbsp;
<INPUT class=wenbenkuang maxLength=10 size=30
name=name>
注册用户名长度限制为0-10字节 </TD>
</TR>
<TR>
<TD align="center" class=tablebody1>性&nbsp;&nbsp;&nbsp;&nbsp;别: <BR></TD>
<TD height="24" class=tablebody1><INPUT type=radio CHECKED value=男 name=sex>男
<INPUT type=radio value=女 name=sex>女
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
请选择您的性别 </TD>
</TR>
<TR>
<TD width="20%" align="center" class=tablebody1>密&nbsp;&nbsp;&nbsp;&nbsp;码: <BR></TD>
<TD height="24" class=tablebody1>&nbsp;
<INPUT class=wenbenkuang type=password
maxLength=16 size=30 name=psw>
请输入密码,区分大小写 </TD>
</TR>
<TR>
<TD width="20%" align="center" class=tablebody1>确认密码: <BR></TD>
<TD height="24" class=tablebody1>&nbsp; <INPUT class="wenbenkuang" type="password"
maxLength="16" size="30" name="pswc">
请再输一遍确认
</TD>
</TR>
<TR>
<TD align="center" class=tablebody1>Email: <BR></TD>
<TD height="24" class=tablebody1>&nbsp;
<INPUT class="wenbenkuang" maxLength="50" size=30
name="e_mail">
请输入有效的邮件地址 </TD>
</TR>
<TR>
<TD width="20%"
height=21 align="center" vAlign="center" class="tablebody1">真实姓名: <BR></TD>
<TD class="tablebody1" align="left" width="80%" height="24">&nbsp;
<input class="wenbenkuang" maxLength="15" size="18" name="realname">
建议您如实填写,以方便为您服务</TD>
</TR>
<TR>
<TD
height=21 align="center" vAlign=center class=tablebody1>身份证号码:</TD>
<TD class=tablebody1 align=left height=24>&nbsp;
<input class=wenbenkuang id=number maxlength=18 size=18 name=number>
<SPAN
class=style11>*</SPAN> </TD>
</TR>
<TR>
<TD align="center" vAlign=center class=tablebody1>联系电话:</TD>
<TD class=tablebody1 align=left width="80%" height=24>&nbsp;
<INPUT class=wenbenkuang maxLength=15 size=18 name=userphone></TD>
</TR>
<TR>
<TD align="center" vAlign=center class=tablebody1>通信地址: &nbsp; </TD>
<TD class=tablebody1 align=left width="80%" height=24>&nbsp;
<INPUT class=wenbenkuang size=50 name=address></TD>
</TR></TABLE>
<BR>
<div align=center><INPUT class="go-wenbenkuang" type="button" value="注 册" name="Submit" onClick="check(form1)">
(<SPAN class=style11>*</SPAN>&nbsp;为必填项目) <INPUT class=go-wenbenkuang type=reset value="重 置" name=Submit2>
</div></TD></TR></TABLE></FORM>
</body></html>