function requiredInputChecks(theForm)
{

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

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

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

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

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

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

  if (theForm.comments.value == "")
  {
    alert("Please enter a value for the \"Your Inquiries\" field.");
    theForm.comments.focus();
    return (false);
  }
  
  var checkOK = "0123456789-., ";
  var checkStr = theForm.phone.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 if (ch == "," && decPoints != 0)
    {
      validGroups = false;
      break;
    }
    else if (ch != ",")
      allNum += ch;
  }
  
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"phone\" field.");
    theForm.phone.focus();
    return (false);
  }

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


  
  return (true);
}
