Thursday, August 7, 2008

Email validations

function ValidateForm()
{
var emailID=document.frmSample.txtEmail 
if ((emailID.value==null)||(emailID.value==""))
alert("Please Enter your Email ID") ;
emailID.focus();
return false ;
if (echeck(emailID.value)==false)
{
emailID.value="" ;
emailID.focus() ;
return false ;
}
return true
}

No comments: