function checkEmail(email){
var regu = "^(([0-9a-zA-Z]+)|([0-9a-zA-Z]+[_.0-9a-zA-Z-]*[0-9a-zA-Z]+))@([a-zA-Z0-9-]+[.])+([a-zA-Z]{2}|net|NET|com|COM|gov|GOV|mil|MIL|org|ORG|edu|EDU|int|INT)$"
var re = new RegExp(regu);
if (email.search(re) != -1)
{
return true;
}
else
{
return false;
}
}
/*function validateEmail(email){
if(email == null || email == "") return false;
var myReg = /^[_a-z0-9.-]+@([_-a-z0-9]+\.)+[a-z0-9]{2,3}$/;
return myReg.test(email);
}
function checkemail(email){
if (email == null || email.length == 0) return false;
var pattern = /[a-za-z0-9_.]{1,}@[a-za-z0-9_]{1,}.[a-za-z0-9_]{1,}/;
if(email.match(pattern)==null){
return false;
}else{
return true;
}
}
\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
*/