function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function KW_updateItems(d,o,fn) {
	function inArrayLabel(haystack, needle) {					//searches to see if a label value is found an array of objects
		for (value in haystack) {
			if (haystack[value].label == needle) return value;	//returns index of value if found
		}
		return false;										//returns false if not found
	}
	var i,s,l=MM_findObj(d),b,z=o.options[o.selectedIndex].value;
	var optList=Array();
	while (l.childNodes[0]) l.removeChild(l.childNodes[0]);
	b=(z!='nill')?eval('items_' + z):0;
	for(i=0;i<b.length;i++){
		s=b[i].split("|");
		var objOption=document.createElement("option");
		objOption.innerHTML = s[1];
		objOption.value = s[0];
		if(s[2]){
			if (target = inArrayLabel(optList, s[2])) {
				optList[target].appendChild(objOption);	//put this option into the group
			} else {
				target = optList.length;
				optList[target] = document.createElement("optgroup"); //create option group
				optList[target].label = s[2];	//attach label to group
				optList[target].appendChild(objOption);	//put this option into the group
			}
		} else {
			optList[i] = objOption;
		}
	}
	for (myObj in optList) {
		l.appendChild(optList[myObj]);
	}
	optList=null;
	l.selectedIndex=0;
	if (!fn) return;
	eval(fn);
}

var items_ = new Array();
	items_.push('|Choose a Campus First');



var items_ILL0008 = new Array();
	items_ILL0008.push('|Choose One');
	items_ILL0008.push('ISHCDA|Dental Assistant|');
	items_ILL0008.push('ISHCMA|Medical Assistant|');
	items_ILL0008.push('PCTECH|Patient Care Technician|');

var items_ILL0012 = new Array();
	items_ILL0012.push('|Choose One');
	items_ILL0012.push('ISHCDA|Dental Assistant|');
	items_ILL0012.push('ISHCMA|Medical Assistant|');
	items_ILL0012.push('PCTECH|Patient Care Technician|');

