// new GCU page per Docket #703 3-4-05 jjk
//CHANGE 23.nov.2005  J.Strelow
//	several small program name errors that had to be corrected.  Mostly punctuation on the "M.Ed" stuff.

function ValidateFields(oPrmForm)
{ 
	var bBrowserGood = false;
	var bBrowserDrawsBordersCorrectly = false;
	var sBrowser = "Unknown";
	
	if (navigator.appName == "Netscape")
	{
		sBrowser = "Netscape";
		if (parseFloat(navigator.appVersion) >= 5)
		{
			bBrowserGood = true;
			bBrowserDrawsBordersCorrectly = true;
		}
	}
	else if (navigator.appName == "Microsoft Internet Explorer")
	{
		sBrowser = "IE";
		if (parseFloat(navigator.appVersion) >= 4)
		{
			bBrowserGood = true;
		}
	}
	
	var bReturn = true;
	var bFieldGood = true;var sErrors = '';
	bFieldGood = true;
	if (oPrmForm.firstname.value.length > 0)
	{ }
	else
	{
		sErrors = sErrors + 'First Name missing\n';
		bFieldGood = false;
	}
	if (bBrowserGood)
	{
		if (bFieldGood)
		{
			oPrmForm.firstname.style.borderLeftColor = 'buttonface';
			oPrmForm.firstname.style.borderTopColor = 'buttonface';
			oPrmForm.firstname.style.borderRightColor = 'buttonface';
			oPrmForm.firstname.style.borderBottomColor = 'buttonface';
		}
		else
		{
			oPrmForm.firstname.style.borderLeftColor = 'tomato';
			oPrmForm.firstname.style.borderTopColor = 'tomato';
			oPrmForm.firstname.style.borderRightColor = 'tomato';
			oPrmForm.firstname.style.borderBottomColor = 'tomato';
		}
	}
	
	bFieldGood = true;
	if (oPrmForm.lastname.value.length > 0)
	{ }
	else
	{
		sErrors = sErrors + 'Last Name missing\n';
		bFieldGood = false;
	}
	if (bBrowserGood)
	{
		if (bFieldGood)
		{
			oPrmForm.lastname.style.borderLeftColor = 'buttonface';
			oPrmForm.lastname.style.borderTopColor = 'buttonface';
			oPrmForm.lastname.style.borderRightColor = 'buttonface';
			oPrmForm.lastname.style.borderBottomColor = 'buttonface';
		}
		else
		{
			oPrmForm.lastname.style.borderLeftColor = 'tomato';
			oPrmForm.lastname.style.borderTopColor = 'tomato';
			oPrmForm.lastname.style.borderRightColor = 'tomato';
			oPrmForm.lastname.style.borderBottomColor = 'tomato';
		}
	}
	
	bFieldGood = true;
	if (oPrmForm.address.value.length > 0)
	{ }
	else
	{
		sErrors = sErrors + 'Street Address missing\n';
		bFieldGood = false;
	}
	if (bBrowserGood)
	{
		if (bFieldGood)
		{
			oPrmForm.address.style.borderLeftColor = 'buttonface';
			oPrmForm.address.style.borderTopColor = 'buttonface';
			oPrmForm.address.style.borderRightColor = 'buttonface';
			oPrmForm.address.style.borderBottomColor = 'buttonface';
		}
		else
		{
			oPrmForm.address.style.borderLeftColor = 'tomato';
			oPrmForm.address.style.borderTopColor = 'tomato';
			oPrmForm.address.style.borderRightColor = 'tomato';
			oPrmForm.address.style.borderBottomColor = 'tomato';
		}
	}

	bFieldGood = true;
	if (oPrmForm.city.value.length > 0)
	{ }
	else
	{
		sErrors = sErrors + 'City missing\n';
		bFieldGood = false;
	}
	if (bBrowserGood)
	{
		if (bFieldGood)
		{
			oPrmForm.city.style.borderLeftColor = 'buttonface';
			oPrmForm.city.style.borderTopColor = 'buttonface';
			oPrmForm.city.style.borderRightColor = 'buttonface';
			oPrmForm.city.style.borderBottomColor = 'buttonface';
		}
		else
		{
			oPrmForm.city.style.borderLeftColor = 'tomato';
			oPrmForm.city.style.borderTopColor = 'tomato';
			oPrmForm.city.style.borderRightColor = 'tomato';
			oPrmForm.city.style.borderBottomColor = 'tomato';
		}
	}

	bFieldGood = true;
	if (oPrmForm.state.selectedIndex > 0)
	{ }
	else
	{
		sErrors = sErrors + 'State missing\n';
		bFieldGood = false;
	}
	if (bBrowserGood)
	{
		if (bFieldGood)
		{
			oPrmForm.state.style.backgroundColor = '#FFFFFF';
		}
		else
		{
			oPrmForm.state.style.backgroundColor = 'tomato';
		}
	}

	bFieldGood = true;
	if (oPrmForm.zip.value.length > 0)
	{ }
	else
	{
		sErrors = sErrors + 'Zip Code missing\n';
		bFieldGood = false;
	}
	if (bBrowserGood)
	{
		if (bFieldGood)
		{
			oPrmForm.zip.style.borderLeftColor = 'buttonface';
			oPrmForm.zip.style.borderTopColor = 'buttonface';
			oPrmForm.zip.style.borderRightColor = 'buttonface';
			oPrmForm.zip.style.borderBottomColor = 'buttonface';
		}
		else
		{
			oPrmForm.zip.style.borderLeftColor = 'tomato';
			oPrmForm.zip.style.borderTopColor = 'tomato';
			oPrmForm.zip.style.borderRightColor = 'tomato';
			oPrmForm.zip.style.borderBottomColor = 'tomato';
		}
	}
	
	//ET added  July 27, 2006
bFieldGood = true;
if (oPrmForm.country.selectedIndex > 0) 
{
	if (oPrmForm.country.options[oPrmForm.country.selectedIndex].value =='other')
	{
		alert("We are sorry but we are not accepting inquiries from other countries at this time.");
		return false;
	}
	}
else {
sErrors = sErrors + 'Country is missing\n';
bFieldGood = false;
}
if (bBrowserGood) {
if (bFieldGood) {
oPrmForm.country.style.backgroundColor = '#FFFFFF';
}
else {
oPrmForm.country.style.backgroundColor = 'tomato';
}
}
///end of addition

	bFieldGood = true;
	if (oPrmForm.dayphone.value.length > 0)
	{ }
	else
	{
		sErrors = sErrors + 'Home Phone missing\n';
		bFieldGood = false;
	}
	if (bBrowserGood)
	{
		if (bFieldGood)
		{
			oPrmForm.dayphone.style.borderLeftColor = 'buttonface';
			oPrmForm.dayphone.style.borderTopColor = 'buttonface';
			oPrmForm.dayphone.style.borderRightColor = 'buttonface';
			oPrmForm.dayphone.style.borderBottomColor = 'buttonface';
		}
		else
		{
			oPrmForm.dayphone.style.borderLeftColor = 'tomato';
			oPrmForm.dayphone.style.borderTopColor = 'tomato';
			oPrmForm.dayphone.style.borderRightColor = 'tomato';
			oPrmForm.dayphone.style.borderBottomColor = 'tomato';
		}
	}

	bFieldGood = true;
	if (bBrowserGood)
	{
		if (bFieldGood)
		{
			oPrmForm.evephone.style.borderLeftColor = 'buttonface';
			oPrmForm.evephone.style.borderTopColor = 'buttonface';
			oPrmForm.evephone.style.borderRightColor = 'buttonface';
			oPrmForm.evephone.style.borderBottomColor = 'buttonface';
		}
		else
		{
			oPrmForm.evephone.style.borderLeftColor = 'tomato';
			oPrmForm.evephone.style.borderTopColor = 'tomato';
			oPrmForm.evephone.style.borderRightColor = 'tomato';
			oPrmForm.evephone.style.borderBottomColor = 'tomato';
		}
	}

	bFieldGood = true;
	if (oPrmForm.email.value.length > 0)
	{ }
	else
	{
		sErrors = sErrors + 'E-mail Address missing\n';
		bFieldGood = false;
	}
	if (bBrowserGood)
	{
		if (bFieldGood)
		{
			oPrmForm.email.style.borderLeftColor = 'buttonface';
			oPrmForm.email.style.borderTopColor = 'buttonface';
			oPrmForm.email.style.borderRightColor = 'buttonface';
			oPrmForm.email.style.borderBottomColor = 'buttonface';
		}
		else
		{
			oPrmForm.email.style.borderLeftColor = 'tomato';
			oPrmForm.email.style.borderTopColor = 'tomato';
			oPrmForm.email.style.borderRightColor = 'tomato';
			oPrmForm.email.style.borderBottomColor = 'tomato';
		}
	}

	bFieldGood = true;
	if (oPrmForm.age.selectedIndex > 0)
	{ 
		if (oPrmForm.age.selectedIndex !=1)
		{
			sErrors = sErrors + 'You must be over 21 to request information\n';
			return false;
		}
	}
	else
	{
		sErrors = sErrors + 'Are you 21 or older? missing\n';
		bFieldGood = false;
	}
	if (bBrowserGood)
	{
		if (bFieldGood)
		{
			oPrmForm.age.style.backgroundColor = '#FFFFFF';
		}
		else
		{
			oPrmForm.age.style.backgroundColor = 'tomato';
		}
	}

	bFieldGood = true;
	if (oPrmForm.edulevel.selectedIndex > 0)
	{ }
	else
	{
		sErrors = sErrors + 'Level of Education missing\n';
		bFieldGood = false;
	}
	if (bBrowserGood)
	{
		if (bFieldGood)
		{
			oPrmForm.edulevel.style.backgroundColor = '#FFFFFF';
		}
		else
		{
			oPrmForm.edulevel.style.backgroundColor = 'tomato';
		}
	}

	bFieldGood = true;
	if (oPrmForm.program.selectedIndex > 0)
	{ 
		//added the following confirmations per client request 5-3-2005 bh 
		//if they select cancel or no for either question the lead is invalid
		 
		var sProgram = oPrmForm.program.options[oPrmForm.program.selectedIndex].value;
		//blanked out by ET: July 27/2006 Nursing degree is no longer available
		/*if (sProgram == '29|Bachelor of Science in Nursing (RN to BSN)')
		{
			bReturn = confirm('Are you a Registered Nurse?  Please select OK for yes, or select Cancel for no.');
		}*/
		
		
		if (sProgram == '17|M.Ed Curriculum & Instruction: Reading Specialization' ||//E
			sProgram == '17|M.Ed Curriculum & Instruction: Instructional Technology Specialization' ||//F
			sProgram == '17|M.Ed Education Administration' ||//G
			sProgram == '17|M.Ed Education Administration - Organizational Leadership Emphasis' ||//H
			//sProgram == '17|M.Ed Education Adminstration - School Leadership Emphasis' ||//I
			//sProgram == '17|M.Ed Special Education Dependent on State Requirements' ||//O
			//sProgram == '17|M.Ed Special Education with Institutional Recommendation' ||//N
			sProgram == '17|M.Ed Special Education for Certified Special Educators' ||//P
			//sProgram == '17|M.Ed Elementary Education with Institutional Recommendation' ||//J
			//sProgram == '17|M.Ed Elementary Education Dependent on State Requirements' ||//K
			//sProgram == '17|M.Ed Secondary Education with Institutional Recommendation' ||//L
			//sProgram == '17|M.Ed Secondary Education Dependent on State Requirements' ||//M
			sProgram == '17|M.Ed Teaching English to Speakers of Other Languages' ||//Q
			sProgram == '17,61|Master of Arts of Teaching')//D
		{
			bReturn = confirm('I have my Bachelor\'s degree and teach k-12 or I am looking for my Special Education degree and certification. Please select OK for yes, or select Cancel for no.');
		}
}
	else
	{
		sErrors = sErrors + 'Program of Interest missing\n';
		bFieldGood = false;
	}
	if (bBrowserGood)
	{
		if (bFieldGood)
		{
			oPrmForm.program.style.backgroundColor = '#FFFFFF';
		}
		else
		{
			oPrmForm.program.style.backgroundColor = 'tomato';
		}
	}

/*  waiver field removed per client request 5-3-2005  bh
	bFieldGood = true;
	if (oPrmForm.waiver.checked)
	{ }
	else
	{
		sErrors = sErrors + 'Counselor call agreement missing\n';
		bFieldGood = false;
	}
	if (bBrowserGood)
	{
		if (bFieldGood)
		{
			oPrmForm.waiver.style.backgroundColor = '#FFFFFF';
		}
		else
		{
			oPrmForm.waiver.style.backgroundColor = 'tomato';
		}
	}
*/
	if (sErrors.length > 0)
	{
		bReturn = false;
		alert('The following errors occurred:\n' + sErrors);
	}
	return bReturn;
}

