
function reg_Validator(form)
{if(form.first.value==""||hasWhiteSpace(form.first.value)=="false")
{alert("Please mention the first name,White space not allowed");form.first.focus();return false;}
if(form.last.value==""||hasWhiteSpace(form.last.value)=="false")
{alert("Please mention the last name,White space not allowed");form.last.focus();return false;}
var reg2=/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/;if(!reg2.test(form.email.value))
{alert("Invalid Email Address");form.email.focus();return false;}
if(form.misc1.value=="")
{alert("Please mention the Specialty");form.misc1.focus();return false;}
if(form.misc3.value=="")
{alert("Please mention How did you hear about us");form.misc3.focus();return false;}}
function hasWhiteSpace(s)
{var msg="";reWhiteSpace=new RegExp(/^\s+$/);if(reWhiteSpace.test(s))
{msg="false";}
return msg;}
