secmail邮箱(severail)
网页注册系统怎样使两次密码输入的一样
script language="javascript" function checkSsnAndMail(){if(chkUsername()checkname()checkpass()checkMail()checkAuthInput()doRegFormSubmit()) return true;else return false;} function checkAuthInput(){if(form.AuthInput.value.length1){alert("\请输入验证码 !!");form.AuthInput.focus();return false;} else return true;} function checkname(){if(form.name.value.length1){alert("\请输入正确的昵称 !!");form.name.focus();return false;} else return true;} function checkpass(){if(form.users_pass.value.length6){alert("\请输入正确的密码 !!");form.users_pass.focus();return false;} if(form.users_pass.value!=form.repeat_users_pass.value){alert("\两次输入不一致 !!");form.repeat_users_pass.value='';return false;} else return true;} function chkUsername() { var username =form.users_name.value; if(username=="") { alert("\用户名不能为空 !!"); return false; } else if( /^\d.*$/.test( username ) ){ alert("//用户名不能以数字开头 !!"); return false; } else if(username.length 6 || username.length 18 ){ alert("用户名合法长度为6-18个字符 !!"); return false; } else if(! /^\w+$/.test( username ) ){ alert("用户名只能包含_,英文字母,数字 !!"); return false; } return true; } function doRegFormSubmit(){ if(form.servItems.attr("checked")!= true){ alert("您还没有阅读服务条款!"); return false; } } function checkMail(){var secmail=form.email.value;if(secmail.length==0){alert("\请您输入正确的邮箱地址 !");form.email.focus();return false;} else if(secmail.length8||secmail.length64||!validateEmail(secmail)){alert("\请您输入正确的邮箱地址 !");form.email.focus();return false;} else return true;} function validateEmail(emailStr){var re=/^[\w-.]+(\.*[\w-]+)*@([0-9a-z]+(([0-9a-z]*)|([0-9a-z-]*[0-9a-z]))\.)+[a-z]{2,3}$/i;if(re.test(emailStr)) return true;else return false;} /script form method=post action="?action=process" name="form" autocomplete=off onSubmit="return checkSsnAndMail()" div id="zhuce" div class="0292-91e6-827e-f261 divstyle3 ptop_15"span strong class="91e6-827e-f261-1986 red"*/strong 用户名:/span input type="text" class="827e-f261-1986-03d0 inputstyle" name="users_name" id="users_name" onblur="xajax_namecheck(document.getElementById('users_name').value)" / p class="f261-1986-03d0-1d1e graystyle"4-16位之间,不能全部是数字或下划线。 /p /div div class="1986-03d0-1d1e-8f02 divstyle3"span strong class="03d0-1d1e-8f02-d05f red"*/strong 邮箱:/span input type="text" class="1d1e-8f02-d05f-1fbb inputstyle" name="email" id="email" onblur="xajax_emailcheck(document.getElementById('email').value)" / /div div class="8f02-d05f-1fbb-eb07 divstyle3"span strong class="d05f-1fbb-eb07-b19e red"*/strong 昵称:/span input type="text" class="1fbb-eb07-b19e-7c97 inputstyle" name="name" / /div /div div id="zhuce2" div class="eb07-b19e-7c97-8520 zctitle"span安全信息设置/span以下信息很重要,请谨慎填写。/div div class="437d-f658-c4f6-73be divstyle3 ptop_15"span strong class="f658-c4f6-73be-0292 red"*/strong 密码:/span input class="c4f6-73be-0292-91e6 inputstyle" type="password" name="users_pass" //div div class="73be-0292-91e6-827e divstyle3"span strong class="0292-91e6-827e-f261 red"*/strong 再次输入密码:/span input class="91e6-827e-f261-1986 inputstyle" type="password" name="repeat_users_pass" //div div class="827e-f261-1986-03d0 divstyle3"span strong class="f261-1986-03d0-1d1e red"*/strong 用户类型:/span input name="" type="radio" value="" / 普通会员 input name="" type="radio" value="" / 供应商 /div