﻿
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.fname.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.fname.focus();
    return (false);
  }
  
  if (theForm.middleName.value == "")
  {
    alert("Please enter a value for the \"Middle Initial\" field.");
    theForm.middleName.focus();
    return (false);
  }
  
  if (theForm.lname.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.lname.focus();
    return (false);
  }

  if (theForm.Day_phone.value == "")
  {
    alert("Please enter a value for the \"Daytime Phone\" field.");
    theForm.Day_phone.focus();
    return (false);
  }
  return (true);
}

