var twp = new Array(); var twpIndex = new Array(); twp['Jefferson'] = new Array("All of Jefferson County ","Adams","Adams-Village","Alexandria","Antwerp","Black River-Village","Brownville","Cape Vincent","Cape Vincent-Village","Champion","Clayton","Clayton-Villages","Dexter-Village","Ellisburg","Evans Mills-Village","Henderson","Hounsfield","Le Ray","Lorraine","Lyme","Orleans","Pamelia","Philadelphia","Rutland","Sackets Harbor-Village","Theresa","Theresa-Village","Watertown","Watertown-City","Watertown-Town","West Carthage-Village"); twp['Steuben'] = new Array("All of Steuben County ","Addison","Avoca","Bath","Bath-Village","Hammondsport-Village","Hornell","Hornellsville","Prattsburg","Pulteney","Urbana","Wayland","Wayne"); twp['Oswego'] = new Array("All of Oswego County ","472","Albion","BERNHARDS BAY","Boylston","Constantia","Constantia","Granby","Hannibal","Hastings","Mexico","Minetto","New Haven","Orwell","Oswego-City","Oswego-Town","Palermo","Parish","Pulaski-Village","Richland","Sandy Creek","Schroeppel","Scriba","Volney","West Monroe","Williamstown"); twp['Erie'] = new Array("All of Erie County ","Akron-Village","Alden","Amherst","Aurora","Blasdell-Village","Boston","Brant","Buffalo","Buffalo, Allentown","Buffalo, Delaware District","Buffalo, Elmwood Strip","Buffalo, North Buffalo","Clarence","Colden","Collins","Concord","East Aurora-Village","Eden","Elma","Evans","Grand Island","Hamburg","Hamburg-Village","Holland","Kenmore-Village","Lancaster","Lancaster-Village","Marilla","Newstead","North Collins","Orchard Park","Orchard Park-Village","Sardinia","Springville-Village","Tonawanda-City","Tonawanda-Town","Wales","West Seneca","Williamsville-Village"); twp['Genesee'] = new Array("All of Genesee County ","Alexander","Batavia-Town","Darien","Le Roy","Pembroke"); twp['Cattaraugus'] = new Array("All of Cattaraugus County ","Allegany","Allegany-Village","Ashford","East Otto","Ellicottville","Ellicottville-Village","Farmersville","Freedom","Great Valley","Hinsdale","Humphrey","Leon","Little Valley","Lyndon","Machias","Mansfield","New Albion","Olean-City","Olean-Town","Otto","Portville","Salamanca-City","Yorkshire"); twp['Allegany'] = new Array("All of Allegany County ","Alma","Almond","Centerville","Cuba","Cuba-Village","Friendship","Hume","Wellsville"); twp['Wyoming'] = new Array("All of Wyoming County ","Arcade","Attica","Bennington","Castile","Covington","Java","Middlebury","Perry","Warsaw","Warsaw-Village"); twp['Wayne'] = new Array("All of Wayne County ","Arcadia","Huron","Macedon","Marion","Newark-Village","Ontario","Palmyra","Sodus","Sodus Point-Village","Walworth","Williamson","Wolcott"); twp['Cayuga'] = new Array("All of Cayuga County ","Auburn","Aurelius","Aurora-Village","Brutus","Cayuga-Village","Fair Haven-Village","Fleming","Ira","Ledyard","Locke","Moravia","Niles","Owasco","Scipio","Sempronius","Sennett","Springport","Sterling","Summerhill","Throop","Victory","Weedsport-Village"); twp['Livingston'] = new Array("All of Livingston County ","Avon","Caledonia","Conesus","Geneseo","Geneseo-Village","Groveland","Livonia","Mount Morris","Nunda","Ossian","Sparta","Springwater","York"); twp['Chenango'] = new Array("All of Chenango County ","Bainbridge","Bainbridge-Village","Otselic"); twp['Yates'] = new Array("All of Yates County ","Barrington","Benton","Dresden-Village","Dundee-Village","Italy","Jerusalem","Middlesex","Milo","Penn Yan-Village","Starkey","Torrey"); twp['Chemung'] = new Array("All of Chemung County ","Big Flats"); twp['Monroe'] = new Array("All of Monroe County ","Brighton","Chili","Churchville-Village","Clarkson","Fairport-Village","Greece","Hamlin","Henrietta","Irondequoit","Mendon","Ogden","Parma","Penfield","Perinton","Pittsford","Pittsford-Village","Riga","Rochester","Rush","Scottsville-Village","Spencerport-Village","Sweden","Webster","Wheatland"); twp['Madison'] = new Array("All of Madison County ","Brookfield","Cazenovia","Cazenovia-Village","Chittenango-Village","De Ruyter","Eaton","Fenner","Hamilton","Hamilton-Village","Lebanon","Lenox","Lincoln","Madison","Nelson","Oneida","Oneida-Outside","Sullivan"); twp['Niagara'] = new Array("All of Niagara County ","Cambria","Lewiston","Lewiston-Village","Lockport-Town","Newfane","Niagara","Niagara Falls","North Tonawanda","Pendleton","Porter","Royalton","Wheatfield","Wilson","Wilson-Village","Youngstown-Village"); twp['Oneida'] = new Array("All of Oneida County ","Barneveld-Village","Camden","Clinton-Village","Deerfield","Kirkland","Lee","Marcy","New Hartford","Paris","Remsen","Rome","Rome-Outside","Sangerfield","Sherrill-Village","Sylvan Beach-Village","Trenton","Vernon","Verona","Vienna","Westmoreland","Whitestown"); twp['Onondaga'] = new Array("All of Onondaga County ","Baldwinsville-Village","Camillus","Cicero","Clay","Dewitt","East Syracuse-Village","Elbridge","Fayetteville-Village","Geddes","Lafayette","Liverpool-Village","Lysander","Manlius","Manlius-Village","Marcellus","Marcellus-Village","Minoa-Village","Onondaga","Otisco","Pompey","Salina","Skaneateles","Skaneateles-Village","Solvay-Village","Spafford","Syracuse","Tully","Tully-Village","Van Buren"); twp['Ontario'] = new Array("All of Ontario County ","Canadice","Canandaigua","Canandaigua-City","Canandaigua-Town","East Bloomfield","East Bloomfield-Village","Farmington","Geneva","Geneva-City","Geneva-Town","Gorham","Naples","Richmond","South Bristol","Victor","Victor-Village","West Bloomfield"); twp['Orleans'] = new Array("All of Orleans County ","Carlton","Clarendon","Kendall","Lyndonville-Village","Medina-Village","Murray","Ridgeway","Shelby","Yates"); twp['Chautauqua'] = new Array("All of Chautauqua County ","Chautauqua","Dunkirk-Town","Ellery","Hanover","Mina","North Harmony","Sherman","Silver Creek-Village","Westfield"); twp['Cortland'] = new Array("All of Cortland County ","Cortland","Cortlandville","Homer","Preble","Virgil"); twp['Seneca'] = new Array("All of Seneca County ","Covert","Fayette","Lodi","Ovid","Romulus","Seneca Falls","Tyre","Varick","Waterloo"); twp['Lewis'] = new Array("All of Lewis County ","Constableville-Village","Croghan","Croghan-Village","Denmark","Diana","Greig","Harrisville-Village","Lowville","Lowville-Village","Watson","West Turin"); twp['Schuyler'] = new Array("All of Schuyler County ","Dix","Hector","Reading","Tyrone","Watkins Glen-Village"); twp['Herkimer'] = new Array("All of Herkimer County ","German Flatts","Little Falls-City","Webb","West Winfield-Village","Winfield"); twp['Saint Lawrence'] = new Array("All of Saint Lawrence County ","Gouverneur","Hammond","Hermon","Morristown","Oswegatchie"); twp['Tompkins'] = new Array("All of Tompkins County ","Lansing"); twp['St Lawrence'] = new Array("All of St Lawrence County ","Ogdensburg"); twp['Otsego'] = new Array("All of Otsego County ","Oneonta-City","Unadilla","Unadilla-Village"); twp['Rensselaer'] = new Array("All of Rensselaer County ","Stephentown"); twp['Franklin'] = new Array("All of Franklin County ","Waverly"); 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