function isDate(dateStr)
{
	var datePat = /^(\d{1,2})(\/|-)(\d{1,2})(\/|-)(\d{4})$/;
	var matchArray = dateStr.match(datePat); //check format
	if (matchArray == null) return false;
	var iMonth = matchArray[1]; // parse date into variables
	var iDay = matchArray[3];
	var iYear = matchArray[5];
	if (iMonth < 1 || iMonth > 12) return false;
	if (iDay < 1 || iDay > 31) return false;
	if ((iMonth==4 || iMonth==6 || iMonth==9 || iMonth==11) && iDay==31) return false;
	if (iMonth == 2)
	{ // check for february 29th
		var isleap = (iYear % 4 == 0 && (iYear % 100 != 0 || iYear % 400 == 0));
		if (iDay > 29 || (iDay == 29 && !isleap)) return false;
	}
	return true;
}

function FixDate(oMonth, oDay, oYear)
{
	var iMonth = parseInt(oMonth[oMonth.selectedIndex].value);
	var iDay = parseInt(oDay[oDay.selectedIndex].value);
	var iYear = parseInt(oYear[oYear.selectedIndex].value);
	var iMax = 31;
	if (iMonth == 2)
	{
		if ((((iYear % 4) == 0) && ((iYear % 100) != 0)) || ((iYear % 400) == 0))
		{
			iMax = 29;
		}
		else
		{
			iMax = 28;
		}
	}
	else if ((iMonth == 4) || (iMonth == 6) || (iMonth == 9) || (iMonth == 11))
	{
		iMax = 30;
	}
	oDay.length = iMax;
	for (var i=iMax; i > 28; i--)
	{
		oDay[i - 1].text = i;
		oDay[i - 1].value = i;
	}
	if (iDay > iMax)
		oDay.selectedIndex = (iMax - 1);
}

