// JavaScript Document
<script langauge="Javascript">
function checkState(){
		var selectedState = stateList[document.main.selectState.selectedIndex]
		//


		if (selectedState == "HI") {
			var loc = "https://apps.aigdirect.com/privacy/privacy_affirmation.jsp?secID=auto&pvTarget=http://www.aighawaii.com/Quotations/autoqte.htm"
			var contact = window.open(loc,"aig","menubar=0,width=705,height=425,resizable=0,status=0,scrollbars=1,toolbar=1,location=0,screenX=300,screenY=100")
			return false
		}
		if (selectedState == "CA") {
			alert('Unfortunately, we are unable to offer you an on-line automobile quote. Please call our toll-free number if you would like to receive a quote. Thank you.'); 
			return false
		}
			if (selectedState == "MN") {
			alert('Unfortunately, our program is currently unavailable through the Internet in the state of ' +  selectedState);
			return false
		} 
 

		// 	Process ALL OTHER STATES
		 else if (document.main.selectState.selectedIndex != 0) {
			if(exStates.indexOf(selectedState) != -1){
				alert('Unfortunately, our program is currently unavailable through the Internet in the state of ' +  selectedState);
				return false
			} else {

					var loc = "https://apps.aigdirect.com/privacy/privacy_affirmation.jsp?secID=auto&pvTarget=https://apps.aigdirect.com/aigdws/_callwebservice.jsp?ws_id=PAS&ws_profile=AIGD000&aid=BAAADBNAAA&state=" + selectedState
					document.location.href = loc;
					return false;

			}
		} else {
			alert("Please Select a State to Continue")
			return false   
		}  
		return true
		}


	function checkState1()
	{
		var selectedState = document.statelist.state.options[document.statelist.state.selectedIndex].value;
		if (selectedState ==0 ) {
			alert("Please Select a State to Continue") ;
  			return;
		} else {
			document.statelist.submit();	
		}
	//return false;
	}
</script>