function FrontPage_Form_Validator()
{
  var theForm = document.getElementById('FrontPage_Form');
  if (theForm.name.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.name.focus();
    return (false);
  }

  if (theForm.name.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"First Name\" field.");
    theForm.name.focus();
    return (false);
  }

  if (theForm.name.value.length > 90)
  {
    alert("Please enter at most 90 characters in the \"First Name\" field.");
    theForm.name.focus();
    return (false);
  }

  if (theForm.surname.value == "")
  {
    alert("Please enter a value for the \"Surname\" field.");
    theForm.surname.focus();
    return (false);
  }

  if (theForm.surname.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Surname\" field.");
    theForm.surname.focus();
    return (false);
  }

  if (theForm.surname.value.length > 90)
  {
    alert("Please enter at most 90 characters in the \"Surname\" field.");
    theForm.surname.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Email Address\" field.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length > 90)
  {
    alert("Please enter at most 90 characters in the \"Email Address\" field.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.address1.value == "")
  {
    alert("Please enter a value for the \"Address1\" field.");
    theForm.address1.focus();
    return (false);
  }

  if (theForm.address1.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"Address1\" field.");
    theForm.address1.focus();
    return (false);
  }

  if (theForm.address1.value.length > 255)
  {
    alert("Please enter at most 255 characters in the \"Address1\" field.");
    theForm.address1.focus();
    return (false);
  }

  if (theForm.address2.value.length > 255)
  {
    alert("Please enter at most 255 characters in the \"Address2\" field.");
    theForm.address2.focus();
    return (false);
  }

  if (theForm.city.value == "")
  {
    alert("Please enter a value for the \"Town/City\" field.");
    theForm.city.focus();
    return (false);
  }

  if (theForm.city.value.length > 255)
  {
    alert("Please enter at most 255 characters in the \"Town/City\" field.");
    theForm.city.focus();
    return (false);
  }

  if (theForm.country.selectedIndex < 0)
  {
    alert("Please select one of the \"Country\" options.");
    theForm.country.focus();
    return (false);
  }

  if (theForm.pcode.value == "")
  {
    alert("Please enter a value for the \"Postal Code\" field.");
    theForm.pcode.focus();
    return (false);
  }

  theForm.submit();
}