function validEmail(myId,errorMessage)
{
var email = /^[_a-zA-Z0-9+.]+@([_a-zA-Z0-9]+.)+[a-zA-Z0-9]{2,3}$/;
if(email.test(document.getElementById(myId).value))
{
return true;
}
else
{
window.alert(errorMessage);
document.getElementById(myId).focus();
return false;
}
}