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('|-- Select Campus First --');



var items_COM0006 = new Array();
	items_COM0006.push('|Choose one...');
	items_COM0006.push('BUS|Business|');
	items_COM0006.push('CJFR|Criminal Justice & First Response|');
	items_COM0006.push('DEN|Dental Assisting|');
	items_COM0006.push('MAA|Medical Administrative Assistant|');
	items_COM0006.push('DMED|Medical Assistant|');
	items_COM0006.push('PHARM|Pharmacy Technician|');

var items_COM0001 = new Array();
	items_COM0001.push('|Choose one...');
	items_COM0001.push('CTIS|Computer Technology and Internet Security|');
	items_COM0001.push('DEN|Dental Assisting|');
	items_COM0001.push('HIT|Health Information Technology|');
	items_COM0001.push('MTP|Massage Therapy Practitioner|');
	items_COM0001.push('DMED|Medical Assistant|');
	items_COM0001.push('MBC|Medical Billing & Coding|');
	items_COM0001.push('PHARM|Pharmacy Technician|');

var items_YOR0002 = new Array();
	items_YOR0002.push('|Choose one...');
	items_YOR0002.push('CJFR|Criminal Justice & First Response|');
	items_YOR0002.push('CARM|Culinary Arts/Restaurant Management|');
	items_YOR0002.push('DEN|Dental Assisting|');
	items_YOR0002.push('AMED|Medical Assistant|');
	items_YOR0002.push('MBC|Medical Billing & Coding|');
	items_YOR0002.push('PAST|Pastry Arts|');

var items_MOT0001 = new Array();
	items_MOT0001.push('|Choose one...');
	items_MOT0001.push('MOTOR|Motorsports Technology|');

var items_YOR0001 = new Array();
	items_YOR0001.push('|Choose one...');
	items_YOR0001.push('BAA|Business Administration: Accounting|');
	items_YOR0001.push('BAM|Business Administration: Management|');
	items_YOR0001.push('CADD|Computer Aided Drafting & Design|');
	items_YOR0001.push('CSS|Computer Systems Specialist|');
	items_YOR0001.push('ELEC|Electrical Technician|');
	items_YOR0001.push('EET|Electronics Engineering Technology|');
	items_YOR0001.push('GOLF|Golf Course Management|');
	items_YOR0001.push('HVAC|Heating / Air Conditioning & Refrigeration Technology|');
	items_YOR0001.push('DMED|Medical Assistant|');
