function checkEmail(f,name){
37 var emailPattern = /[A-Za-z0-9]+@[A-Za-z0-9]+\.[A-Za-z]{2,4}/;
38 if(emailPattern.test(f[name].value)){
39 return true;
40 }
41 alert("Email address incorrect!");
42 f[name].focus();
43 return false;
44 }
阅读(1981) | 评论(0) | 转发(0) |