function FrontPage_Form1_Validator(theForm)
{

 if (theForm.email.value == "")
  {
    alert("Please enter a valid email");
    theForm.email.focus();
    return (false);
  }
  
   if (theForm.fullname.value == "")
  {
    alert("Please enter your full name.");
    theForm.fullname.focus();
    return (false);
  }


  if (theForm.add1.value == "")
  {
    alert("Please enter your address.");
    theForm.add1.focus();
    return (false);
  }

  
  if (theForm.tel.value == "")
  {
    alert("Please enter your tel number, separated by a coma \",\"");
    theForm.tel.focus();
    return (false);
  }

  var checkOK = "0123456789-,";
  var checkStr = theForm.tel.value;
  var allValid = 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;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digits (0-9) or \"-\" or \",\" characters in the \"Tel Number\" field.");
    theForm.tel.focus();
    return (false);
  }

  return (true);
}
