// new GCU page per Docket #703 3-4-05 jjk
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)
		{
			alert('You must be over 21 to request information.');
			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;
		if (sProgram == '29|Bachelor of Science in Nursing (RN to BSN)')
		{
			bReturn = confirm('Are you a current licensed Registered Nurse in the U.S.?  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)
{
	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";	
						
			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["44|Bachelor of Science in Public Safety Administration"] =
				"Bachelor of Science in Public Safety Administration"; 
			hsArr["9|Bachelor of Science in Marketing"] =
				"Bachelor of Science in Marketing"; 
			hsArr["1,9|Bachelor of Science in Accounting"] =
				"Bachelor of Science in Accounting"; 
			hsArr["9|Bachelor of Science in Business Administration"] =
				"Bachelor of Science in Business Administration"; 
			hsArr["9|Bachelor of Science in Applied Management"] =
				"Bachelor of Science in Applied Management"; 
			hsArr["9,29|Bachelor of Science in Business Administration - Healthcare Management Emphasis"] =
				"Bachelor of Science in Business Administration - Healthcare Management Emphasis"; 
			hsArr["9|Bachelor of Science in Business Administration - Management of Information Systems"] =
				"Bachelor of Science in Business Administration - Management of Information Systems"; 
			hsArr["29|Bachelor of Science in Psychology"] =
				"Bachelor of Science in Psychology"; 	
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies"] =
				"Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies";
				
			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["44|Bachelor of Science in Public Safety Administration"] =
				"Bachelor of Science in Public Safety Administration"; 
			hsArr["9|Bachelor of Science in Marketing"] =
				"Bachelor of Science in Marketing"; 
			hsArr["1,9|Bachelor of Science in Accounting"] =
				"Bachelor of Science in Accounting"; 
			hsArr["9|Bachelor of Science in Business Administration"] =
				"Bachelor of Science in Business Administration"; 
			hsArr["9|Bachelor of Science in Applied Management"] =
				"Bachelor of Science in Applied Management"; 
			hsArr["9,29|Bachelor of Science in Business Administration - Healthcare Management Emphasis"] =
				"Bachelor of Science in Business Administration - Healthcare Management Emphasis"; 
			hsArr["9|Bachelor of Science in Business Administration - Management of Information Systems"] =
				"Bachelor of Science in Business Administration - Management of Information Systems"; 
			hsArr["29|Bachelor of Science in Psychology"] =
				"Bachelor of Science in Psychology"; 	
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies"] =
				"Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies";
				
			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["44|Bachelor of Science in Public Safety Administration"] =
				"Bachelor of Science in Public Safety Administration"; 
			hsArr["9|Bachelor of Science in Marketing"] =
				"Bachelor of Science in Marketing"; 
			hsArr["1,9|Bachelor of Science in Accounting"] =
				"Bachelor of Science in Accounting"; 
			hsArr["9|Bachelor of Science in Business Administration"] =
				"Bachelor of Science in Business Administration"; 
			hsArr["9|Bachelor of Science in Applied Management"] =
				"Bachelor of Science in Applied Management"; 
			hsArr["9,29|Bachelor of Science in Business Administration - Healthcare Management Emphasis"] =
				"Bachelor of Science in Business Administration - Healthcare Management Emphasis"; 
			hsArr["9|Bachelor of Science in Business Administration - Management of Information Systems"] =
				"Bachelor of Science in Business Administration - Management of Information Systems"; 
			hsArr["29|Bachelor of Science in Psychology"] =
				"Bachelor of Science in Psychology"; 	
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies"] =
				"Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies";
				
			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["44|Bachelor of Science in Public Safety Administration"] =
				"Bachelor of Science in Public Safety Administration"; 
			hsArr["9|Bachelor of Science in Marketing"] =
				"Bachelor of Science in Marketing"; 
			hsArr["1,9|Bachelor of Science in Accounting"] =
				"Bachelor of Science in Accounting"; 
			hsArr["9|Bachelor of Science in Business Administration"] =
				"Bachelor of Science in Business Administration"; 
			hsArr["9|Bachelor of Science in Applied Management"] =
				"Bachelor of Science in Applied Management"; 
			hsArr["9,29|Bachelor of Science in Business Administration - Healthcare Management Emphasis"] =
				"Bachelor of Science in Business Administration - Healthcare Management Emphasis"; 
			hsArr["9|Bachelor of Science in Business Administration - Management of Information Systems"] =
				"Bachelor of Science in Business Administration - Management of Information Systems"; 
			hsArr["29|Bachelor of Science in Psychology"] =
				"Bachelor of Science in Psychology"; 	
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies"] =
				"Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies";
				
			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 no college and some college array for select
			var hsArr = new Array();
			hsArr["0"] = "Select One:";	
			hsArr["44|Bachelor of Science in Public Safety Administration"] =
				"Bachelor of Science in Public Safety Administration"; 
			hsArr["9|Bachelor of Science in Marketing"] =
				"Bachelor of Science in Marketing"; 
			hsArr["1,9|Bachelor of Science in Accounting"] =
				"Bachelor of Science in Accounting"; 
			hsArr["9|Bachelor of Science in Business Administration"] =
				"Bachelor of Science in Business Administration"; 
			hsArr["9|Bachelor of Science in Applied Management"] =
				"Bachelor of Science in Applied Management"; 
			hsArr["9,29|Bachelor of Science in Business Administration - Healthcare Management Emphasis"] =
				"Bachelor of Science in Business Administration - Healthcare Management Emphasis"; 
			hsArr["9|Bachelor of Science in Business Administration - Management of Information Systems"] =
				"Bachelor of Science in Business Administration - Management of Information Systems"; 
			hsArr["29|Bachelor of Science in Psychology"] =
				"Bachelor of Science in Psychology"; 	
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies"] =
				"Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies";
				
			for(var i in hsArr)
			{
				list[list.length] = new Option(hsArr[i],i);			
			}
			break;	
			
		case 'Associates Degree or over 60 Credits (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["44|Bachelor of Science in Public Safety Administration"] =
				"Bachelor of Science in Public Safety Administration"; 
			hsArr["9|Bachelor of Science in Marketing"] =
				"Bachelor of Science in Marketing"; 
			hsArr["1,9|Bachelor of Science in Accounting"] =
				"Bachelor of Science in Accounting"; 
			hsArr["9|Bachelor of Science in Business Administration"] =
				"Bachelor of Science in Business Administration"; 
			hsArr["9|Bachelor of Science in Applied Management"] =
				"Bachelor of Science in Applied Management"; 
			hsArr["9,29|Bachelor of Science in Business Administration - Healthcare Management Emphasis"] =
				"Bachelor of Science in Business Administration - Healthcare Management Emphasis"; 
			hsArr["9|Bachelor of Science in Business Administration - Management of Information Systems"] =
				"Bachelor of Science in Business Administration - Management of Information Systems"; 
			hsArr["29|Bachelor of Science in Psychology"] =
				"Bachelor of Science in Psychology"; 	
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"; 
			hsArr["57|Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies"] =
				"Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies";
				
			for(var i in hsArr)
			{
				list[list.length] = new Option(hsArr[i],i);			
			}
			break;		
			
		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)";
			
			// RT#10272 commented out next two lines
			// rnArr["29|Master of Science in Nursing: Nursing Leadership in Healthcare Systems"] = 
			// "Master of Science in Nursing: Nursing Leadership in Healthcare Systems";

			for(var i in rnArr)
			{
				list[list.length] = new Option(rnArr[i],i);
			}
			break;
			
		case 'RNN':
			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)";
			
			// RT#10272 commented out next two lines
			// rnArr["29|Master of Science in Nursing: Nursing Leadership in Healthcare Systems"] = 
			// "Master of Science in Nursing: Nursing Leadership in Healthcare Systems";

			for(var i in rnArr)
			{
				list[list.length] = new Option(rnArr[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["44|Bachelor of Science in Public Safety Administration"] =
				"Bachelor of Science in Public Safety Administration";  
			bachArr["9|Bachelor of Science in Marketing"] =
				"Bachelor of Science in Marketing"; 
			bachArr["1,9|Bachelor of Science in Accounting"] =
				"Bachelor of Science in Accounting"; 
			bachArr["9|Bachelor of Science in Business Administration"] =
				"Bachelor of Science in Business Administration"; 
			bachArr["9|Bachelor of Science in Applied Management"] =
				"Bachelor of Science in Applied Management"; 
			bachArr["29|Bachelor of Science in Psychology"] =
				"Bachelor of Science in Psychology"; 	
			bachArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"; 
			bachArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"; 
			bachArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"; 
			bachArr["57|Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies"] =
				"Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies";
			bachArr["1,9,42,61|Master of Business Administration - Accounting Emphasis"] =
				"Master of Business Administration - Accounting Emphasis";
			bachArr["9,42,61|Master of Business Administration - Finance Emphasis"] =
				"Master of Business Administration - Finance Emphasis";
			bachArr["9,29|Bachelor of Science in Business Administration - Healthcare Management Emphasis"] =
				"Bachelor of Science in Business Administration - Healthcare Management Emphasis"; 
			bachArr["9|Bachelor of Science in Business Administration - Management of Information Systems"] =
				"Bachelor of Science in Business Administration - Management of Information Systems";				
			bachArr["9,29,42,61|Master of Business Administration - Healthcare System Management Emphasis"] =
				"Master of Business Administration - Healthcare System Management Emphasis";
			bachArr["9,42,61|Master of Business Administration - Leadership Emphasis"] =
				"Master of Business Administration - Leadership Emphasis";
			bachArr["9,42,61|Master of Business Administration and Master of Science in Leadership"] =
				"Master of Business Administration and Master of Science in Leadership";
			bachArr["9,42,61|Master of Business Administration - Marketing Emphasis"] =
				"Master of Business Administration - Marketing Emphasis";
			bachArr["9,42,61|Master of Business Administration - Nursing Leadership in Healthcare Systems"] =
				"Master of Business Administration - Nursing Leadership in Healthcare Systems";
			bachArr["9,61|Master of Science in Executive Fire Service Leadership"] =
				"Master of Science in Executive Fire Service Leadership";  
			bachArr["9,61|Master of Business Administration - Information Systems Management Emphasis"] =
				"Master of Business Administration - Information Systems Management Emphasis"; 
			bachArr["9,61|Master of Business Administration - Six Sigma Emphasis"] =
				"Master of Business Administration - Six Sigma Emphasis";  
			bachArr["9,61|Master of Science in Leadership"] =
				"Master of Science in Leadership";
			bachArr["9,61|Master of Science in Leadership - Disaster Preparedness and Crisis Management"] =
				"Master of Science in Leadership - Disaster Preparedness and Crisis Management";
			
			// RT#10272 commented out next two lines
			// bachArr["29,61|Master of Science in Nursing: Nursing Leadership in Healthcare Systems"] =
			//	"Master of Science in Nursing: Nursing Leadership in Healthcare Systems";

			bachArr["9,61,42|Master of Business - General Management Emphasis"] =
				"Master of Business - General Management Emphasis";
			bachArr["9,61,42|Executive MBA"] =
				"Executive MBA";	
				
			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["44|Bachelor of Science in Public Safety Administration"] =
				"Bachelor of Science in Public Safety Administration";  
			bachArr["9|Bachelor of Science in Marketing"] =
				"Bachelor of Science in Marketing"; 
			bachArr["1,9|Bachelor of Science in Accounting"] =
				"Bachelor of Science in Accounting"; 
			bachArr["9|Bachelor of Science in Business Administration"] =
				"Bachelor of Science in Business Administration"; 
			bachArr["9|Bachelor of Science in Applied Management"] =
				"Bachelor of Science in Applied Management"; 
			bachArr["29|Bachelor of Science in Psychology"] =
				"Bachelor of Science in Psychology"; 	
			bachArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"; 
			bachArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"; 
			bachArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"; 
			bachArr["57|Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies"] =
				"Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies";
			bachArr["1,9,42,61|Master of Business Administration - Accounting Emphasis"] =
				"Master of Business Administration - Accounting Emphasis";
			bachArr["9,42,61|Master of Business Administration - Finance Emphasis"] =
				"Master of Business Administration - Finance Emphasis";
			bachArr["9,29|Bachelor of Science in Business Administration - Healthcare Management Emphasis"] =
				"Bachelor of Science in Business Administration - Healthcare Management Emphasis"; 
			bachArr["9|Bachelor of Science in Business Administration - Management of Information Systems"] =
				"Bachelor of Science in Business Administration - Management of Information Systems";				
			bachArr["9,29,42,61|Master of Business Administration - Healthcare System Management Emphasis"] =
				"Master of Business Administration - Healthcare System Management Emphasis";
			bachArr["9,42,61|Master of Business Administration - Leadership Emphasis"] =
				"Master of Business Administration - Leadership Emphasis";
			bachArr["9,42,61|Master of Business Administration and Master of Science in Leadership"] =
				"Master of Business Administration and Master of Science in Leadership";
			bachArr["9,42,61|Master of Business Administration - Marketing Emphasis"] =
				"Master of Business Administration - Marketing Emphasis";
			bachArr["9,42,61|Master of Business Administration - Nursing Leadership in Healthcare Systems"] =
				"Master of Business Administration - Nursing Leadership in Healthcare Systems";
			bachArr["9,61|Master of Science in Executive Fire Service Leadership"] =
				"Master of Science in Executive Fire Service Leadership";  
			bachArr["9,61|Master of Business Administration - Information Systems Management Emphasis"] =
				"Master of Business Administration - Information Systems Management Emphasis"; 
			bachArr["9,61|Master of Business Administration - Six Sigma Emphasis"] =
				"Master of Business Administration - Six Sigma Emphasis";  
			bachArr["9,61|Master of Science in Leadership"] =
				"Master of Science in Leadership";
			bachArr["9,61|Master of Science in Leadership - Disaster Preparedness and Crisis Management"] =
				"Master of Science in Leadership - Disaster Preparedness and Crisis Management";
			
			// RT#10272 commented out next two lines
			// bachArr["29,61|Master of Science in Nursing: Nursing Leadership in Healthcare Systems"] =
			//	"Master of Science in Nursing: Nursing Leadership in Healthcare Systems";

			bachArr["9,61,42|Master of Business - General Management Emphasis"] =
				"Master of Business - General Management Emphasis";
			bachArr["9,61,42|Executive MBA"] =
				"Executive MBA";	
				
			for(var i in bachArr)
			{
				list[list.length] = new Option(bachArr[i],i);			
			}
			break;					
				
		case 'Master Degree or Higher':
			list.length = 0;
			// set up Bachelor degree array for select
			var bachArr = new Array();
			bachArr["0"] = "Select One:";
			bachArr["44|Bachelor of Science in Public Safety Administration"] =
				"Bachelor of Science in Public Safety Administration";  
			bachArr["9|Bachelor of Science in Marketing"] =
				"Bachelor of Science in Marketing"; 
			bachArr["1,9|Bachelor of Science in Accounting"] =
				"Bachelor of Science in Accounting"; 
			bachArr["9|Bachelor of Science in Business Administration"] =
				"Bachelor of Science in Business Administration"; 
			bachArr["9|Bachelor of Science in Applied Management"] =
				"Bachelor of Science in Applied Management"; 
			bachArr["29|Bachelor of Science in Psychology"] =
				"Bachelor of Science in Psychology"; 	
			bachArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"; 
			bachArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"; 
			bachArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"; 
			bachArr["57|Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies"] =
				"Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies";
			bachArr["1,9,42,61|Master of Business Administration - Accounting Emphasis"] =
				"Master of Business Administration - Accounting Emphasis";
			bachArr["9,42,61|Master of Business Administration - Finance Emphasis"] =
				"Master of Business Administration - Finance Emphasis";
			bachArr["9,29|Bachelor of Science in Business Administration - Healthcare Management Emphasis"] =
				"Bachelor of Science in Business Administration - Healthcare Management Emphasis"; 
			bachArr["9|Bachelor of Science in Business Administration - Management of Information Systems"] =
				"Bachelor of Science in Business Administration - Management of Information Systems";				
			bachArr["9,29,42,61|Master of Business Administration - Healthcare System Management Emphasis"] =
				"Master of Business Administration - Healthcare System Management Emphasis";
			bachArr["9,42,61|Master of Business Administration - Leadership Emphasis"] =
				"Master of Business Administration - Leadership Emphasis";
			bachArr["9,42,61|Master of Business Administration and Master of Science in Leadership"] =
				"Master of Business Administration and Master of Science in Leadership";
			bachArr["9,42,61|Master of Business Administration - Marketing Emphasis"] =
				"Master of Business Administration - Marketing Emphasis";
			bachArr["9,42,61|Master of Business Administration - Nursing Leadership in Healthcare Systems"] =
				"Master of Business Administration - Nursing Leadership in Healthcare Systems";
			bachArr["9,61|Master of Science in Executive Fire Service Leadership"] =
				"Master of Science in Executive Fire Service Leadership";  
			bachArr["9,61|Master of Business Administration - Information Systems Management Emphasis"] =
				"Master of Business Administration - Information Systems Management Emphasis"; 
			bachArr["9,61|Master of Business Administration - Six Sigma Emphasis"] =
				"Master of Business Administration - Six Sigma Emphasis";  
			bachArr["9,61|Master of Science in Leadership"] =
				"Master of Science in Leadership";
			bachArr["9,61|Master of Science in Leadership - Disaster Preparedness and Crisis Management"] =
				"Master of Science in Leadership - Disaster Preparedness and Crisis Management";
			
			// RT#10272 commented out next two lines
			// bachArr["29,61|Master of Science in Nursing: Nursing Leadership in Healthcare Systems"] =
			//	"Master of Science in Nursing: Nursing Leadership in Healthcare Systems";

			bachArr["9,61,42|Master of Business - General Management Emphasis"] =
				"Master of Business - General Management Emphasis";
			bachArr["9,61,42|Executive MBA"] =
				"Executive MBA";	
				
			for(var i in bachArr)
			{
				list[list.length] = new Option(bachArr[i],i);			
			}
			break;					
				
		case 'Master Degree or Higher (Non-U.S.)':
			list.length = 0;
			// set up Bachelor degree array for select
			var bachArr = new Array();
			bachArr["0"] = "Select One:";
			bachArr["44|Bachelor of Science in Public Safety Administration"] =
				"Bachelor of Science in Public Safety Administration";  
			bachArr["9|Bachelor of Science in Marketing"] =
				"Bachelor of Science in Marketing"; 
			bachArr["1,9|Bachelor of Science in Accounting"] =
				"Bachelor of Science in Accounting"; 
			bachArr["9|Bachelor of Science in Business Administration"] =
				"Bachelor of Science in Business Administration"; 
			bachArr["9|Bachelor of Science in Applied Management"] =
				"Bachelor of Science in Applied Management"; 
			bachArr["29|Bachelor of Science in Psychology"] =
				"Bachelor of Science in Psychology"; 	
			bachArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Pastoral"; 
			bachArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Worship"; 
			bachArr["57|Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"] =
				"Bachelor of Arts in Christian Studies with an emphasis in Applied Ministry: Youth"; 
			bachArr["57|Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies"] =
				"Bachelor of Arts in Christian Studies with an Emphasis in Biblical/Theological Studies";
			bachArr["1,9,42,61|Master of Business Administration - Accounting Emphasis"] =
				"Master of Business Administration - Accounting Emphasis";
			bachArr["9,42,61|Master of Business Administration - Finance Emphasis"] =
				"Master of Business Administration - Finance Emphasis";
			bachArr["9,29|Bachelor of Science in Business Administration - Healthcare Management Emphasis"] =
				"Bachelor of Science in Business Administration - Healthcare Management Emphasis"; 
			bachArr["9|Bachelor of Science in Business Administration - Management of Information Systems"] =
				"Bachelor of Science in Business Administration - Management of Information Systems";				
			bachArr["9,29,42,61|Master of Business Administration - Healthcare System Management Emphasis"] =
				"Master of Business Administration - Healthcare System Management Emphasis";
			bachArr["9,42,61|Master of Business Administration - Leadership Emphasis"] =
				"Master of Business Administration - Leadership Emphasis";
			bachArr["9,42,61|Master of Business Administration and Master of Science in Leadership"] =
				"Master of Business Administration and Master of Science in Leadership";
			bachArr["9,42,61|Master of Business Administration - Marketing Emphasis"] =
				"Master of Business Administration - Marketing Emphasis";
			bachArr["9,42,61|Master of Business Administration - Nursing Leadership in Healthcare Systems"] =
				"Master of Business Administration - Nursing Leadership in Healthcare Systems";
			bachArr["9,61|Master of Science in Executive Fire Service Leadership"] =
				"Master of Science in Executive Fire Service Leadership";  
			bachArr["9,61|Master of Business Administration - Information Systems Management Emphasis"] =
				"Master of Business Administration - Information Systems Management Emphasis"; 
			bachArr["9,61|Master of Business Administration - Six Sigma Emphasis"] =
				"Master of Business Administration - Six Sigma Emphasis";  
			bachArr["9,61|Master of Science in Leadership"] =
				"Master of Science in Leadership";
			bachArr["9,61|Master of Science in Leadership - Disaster Preparedness and Crisis Management"] =
				"Master of Science in Leadership - Disaster Preparedness and Crisis Management";
			
			// RT#10272 commented out next two lines
			// bachArr["29,61|Master of Science in Nursing: Nursing Leadership in Healthcare Systems"] =
			//	"Master of Science in Nursing: Nursing Leadership in Healthcare Systems";

			bachArr["9,61,42|Master of Business - General Management Emphasis"] =
				"Master of Business - General Management Emphasis";
			bachArr["9,61,42|Executive MBA"] =
				"Executive MBA";	
				
			for(var i in bachArr)
			{
				list[list.length] = new Option(bachArr[i],i);			
			}
			break;					

		// RT#10272 Additional level of education
		// Level of education must be BS in Nursing for programs Nursing Leadership and Nursing Education
		case 'BS in Nursing':

			list.length = 0;
			// set up Bachelor degree array for select
			var bsnArr = new Array ();

			bsnArr["0"] = "Select One:";
			
			bsnArr["29,61|Master of Science in Nursing: Nursing Leadership in Healthcare Systems"] =
				"Master of Science in Nursing: Nursing Leadership in Healthcare Systems";

			bsnArr["29,61|Master of Science in Nursing: Nursing Education"] =
				"Master of Science in Nursing: Nursing Education";
				
			for (var i in bsnArr)
			{
				list[list.length] = new Option (bsnArr[i],i);			
			}
			break;				

		// RT#10272 Additional level of education
		// Level of education must be BS in Nursing for programs Nursing Leadership and Nursing Education
		case 'BS in Nursing (Non-U.S.)':

			list.length = 0;
			// set up Bachelor degree array for select
			var bsnArr = new Array ();

			bsnArr["0"] = "Select One:";
			
			bsnArr["29,61|Master of Science in Nursing: Nursing Leadership in Healthcare Systems"] =
				"Master of Science in Nursing: Nursing Leadership in Healthcare Systems";

			bsnArr["29,61|Master of Science in Nursing: Nursing Education"] =
				"Master of Science in Nursing: Nursing Education";
				
			for (var i in bsnArr)
			{
				list[list.length] = new Option (bsnArr[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);
	}


}
