function ValidateEmail() {
if (!(document.getElementById("userId").value.length == 0)&& (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("userId").value))) {
alert(document.getElementById("userId").value);
return true;
} else {
alert('Please enter valid Email ID');
document.getElementById("userId").focus();
myform.reset();
return false;
}
return false;
}