
function FrontPage_Form1_Validator(theForm)
{
  if (theForm.ClientName.value == "")
  {
    alert("Please enter your name.");
    theForm.ClientName.focus();
    return (false);
  }
 if (theForm.Email.value == "")
  {
    alert("Please enter yor Email address.");
    theForm.Email.focus();
    return (false);
	
  }
if( notValidEmail( theForm.Email ) ){
        alert( 'You have not entered a valid Email' );
		theForm.Email.focus();
        return false;}
function notValidEmail( str ){
    mailRE = new RegExp( );
    mailRE.compile( '^[\._a-z0-9-]+@[\.a-z0-9-]+[\.]{1}[a-z]{2,4}$', 'gi' );
    return !(mailRE.test( str.value ));
} 
  if (theForm.SpamCheck.value == "")
  {
    alert("Please enter the red number.");
    theForm.SpamCheck.focus();
    return (false);
  }
  return (true);
}


