<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用户注册</title>
<script language="javascript">
function IsDigit(cCheck) {
return (('0' <= cCheck) && (cCheck <= '9'));
}
function IsAlpha(cCheck) {
return ((('a' <= cCheck) && (cCheck <= 'z')) || (('A' <= cCheck) && (cCheck <= 'Z')))
}
function IsValid() {
var struserName = reg.UserName.value;
for (nIndex = 0; nIndex < struserName.length; nIndex++) {
cCheck = struserName.charAt(nIndex);
if (!(IsDigit(cCheck) || IsAlpha(cCheck))) {
return false;
}
}
return true;
}
function chkEmail(str) {
return str.search(/[\w\-]{1,}@[\w\-]{1,}\.[\w\-]{1,}/) == 0 ? true : false
}
function docheck() {
if (reg.UserName.value ==
HTML注册表单
最新推荐文章于 2024-04-14 17:57:58 发布