
/*
grabs file to display in content frame
rs value leaves item selected (to force unselect: set numerical value to 0 and behavior in nav.html to 1)
*/
function grabme(tg,ob,rs) {
	eval(tg+".location='"+ob.options[ob.selectedIndex].value+"'");
	if (rs) ob.selectedIndex=1;

}

/*
new function in array
*/
function Display(URL, Text)
	{
	this.URL = URL
	this.Text = Text
	}

/*
array data
*/
var SecondMenu1 = new Array();
	SecondMenu1[0] = new Display("('help.html')", "('STEP 2: Then select an occupation within that field')");
	SecondMenu1[1] = new Display("('audiologist.html')", "('Audiologist')");

var SecondMenu2 = new Array();
	SecondMenu2[0] = new Display("('help.html')", "('STEP 2: Then select an occupation within that field')");
	SecondMenu2[1] = new Display("('cardiovascular.html')", "('Cardiovascular Technologist')");

var SecondMenu3 = new Array();
	SecondMenu3[0] = new Display("('help.html')", "('STEP 2: Then select an occupation within that field')");
	SecondMenu3[1] = new Display("('technician.html')", "('Central Supply / Sterile Technician')");

var SecondMenu4 = new Array();
	SecondMenu4[0] = new Display("('help.html')", "('STEP 2: Then select an occupation within that field')");
	SecondMenu4[1] = new Display("('dietician.html')", "('Dietician')");
	SecondMenu4[2] = new Display("('dietetic.html')", "('Dietetic Technician')");

var SecondMenu5 = new Array();
	SecondMenu5[0] = new Display("('help.html')", "('STEP 2: Then select an occupation within that field')");
	SecondMenu5[1] = new Display("('emt.html')", "('Emergancy Medical Technician')");

var SecondMenu6 = new Array();
	SecondMenu6[0] = new Display("('help.html')", "('STEP 2: Then select an occupation within that field')");
	SecondMenu6[1] = new Display("('biomedical.html')", "('Biomedical Engineer')");
	SecondMenu6[2] = new Display("('bio-equip-tech.html')", "('Biomedical Equipment Technician')");

var SecondMenu7 = new Array();
	SecondMenu7[0] = new Display("('help.html')", "('STEP 2: Then select an occupation within that field')");
	SecondMenu7[1] = new Display("('ct-tech.html')", "('Computerized Tomography Technologist')");
	SecondMenu7[2] = new Display("('mri-tech.html')", "('Magnetic Resonance Imaging Technologist')");
	SecondMenu7[3] = new Display("('mammography.html')", "('Mammography Technologist, Registered')");
	SecondMenu7[4] = new Display("('sonography.html')", "('Medical Sonography (Ultrasound)')");
	SecondMenu7[5] = new Display("('nuclear-med-tech.html')", "('Nuclear Medical Technologist')");
	SecondMenu7[6] = new Display("('radiology.html')", "('Radiology Technologist, Registered')");
	SecondMenu7[7] = new Display("('radiation-therapy.html')", "('Radiation Therapy Technologist')");

var SecondMenu8 = new Array();
	SecondMenu8[0] = new Display("('help.html')", "('STEP 2: Then select an occupation within that field')");
	SecondMenu8[1] = new Display("('medical-assistant.html')", "('Medical Laboratory Assistant')");
	SecondMenu8[2] = new Display("('phlebotomist.html')", "('Phlebotomist')");
	SecondMenu8[3] = new Display("('medical-technician.html')", "('Medical Laboratory Technician')");
	SecondMenu8[4] = new Display("('medical-technologist.html')", "('Medical Technologist')");
	SecondMenu8[5] = new Display("('cytotechnologist.html')", "('Cytotechnologist')");
	SecondMenu8[6] = new Display("('histology-technician.html')", "('Histology Technician')");

var SecondMenu9 = new Array();
	SecondMenu9[0] = new Display("('help.html')", "('STEP 2: Then select an occupation within that field')");
	SecondMenu9[1] = new Display("('cna.html')", "('Certified Nursing Assistant (CNA)')");
	SecondMenu9[2] = new Display("('lpn.html')", "('Licensed Practical Nurse (LPN)/LVN)')");
	SecondMenu9[3] = new Display("('rn.html')", "('Registered Nurse (RN)')");
	SecondMenu9[4] = new Display("('anesthetist.html')", "('Nurse Anesthetist (CRNA)')");
	SecondMenu9[5] = new Display("('surgical-technologist.html')", "('Surgical Technologist')");

var SecondMenu10 = new Array();
	SecondMenu10[0] = new Display("('help.html')", "('STEP 2: Then select an occupation within that field')");
	SecondMenu10[1] = new Display("('pharmacy-technician.html')", "('Pharmacy Technician')");
	SecondMenu10[2] = new Display("('pharmacist.html')", "('Pharmacist')");

var SecondMenu11 = new Array();
	SecondMenu11[0] = new Display("('help.html')", "('STEP 2: Then select an occupation within that field')");
	SecondMenu11[1] = new Display("('ota.html')", "('Occupational Therapy Assistant')");
	SecondMenu11[2] = new Display("('ot.html')", "('Occupational Therapist')");
	SecondMenu11[3] = new Display("('pta.html')", "('Physical Therapy Assistant')");
	SecondMenu11[4] = new Display("('pt.html')", "('Physical Therapist')");

var SecondMenu12 = new Array();
	SecondMenu12[0] = new Display("('help.html')", "('STEP 2: Then select an occupation within that field')");
	SecondMenu12[1] = new Display("('respiratory-therapist.html')", "('Respiratory Therapist')");

var SecondMenu13 = new Array();
	SecondMenu13[0] = new Display("(' ')","('Please select help option from this menu')");
	SecondMenu13[1] = new Display("('help.html')","('Help me navigate Oregon Healthcare Careers')");

/*
populate second menu
*/
function makeMenu(CurrentForm, Selected)
	{
	if (Selected != 0)
		{
		var MenuArray = eval("SecondMenu" + Selected)
		while (MenuArray.length < CurrentForm.occupation.options.length)
			{
			CurrentForm.occupation.options[(CurrentForm.occupation.options.length - 1)] = null;
			}

		for (var i=0; i < MenuArray.length; i++)
			{
			eval("CurrentForm.occupation.options[i]=" + "new Option" + MenuArray[i].Text);
			eval("CurrentForm.occupation.options[i].value=" + MenuArray[i].URL);
			}
		}
	else
		{
		Selected = CurrentForm.category.options[CurrentForm.category.selectedIndex + 1].value;
		CurrentForm.category.selectedIndex = CurrentForm.category.selectedIndex + 1;
		var MenuArray = eval("SecondMenu" + Selected)
		while (MenuArray.length < CurrentForm.occupation.options.length)
			{
			CurrentForm.occupation.options[(CurrentForm.occupation.options.length - 1)] = null;
			}
		for (var i=0; i < MenuArray.length; i++)
			{
			eval("CurrentForm.occupation.options[i]=" + "new Option" + MenuArray[i].Text);
			eval("CurrentForm.occupation.options[i].value=" + MenuArray[i].URL);
			}

		}
	}

/*
end file
*/