
// when degree drop down is changed, set options for profession drop down
		var _degreeID_None			= 0;
		var _degreeID_BA			= 1;
		var _degreeID_MA			= 2;
		var _degreeID_EdS		= 3;
    	var _degreeID_PhD		= 5;
		var _degreeID_Licenses= 6;
		var _degreeID_Endorsements= 7;
		var _degreeID_Certificates= 8;

function addOptionElement(selectElem, text, val)
{
	var opt = document.createElement('option');
	opt.text = text;
	opt.value = val;

	// IE
	if (navigator.appVersion.indexOf("MSIE") != -1)
	{
		selectElem.add(opt);
	}
	// Other
	else
	{
		selectElem.add(opt, null);
	}
}
function checkforconcentration()
{
	var area = document.getElementById("program");
	var val= area.value;
	document.forms['applynow'].elemconcentration.value="";
	document.forms['applynow'].secconcentration.value="";
	var elem= document.getElementById("econcentration");
	var sec= document.getElementById("sconcentration");
	
	
	elem.style.display='none';
	sec.style.display='none';
	
	switch(val)
	{
		case 'Elementary Teacher Education':
		
		elem.style.display='block';
		
		break;
		
		case 'Secondary Teacher Education':
		
		sec.style.display='block';
		
		break;
	
	
	}
}

function OnContactUsDegree_Changed()
{
	var degreeSelect = document.getElementById("degree");
	var professionSelect = document.getElementById("program");
	
	var professionSelectLength = professionSelect.length;
	
	// remove all profession options
	for (i = 0; i < professionSelectLength; i++) 
	{
		professionSelect.remove(0); // keep removing the first element
	}
	
	
	var mytest=degreeSelect.value;
	switch (mytest) // constants below are ints, values from select are strings
	{
	

	
		case '0':
			addOptionElement(professionSelect, "Select Option", "");
			break;
			
		case '1':
			
			addOptionElement(professionSelect, "Teacher Education", "Teacher Education");
			break;
		case '2':
			addOptionElement(professionSelect, "Select Option", "");
			addOptionElement(professionSelect, "Counseling", "Counseling");
			addOptionElement(professionSelect, "Early Childhood Education", "Early Childhood Education");
			addOptionElement(professionSelect, "Educational Psychology", "Educational Psychology");
			addOptionElement(professionSelect, "Elementary Teacher Education", "Elementary Teacher Education");
			addOptionElement(professionSelect, "Information & Learning Technology", "Information & Learning Technology");
			addOptionElement(professionSelect, "Linguistically Diverse Education", "Linguistically Diverse Education");
			addOptionElement(professionSelect, "Principal and School Leadership", "Principal and School Leadership");
			addOptionElement(professionSelect, "School Library", "School Library");
			addOptionElement(professionSelect, "Secondary Teacher Education","Secondary Teacher Education");
			addOptionElement(professionSelect, "Special Education", "Special Education");
			break;
			
		case '3':
			addOptionElement(professionSelect, "Select Option", "");
			addOptionElement(professionSelect, "School Pyschology", "School Pyschology");
			addOptionElement(professionSelect, "Administrative Leadership & Policy", "Administrative Leadership & Policy");
			break;
		
		case '5':
			addOptionElement(professionSelect, "Select Option", "");
			addOptionElement(professionSelect, "EdD in Leadership for Educational Equity", "EdD in Leadership for Educational Equity");
			addOptionElement(professionSelect, "PhD in Educational Studies & Research", "PhD in Educational Studies & Research");
			
			
		
			break;
						
		case '6':
			addOptionElement(professionSelect, "Select Option", "");
			addOptionElement(professionSelect, "Administrator", "Administrator");
			addOptionElement(professionSelect, "Early Childhood/Special Education", "Early Childhood/Special Education");
			addOptionElement(professionSelect, "Graduate Teacher Education", "Graduate Teacher Education");
			addOptionElement(professionSelect, "Licensed Counselor", "Licensed Counselor");
			addOptionElement(professionSelect, "Principal", "Principal");
			addOptionElement(professionSelect, "School Psychologist", "School Psychologist");
			
					
			break;

		case '7':
			addOptionElement(professionSelect, "Select Option", "");
			addOptionElement(professionSelect, "Early Childhood Special Education", "Early Childhood Special Education");
			addOptionElement(professionSelect, "Instructional Technology", "Instructional Technology");
			addOptionElement(professionSelect, "Linguistically Diverse Education", "Linguistically Diverse Education");
			addOptionElement(professionSelect, "Reading Teacher", "Reading Teacher");
			addOptionElement(professionSelect, "School Librarian", "School Librarian");
			addOptionElement(professionSelect, "Special Education Generalist", "Special Education Generalist");
			break;
		case '8':
			addOptionElement(professionSelect, "Select Option", "");
			addOptionElement(professionSelect, "Adolescent Literacy", "Adolescent Literacy");
			addOptionElement(professionSelect, "Autism Spectrum Disorder", "Autism Spectrum Disorder");
			addOptionElement(professionSelect, "Digital Storytelling", "Digital Storytelling");
			addOptionElement(professionSelect, "Early Literacy", "Early Literacy");
			addOptionElement(professionSelect, "eLearning", "eLearning");
			addOptionElement(professionSelect, "English Language Learners", "English Language Learners");
			addOptionElement(professionSelect, "TESOL", "TESOL");
			addOptionElement(professionSelect, "Math Education", "Math Education");
			addOptionElement(professionSelect, "Teacher Leadership", "Teacher Leadership");
			addOptionElement(professionSelect, "Urban Education", "Urban Education");
			break;
		
	}
}


