<SCRIPT language=JavaScript>
function checkdata() {powered by 25175.
net if (document.wizard.password.value=='') {
window.alert ("请输入您的密码 !")
mobj = eval("document.wizard.password");
mobj.focus()
mobj.select()
return false
}
if (document.wizard.password.value.length<4) {
window.alert ("您的密码数必须大于4位 !")
mobj = eval("document.wizard.password");
mobj.focus()
mobj.select()
return false
}
if (!Verifypwd(document.wizard.password.value)) {
alert("密码只能使用字母、数字以及 - 和 _ ,并且不能使用中文");
mobj = eval("document.wizard.password");
mobj.focus()
mobj.select()
return false
}
if (document.wizard.repassword.value=='') {
window.alert ("请输入您的重复密码 !")
mobj = eval("document.wizard.repassword");
mobj.focus()
return false
}
if (document.wizard.password.value!=document.wizard.repassword.value) {
mobj = eval("document.wizard.repassword");
mobj.focus()
window.alert ("您的密码不一致 !")
return false
}
if (document.wizard.name.value=='') {
window.alert ("请输入您的用户名 !")
mobj = eval("document.wizard.name");
mobj.focus()
mobj.select()
return false
}
if (!Verifyname(document.wizard.name.value)) {
alert("姓名只能使用中文,并且不能使用字母、空格、数字以及 - 和 _ ");
mobj = eval("document.wizard.name");
mobj.focus()
mobj.select()
return false
}
if (document.wizard.name.value.length<2) {
window.alert ("您的姓名至少为2个汉字 !")
mobj = eval("document.wizard.name");
mobj.focus()
mobj.select()
return false
}
if (document.wizard.name.value.length>4) {
window.alert ("您的姓名最多为4个汉字 !")
mobj = eval("document.wizard.name");
mobj.focus()
mobj.select()
return false
}
if (document.wizard.phone.value==''&&document.wizard.fphone.value==''
&&document.wizard.telephone.value==''&document.wizard.call.value=='') {
window.alert ("家庭电话/手机/公司电话/BB机必须填写其中一项 !")
mobj = eval("document.wizard.fphone");
mobj.focus()
mobj.select()
return false
}
if (document.wizard.telephone.value.length>0&&document.wizard.telephone.value.
length<11) {
window.alert ("手机号应为11位!")
mobj = eval("document.wizard.telephone");
mobj.focus()
mobj.select()
return false
}
if (document.wizard.class1.value=='') {
window.alert ("请输入您的户口所地 !")
mobj = eval("document.wizard.class1");
mobj.focus()
mobj.select()
return false
}
if (document.wizard.cla1.value=='') {
window.alert ("请输入您当前所地 !")
mobj = eval("document.wizard.cla1");
mobj.focus()
mobj.select()
return false
}
if (document.wizard.address.value=='') {
window.alert ("请输入您的通信地址 !")
mobj = eval("document.wizard.address");
mobj.focus()
mobj.select()
return false
}
if (document.wizard.iden.value=='') {
window.alert ("请输入您的证件号码 !")
mobj = eval("document.wizard.iden");
mobj.focus()
mobj.select()
return false
}
//}
if (!isnumber(document.wizard.height.value)) {
alert("身高只能使用数字");
mobj = eval("document.wizard.height");
mobj.focus()
mobj.select()
return false
}
if (!isnumber(document.wizard.postcode.value)) {
alert("邮政编码只能用数字");
mobj = eval("document.wizard.postcode");
mobj.focus()
mobj.select()
return false
}
if (document.wizard.height.value>250||document.wizard.height.value<80) {
alert("身高不准确");
mobj = eval("document.wizard.height");
mobj.focus()
mobj.select()
return false
}
}
</SCRIPT>