
		function calcResult() {
		if (document.platesearch.app_state.value == "AL") {
			document.getElementById('first').innerHTML = "3,138,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "AK") {
			document.getElementById('first').innerHTML = "440,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "AZ") {
			document.getElementById('first').innerHTML = "2,727,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "AR") {
			document.getElementById('first').innerHTML = "1,752,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "CA") {
			document.getElementById('first').innerHTML = "20,249,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "CO") {
			document.getElementById('first').innerHTML = "2,757,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "CT") {
			document.getElementById('first').innerHTML = "2,344,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "DE") {
			document.getElementById('first').innerHTML = "529,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "DC") {
			document.getElementById('first').innerHTML = "333,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "FL") {
			document.getElementById('first').innerHTML = "11,400,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "GA") {
			document.getElementById('first').innerHTML = "4,966,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "HI") {
			document.getElementById('first').innerHTML = "733,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "ID") {
			document.getElementById('first').innerHTML = "820,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "IL") {
			document.getElementById('first').innerHTML = "7,610,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "IN") {
			document.getElementById('first').innerHTML = "3,704,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "IA") {
			document.getElementById('first').innerHTML = "1,956,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "KS") {
			document.getElementById('first').innerHTML = "1,788,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "KY") {
			document.getElementById('first').innerHTML = "2,567,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "LA") {
			document.getElementById('first').innerHTML = "2,624,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "ME") {
			document.getElementById('first').innerHTML = "874,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "MD") {
			document.getElementById('first').innerHTML = "3,377,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "MA") {
			document.getElementById('first').innerHTML = "4,355,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "MI") {
			document.getElementById('first').innerHTML = "6,717,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "MN") {
			document.getElementById('first').innerHTML = "2,380,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "MS") {
			document.getElementById('first').innerHTML = "1,700,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "MO") {
			document.getElementById('first').innerHTML = "3,749,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "MT") {
			document.getElementById('first').innerHTML = "574,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "NE") {
			document.getElementById('first').innerHTML = "1,160,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "NV") {
			document.getElementById('first').innerHTML = "1,117,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "NH") {
			document.getElementById('first').innerHTML = "915,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "NJ") {
			document.getElementById('first').innerHTML = "5,486,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "NM") {
			document.getElementById('first').innerHTML = "1,117,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "NY") {
			document.getElementById('first').innerHTML = "10,484,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "NC") {
			document.getElementById('first').innerHTML = "5,187,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "ND") {
			document.getElementById('first').innerHTML = "449,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "OH") {
			document.getElementById('first').innerHTML = "7,853,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "OK") {
			document.getElementById('first').innerHTML = "2,396,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "PA") {
			document.getElementById('first').innerHTML = "8,221,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "RI") {
			document.getElementById('first').innerHTML = "669,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "SC") {
			document.getElementById('first').innerHTML = "2,575,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "SD") {
			document.getElementById('first').innerHTML = "519,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "SC") {
			document.getElementById('first').innerHTML = "2,575,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "TN") {
			document.getElementById('first').innerHTML = "3,806,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "TX") {
			document.getElementById('first').innerHTML = "12,568,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "UT") {
			document.getElementById('first').innerHTML = "1,319,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "VT") {
			document.getElementById('first').innerHTML = "469,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "VA") {
			document.getElementById('first').innerHTML = "4,692,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "WA") {
			document.getElementById('first').innerHTML = "3,908,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "WV") {
			document.getElementById('first').innerHTML = "1,274,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "WI") {
			document.getElementById('first').innerHTML = "3,124,000 ("+document.platesearch.app_state.value+" records)";
document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "WY") {
			document.getElementById('first').innerHTML = "343,000 ("+document.platesearch.app_state.value+" records)";
	document.platesearch.number.disabled=false;
			}
		if (document.platesearch.app_state.value == "XX") {
		document.getElementById('first').innerHTML = "179,139,000 (Nationwide records)";
			document.platesearch.number.disabled=true;
			}
		}

	function narrowResults() {
		grandtotal = document.platesearch.resultcount.value;
		chars = document.platesearch.number.value;
		//alert(chars);
		leng = chars.length+1;
		mutl = leng/6;
		//alert(chars.length);
		total = document.platesearch.resultcount.value;
		document.platesearch.resultcount.value = Math.round(total/leng);
		if (leng==6) { document.platesearch.resultcount.value = 1; }
	}

	function checkMe() {
			
			if (document.platesearch.number.value.length < 2 || document.platesearch.app_state.value=="XX") {
					alert("Please fill in a valid state and license plate number");
					return false;
			}
	}
		
