function FrontPage_Form1_Validator(theForm)
{

  
    if (theForm.realname.value == "")
  {
    alert("Please enter your Name.");
    theForm.realname.focus();
    return (false);
  }

 if (theForm.country.value == "")
  {
    alert("Please enter Country Name.");
    theForm.country.focus();
    return (false);
  }




if( notValidEmail( theForm.Email ) ){
        alert( 'You have not entered a valid Email' );
		theForm.Email.focus();
        return false;}
		
if( notValidEmail( theForm.verify_email ) ){
        alert( 'You have not entered a valid verify_email Address' );
		theForm.verify_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.telephone.value == "")
  {
    alert("Please enter telephone");
    theForm.telephone.focus();
    return (false);
  }

if (theForm.no_guests.value == "")
  {
    alert("Please enter no_guests");
    theForm.no_guests.focus();
    return (false);
  }


 if (theForm.day_in.value == "yyyy/mm/dd")
  {
    alert("Please enter a value for Day_in field");
    theForm.day_in.focus();
    return (false);
  }



 if (theForm.day_out.value == "yyyy/mm/dd")
  {
    alert("Please enter a value for Day_Out field");
    theForm.day_out.focus();
    return (false);
  }

  if (theForm.room_type.selectedIndex < 0)
  {
    alert("Please select one of the \"room_type\" options.");
    theForm.room_type.focus();
    return (false);
  }

  if (theForm.room_type.selectedIndex == 0)
  {
    alert("The first \"room_type\" option is not a valid selection.  Please choose one of the other options.");
    theForm.room_type.focus();
    return (false);
  }

  if (theForm.SpamCheck.value == "")
  {
    alert("Please enter red number displayed to the right");
    theForm.SpamCheck.focus();
    return (false);
  }

}
