function FrontPage_Form1_Validator(theForm)
{
//Validate title
  if (theForm.Contact_Title.value == ""){
    alert("Please enter a value for the \"Title\" field.");
    theForm.Contact_Title.focus();
    return (false);
  }//End If
  if (theForm.Contact_Title.value.length < 2){
    alert("Please enter at least 2 characters in the \"Title\" field.");
    theForm.Contact_Title.focus();
    return (false);
  }//End If
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ.,&-";
  var checkStr = theForm.Contact_Title.value;
  var allValid = true;
  var validGroups = true;
  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;
    }//End If
  }//End for
  if (!allValid){
    alert("Please enter only letter and \".,&-\" characters in the \"Title\" field.");
    theForm.Contact_Title.focus();
    return (false);
  }//End If
//Validate Full name
  if (theForm.Contact_FullName.value == ""){
    alert("Please enter a value for the \"Name\" field.");
    theForm.Contact_FullName.focus();
    return (false);
  }//End If
  if (theForm.Contact_FullName.value.length < 3){
    alert("Please enter at least 3 characters in the \"Name\" field.");
    theForm.Contact_FullName.focus();
    return (false);
  }//End If
  if (theForm.Contact_FullName.value.length > 49){
    alert("Please enter at most 49 characters in the \"Name\" field.");
    theForm.Contact_FullName.focus();
    return (false);
  }//End If
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ.,& \t\r\n\f";
  var checkStr = theForm.Contact_FullName.value;
  var allValid = true;
  var validGroups = true;
  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;
    }//End If
  }//End for
  if (!allValid){
    alert("Please enter only letter, whitespace and \".,&\" characters in the \"Name\" field.");
    theForm.Contact_FullName.focus();
    return (false);
  }//End If
//Validate Contact Details
//Call the validate contacts function
result = Contact_Check(theForm);
if (!result){
  return (false);
}//End If
//Validate Comment
  if (theForm.comment.value == ""){
    alert("Please enter a value for the \"comment\" field.");
    theForm.comment.focus();
    return (false);
  }//End if
  if (theForm.comment.value.length < 5){
    alert("Please enter at least 5 characters in the \"comment\" field.");
    theForm.comment.focus();
    return (false);
  }//End If
  return (true);
}//End Function
function Contact_Check(theForm){
  contactable = false;
  if (theForm.Contact_Phone.value.length != 0){
    contactable = true;
    Presult = Check_Phone(theForm);
    if (!Presult){
      return (false);
    }//End If
  }//End If
  if (theForm.Contact_FAX.value.length != 0){
    contactable = true;
    Fresult = Check_Fax(theForm);
    if (!Fresult){
      return (false);
    }//End If
  }//End If
  if (theForm.Contact_Email.value.length != 0){
    contactable = true;
    Eresult = Check_Email(theForm);
    if (!Eresult){
      return (false);
    }//End If
  }//End If
  if (contactable){
    return (true);
  }else{
    alert("You must enter at least one of either Phone, Fax or Email.");
    theForm.Contact_Phone.focus();
    return (false);
  }//End If
}//End function
function Check_Email(theForm){
   if (theForm.Contact_Email.value.length < 6){
      alert("Please enter at least 6 characters in the \"Email address\" field.");
      theForm.Contact_Email.focus();
      return (false);
    }//End If
    var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789--_.@";
    var checkStr = theForm.Contact_Email.value;
    var allValid = true;
    var validGroups = true;
    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;
      }//End If
    }//End For
    if (!allValid){
      alert("Please enter only letter, digit and \"-_.@\" characters in the \"Email address\" field.");
      theForm.Contact_Email.focus();
      return (false);
    }else{
      return (true);
    }//End If
}//End Check_Email
function Check_Fax(theForm){
    if (theForm.Contact_FAX.value.length < 6){
      alert("Please enter at least 6 characters in the \"FAX number\" field.");
      theForm.Contact_FAX.focus();
      return (false);
    }//End If
    if (theForm.Contact_FAX.value.length > 25){
      alert("Please enter at most 25 characters in the \"FAX number\" field.");
      theForm.Contact_FAX.focus();
      return (false);
    }//End If
    var checkOK = "0123456789--+ \t\r\n\f";
    var checkStr = theForm.Contact_FAX.value;
    var allValid = true;
    var validGroups = true;
    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;
      }//End If
    }//End For
    if (!allValid){
      alert("Please enter only digit, whitespace and \"-+\" characters in the \"Contact_FAX\" field.");
      theForm.Contact_FAX.focus();
      return (false);
    }else{
      return (true);
    }//End If
}//End Check_Fax
function Check_Phone(theForm){
    if (theForm.Contact_Phone.value.length < 6){
      alert("Please enter at least 6 characters in the \"Telephone number\" field.");
      theForm.Contact_Phone.focus();
      return (false);
    }
    if (theForm.Contact_Phone.value.length > 25){
      alert("Please enter at most 25 characters in the \"Telephone number\" field.");
      theForm.Contact_Phone.focus();
      return (false);
    }
    var checkOK = "0123456789--+ \t\r\n\f";
    var checkStr = theForm.Contact_Phone.value;
    var allValid = true;
    var validGroups = true;
    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;
      }//End If
    }//End For
    if (!allValid){
      alert("Please enter only digit, whitespace and \"-+\" characters in the \"Telephone number\" field.");
      theForm.Contact_Phone.focus();
      return (false);
    }else{
      return (true);
    }//End If
}//End Check_Phone

