28,406
社区成员
发帖
与我相关
我的任务
分享
<script language=JavaScript>
function IsDigit()
{
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<SCRIPT LANGUAGE="JavaScript">
<!--
function check11()
{
if(
document.userinfo.username.value.length < 4||
document.userinfo.username.value.length >20) {
document.userinfo.username.focus();
alert("用户名长度不能为空,在4位到20位之间,请重新输入!");
return false;
}
if(checkspace(document.userinfo.userpassword.value) || document.userinfo.userpassword.value.length < 6 || document.userinfo.userpassword.value.length >20) {
document.userinfo.userpassword.focus();
alert("密码长度不能为空,在6位到20位之间,请重新输入!");
return false;
}
if(document.userinfo.username.value==document.userinfo.userpassword.value)
{
alert("为了安全,用户名与密码不应该相同,请重新输入密码!")
document.userinfo.userpassword.focus()
return false;
}
if(document.userinfo.userpassword.value != document.userinfo.userpassword1.value) {
document.userinfo.userpassword.focus();
document.userinfo.userpassword.value = '';
document.userinfo.userpassword1.value = '';
alert("两次输入的密码不同,请重新输入!");
return false;
}
}
function checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
//-->
</script>
<table width="760" align="center" border="0" cellspacing="0" cellpadding="0" class="table-zuoyou" bordercolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFFF" bordercolor="#FFFFFF">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<p> <font color="#FF3300"> <b>请您务必详细填写您的信息,并核对无误。 <br>
未经您的允许,您的个人信息对外保密。(带 <font color=red>** </font> 号为必填项) </b> </font> </p>
<form name=userinfo method=post action=reg.asp?action=save>
<table width="80%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC" align="center">
<tr>
<td height=15 colspan=2 bgcolor="#f1f1f1">
<font color="#FF3300">>> 用户名和密码 </font>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>用 户 名: </td>
<td width=70% class=pad>
<input class="wenbenkuang" name="username" type="text" id="username" maxLength="18">
<font color=red>** </font> 支持中文,不支持特殊符号如:*%#!-&%$ </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>密 码: </td>
<td class=pad>
<input class="wenbenkuang" name="userpassword" type="password" id="userpassword" maxLength="18">
<font color=red>** </font> 不支持特殊符号如:*%#!-&%$ </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>确认密码: </td>
<td class=pad>
<input class="wenbenkuang" name="userpassword1" type="password" id="userpassword1" maxLength="18">
<font color=red>** </font> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>电子邮箱: </td>
<td class=pad>
<input class="wenbenkuang" name="useremail" type="text" id="useremail">
<font color=red>** </font> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" valign="middle" bgcolor="#f1f1f1"> <font color="#FF3300">>> 用户详细资料 </font> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>您的真实姓名: </td>
<td class=pad>
<input class="wenbenkuang" name="userzhenshiname" type="text" id="userzhenshiname" size="10">
<font color=red>** </font>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>姓 别: </td>
<td class=pad>
<input type=radio name=sex id=Select1 value=0 checked>男
<input type=radio name=sex id=Select1 value=1>女
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>通讯地址: </td>
<td class=pad>
<input class="wenbenkuang" name="shouhuodizhi" type="text" id="shouhuodizhi" size="40" maxlength="30">
<font color=red>** </font>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>联系电话: </td>
<td class=pad>
<input class="wenbenkuang" name="usertel" maxlength="18" type="text" id="usertel">
<font color=red>** </font>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>QQ: </td>
<td class=pad>
<input class="wenbenkuang" name="qq" maxlength="18" type="text" id="qq">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>密码提示问题: </td>
<td class=pad>
<input class="wenbenkuang" name="quesion" type="text" id="quesion" size="40" maxlength="30">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=30% align=right>提示问题答案: </td>
<td class=pad>
<input class="wenbenkuang" name="answer" type="text" id="answer" size="40" maxlength="30">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width=20% align="right"> </td>
<td class=pad>
<input class="go-wenbenkuang" onClick="return check11();" type=submit name="submit" value=" 提交信息 ">
<input class="go-wenbenkuang" onclick="ClearReset()" type=reset name="Clear" value=" 重新填写 ">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr> </table>