var twp = new Array(); var twpIndex = new Array(); twp['Jefferson'] = new Array("All of Jefferson County ","Adams","Adams-Village","Alexandria","Alexandria-Village","Antwerp","Antwerp-Village","Black River-Village","Brownville","Brownville-Village","Cape Vincent","Cape Vincent-Village","Carthage-Village","Champion","Chaumont-Village","Clayton","Clayton-Villages","Deferiet-Village","Dexter-Village","Ellisburg","Ellisburg-Villages","Evans Mills-Village","Glen Park-Village","Henderson","Herrings-Village","Hounsfield","Le Ray","Lorraine","Lyme","Mannsville-Village","Orleans","Pamelia","Philadelphia","Philadelphia-Village","Rodman","Rutland","Sackets Harbor-Village","Theresa","Theresa-Village","Watertown","Watertown-City","Watertown-Town","West Carthage-Village","Wilna","Worth"); twp['Chenango'] = new Array("All of Chenango County ","Afton","Bainbridge","Bainbridge-Village","Earlville-Village","Mc Donough","New Berlin","New Berlin-Village","Norwich","Norwich-City","Otselic","Oxford","Oxford-Village","Pharsalia","Pitcher","Plymouth","Sherburne","Sherburne-Village"); twp['Genesee'] = new Array("All of Genesee County ","Alabama","Alexander","Alexander-Village","Batavia","Batavia-City","Batavia-Town","Bergen","Bergen-Village","Bethany","Byron","Corfu-Village","Darien","Elba","Elba-Village","Le Roy","Le Roy-Village","LeRoy","LeRoy-Village","Oakfield","Oakfield-Village","Pavilion","Pembroke","Stafford"); twp['Albany'] = new Array("All of Albany County ","Albany"); 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['Oswego'] = new Array("All of Oswego County ","Albion","Altmar-Village","Amboy","BERNHARDS BAY","Boylston","Central Square-Village","Cleveland-Village","Constantia","Fulton","Granby","Hannibal","Hannibal-Village","Hastings","Lacona-Village","Mexico","Mexico-Village","Minetto","NULL","New Haven","Orwell","Oswego-City","Oswego-Town","Palermo","Parish","Parish-Village","Phoenix-Village","Pulaski-Village","Redfield","Richland","Sandy Creek","Sandy Creek-Village","Schroeppel","Scriba","Volney","West Monroe","Williamstown"); 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, Cold Springs","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, Loveoy","Buffalo, Masten","Buffalo, Near Westside","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","Farnham-Village","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['Allegany'] = new Array("All of Allegany County ","Alfred","Allen","Alma","Almond","Amity","Andover","Andover-Village","Angelica","Angelica-Village","Belfast","Belmont-Village","Birdsall","Bolivar","Bolivar-Village","Burns","Canaseraga-Village","Caneadea","Centerville","Clarksville","Cuba","Cuba-Village","Friendship","Friendship-Village","Genesee","Granger","Grove","Hume","Independence","New Hudson","Richburg-Village","Rushford","Scio","Ward","Wellsville","Wellsville-Village","West Almond","Willing","Wirt"); twp['Cattaraugus'] = new Array("All of Cattaraugus County ","Allegany","Allegany-Village","Ashford","Carrollton","Cattaraugus-Village","Cold Spring","Conewango","Dayton","Delevan-Village","East Otto","East Randolph-Village","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","Perrysburg-Village","Persia","Portville","Portville-Village","Randolph","Randolph-Village","Salamanca-City","Salamanca-Town","South Dayton-Village","South Valley","Yorkshire"); twp['Franklin'] = new Array("All of Franklin County ","Altamont","Bellmont","Brushton-Village","Dickinson","Moira","Tupper Lake-Village","Waverly"); twp['Oneida'] = new Array("All of Oneida County ","Annsville","Augusta","Ava","Barneveld-Village","Boonville","Boonville-Village","Bridgewater","Camden","Camden-Village","Clinton-Village","Deerfield","Florence","Floyd","Forestport","Holland Patent-Village","Kirkland","Lee","Marcy","Marshall","New Hartford","New Hartford-Village","New York Mills-Village","Oneida Castle-Village","Oriskany Falls-Village","Oriskany-Village","Paris","Prospect-Village","Remsen","Rome","Rome-Inside","Rome-Outside","Sangerfield","Sherrill","Sherrill-Village","Steuben","Sylvan Beach-Village","Trenton","Utica","Vernon","Vernon-Village","Verona","Vienna","Western","Westmoreland","Whitesboro-Village","Whitestown","westmoreland"); twp['Wyoming'] = new Array("All of Wyoming County ","Arcade","Arcade-Village","Attica","Attica-Village","Bennington","Castile","Castile-Village","Covington","Eagle","Gainesville","Gainesville-Village","Genesee Falls","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","Butler","Clyde-Village","Galen","Huron","Lyons","Lyons-Village","Macedon","Macedon-Village","Marion","Newark-Village","Ontario","Palmyra","Palmyra-Village","Red Creek-Village","Rose","Savannah","Sodus","Sodus Point-Village","Sodus-Village","Walworth","Williamson","Wolcott","Wolcott-Village"); twp['Cayuga'] = new Array("All of Cayuga County ","Auburn","Aurelius","Aurora-Village","Brutus","Cato","Cato-Village","Cayuga-Village","Conquest","Fleming","Genoa","Ira","Ledyard","Locke","Mentz","Meridian-Village","Montezuma","Moravia","Moravia-Village","NULL","Niles","Owasco","Port Byron-Village","Scipio","Sempronius","Sennett","Springport","Sterling","Summerhill","Throop","Union Springs-Village","Venice","Victory","Weedsport-Village"); twp['Steuben'] = new Array("All of Steuben County ","Arkport-Village","Avoca","Bath","Bath-Village","Bradford","Campbell","Canisteo","Canisteo-Village","Caton","Cohocton","Cohocton-Village","Corning-City","Dansville","Erwin","Fremont","Hammondsport-Village","Hartsville","Hornell","Hornellsville","Howard","Jasper","North Hornell-Village","Painted Post-Village","Prattsburg","Pulteney","Rathbone","Thurston","Urbana","Wayland","Wayland-Village","Wayne","West Union","Wheeler","Woodhull"); twp['Livingston'] = new Array("All of Livingston County ","Avon","Avon-Village","Caledonia","Caledonia-Village","Conesus","Dansville Village","Dansville-Village","Geneseo","Geneseo-Village","Groveland","Leicester","Leicester-Village","Lima","Lima-Village","Livonia","Livonia-Village","Mount Morris","Mount Morris-Village","North Dansville","Nunda","Nunda-Village","Ossian","Portage","Sparta","Springwater","West Sparta","York"); twp['Yates'] = new Array("All of Yates County ","Barrington","Benton","Dresden-Village","Dundee-Village","Italy","Jerusalem","Middlesex","Milo","Penn Yan-Village","Potter","Rushville-Village","Starkey","Torrey"); twp['Tioga'] = new Array("All of Tioga County ","Berkshire","Candor","Owego"); twp['Chemung'] = new Array("All of Chemung County ","Big Flats"); twp['Broome'] = new Array("All of Broome County ","Binghamton-City","Kirkwood","Lisle","Triangle","Vestal","Whitney Point-Village"); twp['Monroe'] = new Array("All of Monroe County ","Brighton","Brockport-Village","Chili","Churchville-Village","Clarkson","East Rochester","East Rochester-Village","Fairport-Village","Gates","Greece","Hamlin","Henrietta","Hilton-Village","Honeoye Falls-Village","Irondequoit","Mendon","Ogden","Parma","Penfield","Perinton","Pittsford","Pittsford-Village","Riga","Rochester","Rochester, 14621","Rochester, 19th Ward","Rochester, Atlantic-University","Rochester, B.E.S.T.","Rochester, Beechwood","Rochester, Brown Square","Rochester, Browncroft","Rochester, Central Business District","Rochester, Charlotte","Rochester, Cobbs Hill","Rochester, Corn Hill","Rochester, Culver-Winton","Rochester, East Avenue","Rochester, Edgerton","Rochester, Ellwanger-Barry","Rochester, Genesee-Jefferson","Rochester, Highland","Rochester, Homestead Heights","Rochester, JOSANA","Rochester, Lyell-Otis","Rochester, Maplewood","Rochester, MarketView","Rochester, MarketView Heights","Rochester, Mayors Heights","Rochester, Northland-Lyceum","Rochester, Park Avenue","Rochester, Pearl-Meigs-Monroe","Rochester, People of Dutchtown","Rochester, Plymouth-Exchange","Rochester, South Wedge","Rochester, Strong","Rochester, Susan B. Anthony","Rochester, Swillburg","Rochester, U.N.I.T.","Rochester, Upper Falls","Rochester, Upper Monroe","Rush","Scottsville-Village","Spencerport-Village","Sweden","Webster","Webster Village","Webster-Village","Wheatland"); twp['Ontario'] = new Array("All of Ontario County ","Bloomfield-Village","Bristol","Canadice","Canandaigua","Canandaigua-City","Canandaigua-Town","Clifton Springs-Village","East Bloomfield","East Bloomfield-Village","Farmington","Geneva","Geneva-City","Geneva-Town","Gorham","Hopewell","Manchester","Manchester-Village","Naples","Naples-Village","Phelps","Phelps-Village","Richmond","Rushville-Village","Seneca","Shortsville-Village","South Bristol","Victor","Victor-Village","West Bloomfield"); twp['Madison'] = new Array("All of Madison County ","Brookfield","Canastota-Village","Cazenovia","Cazenovia-Village","Chittenango-Village","De Ruyter","De Ruyter-Village","Earlville-Village","Eaton","Fenner","Georgetown","Hamilton","Hamilton-Village","Lebanon","Lenox","Lincoln","Madison","Madison-Village","Morrisville-Village","Munnsville-Village","Nelson","ONEIDA","Oneida","Oneida-Inside","Oneida-Outside","Smithfield","Stockbridge","Sullivan","Wampsville-Village"); twp['Otsego'] = new Array("All of Otsego County ","Burlington","Cherry Valley","Pittsfield","Plainfield","Roseboom","Springfield","Unadilla","Unadilla- Village"); twp['Chautauqua'] = new Array("All of Chautauqua County ","Bemus Point-Village","Busti","Cassadaga-Village","Charlotte","Chautauqua","Cherry Creek","Clymer","Dunkirk-City","Dunkirk-Town","Ellery","Ellicott","Ellington","Fredonia-Village","French Creek","Gerry","Hanover","Harmony","Jamestown","Kiantone","Lakewood-Village","Mayville-Village","North Harmony","Poland","Pomfret","Portland","Ripley","Sheridan","Sherman","Silver Creek-Village","Sinclairville-Village","Stockton","Villenova","Westfield","Westfield-Village"); twp['Niagara'] = new Array("All of Niagara County ","Barker-Village","Cambria","Hartland","Lewiston","Lewiston-Village","Lockport","Lockport-City","Lockport-Town","Middleport-Village","Newfane","Niagara","Niagara Falls","North Tonawanda","Pendleton","Porter","Royalton","Somerset","Wheatfield","Wilson","Wilson-Village","Youngstown-Village"); twp['Onondaga'] = new Array("All of Onondaga County ","Baldwinsville-Village","Camillus","Camillus-Village","Cicero","Clay","Dewitt","East Syracuse-Village","Elbridge","Elbridge-Village","Fabius","Fabius-Village","Fayetteville-Village","Geddes","Jordan-Village","Lafayette","Liverpool-Village","Lysander","Manlius","Manlius-Village","Marcellus","Marcellus-Village","Mayville-Village","Minoa-Village","NULL","North Syracuse-Village","Onondaga","Otisco","Pompey","Salina","Skaneateles","Skaneateles-Village","Solvay-Village","Spafford","Syracuse","Syracuse, Brighton","Syracuse, Downtown","Syracuse, Eastwood","Syracuse, Elmwood","Syracuse, Far Westside","Syracuse, Lincoln Park","Syracuse, Meadowbrook","Syracuse, Near Eastside","Syracuse, Near Northeast","Syracuse, Near Westside","Syracuse, North Valley","Syracuse, Northside","Syracuse, Outer Comstock","Syracuse, Salt Springs","Syracuse, Sedgewick","Syracuse, Sedgwick","Syracuse, Skunk City","Syracuse, South Valley","Syracuse, Southwest","Syracuse, Strathmore","Syracuse, University Hill","Syracuse, University Neighborhood","Syracuse, Washington Square","Syracuse, West Side","Syracuse, Westcott","Syracuse, Westside","Tully","Tully-Village","Van Buren"); twp['Saint Lawrence'] = new Array("All of Saint Lawrence County ","Canton","De Peyster","Dekalb","Edwards","Fine","Fowler","Gouverneur","Gouverneur-Village","Hammond","Hermon","Hopkinton","Lisbon","Macomb","Massena","Massena-Village","Morristown","Morristown-Village","Ogdensburg","Oswegatchie","Pierrepont","Pitcairn","Rossie"); twp['St Lawrence'] = new Array("All of St Lawrence County ","Canton","De Peyster","Dekalb","Edwards","Fine","Fowler","Gouverneur","Gouverneur-Village","Hammond","Hermon","Hermon-Village","Macomb","Massena","Morristown","Morristown-Village","Norfolk","Ogdensburg","Oswegatchie","Pitcairn","Rossie","Russell"); twp['Tompkins'] = new Array("All of Tompkins County ","Caroline","Dryden","Dryden-Village","Enfield","Freeville-Village","Groton","Groton -Village","Groton-Village","Ithaca-Town","Lansing","Newfield","Ulysses"); twp['Schuyler'] = new Array("All of Schuyler County ","Burdett-Village","Catharine","Dix","Hector","Montour","Montour Falls-Village","Orange","Reading","Tyrone","Watkins Glen-Village"); twp['Cortland'] = new Array("All of Cortland County ","Cincinnatus","Cortland","Cortlandville","Cuyler","Harford","Homer","Homer-Village","Lapeer","Marathon","Marathon-Village","Mc Graw-Village","NULL","Preble","Scott","Solon","Taylor","Truxton","Virgil"); twp['Herkimer'] = new Array("All of Herkimer County ","Cold Brook-Village","Columbia","Frankfort","Frankfort-Village","German Flatts","Herkimer","Herkimer-Village","Ilion-Village","Litchfield","Little Falls-City","Little Falls-Town","Mohawk-Village","Newport","Ohio","Poland-Village","Russia","Schuyler","Webb","West Winfield-Village","Winfield"); twp['Seneca'] = new Array("All of Seneca County ","Covert","Fayette","Interlaken-Village","Junius","Lodi","Lodi-Village","Ovid","Ovid-Village","Romulus","Seneca Falls","Seneca Falls-Village","Tyre","Varick","Waterloo","Waterloo-Village"); twp['Lewis'] = new Array("All of Lewis County ","Castorland-Village","Constableville-Village","Copenhagen-Village","Croghan","Croghan-Village","Denmark","Diana","Greig","Harrisburg","Harrisville-Village","Lewis","Leyden","Lowville","Lowville-Village","Lyons Falls-Village","Lyonsdale","Martinsburg","Montague","New Bremen","Osceola","Pinckney","Port Leyden-Village","Turin","Turin-Village","Watson","West Turin"); twp['Delaware'] = new Array("All of Delaware County ","Deposit","Deposit-Village"); twp['Fulton'] = new Array("All of Fulton County ","Johnstown","Stratford"); twp['Hamilton'] = new Array("All of Hamilton County ","Lake Pleasant","Long Lake"); twp['New York City (All 5 Boroughs)'] = new Array("All of New York City (All 5 Boroughs) County ","Marcy"); twp['Saratoga'] = new Array("All of Saratoga County ","Milton"); twp['Montgomery'] = new Array("All of Montgomery County ","Fort Plain-Village","Minden"); twp['Queens'] = new Array("All of Queens County ","Queens"); twp['Sullivan'] = new Array("All of Sullivan County ","Rockland"); function changeTwp() { var county = document.forms[1].county.selectedIndex; if (county == -1) return; document.forms[1].elements["township[]"].options.length = 0; county=document.forms[1].county.options[county].value; var max = twp[county].length; for (i=0;i