function FrontPage_Form1_Validator(theForm)
{

  if (theForm.Name.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Telephone.value == "")
  {
    alert("Please enter a value for the \"Telephone\" field.");
    theForm.Telephone.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Please enter a value for the \"E-Mail\" field.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.Guests.value == "")
  {
    alert("Please enter a value for the \"Number of Guests\" field.");
    theForm.Guests.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.Guests.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Number of Guests\" field.");
    theForm.Guests.focus();
    return (false);
  }

  if (decPoints > 1 || !validGroups)
  {
    alert("Please enter a valid number in the \"Guests\" field.");
    theForm.Guests.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.Board.selectedIndex < 0)
  {
    alert("Please select one of the \"Board\" options.");
    theForm.Board.focus();
    return (false);
  }

  if (theForm.Board.selectedIndex == 0)
  {
    alert("The first \"Board\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Board.focus();
    return (false);
  }

  if (theForm.Arrival_Day.selectedIndex < 0)
  {
    alert("Please select one of the \"Arrival Date\" options.");
    theForm.Arrival_Day.focus();
    return (false);
  }

  if (theForm.Arrival_Month.selectedIndex < 0)
  {
    alert("Please select one of the \"Arrival Date\" options.");
    theForm.Arrival_Month.focus();
    return (false);
  }

  if (theForm.Arrival_Year.selectedIndex < 0)
  {
    alert("Please select one of the \"Arrival Date\" options.");
    theForm.Arrival_Year.focus();
    return (false);
  }

  if (theForm.Departure_Day.selectedIndex < 0)
  {
    alert("Please select one of the \"Departure Date\" options.");
    theForm.Departure_Day.focus();
    return (false);
  }

  if (theForm.Departure_Month.selectedIndex < 0)
  {
    alert("Please select one of the \"Departure Date\" options.");
    theForm.Departure_Month.focus();
    return (false);
  }

  if (theForm.Departure_Year.selectedIndex < 0)
  {
    alert("Please select one of the \"Departure Date\" options.");
    theForm.Departure_Year.focus();
    return (false);
  }
  return (true);
}
function ValidateContact(theForm)
{

  if (theForm.clientname.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.clientname.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Please enter a value for the \"E-Mail\" field.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.comments.value == "")
  {
    alert("Please enter a value for the \"Comments\" field.");
    theForm.comments.focus();
    return (false);
  }
  return (true);
}
