校验密码必须包含字母大小写、数字
function checkPasswordNew(s){
var str=trim(s); //var reg = /^(?![A-Z]+$)(?![a-z]+$)(?!\d+$)(?![\W_]+$)\S{8,20}$/;
var reg = /^(?:(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).{8,20}$/;
if(reg.test(str))
{
return true;
}
else
{
return false;
}
}