<!-- Begin

function FrontPage_Form1_Validator(theForm)

{

  if (theForm.rooms.value < 0)
  {
    alert("Please Select one of the \"No. of Room\" options.");
    theForm.rooms.focus();
    return (false);
  }
  
  if (theForm.rooms.value == 0)
  {
    alert("The First \"No. of Room\" option is not a valid selection.  Please choose one of the other options.");
    theForm.rooms.focus();
    return (false);
  }


  if (theForm.adults.value < 0)
  {
    alert("Please Select one of the \"Number of Adults\" options.");
    theForm.adults.focus();
    return (false);
  }
  
  if (theForm.adults.value == 0)
  {
    alert("The First \"Number of Adults\" option is not a valid selection.  Please choose one of the other options.");
    theForm.adults.focus();
    return (false);
  }


  if (theForm.firstname.value == "")
  {
    alert("Please enter a value for the \"Firstname\" field.");
    theForm.firstname.focus();
    return (false);
  }

  if (theForm.lastname.value == "")
  {
    alert("Please enter a value for the \"Lastname\" field.");
    theForm.lastname.focus();
    return (false);
  }

  if (theForm.address.value == "")
  {
    alert("Please enter a value for the \"Address\" field.");
    theForm.address.focus();
    return (false);
  }
  
  if (theForm.resides.selectedIndex == "")  {
    alert("Please Select a value for the \"Country\" options.");
    theForm.resides.focus();
    return (false);
  }
  
 
  // E-Mail
  var email = theForm.custemail.value
  count=0;
  for(i=0; i<email.length; i++) {
  if(email.charAt(i)=='@')
    count++;
  }

  if (count != '1') {
     alert ("Please enter a valid \"E-mail Address\"");
    theForm.custemail.focus();
    return false;
  }
  
  // Confirm E-Mail
  var email = theForm.custemail1.value
  count=0;
  for(i=0; i<email.length; i++) {
  if(email.charAt(i)=='@')
    count++;
  }

  if (count != '1') {
     alert ("Please enter a valid \"Confirm E-mail Address\"");
    theForm.custemail1.focus();
    return false;
  }

  if (theForm.custemail.value != theForm.custemail1.value)
  {
    alert("Please recheck your email again.");
    theForm.custemail1.focus();
    return (false);
  }
}
//  End -->