    var options = new Array(
      new Array( // CAS - UG
        new Option("Anthropology"),
        new Option("Art"),
        new Option("Art History"),
        new Option("Biochemistry"),
        new Option("Biology"),
        new Option("Chemistry"),
        new Option("Communications"),
        new Option("Computer & Mgmt Info. Sys."),
        new Option("Computer Science"),
        new Option("Criminal Justice"),
        new Option("Dance"),
        new Option("English"),
        new Option("Environmental Studies"),
        new Option("French"),
        new Option("History"),
        new Option("Interdisciplinary Studies"),
        new Option("International Studies"),
        new Option("Latin American Studies"),
        new Option("Mathematics"),
        new Option("Music"),
        new Option("Philosophy"),
        new Option("Physics"),
        new Option("Political Science"),
        new Option("Sociology"),
        new Option("Spanish"),
        new Option("Theater Arts"),
        new Option("Undecided")
      ), new Array( // CAS - G
        new Option("Art"),
        new Option("Biology"),
        new Option("Creative Writing"),
        new Option("Emergency Management"),
        new Option("Environmental Studies")
      ), new Array( // Derner - UG
        new Option("Psychology")
      ), new Array( // Derner - G
        new Option("General Psychology"),
        new Option("Mental Health Counseling"),
        new Option("School Psychology")
      ), new Array( // Derner - D
        new Option("Clinical Psychology"),
        new Option("Post Doctoral Certificate Programs")
      ), new Array( // Business - UG
        new Option("Accounting"),
        new Option("Economics"),
        new Option("Finance"),
        new Option("Management")
      ), new Array( // Business - G
        new Option("Finance"),
        new Option("Human Resource Mgt. (Certificate)"),
        new Option("Management")
      ), new Array( // Education - UG
        new Option("Art Education"),
        new Option("Communication Sciences & Disorders"),
        new Option("Physical Education"),
        new Option("Physical & Health Education")
      ), new Array( // Education - G
        new Option("Adolescent Education"),
        new Option("Art Education"),
        new Option("Bilingual Education"),
        new Option("Childhood Education"),
        new Option("Communication Sciences & Disorders"),
        new Option("Early Childhood"),
        new Option("Early Childhood Special Education"),
        new Option("Educational Leadership & Technology"),
        new Option("Literacy"),
        new Option("Physical Education & Health Studies"),
        new Option("Special Education"),
        new Option("TESOL")
      ), new Array( // Education - D
        new Option("Audiology")
      ), new Array( // Nursing - UG
        new Option("Nursing"),
        new Option("Nursing RN")
      ), new Array( // Nursing - G
        new Option("Adult Health Nurse Practitioner"),
        new Option("Emergency Nursing"),
        new Option("Nursing Admin (MS/MBA)"),
        new Option("Nursing Administration (MS)")
      ), new Array( // SWK - UG
        new Option("Social Work")
      ), new Array( // SWK - G
        new Option("Post Masters Certificate Program"),
        new Option("Social Work - MSW")
      ), new Array( // SWK - D
        new Option("Social Welfare")
      ), new Array( // ABLE
        new Option("Business"),
        new Option("Criminal Justice"),
        new Option("Associates In Arts"),
        new Option("Fine Arts"),
        new Option("Health Care Mgt."),
        new Option("Literature"),
        new Option("Social Sciences"),
        new Option("Undecided")
      ), new Array( // Special Programs
        new Option("Honors College"),
        new Option("General Studies"),
        new Option("Learning Disabilities Program"),
        new Option("AOP"),
        new Option("GOAL MBA Program")
      ), new Array( // Pre-Professional Programs
        new Option("Law"),
        new Option("Medicine"),
        new Option("Dentistry"),
        new Option("Optometry"),
        new Option("Physical Therapy"),
        new Option("Engineering"),
        new Option("STEP"),
        new Option("Environmental Studies")
      )
    );
  function updateChoices() {
    var f = document.forms["eventsform"];
    var cat = f.category.selectedIndex - 1;
    
    var l = f.interest.length;
    for (var i = 0; i < l; i++)
      f.interest.options[0] = null;
    f.interest.options.length = 0;
    if (cat < 0) {
      f.interest.options[0] = new Option("(No category selected)");
      f.interest.disabled = true;
    } else {
      f.interest.disabled = false;
      for (var i = 0; i < options[cat].length; i++) {
        f.interest.options[i] = options[cat][i];
      }
    }
  }
  
// the following is a compatibility hack for really old browsers.
// (my main concern here is NS4...)
function isEnabled(obj) {
  return !obj.disabled;
}

function isblank(s) {
        if (s == "") return true;
        for (var i = 0; i < s.length; i++) {
                var c = s.charAt(i);
                if ((c != ' ') && (c != '\n') && (c != '\r') && (c != '\t')) return false;
        }
        return true;
}
function verify(f) {
        var msg = "You have omitted the following required fields:";
        var err = false;
        if (isblank(f.firstname.value)) {
            msg += "\n" + "First Name must be filled in.";
            err = true;
        }
        if (isblank(f.lastname.value)) {
            msg += "\n" + "Last Name must be filled in.";
            err = true;
        }
        if (isblank(f.street1.value)) {
            msg += "\n" + "Street Address Line 1 must be filled in.";
            err = true;
        }
        if (isblank(f.city.value)) {
            msg += "\n" + "City must be filled in.";
            err = true;
        }
        if (isblank(f.state.value)) {
            msg += "\n" + "State must be filled in.";
            err = true;
        }
        if (isblank(f.zip.value)) {
            msg += "\n" + "Zip Code must be filled in.";
            err = true;
        }
        if (isblank(f.day_phone.value)) {
            msg += "\n" + "Home Phone # must be filled in.";
            err = true;
        }
}

