
//////////////////////////////////////////////////////////////////////////////////////////////
var arr0=new Array();
var arr1=new Array('Physical Therapist','Speech Language Pathologist','Occupational Therapist','Exercise Physiologist ','Other Rehabilitation');
var arr2=new Array('Respiratory Technologist','Certified Respiratory Therapy Technician','Other Respiratory');
var arr3=new Array('Medical Technologist','Histology Technologist','Other Laboratory');
var arr4=new Array('Pharmacist','Pharmacy Technician','Other - Pharmacy');
var arr5=new Array('Imaging Technologist','Interventional Radiology Technologist','Mammography Technologist','Radiation Therapist','Ultrasound Technologist','MRI Technologist','CT Technologist','Nuclear Medicine Technologist','Dosimetrist','Physicist','Other Imaging');
var arr6=new Array('Clinical Registered Dietitian','Diet Technician','Chef','Other Dietary');
var arr7=new Array('Licensed Clinical Social Worker','Other Social Service');
var arr8=new Array('Clinical Informatics','Analyst/Programmer','Other Information Technology');
var arr9=new Array('ARNP','RN - Medical/Surgical','RN - Critical Care','RN - Telemetry','RN - Emergency/Trauma','RN - Pediatrics/PICU/NICU','RN - Mother/Baby','RN - Labor & Delivery','RN - Rehab','RN - OR','RN - Preop/PACU','RN - Endoscopy','RN - Cardiac Cath','RN - Home health','RN - Management','RN - New grad','RN - Quality','RN - Support positions/Other');
var arr10=new Array('Surgical Technologist','Cardiovascular Technician','Polysomnographic Technologist','Licensed Practical Nurse','Unit Secretary','Patient Care Associate/Assistant','Other Licensed/Certified Professional');
var arr11=new Array('Coder','Clinical Document Management Specialist','Other Health Information Management');
var arr12=new Array('Physician','Physician Assistant','Other Physician Services');
var arr13=new Array('Purchasing','Finance','Plant Engineering','Environmental','Business Office','Clerical','Other Support Services');

////////////////////////////////////////////////////////////////////
function refreshCat()
{
var x=document.subedit.wcvcf_area_of_interest;
var mySelval=x[x.selectedIndex].value;
SelectSubCat(mySelval);
}


function SelectSubCat(myARR)
{
removeAllOptions(document.subedit.SubCat);
switch (myARR){
	case 'Rehabilitation':  createSubCat(arr1);  break;
	case 'Respiratory':  createSubCat(arr2);  break;
	case 'Laboratory':  createSubCat(arr3);  break;
	case 'Pharmacy':  createSubCat(arr4);  break;
	case 'Imaging':  createSubCat(arr5);  break;
	case 'Dietary':  createSubCat(arr6);  break;
	case 'Social Service':  createSubCat(arr7);  break;
	case 'Information Technology':  createSubCat(arr8);  break;
	case 'Registered Nurse':  createSubCat(arr9);  break;
	case 'Other Licensed/Certified Professional':  createSubCat(arr10);  break;
	case 'Health Information Management':  createSubCat(arr11);  break;
	case 'Physician Services':  createSubCat(arr12);  break;
	case 'Support Services':  createSubCat(arr13);  break;
	default:createSubCat(arr0);  break;
	}

}


function createSubCat(vArr)
{
if (vArr.length > 0)
	{
	    //addOption(document.subedit.SubCat,'', ' - Please Select -');
		for (var i=0; i< vArr.length; i=i+1){addOption(document.subedit.SubCat,vArr[i], vArr[i]);}
	}

}

function removeAllOptions(selectbox)
{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
	{
		selectbox.remove(i);
	}
	addOption(document.subedit.SubCat,'', ' - Select Specialty -');
}


function addOption(selectbox, value, text )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;
	selectbox.options.add(optn);
}