if(document.getElementById('ctl00_MainContent_txtEmailID').value == "" || !ValidateEmail(document.getElementById('ctl00_MainContent_txtEmailID')))
{
alert('Please Enter Valid Email');
document.getElementById('ctl00_MainContent_txtEmailID').value = '';
document.getElementById('ctl00_MainContent_txtEmailID').focus();
return false;
}
this is for validation ofn email id
if(document.getElementById('ctl00_MainContent_txtMobileNumber').value == "" || !PhoneNumber(document.getElementById("ctl00_MainContent_txtMobileNumber")))
{
alert('Please Enter Valid Mobile Number');
document.getElementById('ctl00_MainContent_txtMobileNumber').value = '';
document.getElementById('ctl00_MainContent_txtMobileNumber').focus();
return false;
}
this is fopr validation of mobile number...
hope it will helpfull..