function phoneIsValid(Obj,sLabel)
{
	var sPhone = Obj.value;
	var sPhoneTemp = sPhone;
	sPhone = '';
	var sNumbers = '1234567890';
	for (var i=0;i<sPhoneTemp.length;i++)
	{
		if (sNumbers.indexOf(sPhoneTemp.charAt(i)) > -1)
		{
			sPhone += sPhoneTemp.charAt(i);
		}
	}
	if (sPhone.charAt(0) == '1' || sPhone.charAt(0) == 1)
	{
		sPhone = sPhone.substring(1,(sPhone.length));
	}
	if (sPhone.length != 10)
	{
		return sLabel + ' must be a 10 digit number\n';
	}
	else
	{ 
		Obj.value = sPhone;
	}
	var sAreaCode = sPhone.substring(0,3);
	var sPrefix = sPhone.substring(3,6);
	var sNumber = sPhone.substring(6,10);
	ary7NotAllowed = new Array('1234567','4567890','0000000','1111111','2222222','3333333','4444444','5555555','6666666','7777777','8888888','9999999','3456789','4567890')
	ary3NotAllowed = new Array('000','911','555','012','123');
	for (var i=0;i<ary7NotAllowed.length;i++)
	{
		if (sPrefix.toString() + sNumber.toString() == ary7NotAllowed[i])
		{
			return sLabel + ' must be a valid phone number\n';
		}
	}
	for (var i=0;i<ary3NotAllowed.length;i++)
	{
		if (sPrefix.toString() == ary3NotAllowed[i].toString())
		{
			return sLabel + ' must be a valid phone number\n';
		}
	}
	return '';
}

