// JavaScript Document

function getState(varItem) {
	//Store state
	var state = varItem.value;
	//Base URL
	var url = "/map/";
	
	//Go to URL
	switch (state) {
		case "AL":
			window.location.href = url + "alabama.asp";
			break;
		case "AR":
			window.location.href = url + "arkansas.asp";
			break;
        case "DE":
            window.location.href = url + "delaware.asp";
            break;
		case "FL":
			window.location.href = url + "florida.asp";
			break;
		case "GA":
			window.location.href = url + "georgia.asp";
			break;
		case "IL":
			window.location.href = url + "illinois.asp";
			break;
		case "IN":
			window.location.href = url + "indiana.asp";
			break;
		case "IA":
			window.location.href = url + "iowa.asp";
			break;
		case "KY":
			window.location.href = url + "kentucky.asp";
			break;
		case "LA":
			window.location.href = url + "louisiana.asp";
			break;
		case "MD":
			window.location.href = url + "maryland.asp";
			break;
		case "MI":
			window.location.href = url + "michigan.asp";
			break;
		case "MN":
			window.location.href = url + "minnesota.asp";
			break;
		case "MS":
			window.location.href = url + "mississippi.asp";
			break;
		case "MO":
			window.location.href = url + "missouri.asp";
			break;
		case "NC":
			window.location.href = url + "northcarolina.asp";
			break;
		case "ND":
			window.location.href = url + "northdakota.asp";
			break;
		case "OH":
			window.location.href = url + "ohio.asp";
			break;
		case "OK":
			window.location.href = url + "oklahoma.asp";
			break;
		case "PA":
			window.location.href = url + "pennsylvania.asp";
			break;
		case "SC":
			window.location.href = url + "southcarolina.asp";
			break;
		case "SD":
			window.location.href = url + "southdakota.asp";
			break;
		case "TN":
			window.location.href = url + "tennessee.asp";
			break;
		case "TX":
			window.location.href = url + "texas.asp";
			break;
		case "VA":
			window.location.href = url + "virginia.asp";
			break;
		case "WV":
			window.location.href = url + "westvirginia.asp";
			break;
		case "WI":
			window.location.href = url + "wisconsin.asp";
			break;
	}
}//end getState

