function FrontPage_Form1_Validator(theForm) {
  if (theForm.equip_id.value == "") {
    alert("Please enter a value for the \"Equipment ID\" field.");
    theForm.equip_id.focus();
    return (false);
  }

  if (theForm.equip_id.value.length < 5) {
    alert("Please enter at least 5 characters in the \"Equipment ID\" field.");
    theForm.equip_id.focus();
    return (false);
  }

  if (theForm.equip_id.value.length > 5) {
    alert("Please enter at most 5 characters in the \"Equipment ID\" field.");
    theForm.equip_id.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.";
  var checkStr = theForm.equip_id.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 a valid ID in the \"Equipment ID\" field.");
    theForm.equip_id.focus();
    return (false);
  }

  if (decPoints > 1 || !validGroups) {
    alert("Please enter a valid ID in the \"Equipment ID\" field.");
    theForm.equip_id.focus();
    return (false);
  }
	/*
  if (!allValid) {
    alert("Please enter only digit characters in the \"Equipment ID\" field.");
    theForm.equip_id.focus();
    return (false);
  }

  if (decPoints > 1 || !validGroups) {
    alert("Please enter a valid number in the \"Equipment ID\" field.");
    theForm.equip_id.focus();
    return (false);
  }

  var chkVal = allNum;
  var prsVal = parseFloat(allNum);
  if (chkVal != "" && !(prsVal <= "83000")) {
    alert("Please enter a value less than or equal to \"83000\" in the \"Equipment ID\" field.");
    theForm.equip_id.focus();
    return (false);
  }
	*/
	
  if (theForm.company.value == "") {
    alert("Please enter a value for the \"Company Name\" field.");
    theForm.company.focus();
    return (false);
  }

  if (theForm.company.value.length > 15) {
    alert("Please enter at most 15 characters in the \"Company Name\" field.");
    theForm.company.focus();
    return (false);
  }

  if (theForm.name_rec.value == "") {
    alert("Please enter a value for the \"Your Name\" field.");
    theForm.name_rec.focus();
    return (false);
  }

  if (theForm.name_rec.value.length > 30) {
    alert("Please enter at most 30 characters in the \"Your Name\" field.");
    theForm.name_rec.focus();
    return (false);
  }

  if (theForm.symptom.selectedIndex < 0)
  {
    alert("Please select one of the \"Problem \" options.");
    theForm.symptom.focus();
    return (false);
  }

  if (theForm.symptom.selectedIndex == 0) {
    alert("The first \"Problem \" option is not a valid selection.  Please choose one of the other options.");
    theForm.symptom.focus();
    return (false);
  }

  if (theForm.calltype.selectedIndex < 0) {
    alert("Please select one of the \"Machine Status\" options.");
    theForm.calltype.focus();
    return (false);
  }

  if (theForm.calltype.selectedIndex == 0) {
    alert("The first \"Machine Status\" option is not a valid selection.  Please choose one of the other options.");
    theForm.calltype.focus();
    return (false);
  }

  if (theForm.phone_area.value == "") {
    alert("Please enter a value for the \"Area Code\" field.");
    theForm.phone_area.focus();
    return (false);
  }

  if (theForm.phone_area.value.length < 3) {
    alert("Please enter at least 3 characters in the \"Area Code\" field.");
    theForm.phone_area.focus();
    return (false);
  }

  if (theForm.phone_area.value.length > 3) {
    alert("Please enter at most 3 characters in the \"Area Code\" field.");
    theForm.phone_area.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.phone_area.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 \"Area Code\" field.");
    theForm.phone_area.focus();
    return (false);
  }

  if (decPoints > 1 || !validGroups) {
    alert("Please enter a valid number in the \"phone_area\" field.");
    theForm.phone_area.focus();
    return (false);
  }

  if (theForm.phone_exchange.value == "") {
    alert("Please enter a value for the \"Prefix\" field.");
    theForm.phone_exchange.focus();
    return (false);
  }

  if (theForm.phone_exchange.value.length < 3) {
    alert("Please enter at least 3 characters in the \"Prefix\" field.");
    theForm.phone_exchange.focus();
    return (false);
  }

  if (theForm.phone_exchange.value.length > 3) {
    alert("Please enter at most 3 characters in the \"Prefix\" field.");
    theForm.phone_exchange.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.phone_exchange.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 \"Prefix\" field.");
    theForm.phone_exchange.focus();
    return (false);
  }

  if (decPoints > 1 || !validGroups) {
    alert("Please enter a valid number in the \"phone_exchange\" field.");
    theForm.phone_exchange.focus();
    return (false);
  }

  if (theForm.phone_lastfour.value == "") {
    alert("Please enter a value for the \"Number\" field.");
    theForm.phone_lastfour.focus();
    return (false);
  }

  if (theForm.phone_lastfour.value.length < 4) {
    alert("Please enter at least 4 characters in the \"Number\" field.");
    theForm.phone_lastfour.focus();
    return (false);
  }

  if (theForm.phone_lastfour.value.length > 4) {
    alert("Please enter at most 4 characters in the \"Number\" field.");
    theForm.phone_lastfour.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.phone_lastfour.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\" field.");
    theForm.phone_lastfour.focus();
    return (false);
  }

  if (decPoints > 1 || !validGroups) {
    alert("Please enter a valid number in the \"phone_lastfour\" field.");
    theForm.phone_lastfour.focus();
    return (false);
  }
	
  return (true);
}