function ProgramShow(obj)
{
	// revised all dropdowns to work with partners JJK 11/1/2005 #36830
	var list = document.contactform.program;

	switch (obj.value)
	{
		case '0':
			list.length = 0;
			list[0] = new Option("Select One:","0");
			break;
			
		case 'Still in HS':
			list.length = 0;
			// set up no college and some college array for select
			var hsArr = new Array();
			hsArr["0"] = "There are no programs available for your level of education";	
			//hsArr["8|Bachelor of Public Safety Administration"] =
			//	"Bachelor of Public Safety Administration"; -- removed per docket 34330 - bh - 9/6/2005
//			hsArr["9|Bachelor of Business Administration with a major in Marketing"] =
//				"Bachelor of Business Administration with a major in Marketing";
//			hsArr["10|Bachelor of Business Administration with a major in Accounting"] =
//				"Bachelor of Business Administration with a major in Accounting";
//			hsArr["11|Bachelor of Business Administration with a major in Business Administration"] =
//				"Bachelor of Business Administration with a major in Business Administration";
				
			for(var i in hsArr)
			{
				list[list.length] = new Option(hsArr[i],i);			
			}
			break;
			
		case 'HS Diploma or GED':
			list.length = 0;
			// set up no college and some college array for select
			var hsArr = new Array();
			hsArr["0"] = "Select one:";	
			hsArr["17|BS in Elementary Education with an Emphasis in English"] =
				"BS in Elementary Education with an Emphasis in English";
			hsArr["17|BS in Elementary Education with an Emphasis in Math"] =
				"BS in Elementary Education with an Emphasis in Math";
			hsArr["17|BS in Elementary Education with an Emphasis in Science"] =
				"BS in Elementary Education with an Emphasis in Science";
			//hsArr["8|Bachelor of Public Safety Administration"] =
			//	"Bachelor of Public Safety Administration";  -- removed per docket 34330 - bh - 9/6/2005
// removed 8/24/2005 -jpg				
//			hsArr["9|Bachelor of Business Administration with a major in Marketing"] =
//				"Bachelor of Business Administration with a major in Marketing";
//			hsArr["10|Bachelor of Business Administration with a major in Accounting"] =
//				"Bachelor of Business Administration with a major in Accounting";
//			hsArr["11|Bachelor of Business Administration with a major in Business Administration"] =
//				"Bachelor of Business Administration with a major in Business Administration"; 

			for(var i in hsArr)
			{
				list[list.length] = new Option(hsArr[i],i);			
			}
			break;
			
		case 'Diploma (non-U.S.)':
			list.length = 0;
			// set up no college and some college array for select
			var hsArr = new Array();
			hsArr["0"] = "Select one:";	
			hsArr["17|BS in Elementary Education with an Emphasis in English"] =
				"BS in Elementary Education with an Emphasis in English";
			hsArr["17|BS in Elementary Education with an Emphasis in Math"] =
				"BS in Elementary Education with an Emphasis in Math";
			hsArr["17|BS in Elementary Education with an Emphasis in Science"] =
				"BS in Elementary Education with an Emphasis in Science";			
			for(var i in hsArr)
			{
				list[list.length] = new Option(hsArr[i],i);			
			}
			break;				
			
		case 'Some College':
			list.length = 0;
			// set up no college and some college array for select
			var hsArr = new Array();
			hsArr["0"] = "Select one:";	
			hsArr["17|BS in Elementary Education with an Emphasis in English"] =
				"BS in Elementary Education with an Emphasis in English";
			hsArr["17|BS in Elementary Education with an Emphasis in Math"] =
				"BS in Elementary Education with an Emphasis in Math";
			hsArr["17|BS in Elementary Education with an Emphasis in Science"] =
				"BS in Elementary Education with an Emphasis in Science";			
			for(var i in hsArr)
			{
				list[list.length] = new Option(hsArr[i],i);			
			}
			break;		
			
		case 'Some College (Non-U.S.)':
			list.length = 0;
			// set up no college and some college array for select
			var hsArr = new Array();
			hsArr["0"] = "Select one:";	
			hsArr["17|BS in Elementary Education with an Emphasis in English"] =
				"BS in Elementary Education with an Emphasis in English";
			hsArr["17|BS in Elementary Education with an Emphasis in Math"] =
				"BS in Elementary Education with an Emphasis in Math";
			hsArr["17|BS in Elementary Education with an Emphasis in Science"] =
				"BS in Elementary Education with an Emphasis in Science";			
			for(var i in hsArr)
			{
				list[list.length] = new Option(hsArr[i],i);			
			}
			break;					
		
		case 'Associates Degree or over 60 Credits':
			list.length = 0;
			
			//set up Associates programs
			var adArr = new Array();
			adArr["0"] = "Select one:";	
			adArr["17|BS in Elementary Education with an Emphasis in English"] =
				"BS in Elementary Education with an Emphasis in English";
			adArr["17|BS in Elementary Education with an Emphasis in Math"] =
				"BS in Elementary Education with an Emphasis in Math";
			adArr["17|BS in Elementary Education with an Emphasis in Science"] =
				"BS in Elementary Education with an Emphasis in Science";

			for(var i in adArr)
			{
				list[list.length] = new Option(adArr[i],i);			
			}
			break;
			
		case 'Associates Degree or over 60 Credits (Non-U.S.)':
			list.length = 0;
			
			//set up Associates programs
			var adArr = new Array();
			adArr["0"] = "Select one:";	
			adArr["17|BS in Elementary Education with an Emphasis in English"] =
				"BS in Elementary Education with an Emphasis in English";
			adArr["17|BS in Elementary Education with an Emphasis in Math"] =
				"BS in Elementary Education with an Emphasis in Math";
			adArr["17|BS in Elementary Education with an Emphasis in Science"] =
				"BS in Elementary Education with an Emphasis in Science";

			for(var i in adArr)
			{
				list[list.length] = new Option(adArr[i],i);			
			}
			break;			

		case 'Bachelor Degree':
			list.length = 0;
			// set up Bachelor degree array for select
			var bachArr = new Array();
			bachArr["0"] = "Select One:";
			//bachArr["8|Bachelor of Public Safety Administration"] =
			//	"Bachelor of Public Safety Administration";  -- removed per docket 34330 - bh - 9/6/2005
				// removed 8/24/2005 - jpg				
//			bachArr["9|Bachelor of Business Administration with a major in Marketing"] =
//				"Bachelor of Business Administration with a major in Marketing";
//			bachArr["10|Bachelor of Business Administration with a major in Accounting"] =
//				"Bachelor of Business Administration with a major in Accounting";
//			bachArr["11|Bachelor of Business Administration with a major in Business Administration"] =
//				"Bachelor of Business Administration with a major in Business Administration";
//			bachArr["1|Masters in Business Administration"] =
//				"Masters in Business Administration";
//			bachArr["2|Masters in Business Administration - Accounting"] =
//				"Masters in Business Administration - Accounting";
//			bachArr["3|Masters in Business Administration - Finance"] =
//				"Masters in Business Administration - Finance";
//			bachArr["4|Masters in Business Administration - Healthcare System Management"] =
//				"Masters in Business Administration - Healthcare System Management";
//			bachArr["5|Masters in Business Administration - Leadership"] =
//				"Masters in Business Administration - Leadership";
//			bachArr["6|Masters in Business Administration - Marketing"] =
//				"Masters in Business Administration - Marketing";
			//bachArr["7|Master of Science in Executive Fire Service Leadership"] =
			//	"Master  of Science in Executive Fire Service Leadership";  -- removed per docket 34330 - bh - 9/6/2005
			bachArr["17|BS in Elementary Education with an Emphasis in English"] =
				"BS in Elementary Education with an Emphasis in English";
			bachArr["17|BS in Elementary Education with an Emphasis in Math"] =
				"BS in Elementary Education with an Emphasis in Math";
			bachArr["17|BS in Elementary Education with an Emphasis in Science"] =
				"BS in Elementary Education with an Emphasis in Science";
			//bachArr["17|M.Ed Curriculum & Instruction: Reading Specialization"] =
				//"M.Ed Curriculum & Instruction: Reading Specialization";
			//bachArr["17|M.Ed Curriculum & Instruction: Instructional Technology Specialization"] =
				//"M.Ed Curriculum & Instruction: Instructional Technology Specialization";
			//bachArr["17|M.Ed Education Administration"] =
				//"M.Ed Education Administration";
			//bachArr["17|M.Ed Education Administration - Organizational Leadership Emphasis"] =
				//"M.Ed Education Administration - Organizational Leadership Emphasis";
			bachArr["17|M.Ed Education Adminstration - School Leadership Emphasis"] =
				"M.Ed Education Adminstration - School Leadership Emphasis";
			bachArr["17|M.Ed Special Education Dependent on State Requirements"] =
				"M.Ed Special Education Dependent on State Requirements";
			//bachArr["17,61|Master of Arts of Teaching"] =
				//"Master of Arts of Teaching";
//added per docket 34330 - bh - 9/6/2005				
			bachArr["17|M.Ed Special Education with Institutional Recommendation"] =
				"M.Ed Special Education with Institutional Recommendation";
			//bachArr["17|M.Ed Special Education for Certified Special Educators"] =
				//"M.Ed Special Education for Certified Special Educators";
			bachArr["17|M.Ed Elementary Education with Institutional Recommendation"] =
				"M.Ed Elementary Education with Institutional Recommendation";
			bachArr["17|M.Ed Elementary Education Dependent on State Requirements"] =
				"M.Ed Elementary Education Dependent on State Requirements";
			bachArr["17|M.Ed Secondary Education with Institutional Recommendation"] =
				"M.Ed Secondary Education with Institutional Recommendation";
			bachArr["17|M.Ed Secondary Education Dependent on State Requirements"] =
				"M.Ed Secondary Education Dependent on State Requirements";
			//bachArr["17|M.Ed Teaching English to Speakers of Other Languages"] =
				//"M.Ed Teaching English to Speakers of Other Languages";

			for(var i in bachArr)
			{
				list[list.length] = new Option(bachArr[i],i);			
			}
			break;
			
			case 'Bachelor Degree (Non-U.S.)':
			list.length = 0;
			// set up Bachelor degree array for select
			var bachArr = new Array();
			bachArr["0"] = "Select One:";
			//bachArr["8|Bachelor of Public Safety Administration"] =
			//	"Bachelor of Public Safety Administration";  -- removed per docket 34330 - bh - 9/6/2005
				// removed 8/24/2005 - jpg				
//			bachArr["9|Bachelor of Business Administration with a major in Marketing"] =
//				"Bachelor of Business Administration with a major in Marketing";
//			bachArr["10|Bachelor of Business Administration with a major in Accounting"] =
//				"Bachelor of Business Administration with a major in Accounting";
//			bachArr["11|Bachelor of Business Administration with a major in Business Administration"] =
//				"Bachelor of Business Administration with a major in Business Administration";
//			bachArr["1|Masters in Business Administration"] =
//				"Masters in Business Administration";
//			bachArr["2|Masters in Business Administration - Accounting"] =
//				"Masters in Business Administration - Accounting";
//			bachArr["3|Masters in Business Administration - Finance"] =
//				"Masters in Business Administration - Finance";
//			bachArr["4|Masters in Business Administration - Healthcare System Management"] =
//				"Masters in Business Administration - Healthcare System Management";
//			bachArr["5|Masters in Business Administration - Leadership"] =
//				"Masters in Business Administration - Leadership";
//			bachArr["6|Masters in Business Administration - Marketing"] =
//				"Masters in Business Administration - Marketing";
			//bachArr["7|Master of Science in Executive Fire Service Leadership"] =
			//	"Master  of Science in Executive Fire Service Leadership";  -- removed per docket 34330 - bh - 9/6/2005
			bachArr["17|BS in Elementary Education with an Emphasis in English"] =
				"BS in Elementary Education with an Emphasis in English";
			bachArr["17|BS in Elementary Education with an Emphasis in Math"] =
				"BS in Elementary Education with an Emphasis in Math";
			bachArr["17|BS in Elementary Education with an Emphasis in Science"] =
				"BS in Elementary Education with an Emphasis in Science";
			//bachArr["17|M.Ed Curriculum & Instruction: Reading Specialization"] =
				//"M.Ed Curriculum & Instruction: Reading Specialization";
			//bachArr["17|M.Ed Curriculum & Instruction: Instructional Technology Specialization"] =
				//"M.Ed Curriculum & Instruction: Instructional Technology Specialization";
			//bachArr["17|M.Ed Education Administration"] =
				//"M.Ed Education Administration";
			//bachArr["17|M.Ed Education Administration - Organizational Leadership Emphasis"] =
				//"M.Ed Education Administration - Organizational Leadership Emphasis";
			bachArr["17|M.Ed Education Adminstration - School Leadership Emphasis"] =
				"M.Ed Education Adminstration - School Leadership Emphasis";
			bachArr["17|M.Ed Special Education Dependent on State Requirements"] =
				"M.Ed Special Education Dependent on State Requirements";
			//bachArr["17,61|Master of Arts of Teaching"] =
				//"Master of Arts of Teaching";
//added per docket 34330 - bh - 9/6/2005				
			bachArr["17|M.Ed Special Education with Institutional Recommendation"] =
				"M.Ed Special Education with Institutional Recommendation";
			//bachArr["17|M.Ed Special Education for Certified Special Educators"] =
				//"M.Ed Special Education for Certified Special Educators";
			bachArr["17|M.Ed Elementary Education with Institutional Recommendation"] =
				"M.Ed Elementary Education with Institutional Recommendation";
			bachArr["17|M.Ed Elementary Education Dependent on State Requirements"] =
				"M.Ed Elementary Education Dependent on State Requirements";
			bachArr["17|M.Ed Secondary Education with Institutional Recommendation"] =
				"M.Ed Secondary Education with Institutional Recommendation";
			bachArr["17|M.Ed Secondary Education Dependent on State Requirements"] =
				"M.Ed Secondary Education Dependent on State Requirements";
			//bachArr["17|M.Ed Teaching English to Speakers of Other Languages"] =
				//"M.Ed Teaching English to Speakers of Other Languages";

			for(var i in bachArr)
			{
				list[list.length] = new Option(bachArr[i],i);			
			}
			break;
			
			case 'Bachelor Degree w/ Cert. & Exp.':
			list.length = 0;
			// set up Bachelor degree array for select
			var bachArr = new Array();
			bachArr["0"] = "Select One:";
			//bachArr["8|Bachelor of Public Safety Administration"] =
			//	"Bachelor of Public Safety Administration";  -- removed per docket 34330 - bh - 9/6/2005
				// removed 8/24/2005 - jpg				
//			bachArr["9|Bachelor of Business Administration with a major in Marketing"] =
//				"Bachelor of Business Administration with a major in Marketing";
//			bachArr["10|Bachelor of Business Administration with a major in Accounting"] =
//				"Bachelor of Business Administration with a major in Accounting";
//			bachArr["11|Bachelor of Business Administration with a major in Business Administration"] =
//				"Bachelor of Business Administration with a major in Business Administration";
//			bachArr["1|Masters in Business Administration"] =
//				"Masters in Business Administration";
//			bachArr["2|Masters in Business Administration - Accounting"] =
//				"Masters in Business Administration - Accounting";
//			bachArr["3|Masters in Business Administration - Finance"] =
//				"Masters in Business Administration - Finance";
//			bachArr["4|Masters in Business Administration - Healthcare System Management"] =
//				"Masters in Business Administration - Healthcare System Management";
//			bachArr["5|Masters in Business Administration - Leadership"] =
//				"Masters in Business Administration - Leadership";
//			bachArr["6|Masters in Business Administration - Marketing"] =
//				"Masters in Business Administration - Marketing";
			//bachArr["7|Master of Science in Executive Fire Service Leadership"] =
			//	"Master  of Science in Executive Fire Service Leadership";  -- removed per docket 34330 - bh - 9/6/2005
			bachArr["17|BS in Elementary Education with an Emphasis in English"] =
				"BS in Elementary Education with an Emphasis in English";
			bachArr["17|BS in Elementary Education with an Emphasis in Math"] =
				"BS in Elementary Education with an Emphasis in Math";
			bachArr["17|BS in Elementary Education with an Emphasis in Science"] =
				"BS in Elementary Education with an Emphasis in Science";
			bachArr["17|M.Ed Curriculum & Instruction: Reading Specialization"] =
				"M.Ed Curriculum & Instruction: Reading Specialization";
			bachArr["17|M.Ed Curriculum & Instruction: Instructional Technology Specialization"] =
				"M.Ed Curriculum & Instruction: Instructional Technology Specialization";
			bachArr["17|M.Ed Education Administration"] =
				"M.Ed Education Administration";
			bachArr["17|M.Ed Education Administration - Organizational Leadership Emphasis"] =
				"M.Ed Education Administration - Organizational Leadership Emphasis";
			bachArr["17|M.Ed Education Adminstration - School Leadership Emphasis"] =
				"M.Ed Education Adminstration - School Leadership Emphasis";
			bachArr["17|M.Ed Special Education Dependent on State Requirements"] =
				"M.Ed Special Education Dependent on State Requirements";
			bachArr["17,61|Master of Arts of Teaching"] =
				"Master of Arts of Teaching";
//added per docket 34330 - bh - 9/6/2005				
			bachArr["17|M.Ed Special Education with Institutional Recommendation"] =
				"M.Ed Special Education with Institutional Recommendation";
			bachArr["17|M.Ed Special Education for Certified Special Educators"] =
				"M.Ed Special Education for Certified Special Educators";
			bachArr["17|M.Ed Elementary Education with Institutional Recommendation"] =
				"M.Ed Elementary Education with Institutional Recommendation";
			bachArr["17|M.Ed Elementary Education Dependent on State Requirements"] =
				"M.Ed Elementary Education Dependent on State Requirements";
			bachArr["17|M.Ed Secondary Education with Institutional Recommendation"] =
				"M.Ed Secondary Education with Institutional Recommendation";
			bachArr["17|M.Ed Secondary Education Dependent on State Requirements"] =
				"M.Ed Secondary Education Dependent on State Requirements";
			bachArr["17|M.Ed Teaching English to Speakers of Other Languages"] =
				"M.Ed Teaching English to Speakers of Other Languages";

			for(var i in bachArr)
			{
				list[list.length] = new Option(bachArr[i],i);			
			}
			break;			
		
		//blanked out by ET: July 27/2006 Nursing degree is no longer available
		/*
		case 'RN':
			list.length = 0;
			var rnArr = new Array();
			rnArr["0"] = "Select One:";
			rnArr["29|Bachelor of Science in Nursing (RN to BSN)"] = 
				"Nursing (RN to BSN)";
				
			for(var i in rnArr)
			{
				list[list.length] = new Option(rnArr[i],i);
			}
			break;
		*/
			
		case 'Master Degree or Higher':
			list.length = 0;
			// set up Masters and higher array for select
			var mastArr = new Array();
			mastArr["0"] = "Select One:";
				// removed 8/24/2005 - jpg
//			mastArr["1|Masters in Business Administration"] =
//				"Masters in Business Administration";
//			mastArr["2|Masters in Business Administration - Accounting"] =
//				"Masters in Business Administration - Accounting";
//			mastArr["3|Masters in Business Administration - Finance"] =
//				"Masters in Business Administration - Finance";
//			mastArr["4|Masters in Business Administration - Healthcare System Management"] =
//				"Masters in Business Administration - Healthcare System Management";
//			mastArr["5|Masters in Business Administration - Leadership"] =
//				"Masters in Business Administration - Leadership";
//			mastArr["6|Masters in Business Administration - Marketing"] =
//				"Masters in Business Administration - Marketing";
			//mastArr["7|Master of Science in Executive Fire Service Leadership"] =
			//	"Master of Science in Executive Fire Service Leadership";  -- removed per docket 34330 - bh - 9/6/2005
			
				mastArr["17|BS in Elementary Education with an Emphasis in English"] =
				"BS in Elementary Education with an Emphasis in English";
				mastArr["17|BS in Elementary Education with an Emphasis in Math"] =
				"BS in Elementary Education with an Emphasis in Math";
				mastArr["17|BS in Elementary Education with an Emphasis in Science"] =
				"BS in Elementary Education with an Emphasis in Science";
			mastArr["17|M.Ed Curriculum & Instruction: Reading Specialization"] =
				"M.Ed Curriculum & Instruction: Reading Specialization";
			mastArr["17|M.Ed Curriculum & Instruction: Instructional Technology Specialization"] =
				"M.Ed Curriculum & Instruction: Instructional Technology Specialization";
			mastArr["17|M.Ed Education Administration"] =
				"M.Ed Education Administration";
			mastArr["17|M.Ed Education Administration - Organizational Leadership Emphasis"] =
				"M.Ed Education Administration - Organizational Leadership Emphasis";
			mastArr["17|M.Ed Education Adminstration - School Leadership Emphasis"] =
				"M.Ed Education Adminstration - School Leadership Emphasis";
			mastArr["17|M.Ed Special Education Dependent on State Requirements"] =
				"M.Ed Special Education Dependent on State Requirements";
			mastArr["17,61|Master of Arts of Teaching"] =
				"Master of Arts of Teaching";
//added per docket 34330 - bh - 9/6/2005				
			mastArr["17|M.Ed Special Education with Institutional Recommendation"] =
				"M.Ed Special Education with Institutional Recommendation";
			mastArr["17|M.Ed Special Education for Certified Special Educators"] =
				"M.Ed Special Education for Certified Special Educators";
			mastArr["17|M.Ed Elementary Education with Institutional Recommendation"] =
				"M.Ed Elementary Education with Institutional Recommendation";
			mastArr["17|M.Ed Elementary Education Dependent on State Requirements"] =
				"M.Ed Elementary Education Dependent on State Requirements";
			mastArr["17|M.Ed Secondary Education with Institutional Recommendation"] =
				"M.Ed Secondary Education with Institutional Recommendation";
			mastArr["17|M.Ed Secondary Education Dependent on State Requirements"] =
				"M.Ed Secondary Education Dependent on State Requirements";
			mastArr["17|M.Ed Teaching English to Speakers of Other Languages"] =
				"M.Ed Teaching English to Speakers of Other Languages";

			for(var i in mastArr)
			{
				list[list.length] = new Option(mastArr[i],i);			
			}
			break;
			
		case 'Master Degree or Higher (Non-U.S.)':
			list.length = 0;
			// set up Masters and higher array for select
			var mastArr = new Array();
			mastArr["0"] = "Select One:";
				// removed 8/24/2005 - jpg
//			mastArr["1|Masters in Business Administration"] =
//				"Masters in Business Administration";
//			mastArr["2|Masters in Business Administration - Accounting"] =
//				"Masters in Business Administration - Accounting";
//			mastArr["3|Masters in Business Administration - Finance"] =
//				"Masters in Business Administration - Finance";
//			mastArr["4|Masters in Business Administration - Healthcare System Management"] =
//				"Masters in Business Administration - Healthcare System Management";
//			mastArr["5|Masters in Business Administration - Leadership"] =
//				"Masters in Business Administration - Leadership";
//			mastArr["6|Masters in Business Administration - Marketing"] =
//				"Masters in Business Administration - Marketing";
			//mastArr["7|Master of Science in Executive Fire Service Leadership"] =
			//	"Master of Science in Executive Fire Service Leadership";  -- removed per docket 34330 - bh - 9/6/2005
			
				mastArr["17|BS in Elementary Education with an Emphasis in English"] =
				"BS in Elementary Education with an Emphasis in English";
				mastArr["17|BS in Elementary Education with an Emphasis in Math"] =
				"BS in Elementary Education with an Emphasis in Math";
				mastArr["17|BS in Elementary Education with an Emphasis in Science"] =
				"BS in Elementary Education with an Emphasis in Science";
			mastArr["17|M.Ed Curriculum & Instruction: Reading Specialization"] =
				"M.Ed Curriculum & Instruction: Reading Specialization";
			mastArr["17|M.Ed Curriculum & Instruction: Instructional Technology Specialization"] =
				"M.Ed Curriculum & Instruction: Instructional Technology Specialization";
			mastArr["17|M.Ed Education Administration"] =
				"M.Ed Education Administration";
			mastArr["17|M.Ed Education Administration - Organizational Leadership Emphasis"] =
				"M.Ed Education Administration - Organizational Leadership Emphasis";
			mastArr["17|M.Ed Education Adminstration - School Leadership Emphasis"] =
				"M.Ed Education Adminstration - School Leadership Emphasis";
			mastArr["17|M.Ed Special Education Dependent on State Requirements"] =
				"M.Ed Special Education Dependent on State Requirements";
			mastArr["17,61|Master of Arts of Teaching"] =
				"Master of Arts of Teaching";
//added per docket 34330 - bh - 9/6/2005				
			mastArr["17|M.Ed Special Education with Institutional Recommendation"] =
				"M.Ed Special Education with Institutional Recommendation";
			mastArr["17|M.Ed Special Education for Certified Special Educators"] =
				"M.Ed Special Education for Certified Special Educators";
			mastArr["17|M.Ed Elementary Education with Institutional Recommendation"] =
				"M.Ed Elementary Education with Institutional Recommendation";
			mastArr["17|M.Ed Elementary Education Dependent on State Requirements"] =
				"M.Ed Elementary Education Dependent on State Requirements";
			mastArr["17|M.Ed Secondary Education with Institutional Recommendation"] =
				"M.Ed Secondary Education with Institutional Recommendation";
			mastArr["17|M.Ed Secondary Education Dependent on State Requirements"] =
				"M.Ed Secondary Education Dependent on State Requirements";
			mastArr["17|M.Ed Teaching English to Speakers of Other Languages"] =
				"M.Ed Teaching English to Speakers of Other Languages";

			for(var i in mastArr)
			{
				list[list.length] = new Option(mastArr[i],i);			
			}
			break;			
		}
	
	return true;
}

