var twp = new Array(); var twpIndex = new Array(); twp[1] = new Array("All of Erie County ","Akron","Alden","Amherst","Angola","Aurora","Blasdell","Boston","Brant","Buffalo","Buffalo - Central","Buffalo - North","Buffalo - Riverside","Buffalo - South","Buffalo - West","Cheektowaga","Clarence","Colden","Collins","Concord","Depew","Eden","Elma","Evans","Farnham","Grand Island","Hamburg","Holland","Kenmore","Lackawanna","Lancaster","Lawtons","Marilla","North Collins","Orchard Park","Sardinia","Sloan","Snyder","Springville","Tonawanda","Wales","West Falls","West Seneca","Williamsville"); twpIndex[1] = new Array("0","342","389","137","61","183","77","269","341","112","343","278","736","404","122","149","229","174","240","119","399","91","201","290","447","239","124","270","262","350","222","306","170","225","219","400","147","887","321","218","346","255","232","208"); twp[2] = new Array("All of Niagara County ","Barker","Cambria","Gasport","Hartland","Lewiston","Lockport City","Lockport Twp","Middleport","Newfane","Niagara","Niagara Falls","North Tonawanda","Pendleton","Porter","Royalton","Somerset","Wheatfield","Wilson","Youngstown"); twpIndex[2] = new Array("0","169","480","415","303","379","276","355","423","207","340","115","128","319","157","204","300","188","213","189"); twp[7] = new Array("All of Orleans County ","Albion","Barre","Carlton","Gaines","Lyndonville","Medina","Ridgeway","Shelby","Yates"); twpIndex[7] = new Array("0","139","235","158","163","295","109","256","263","251"); twp[4] = new Array("All of Cattaraugus County ","Allegany","Ashford","Cattaraugus","Cold Spring","Conewango","Dayton","Delevan","East Otto","East Randolph","Ellicottville","Farmersville","Franklinville","Freedom","Genesee","Gowanda","Great Valley","Hinsdale","Humphrey","Ischua","Leon","Little Valley","Lyndon","Machias","Mansfield","Napoli","New Albion","Olean","Other","Otto","Perrysburg","Persia","Portville","Randolph","Salamanca","South Dayton","West Valley","Yorkshire"); twpIndex[4] = new Array("0","861","205","106","194","847","131","439","266","327","121","211","117","314","160","35","334","747","492","144","136","140","177","148","388","37","241","130","307","407","23","392","376","155","305","380","840","118"); twp[22] = new Array("All of Other County ",""); twpIndex[22] = new Array("0",""); twp[6] = new Array("All of Genesee County ","Alabama","Alexander","Batavia","Bergen","Bethany","Byron","Corfu","Darien","Elba","Le Roy","Oakfield","Pavilion","Pembroke","South Byron","Stafford"); twpIndex[6] = new Array("0","304","210","107","842","479","485","253","502","199","282","152","486","195","949","332"); twp[8] = new Array("All of Wyoming County ","Arcade","Attica","Bennington","Castille","Covington","Eagle","Gainesville","Genesee Falls","Java","Middlebury","Mount Morris","Nunda","Orangeville","Perry","Pike","Portageville","Sheldon","Silver Springs","Strykersville","Warsaw","Wethersfield","Wyoming"); twpIndex[8] = new Array("0","261","311","234","274","279","403","57","724","216","244","494","325","371","315","190","419","180","382","925","228","329","337"); twp[3] = new Array("All of Allegany County ","Alfred","Allen","Alma","Andover","Angelica","Belfast","Birdsall","Bolivar","Burns","Caneadea","Centerville","Clarksville","Cuba","Fillmore","Friendship","Granger","Grove","Hume","Hunt","Independence","New Hudson","Rushford","Scio","Wellsville","West Almond","Wirt"); twpIndex[3] = new Array("0","471","387","476","468","369","344","504","386","242","272","246","713","331","904","308","467","462","267","835","477","368","258","466","366","322","406"); twp[5] = new Array("All of Chautauqua County ","Arkwright","Carroll","Charlotte","Cherry Creek","Dewittville","Dunkirk","Forestville","Fredonia","Gerry","Hanover","Jamestown","Kiantone","Pomfret","Portland","Sheridan","Silver Creek"); twpIndex[5] = new Array("0","179","763","850","912","820","358","488","391","464","432","453","226","505","435","359","133"); function changeTwp() { var county = document.forms[0].county.selectedIndex; if (county == -1) return; document.forms[0].elements["township[]"].options.length = 0; county=document.forms[0].county.options[county].value; var max = twp[county].length; for (i=0;i