<SCRIPT LANGUAGE="JavaScript">
function checks()
{
if(checkspace(document.userinfo.username.value))
{
document.userinfo.username.focus();
alert("用户名不能为空,请重新输入!");
return false;
}
if(checkspace(document.userinfo.username.value) || document.userinfo.username.value.length < 4)
{
document.userinfo.username.focus();
alert("用户名长度不能小于4,请重新输入!");
return false;
}
if(checkspace(document.userinfo.userpassword.value) )
{
document.userinfo.userpassword.focus();
alert("密码不能为空,请重新输入!");
return false;
}
if(checkspace(document.userinfo.userpassword.value) || document.userinfo.userpassword.value.length < 6)
{
document.userinfo.userpassword.focus();
alert("密码长度不能小于6,请重新输入!");
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;
}
if(document.userinfo.useremail.value.length!=0)
{
if (document.userinfo.useremail.value.charAt(0)=="." ||
document.userinfo.useremail.value.charAt(0)=="@"||
document.userinfo.useremail.value.indexOf('@', 0) == -1 ||
document.userinfo.useremail.value.indexOf('.', 0) == -1 ||
document.userinfo.useremail.value.lastIndexOf("@")==document.userinfo.useremail.value.length-1 ||
document.userinfo.useremail.value.lastIndexOf(".")==document.userinfo.useremail.value.length-1)
{
alert("Email地址格式不正确!");
document.userinfo.useremail.focus();
return false;
}
}
else
{
alert("Email不能为空!");
document.userinfo.useremail.focus();
return false;
}
if(checkspace(document.userinfo.name.value))
{
document.userinfo.name.focus();
alert("真实姓名不能为空,请重新输入!");
return false;
}
if(checkspace(document.userinfo.question.value))
{
document.userinfo.question.focus();
alert("密码提问不能为空,请重新输入!");
return false;
}
if(checkspace(document.userinfo.answer.value))
{
document.userinfo.answer.focus();
alert("密码答案能为空,请重新输入!");
return false;
}
{
userinfo.submit();
}
}
function regInput(obj, reg, inputStr)
{
var docSel = document.selection.createRange()
if (docSel.parentElement().tagName != "INPUT") return false
oSel = docSel.duplicate()
oSel.text = ""
var srcRange = obj.createTextRange()
oSel.setEndPoint("StartToStart", srcRange)
var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
return reg.test(str)
}
function checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
function openwin(){
if (userinfo.username.value==""){
document.userinfo.username.focus();
alert("用户名不能为空,请重新输入!");
return false;
}
var str="checkreg.asp?username="+userinfo.username.value;
window.showModalDialog(str,"","dialogWidth=300px;dialogHeight=50px;Status=no;Help=no;Scrollbars=no");
}
</script>
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
2008优秀毕业设计(购物网站) (197个子文件)
md5.asp 11KB
top.asp 8KB
index.asp 7KB
yh_zc.asp 6KB
upfile_class.asp 5KB
basket.asp 5KB
left.asp 5KB
search.asp 4KB
liuyan.asp 4KB
yh_xg.asp 4KB
Upfile_dachan8fk.asp 4KB
sp_list.asp 4KB
lxserch.asp 4KB
yh_xg0.asp 4KB
cashsave.asp 3KB
sp_tj.asp 3KB
left.asp 3KB
cash.asp 3KB
xgmm.asp 3KB
liuyan_list.asp 3KB
rm_sp.asp 3KB
new_sp.asp 3KB
sp_xg.asp 3KB
dindan.asp 2KB
config.asp 2KB
watch.asp 2KB
dindan_list.asp 2KB
dindan_serch.asp 2KB
sp_list.asp 2KB
gongao_list.asp 2KB
news_list.asp 2KB
gly_xg.asp 2KB
news_tj.asp 2KB
yh_gl.asp 2KB
gly_gl.asp 2KB
saveto.asp 2KB
news_xg.asp 2KB
splx_list.asp 2KB
login.asp 2KB
gly_tj.asp 1KB
yh_dl.asp 1KB
help.asp 1KB
Upload.asp 1KB
splx_tj.asp 1KB
yh_zccheck.asp 1KB
liuyan_hf.asp 1KB
lx_xg.asp 1KB
gongao_watch.asp 1KB
serch.asp 981B
logincheck.asp 863B
gly_tjcheck.asp 850B
sp_tjcheck.asp 839B
logincheck.asp 762B
xgmm_check.asp 756B
main.asp 746B
di.asp 690B
gly_xgcheck.asp 653B
yh_xgcheck.asp 639B
fahuo.asp 614B
sp_xgcheck.asp 580B
saveliuyan.asp 499B
right.asp 496B
news_tjcheck.asp 460B
top.asp 454B
sp_sc.asp 440B
yh_sc.asp 423B
liuyan_hfcheck.asp 395B
news_xgcheck.asp 391B
sp_serch.asp 386B
splx_tjcheck.asp 373B
lx_xgcheck.asp 368B
dindan_sc.asp 350B
index.asp 347B
dindan.asp 344B
news_sc.asp 300B
yh_xg.asp 297B
tj_sp.asp 296B
liuyan_sc.asp 292B
gly_sc.asp 283B
lx_sc.asp 282B
conn.asp 151B
conn.asp 145B
editsl.asp 106B
nologin.asp 94B
quit.asp 57B
css.css 132B
css.css 132B
Thumbs.db 149KB
Thumbs.db 147KB
Thumbs.db 8KB
welcome.gif 11KB
1.gif 9KB
menudown5.gif 3KB
menudown3.gif 3KB
menudown2.gif 3KB
menudown6.gif 3KB
menudown1.gif 3KB
menudown4.gif 3KB
title_bg_quit.gif 3KB
fixupCarSmall.gif 3KB
共 197 条
- 1
- 2
Mc_Grady_
- 粉丝: 1
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 流程图转PAD-N-S图和伪码(软件工程).doc
- C#winform excel导入导出
- 毕业论文上传111111111111
- raisin.zip
- 322个地级市-市场分割指数、市场一体化指数+居民消费价格指数(2004-2022年).txt
- 《基于Java实现自定义控件-天气温度折线图 》+源代码+设计资料
- 希尔伯特矩阵来综合演示数值矩阵与符号矩阵的基本操作
- 《基于51单片机和DS18B20的温度检测和报警系统,可设置报警温度上下限,输出温度采用数码管显示 》+源代码+设计资料
- ESP8266WIFI系统工作原理图.schdoc
- C语言《基于STM32的测量温度与压力的数据处理设计 》+源代码+设计资料
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页