﻿    var options = new Array(
      new Array( // CAS - UG
        "Anthropology",
        "Art",
        "Art History",
        "Biochemistry",
        "Biology",
        "Chemistry",
        "Communications",
        "Computer & Mgmt Info. Sys.",
        "Computer Science",
        "Criminal Justice",
        "Dance",
        "English",
        "Environmental Studies",
        "French",
        "History",
        "Interdisciplinary Studies",
        "International Studies",
        "Latin American Studies",
        "Mathematics",
        "Music",
        "Philosophy",
        "Physics",
        "Political Science",
        "Sociology",
        "Spanish",
        "Theater Arts",
        "Undecided"
      ), new Array( // Derner - UG
        "Psychology"
      ), new Array( // Business - UG
        "Accounting",
        "Economics",
        "Finance",
        "Management"
      ), new Array( // Education - UG
        "Art Education",
        "Communication Sciences & Disorders",
        "Physical Education",
        "Physical & Health Education"
      ), new Array( // Nursing - UG
        "Nursing",
        "Nursing RN"
      ), new Array( // SWK - UG
        "Social Work"
      ), new Array( // ABLE
        "Business",
        "Criminal Justice",
        "Associates In Arts",
        "Fine Arts",
        "Health Care Mgt.",
        "Literature",
        "Social Sciences",
        "Undecided"
      ), new Array( // Special Programs
        "Honors College",
        "General Studies",
        "Learning Disabilities Program"
      ), new Array( // Pre-Professional Programs
        "Law",
        "Medicine",
        "Dentistry",
        "Optometry",
        "Physical Therapy",
        "Engineering",
        "STEP",
        "Environmental Studies"
      )
    );
  function updateChoices(s) {
    var f = s.form;
    //var cat = f.category.selectedIndex - 1;
    var cat = s.selectedIndex - 1;
    var cbi = f.interest;
    var l = cbi.length;
    for (var ii = 0; ii < l; ii++)
      cbi.options[0] = null;
    cbi.options.length = 0;
    if (cat < 0) {
      cbi.options[0] = new Option("(No category selected)", "no answer");
      cbi.disabled = true;
    } else {
      cbi.disabled = false;
      for (var ii = 0; ii < options[cat].length; ii++) {
        cbi.options[ii] = new Option(options[cat][ii]);
      }
    }
  }
  
// the following is a compatibility hack for really old browsers.
// (my main concern here is NS4...)
function isEnabled(obj) {
  return !obj.disabled;
}
