// JavaScript Document
function CheckRequired(){ 
   function indexOf(array, value){
	var ctr = "";
	for (var i=0; i < array.length; i++) {
		// use === to check for Matches. ie., identical (===), ;
			if (array[i] == value) {
				
				return i;
			}
		}
		return ctr;
	};
	var centralZip=new Array("",
                            "70643",
							"70648",
							"70655", 
							"70663",
							"70732",
							"70750", 
							"70755", 
							"70756", 
							"70757", 			
							"71322", 
							"71327", 
							"71329", 
							"71333", 
							"71345", 
							"71353", 
							"71356", 
							"71358", 
							"71362",
							"71367", 
							"71463", 
							"71497");
							
	 var capitalArray=new Array("",
                                    "70812",
									"70813",
									"70814",
									"70815",
									"70816",
									"70817",
									"70818",
									"70819",
									"70820",
									"70821",
									"70825",
									"70826",
									"70827",
									"70831",
									"70835",
									"70836",
									"70837",
									"70874",
									"70879",
									"70884",
									"70892",
									"70893",
									"70894",
									"70895",
									"70896",
									"70898");
	 var gulfArray=new Array("",
                                    "70346",
									"70352",
									"70353",
									"70354",
									"70355",
									"70356",
									"70357",
									"70359",
									"70360",
									"70361",
									"70363",
									"70364",
									"70372",
									"70373",
									"70374",
									"70375",
									"70377",
									"70390",
									"70391",
									"70393",
									"70394",
									"70395",
									"70397",
									"70723",
									"70743",
									"70763",
									"70301");
		
						
	 if(indexOf(centralZip, document.form.zip.value))					
     { 		
		window.location.href = "http://www.teche.com/rates-central";
     	return false; 	
     }
	 else if(indexOf(capitalArray, document.form.zip.value))					
     { 		
		window.location.href = "http://www.teche.com/rates-capital";
     	return false; 	
     } 
	 else if(indexOf(gulfArray, document.form.zip.value))					
     { 		
	 	window.location.href = "http://www.teche.com/rates-gulf";
     	return false; 	
     } 
	 else
	 {
	 	 window.location.href = "http://www.teche.com/rates-central";
		 return false;
	 }
	 
	 return true;
	
     
} 
