function FrontPage_Form1_Validator(theForm){



if(""==theForm.Fullname.value)
{
alert("Please enter your name.");
theForm.Fullname.focus();
return false;
}


if( notValidEmail( theForm.Email ) ){
        alert( 'You have not entered a valid Email' );
		theForm.Email.focus();
        return false;}
		
if( notValidEmail( theForm.ConfirmEmail ) ){
        alert( 'You have not entered a valid Email Confirmation' );
		theForm.ConfirmEmail.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.CommentsQueries.value)
{
alert("Please enter your comments / Queries.");
theForm.CommentsQueries.focus();
return false;
}


if(""==theForm.SpamCheck.value)
{
alert("Please enter the white number.");
theForm.SpamCheck.focus();
return false;
}



}
