📄 ckreg.js
字号:
//验证注册信息
function checkform(theform)
{
if (! ((theform.username.value.length>=3)&&(theform.username.value.length<=12)))
{
alert("登陆用户名为3~12个字符!");
theform.username.focus();
return false;
}
if(theform.pass1.value.length < 6)
{
alert("登陆密码不能少于6个字符!");
theform.pass1.focus();
return false;
}
if(theform.pass2.value.length < 1)
{
alert("请输入重复登陆密码!");
theform.pass2.focus();
return false;
}
if(theform.pass1.value != theform.pass2.value)
{
alert("密码与重复密码不同!");
theform.pass1.focus();
return false;
}
if(theform.email.value.length < 1)
{
alert("请输入EMAIL地址!");
theform.email.focus();
return false;
}
if(theform.type1[1].checked)
{
if(theform.pass3.value.length < 6){
alert("交易密码不能少于6个字符!");
theform.pass3.focus();
return false;
}
if(theform.pass4.value.length < 6){
alert("确认交易密码不能少于6个字符!");
theform.pass4.focus();
return false;
}
if(theform.pass3.value !=theform.pass4.value){
alert("交易密码与确认密码不一致!");
theform.pass3.focus();
return false;
}
}
if(theform.verIfy.value.length != 4)
{
alert("请正确填写系统验证码!");
theform.verIfy.focus();
return false;
}
if(theform.realname.value.length < 1)
{
alert("真实姓名不能为空!")
theform.realname.focus();
return false;
}
if(theform.zj.value.length < 1)
{
alert("证件号码不能为空!");
theform.zj.focus();
return false;
}
if (theform.city.options[theform.city.selectedIndex].value=="-1")
{
alert("请选择您所在的城市。");
//theform.city.focus();
return false;
}
if(theform.address.value.length < 1)
{
alert("详细地址不能为空!");
theform.address.focus();
return false;
}
if(theform.phone.value.length < 1)
{
alert("联系电话不能为空!");
theform.phone.focus();
return false;
}
return true;
}
//用户名验证
function checkusername(ntype)
{
if(ntype==1)
{
if (theform.upname.value.length<1)
{
alert("请填写推荐人名称!");
theform.upname.focus();
return false;
}
window.open("chkusername.asp?upname="+theform.upname.value,"","width=300,height=150,top=200,left=400")
}else{
if (theform.username.value.length<1)
{
alert("登陆用户名不能为空!");
theform.username.focus();
return false;
}
window.open("chkusername.asp?username="+theform.username.value,"","width=300,height=150,top=200,left=400")
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -