   <!-- Hide from browsers without JavaScript support

    function isValidForm(theForm) {
      if (isEmpty(theForm.title.value, "Title")) {
        theForm.title.focus();
        return false;
      }

      if (isEmpty(theForm.startDateText.value, "Start Date")) {
        theForm.startDateText.focus();
        return false;
      }

      if (isEmpty(theForm.hours.value, "Hours")) {
        theForm.hours.focus();
        return false;
      }

      if (isEmpty(theForm.description.value, "Description")) {
        theForm.description.focus();
        return false;
      }
      
      if (theForm.description.value.length > 3000) {
        theForm.comments.focus();
        alert("Please reduce your description to 3000 characters.");
        return false;
      }

      if (theForm.location.value.length == 0 && theForm.street1.value.length == 0) {
        alert("Please enter the location or street address.");
        theForm.location.focus();
        return false;
      }

      if (isEmpty(theForm.city.value, "City")) {
        theForm.city.focus();
        return false;
      }

      if (theForm.state.value == "UNK" || theForm.state.value == "UNK2") {
        theForm.state.focus();
        alert("Please select a state or province.");
        return false;
      }

      if (isEmpty(theForm.emailAddress.value, "E-mail")) {
        theForm.emailAddress.focus();
        return false;
      }

      if (!isValidEmailAddr(theForm.emailAddress.value)) {
        theForm.emailAddress.focus();
        return false;
      }
      
      document.getElementById("submit").disabled=true      
      return true;
    }

   -->
