<Script language = "JavaScript">
VaR charset = 'gbk ';
VaR retminname = parseint ('3 ');
VaR regmaxname = parseint ('12 ');
VaR rglower = parseint ('0 ');
VaR regminpwd = parseint ('6 ');
VaR regmaxpwd = parseint ('16 ');
VaR regnpdifferf = parseint ('1 ');
VaR regemail = parseint ('1 ');
VaR regdetail = parseint ('1 ');
VaR inticlass = "exp ";
VaR rightclass = "correct ";
VaR falseclass = "wrong ";
VaR pwdcomplex = '';
VaR extracheck = new array ();
VaR reginfo = new array ();
Reginfo [0] = new array ("congratulations, this user name has not been registered, you can use this user name to register! "," Invalid username length! "," This user name contains unacceptable characters or is blocked by the Administrator. Please select another user name "." To avoid confusion in the forum user name, uppercase letters are not allowed. Please Use lowercase letters ", "This user name has been registered. Please select another user name. "," The user name cannot be blank! "," No space is allowed, it can be Chinese characters, and the length is limited to "+ retminname +"-"+ regmaxname +" Byte "+ (rglower? "Case Sensitive": "case insensitive "));
VaR regname = new element ("regname", reginfo [0], "regname_info ");
Reginfo [1] = new array ("is entered correctly. "," Incorrect password settings. The password must contain lowercase letters. "," Incorrect password settings. The password must contain uppercase letters. "," Incorrect password settings. The password must contain numbers. "," Incorrect password settings. The password must contain symbols. "," Incorrect password settings. The password length is too small. "," Incorrect password settings. The password is too long. "," Incorrect password settings. The password cannot be the same as the user name. "," Incorrect password settings. The password cannot contain the following characters :\&'\"! /*, <> % #?. "," The account and password cannot be registered. ", Getpwdrule ());
VaR regpwd = new element ("regpwd", reginfo [1], "pwd_info ");
Reginfo [2] = new array ("is entered correctly. "," The two passwords are inconsistent. Enter your password again. "," Enter your password again ");
VaR regpwdrepeat = new element ("regpwdrepeat", reginfo [2], "pwdrepeat_info ");
Reginfo [3] = new array ("is entered correctly. "," Your entered information is incorrect. "," This email address has been registered. Please replace it with another email address. "," Enter the real and most frequently used email address. "+ (Regemail? "You must be authenticated by email. ":""));
VaR regemail = new element ("regemail", reginfo [3], "email_info ");
If (parseint ("39") & 1 ){
Reginfo [4] = new array ("is entered correctly. "," The verification code is incorrect. "," Login has timed out. Please refresh the verification code. "," Enter the verification code. ");
VaR gdcode = new element ("regemail", reginfo [4], "gdcode_info ");
}
If (getobj ('regqkey ')){
Reginfo [5] = new array ("is entered correctly. "," The verification answer is incorrect. "," Enter the answer :");
VaR qanswer = new element ("qanswer", reginfo [5], "qanswer_info ");
}
If (parseint ("1") = 1 ){
Reginfo [6] = new array ("is entered correctly. "," The invitation Code cannot be blank. "," The invitation code is incorrect. "," This site enables invitation registration. Please fill in the invitation code! ");
VaR invcode = new element ("invcode", reginfo [6], "invcode_info ");
}
Reginfo [7] = new array ("agreed. "," Please confirm that you have read and fully agree to the terms. ");
VaR registerclause = new element ("registerclause", reginfo [7], "registerclause_info ");
Reginfo [8] = new array ("is entered correctly. "," Enter a custom question ");
VaR customquested = new element ("customquested", reginfo [8], "customquested_info ");
Reginfo [9] = new array ("is entered correctly. "," Enter the answer ");
VaR answered = new element ("answered", reginfo [9], "answered_info ");
Function permit (){
Getobj ("registerclause"). Disabled = 'Disabled ';
Try {
Ajax. Send ('register. php? Ajax = 1 & step = Permit ', '', Ajax. Get );
} Catch (e ){
}
}
If (regdetail ){
SetTimeout ('permit (); ', 1000 );
}
Function getpwdrule (){
VaR intistring = "";
If (regminpwd ){
Intistring + = "minimum length:" + regminpwd + "";
}
If (regmaxpwd ){
Intistring + = "maximum length:" + regmaxpwd + "";
}
If (regnpdifferf ){
Intistring + = "the password cannot be the same as the user name. ";
}
If (! Pwdcomplex ){
Return intistring;
}
VaR addstring = "the password must contain the following character types :";
VaR rule = pwdcomplex. Split (',');
For (VAR I = 0;
I <rule. length;
I ++ ){
Switch (number (rule [I]) {
Case 1:
Addstring + = "lowercase letters ";
Break;
Case 2:
Addstring + = "uppercase letters ";
Break;
Case 3:
Addstring + = "Number ";
Break;
Case 4:
Addstring + = "symbol ";
Break;
Default:
Break;
}
}
Return intistring + addstring;
}
Function showcustomquest (qid ){
Getobj ("customquested"). style. Display = qid =-1? '': 'None ';
}
</SCRIPT>