function validate(theForm) {
  if (theForm.name.value == "") {
    alert("Please enter a value for the \"Name\" field.");
    theForm.name.focus();
    return (false);
  }
  if (theForm.company.value == "") {
    alert("Please enter a value for the \"Company\" field.");
    theForm.company.focus();
    return (false);
  }
  if (theForm.position.value == "") {
    alert("Please enter a value for the \"Position\" field.");
    theForm.position.focus();
    return (false);
  }
  if (theForm.email.value == "") {
    alert("Please enter a value for the \"Email\" field.");
    theForm.email.focus();
    return (false);
  }
  if (theForm.phone.value == "") {
    alert("Please enter a value for the \"Phone\" field.");
    theForm.phone.focus();
    return (false);
  }
  return (true);
}

