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="d50a-e01b-c8d5-62ce divstyle3 ptop_15"span strong class="e01b-c8d5-62ce-b261 red"*/strong 用户名:/span input type="text" class="c8d5-62ce-b261-4eb8 inputstyle" name="users_name" id="users_name" onblur="xajax_namecheck(document.getElementById('users_name').value)" / p class="62ce-b261-4eb8-00f4 graystyle"4-16位之间,不能全部是数字或下划线。 /p /div div class="b261-4eb8-00f4-f17d divstyle3"span strong class="4eb8-00f4-f17d-7fba red"*/strong 邮箱:/span input type="text" class="00f4-f17d-7fba-f16f inputstyle" name="email" id="email" onblur="xajax_emailcheck(document.getElementById('email').value)" / /div div class="f17d-7fba-f16f-c159 divstyle3"span strong class="7fba-f16f-c159-15fc red"*/strong 昵称:/span input type="text" class="f16f-c159-15fc-6133 inputstyle" name="name" / /div /div div id="zhuce2" div class="c159-15fc-6133-3d6c zctitle"span安全信息设置/span以下信息很重要,请谨慎填写。/div div class="a421-a458-e064-c19c divstyle3 ptop_15"span strong class="a458-e064-c19c-d50a red"*/strong 密码:/span input class="e064-c19c-d50a-e01b inputstyle" type="password" name="users_pass" //div div class="c19c-d50a-e01b-c8d5 divstyle3"span strong class="d50a-e01b-c8d5-62ce red"*/strong 再次输入密码:/span input class="e01b-c8d5-62ce-b261 inputstyle" type="password" name="repeat_users_pass" //div div class="c8d5-62ce-b261-4eb8 divstyle3"span strong class="62ce-b261-4eb8-00f4 red"*/strong 用户类型:/span input name="" type="radio" value="" / 普通会员 input name="" type="radio" value="" / 供应商 /div