function checkInfoState()
{
	var toSubmit = false;
	var eState = document.freeinfo.a5state.value + "";
	var StatesNotApproved = "IN,OR,KY";
	
	if ( eState == "-1" )
	{
		alert("Please select a state.");
		document.freeinfo.a5state.focus();
	}
	else if ( StatesNotApproved.indexOf(eState) != -1 )
	{
		var answer = confirm("According to your form, you are in the state of '" + eState + "'.\nThis course is not approved for your state.\nClick 'OK' to submit anyway.");
		if ( answer )	//user click "OK"
		{
			toSubmit = true;
		}
		else	//user click "Cancel"
		{
			var answer2 = confirm("Allied Schools offer over 20 other career training programs.\nClick 'OK' to view a list of courses that are available in your state.");
			if ( answer2 )
			{
				window.location = "http://www.appraiserlicense.com/more_courses.asp?eState=" + eState;
			}
		}
	}
	else
	{
		toSubmit = true;
	}
	return toSubmit;
}

