ID命名非法",flag[0]=0,check_data())}function check_password(){var e=$("input")[1].value,n=/[\u0391-\uFFE5';#@]+/,t=n.test(e),a=/\s+/,c=a.test(e);if(e.length<6)$("span")[1].innerHTML=" 密码长度不能小于6",flag[1]=0,check_data();else if(t)$("span")[1].innerHTML=" 密码不能包含中文,#号和@号",flag[1]=0,check_data();else{if(!c){var i=getResult(e),s=new Array(" 密码强度差"," 密码强度一般"," 密码强度强壮");return $("span")[1].innerHTML=s[i],""!=$("input")[2].value&&check_pw(),flag[1]=1}$("span")[1].innerHTML=" 密码不能包含空格",flag[1]=0,check_data()}}function getResult(e){var n=-1;return e.match(/[a-z]/gi)&&n++,e.match(/[0-9]/gi)&&n++,e.match(/(.[^a-z0-9])/gi)&&n++,n}function check_pw(){var e=$("input")[1].value.toString(),n=$("input")[2].value.toString();1==flag[1]&&(e==n?($("span")[2].innerHTML=" 密码可以使用",flag[2]=1,check_data()):($("span")[2].innerHTML=" 两次密码不相同",flag[2]=0,check_data()))}function check_email(e){var n=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,t=n.test(e);e.length>0?t?($("span")[3].innerHTML=" 邮箱可用",flag[3]=1,check_data()):($("span")[3].innerHTML=" 邮箱错误",flag[3]=0,check_data()):($("span")[3].innerHTML="",flag[3]=1,check_data())}function check_wangwang(e){e.length>1&&e.length<30&&1==isNaN(e)?($("span")[4].innerHTML=" 店铺可用",flag[4]=1,check_data()):($("span")[4].innerHTML=" 店铺名称不能为空或者纯数字",flag[4]=0,check_data())}function check_qq(e){e.length>0?-1!=e.search(/^[1-9]\d{4,9}$/)?($("span")[5].innerHTML=" QQ可用",flag[5]=1,check_data()):($("span")[5].innerHTML=" QQ错误",flag[5]=0,check_data()):($("span")[5].innerHTML="",flag[5]=1,check_data())}function check_phone(e){e.length>0?e.isMobile()||e.isTel()?($("span")[6].innerHTML=" 电话可用",flag[6]=1,check_data()):($("span")[6].innerHTML=" 电话错误",flag[6]=0,check_data()):($("span")[6].innerHTML="",flag[6]=1,check_data())}function accept_info(){flag[8]=1,check_data()}function refuse_info(){flag[8]=0,check_data()}function reset_info(){for(var e=["支持汉字,字母,数字,30个字符以内","密码在6-30字符之间","","推荐填写qq邮箱,如:87654321@qq.com","*店铺为必填选项","","","看不清楚?请点击验证码刷新",""],n=0;n<$("span").length;n++)$("span")[n].innerHTML=e[n];for(var n=0;8>n;n++)$("input")[n].value="";var t=document.getElementsByName("info");for(n=0;n0&&(c_start=document.cookie.indexOf(e+"="),-1!=c_start)?(c_start=c_start+e.length+1,c_end=document.cookie.indexOf(";",c_start),-1==c_end&&(c_end=document.cookie.length),unescape(document.cookie.substring(c_start,c_end))):""}function checkcode(e){var n;try{n=new XMLHttpRequest}catch(t){n=new ActiveXObject("Microsoft.XMLHTTP")}n.onreadystatechange=function(){if(4==n.readyState)if(200==n.status){var e=n.responseText;code_result(e)}else $("span")[7].innerHTML="验证码校验失败,请联系管理员";else $("span")[7].innerHTML="正在进行验证码校验..."},n.open("post","check_code.asp",!0),n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n.send("regcode="+escape(e))}function changecode(){document.getElementById("src").src="VerCode.asp?"+Math.random()}function code_result(e){var n=$("span")[7];"1"==e?(n.innerHTML=' 验证码正确',flag[7]=1,check_data()):(n.innerHTML=' 验证码错误!点此刷新验证码',flag[7]=0,check_data())}function checkid(e){var n;try{n=new XMLHttpRequest}catch(t){n=new ActiveXObject("Microsoft.XMLHTTP")}n.onreadystatechange=function(){if(4==n.readyState)if(200==n.status){var e=n.responseText;id_result(e)}else $("span")[0].innerHTML="用户名检测失败,请联系管理员";else $("span")[0].innerHTML="正在进行用户名校验..."},n.open("post","check_id.asp",!0),n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n.send("regid="+escape(e))}function id_result(e){var n=$("span")[0];"1"==e?(n.innerHTML=' 用户名可用',flag[0]=1,check_data()):(n.innerHTML=' 该用户名已经被注册',flag[0]=0,check_data())}function sendinfo(e,n,t,a,c,i){var s;try{s=new XMLHttpRequest}catch(r){s=new ActiveXObject("Microsoft.XMLHTTP")}s.onreadystatechange=function(){if(4==s.readyState)if(200==s.status){var e=s.responseText;reg_result(e)}else $("span")[8].innerHTML="注册失败,请联系管理员";else $("span")[8].innerHTML="正在进行用户名注册..."};var o=getCookie("gezipu_fromurl"),g=getCookie("gezipu_fromad");s.open("post","reg.asp",!0),s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s.send("regname="+escape(e)+"&pwd="+escape(n)+"&email="+escape(t)+"&wangwang="+escape(a)+"&qq="+escape(c)+"&phone="+escape(i)+"&gezipu_fromurl="+escape(o)+"&gezipu_fromad="+escape(g))}function reg_ok(){alert("恭喜您注册成功!马上登陆体验免费百万流量之旅!"),window.location.href="/user/login.html"}function reg_result(e){"1"==e?($("span")[8].innerHTML="恭喜您注册成功!",reg_ok()):$("span")[8].innerHTML="2"==e?"用户名已被抢注,请更换用户名!":"注册失败,请联系管理员"}var flag=[0,0,0,1,0,1,1,0,1],$=function(e){return document.getElementsByTagName(e)};String.prototype.Trim=function(){var e=this.match(/^\s*(\S+(\s+\S+)*)\s*$/);return null==e?"":e[1]},String.prototype.isMobile=function(){return/^1[3|4|5|7|8][0-9]\d{8}$/.test(this.Trim())},String.prototype.isTel=function(){return/^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/.test(this.Trim())};