function setOptions(chosen) {
var selbox = document.search.sub;

selbox.options.length = 0;
if (chosen == " ") {
  selbox.options[selbox.options.length] = new Option('RN to BSN',' ');
 
}
if (chosen == "1") {
  selbox.options[selbox.options.length] = new Option('Healthcare Administration','Healthcare Administration');
  selbox.options[selbox.options.length] = new Option('Information Technology','Information Technology');
  selbox.options[selbox.options.length] = new Option('Medical Assisting','Medical Assisting');
  selbox.options[selbox.options.length] = new Option('Medical Coding','Medical Coding');
  selbox.options[selbox.options.length] = new Option('Pharmacy','Pharmacy');
}
if (chosen == "2") {
  selbox.options[selbox.options.length] = new Option('Health Care Management','Health Care Management');
  selbox.options[selbox.options.length] = new Option('Health Sciences','Health Sciences');
  selbox.options[selbox.options.length] = new Option('Informatics','Informatics');
  selbox.options[selbox.options.length] = new Option('RN to BSN','RN to BSN');
  jQuery(selbox).val('RN to BSN','RN to BSN');
}
if (chosen == "3") {
  selbox.options[selbox.options.length] = new Option('Nursing','Nursing');
  selbox.options[selbox.options.length] = new Option('Public Health','Public Health');
}
if (chosen == "4") {
  selbox.options[selbox.options.length] = new Option('Nursing','Nursing');
  selbox.options[selbox.options.length] = new Option('Informatics','Informatics');
}
}



jQuery(function(){setOptions(2);});