//added bh 9/8/2005
function populateState(Obj)
{
	var aryUnitedStates = new Array;
	var aryCanada = new Array;
	var aryOther = new Array;
	var list = document.contactform.state;
	
	aryUnitedStates['0'] = 'Select One:';
	aryUnitedStates['AL'] = 'Alabama';
    aryUnitedStates['AK'] = 'Alaska';
    aryUnitedStates['AZ'] = 'Arizona';
	aryUnitedStates['AR'] = 'Arkansas';
	aryUnitedStates['CA'] = 'California';
	aryUnitedStates['CO'] = 'Colorado';
	aryUnitedStates['CT'] = 'Connecticut';
	aryUnitedStates['DE'] = 'Delaware';
	aryUnitedStates['DC'] = 'Dist. of Col.';
	aryUnitedStates['FL'] = 'Florida';
	aryUnitedStates['GA'] = 'Georgia';
	aryUnitedStates['HI'] = 'Hawaii';
	aryUnitedStates['ID'] = 'Idaho';
	aryUnitedStates['IL'] = 'Illinois';
	aryUnitedStates['IN'] = 'Indiana';
	aryUnitedStates['IA'] = 'Iowa';
	aryUnitedStates['KS'] = 'Kansas';
	aryUnitedStates['KY'] = 'Kentucky';
	aryUnitedStates['LA'] = 'Louisiana';
	aryUnitedStates['ME'] = 'Maine';
	aryUnitedStates['MD'] = 'Maryland';
	aryUnitedStates['MA'] = 'Massachusetts';
	aryUnitedStates['MI'] = 'Michigan';
	aryUnitedStates['MN'] = 'Minnesota';
	aryUnitedStates['MS'] = 'Mississippi';
	aryUnitedStates['MO'] = 'Missouri';
	aryUnitedStates['MT'] = 'Montana';
	aryUnitedStates['NE'] = 'Nebraska';
	aryUnitedStates['NV'] = 'Nevada';
	aryUnitedStates['NH'] = 'New Hampshire';
	aryUnitedStates['NJ'] = 'New Jersey';
	aryUnitedStates['NM'] = 'New Mexico';
	aryUnitedStates['NY'] = 'New York';
	aryUnitedStates['NC'] = 'North Carolina';
	aryUnitedStates['ND'] = 'North Dakota';
	aryUnitedStates['OH'] = 'Ohio';
	aryUnitedStates['OK'] = 'Oklahoma';
	aryUnitedStates['OR'] = 'Oregon';
	aryUnitedStates['PA'] = 'Pennsylvania';
	aryUnitedStates['RI'] = 'Rhode Island';
	aryUnitedStates['SC'] = 'South Carolina';
	aryUnitedStates['SD'] = 'South Dakota';
	aryUnitedStates['TN'] = 'Tennessee';
	aryUnitedStates['TX'] = 'Texas';
	aryUnitedStates['UT'] = 'Utah';
	aryUnitedStates['VT'] = 'Vermont';
	aryUnitedStates['VA'] = 'Virginia';
	aryUnitedStates['WA'] = 'Washington';
	aryUnitedStates['WV'] = 'West Virginia';
	aryUnitedStates['WI'] = 'Wisconsin';
	aryUnitedStates['WY'] = 'Wyoming';
	aryUnitedStates['AS'] = 'American Samoa';
	aryUnitedStates['VI'] = 'American Virgin Islands';
	aryUnitedStates['FM'] = 'Federated States of Micronesia';
	aryUnitedStates['GU'] = 'Guam';
	aryUnitedStates['MH'] = 'Marshall Islands';
	aryUnitedStates['MP'] = 'Northern Mariana Islands';
	aryUnitedStates['PW'] = 'Palau';
	aryUnitedStates['PR'] = 'Puerto Rico';
	
	aryCanada['0'] = 'Select One:';
	aryCanada['AB'] = 'Alberta';
	aryCanada['BC'] = 'British Columbia';	
	aryCanada['MB'] = 'Manitoba';	
	aryCanada['NB'] = 'New Brunswick';	
	aryCanada['NF'] = 'Newfoundland';	
	aryCanada['NT'] = 'Northwest Territories';	
	aryCanada['NS'] = 'Nova Scotia';	
	aryCanada['NU'] = 'Nunavut';	
	aryCanada['ON'] = 'Ontario';	
	aryCanada['PE'] = 'Prince Edward Island';	
	aryCanada['QC'] = 'Quebec';	
	aryCanada['SK'] = 'Saskatchewan';	
	aryCanada['YT'] = 'Yukon';	


	
	//added by ET, 07/27/2006, RT# 4637
	aryOther['0'] = 'Select One:';
	aryOther['XX'] = 'N/A';

	
	var aryStates = new Array;
	
	switch (Obj.value)
	{
		case 'US':
			aryStates = aryUnitedStates;
			break;
		case 'CA':
			aryStates = aryCanada;
			break;
		default:
			aryStates = aryOther;
			break;
	}
	
	
	
	//clear state contents
	var i = 0;
	for(i=document.contactform.state.length;i>-1;i--) 
	{
		document.contactform.state.options[i] = null;
		document.contactform.state.selectedIndex = 0;
	}

	//fill state drop down
	for(var i in aryStates) 
	{
		list[list.length] = new Option(aryStates[i],i);
	}


}
