function emailCheck(email) {
if ((email.length > 128) || (email.length < 6)) {
return false;
}
email = trim(email)
var pattern = /^([a-zA-Z0-9._-])+@([a-zA-Z0-9_-])+(/.[a-zA-Z0-9_-])+/;
flag = pattern.test(email);
if (!flag) {
return false;
}
return true;
}
function isChinese(temp) {
temp = trim(temp);
if (escape(temp).indexOf("%u") != -1) {
return true;
}
return false;
}
function trim(str) { //删除左右两端的空格
return str.replace(/(^/s*)|(/s*$)/g, "");
}