function checkform1(form1)
{
  // initiate message variable
  var message = '';
  
  // check name
  if (form1.name.value=='')
  {
    alert("You must enter a School Name");
    form1.name.focus();
    return false;
  }
  message="School Name: " + form1.name.value + " \n ";
    // check address
  if (form1.address.value=='')
  {
    alert("You must enter a School address");
    form1.address.focus();
    return false;
  }
  message = message + "address: " + form1.address.value + " \n ";
  if (form1.city.value=='')
  {
    alert("You must enter a City");
    form1.city.focus();
    return false;
  }
  if (form1.state.selectedIndex==0)
  {
    alert("You must select a state");
    form1.state.focus();
    return false;
  }
  if (form1.zip.value=='')
  {
    alert("You must enter a zip code");
    form1.zip.focus();
    return false;
  }
  if (form1.area_code.value=='')
  {
    alert("You must enter a school area code");
    form1.area_code.focus();
    return false;
  }
  if (form1.prefix.value=='')
  {
    alert("You must enter a school phone prefix");
    form1.prefix.focus();
    return false;
  }
  if (form1.phone.value=='')
  {
    alert("You must enter a school phone number");
    form1.phone.focus();
    return false;
  }
  if (form1.contact.value=='')
  {
    alert("You must enter a contact name");
    form1.contact.focus();
    return false;
  }
  if (form1.c_area_code.value=='')
  {
    alert("You must enter a contact area code");
    form1.c_area_code.focus();
    return false;
  }
  if (form1.c_prefix.value=='')
  {
    alert("You must enter a contact phone prefix");
    form1.c_prefix.focus();
    return false;
  }
  if (form1.c_phone.value=='')
  {
    alert("You must enter a contact phone number");
    form1.c_phone.focus();
    return false;
  }
  if (form1.email.value=='')
  {
    alert("You must enter a contact email address");
    form1.email.focus();
    return false;
  }

    return true;
}

function checkform2(form2)
{
  if (form2.school.selectedIndex==0)
  {
    alert("You must select a school");
    form2.school.focus();
    return false;
  }
    if (form2.contact.value=='')
  {
    alert("You must enter a contact name");
    form2.contact.focus();
    return false;
  }
  if (form2.email.value=='')
  {
    alert("You must enter a contact email address");
    form2.email.focus();
    return false;
  }
  if (form2.request.value=='')
  {
    alert("You must enter an explanation of your request");
    form2.request.focus();
    return false;
  }
  return true;
}

