function mobileCheck(item){
var str = item.value;
if(str==""){
return true;
}
if(str.length!=11){
alert('手机号码位数不正确!');
item.value="";
item.focus();
return false;
}
var myreg = /^(((13[0-9]{1})|15[0-9]{1}|18[0-9]{1}|)+\d{8})$/;
if(!myreg.test(str)){
alert('手机号码格式不正确!');
item.value="";
item.focus();
return false;
}
return true;
}
var str = item.value;
if(str==""){
return true;
}
if(str.length!=11){
alert('手机号码位数不正确!');
item.value="";
item.focus();
return false;
}
var myreg = /^(((13[0-9]{1})|15[0-9]{1}|18[0-9]{1}|)+\d{8})$/;
if(!myreg.test(str)){
alert('手机号码格式不正确!');
item.value="";
item.focus();
return false;
}
return true;
}