var twp = new Array(); var twpIndex = new Array(); twp['Genesee'] = new Array("All of Genesee County ","Alabama","Alexander","Batavia-City","Batavia-Town","Bethany","Byron","Corfu-Village","Darien","Elba","LeRoy","LeRoy-Village","Oakfield","Oakfield-Village","Pavilion","Pembroke","Stafford"); twp['Orleans'] = new Array("All of Orleans County ","Albion","Albion-Village","Barre","Carlton","Clarendon","Gaines","Holley-Village","Kendall","Lyndonville-Village","Medina-Village","Murray","Ridgeway","Shelby","Yates"); twp['Erie'] = new Array("All of Erie County ","Akron-Village","Alden","Alden-Village","Amherst","Angola-Village","Aurora","Blasdell-Village","Boston","Brant","Buffalo","Buffalo, Allentown","Buffalo, Black Rock","Buffalo, Delaware District","Buffalo, Downtown","Buffalo, East Side","Buffalo, Elmwood Strip","Buffalo, First Ward","Buffalo, Fruit Belt","Buffalo, Hamlin Park","Buffalo, Humboldt Park","Buffalo, Kaisertown","Buffalo, Kensington","Buffalo, Kensington Heights","Buffalo, Lovejoy","Buffalo, Masten","Buffalo, North Buffalo","Buffalo, Riverside","Buffalo, Schiller Park","Buffalo, South Buffalo","Buffalo, University District","Buffalo, University Heights","Buffalo, Waterfront","Buffalo, West Side","Cheektowaga","Clarence","Colden","Collins","Concord","Depew-Village","East Aurora-Village","Eden","Elma","Evans","Gowanda-Village","Grand Island","Hamburg","Hamburg-Village","Holland","Kenmore-Village","Lackawanna","Lancaster","Lancaster-Village","Marilla","Newstead","North Collins","North Collins-Village","Orchard Park","Orchard Park-Village","Sardinia","Sloan-Village","Springville-Village","Tonawanda-City","Tonawanda-Town","Wales","West Seneca","Williamsville-Village"); twp['Cattaraugus'] = new Array("All of Cattaraugus County ","Allegany","Allegany-Village","Ashford","Carrollton","Cattaraugus-Village","Cold Spring","Dayton","Delevan-Village","East Otto","Ellicottville","Ellicottville-Village","Farmersville","Franklinville","Franklinville-Village","Freedom","Gowanda-Village","Great Valley","Hinsdale","Humphrey","Ischua","Leon","Limestone-Village","Little Valley","Little Valley-Village","Lyndon","Machias","Mansfield","Napoli","New Albion","Olean-City","Olean-Town","Otto","Perrysburg","Persia","Portville","Portville-Village","Randolph","Salamanca-City","Salamanca-Town","South Dayton-Village","South Valley","Yorkshire"); twp['Allegany'] = new Array("All of Allegany County ","Allen","Alma","Amity","Andover","Belfast","Belmont-Village","Bolivar","Bolivar-Village","Caneadea","Centerville","Clarksville","Cuba","Cuba-Village","Friendship","Genesee","Granger","Grove","Hume","New Hudson","Richburg-Village","Rushford","Scio","Ward","Wellsville","Wellsville-Village","West Almond","Willing","Wirt"); twp['Wyoming'] = new Array("All of Wyoming County ","Arcade","Arcade-Village","Attica","Attica-Village","Bennington","Castile","Castile-Village","Covington","Eagle","Gainesville","Gainesville-Village","Java","Middlebury","Orangeville","Perry","Perry-Village","Pike","Pike-Village","Sheldon","Silver Springs-Village","Warsaw","Warsaw-Village","Wethersfield","Wyoming-Village"); twp['Wayne'] = new Array("All of Wayne County ","Arcadia","Marion","Newark-Village","Williamson"); twp['Chautauqua'] = new Array("All of Chautauqua County ","Arkwright","Busti","Carroll","Cassadaga-Village","Chautauqua","Cherry Creek","Cherry Creek-Village","Dunkirk-City","Dunkirk-Town","Ellery","Ellington","Forestville-Village","Fredonia-Village","Hanover","Mina","Pomfret","Portland","Ripley","Sheridan","Silver Creek-Village","Stockton","Villenova"); twp['Livingston'] = new Array("All of Livingston County ","Avon","Geneseo","Leicester","Mount Morris","Mount Morris-Village","Nunda","Nunda-Village","Ossian","York"); twp['Otsego'] = new Array("All of Otsego County ","Burlington","Plainfield"); twp['Niagara'] = new Array("All of Niagara County ","Barker-Village","Cambria","Hartland","Lewiston","Lewiston-Village","Lockport-City","Lockport-Town","Middleport-Village","Newfane","Niagara","Niagara Falls","North Tonawanda","Pendleton","Porter","Royalton","Somerset","Wheatfield","Wilson","Wilson-Village","Youngstown-Village"); twp['Jefferson'] = new Array("All of Jefferson County ","Cape Vincent"); twp['Monroe'] = new Array("All of Monroe County ","Clarkson","Greece","Ogden","Pittsford","Rochester","Rochester, 14621","Rochester, 19th Ward","Rochester, Beechwood","Rochester, Genesee-Jefferson","Rochester, Maplewood","Sweden","Wheatland"); twp['Steuben'] = new Array("All of Steuben County ","Cohocton","Dansville","Hammondsport-Village","Lindley","Tuscarora","Urbana","Wayland","Wheeler"); twp['Broome'] = new Array("All of Broome County ","Conklin"); twp['Chemung'] = new Array("All of Chemung County ","Elmira Heights-Village","Elmira-City","Horseheads"); twp['Ontario'] = new Array("All of Ontario County ","Farmington"); twp['Onondaga'] = new Array("All of Onondaga County ","Baldwinsville-Village","Salina","Syracuse","Syracuse, Northside","Van Buren"); 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