if ($ ("checkbtn"). Disabled) $ ("checkbtn"). Disabled = false;
}
function Checkusr (s) {
var ma = [user name (4-16-bit)! "," The user name by the number, English, underline, the bar line composition! "];
if (!limitlen (s,4,16)) {
showinfo ("usr", ma[0]);
return false;
}
if (!hasaccountchar (s)) {
showinfo ("usr", ma[1]);
return false;
}
showinfo ("usr");
return true;
}
function Checkpwd (s) {
var ma = [Password (6-16-bit)! "," The password cannot contain Chinese or full-width symbols! "," two times entered the password inconsistent! "];
PS Tutorial. Update (s);
if (!limitlen (s,6,16)) {
showinfo ("pwd", ma[0));
return false;
}
if (Haschinesechar (s)) {
showinfo ("pwd", ma[1));
return false;
}
if (Limitlen ($f ("Repwdinput"), 6,16)) {
if (Trim ($f ("repwdinput")) = = Trim (s)) {
showinfo ("pwd");
showinfo ("repwd");
return true;
}else{
showinfo ("pwd", ma[2));
return false;
}
}
showinfo ("pwd");
return true;
}
function Checkpwd2 (s) {
var ma = [Confirm password (6-16-bit)! "," The password cannot contain Chinese or full-width symbols! "," two times entered the password inconsistent! "];
if (!limitlen (s,6,16)) {
showinfo ("Repwd", ma[0));
return false;
}
if (Haschinesechar (s)) {
showinfo ("Repwd", ma[1));
return false;
}
if (Limitlen ($f ("Pwdinput"), 6,16)) {
if (Trim ($f ("pwdinput")) = = Trim (s)) {
showinfo ("pwd");
showinfo ("repwd");
return true;
}else{
showinfo ("Repwd", ma[2));
return false;
}
}
showinfo ("repwd");
return true;
}
function Checkeml (s) {
var ma = [Please enter a common message!] "," the message format is not correct! "];
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.