 // this function is used to fill the County list on load
function fillCounty(){ 
addOption(document.searchMls.County, "All", "All", "");
addOption(document.searchMls.County, "Barnstable", "Barnstable", "");
addOption(document.searchMls.County, "Berkshire", "Berkshire", "");
addOption(document.searchMls.County, "Bristol", "Bristol", "");
addOption(document.searchMls.County, "Dukes", "Dukes", "");
addOption(document.searchMls.County, "Essex", "Essex", "");
addOption(document.searchMls.County, "Franklin", "Franklin", "");
addOption(document.searchMls.County, "Hampden", "Hampden", "");
addOption(document.searchMls.County, "Hampshire", "Hampshire", "");
addOption(document.searchMls.County, "Middlesex", "Middlesex", "");
addOption(document.searchMls.County, "Nantucket", "Nantucket", "");
addOption(document.searchMls.County, "Norfolk", "Norfolk", "");
addOption(document.searchMls.County, "Plymouth", "Plymouth", "");
addOption(document.searchMls.County, "Suffolk", "Suffolk", "");
addOption(document.searchMls.County, "Worcester", "Worcester", "");
SelectTown();
}

function SelectTown(){
// ON selection of County this function will empty and then re-populate the towns list

removeAllOptions(document.searchMls.TownFrom);

if(document.searchMls.County.value == 'All'){
addOption(document.searchMls.TownFrom,'', '');
}

if(document.searchMls.County.value == 'Barnstable'){
addOption(document.searchMls.TownFrom,'101', 'Barnstable');
addOption(document.searchMls.TownFrom,'102', 'Bourne');
addOption(document.searchMls.TownFrom,'103', 'Brewster');
addOption(document.searchMls.TownFrom,'104', 'Chatham');
addOption(document.searchMls.TownFrom,'105', 'Dennis');
addOption(document.searchMls.TownFrom,'106', 'Eastham');
addOption(document.searchMls.TownFrom,'107', 'Falmouth');
addOption(document.searchMls.TownFrom,'108', 'Harwich');
addOption(document.searchMls.TownFrom,'111', 'Mashpee');
addOption(document.searchMls.TownFrom,'113', 'Orleans');
addOption(document.searchMls.TownFrom,'114', 'Provincetown');
addOption(document.searchMls.TownFrom,'115', 'Sandwich');
addOption(document.searchMls.TownFrom,'116', 'Truro');
addOption(document.searchMls.TownFrom,'118', 'Wellfleet');
addOption(document.searchMls.TownFrom,'119', 'Yarmouth');
}

if(document.searchMls.County.value == 'Berkshire'){
addOption(document.searchMls.TownFrom,'555', 'Adams');
addOption(document.searchMls.TownFrom,'582', 'Alford');
addOption(document.searchMls.TownFrom,'572', 'Becket');
addOption(document.searchMls.TownFrom,'559', 'Cheshire');
addOption(document.searchMls.TownFrom,'552', 'Clarksburg');
addOption(document.searchMls.TownFrom,'564', 'Dalton');
addOption(document.searchMls.TownFrom,'580', 'Egremont');
addOption(document.searchMls.TownFrom,'553', 'Florida');
addOption(document.searchMls.TownFrom,'581', 'Great Barrington');
addOption(document.searchMls.TownFrom,'557', 'Hancock');
addOption(document.searchMls.TownFrom,'563', 'Hinsdale');
addOption(document.searchMls.TownFrom,'558', 'Lanesborough');
addOption(document.searchMls.TownFrom,'570', 'Lee');
addOption(document.searchMls.TownFrom,'569', 'Lenox');
addOption(document.searchMls.TownFrom,'576', 'Monterey');
addOption(document.searchMls.TownFrom,'579', 'Mount Washington');
addOption(document.searchMls.TownFrom,'556', 'New Ashford');
addOption(document.searchMls.TownFrom,'577', 'New Marlboro');
addOption(document.searchMls.TownFrom,'554', 'North Adams');
addOption(document.searchMls.TownFrom,'574', 'Otis');
addOption(document.searchMls.TownFrom,'562', 'Peru');
addOption(document.searchMls.TownFrom,'565', 'Pittsfield');
addOption(document.searchMls.TownFrom,'566', 'Richmond');
addOption(document.searchMls.TownFrom,'575', 'Sandisfield');
addOption(document.searchMls.TownFrom,'560', 'Savoy');
addOption(document.searchMls.TownFrom,'578', 'Sheffield');
addOption(document.searchMls.TownFrom,'568', 'Stockbridge');
addOption(document.searchMls.TownFrom,'573', 'Tyringham');
addOption(document.searchMls.TownFrom,'571', 'Washington');
addOption(document.searchMls.TownFrom,'567', 'West Stockbridge');
addOption(document.searchMls.TownFrom,'551', 'Williamstown');
addOption(document.searchMls.TownFrom,'561', 'Windsor');
}

if(document.searchMls.County.value == 'Bristol'){
addOption(document.searchMls.TownFrom,'154', 'Acushnet');
addOption(document.searchMls.TownFrom,'67', 'Attleboro');
addOption(document.searchMls.TownFrom,'172', 'Berkley');
addOption(document.searchMls.TownFrom,'157', 'Dartmouth');
addOption(document.searchMls.TownFrom,'174', 'Dighton');
addOption(document.searchMls.TownFrom,'184', 'Easton');
addOption(document.searchMls.TownFrom,'155', 'Fairhaven');
addOption(document.searchMls.TownFrom,'161', 'Fall River');
addOption(document.searchMls.TownFrom,'162', 'Freetown');
addOption(document.searchMls.TownFrom,'26', 'Mansfield');
addOption(document.searchMls.TownFrom,'156', 'New Bedford');
addOption(document.searchMls.TownFrom,'68', 'North Attleboro');
addOption(document.searchMls.TownFrom,'170', 'Norton');
addOption(document.searchMls.TownFrom,'171', 'Raynham');
addOption(document.searchMls.TownFrom,'175', 'Rehoboth');
addOption(document.searchMls.TownFrom,'70', 'Seekonk');
addOption(document.searchMls.TownFrom,'163', 'Somerset');
addOption(document.searchMls.TownFrom,'164', 'Swansea');
addOption(document.searchMls.TownFrom,'173', 'Taunton');
addOption(document.searchMls.TownFrom,'160', 'Westport');
}

if(document.searchMls.County.value == 'Dukes'){
addOption(document.searchMls.TownFrom,'121', 'Aquinnah');
addOption(document.searchMls.TownFrom,'122', 'Chilmark');
addOption(document.searchMls.TownFrom,'126', 'Edgartown');
addOption(document.searchMls.TownFrom,'127', 'Gosnold');
addOption(document.searchMls.TownFrom,'125', 'Oak Bluffs');
addOption(document.searchMls.TownFrom,'124', 'Tisbury');
addOption(document.searchMls.TownFrom,'123', 'West Tisbury');
}

if(document.searchMls.County.value == 'Essex'){
addOption(document.searchMls.TownFrom,'346', 'Amesbury');
addOption(document.searchMls.TownFrom,'363', 'Andover');
addOption(document.searchMls.TownFrom,'319', 'Beverly');
addOption(document.searchMls.TownFrom,'361', 'Boxford');
addOption(document.searchMls.TownFrom,'320', 'Danvers');
addOption(document.searchMls.TownFrom,'328', 'Essex');
addOption(document.searchMls.TownFrom,'354', 'Georgetown');
addOption(document.searchMls.TownFrom,'326', 'Gloucester');
addOption(document.searchMls.TownFrom,'353', 'Groveland');
addOption(document.searchMls.TownFrom,'324', 'Hamilton');
addOption(document.searchMls.TownFrom,'352', 'Haverhill');
addOption(document.searchMls.TownFrom,'329', 'Ipswich');
addOption(document.searchMls.TownFrom,'364', 'Lawrence');
addOption(document.searchMls.TownFrom,'312', 'Lynn');
addOption(document.searchMls.TownFrom,'313', 'Lynnfield');
addOption(document.searchMls.TownFrom,'325', 'Manchester');
addOption(document.searchMls.TownFrom,'318', 'Marblehead');
addOption(document.searchMls.TownFrom,'351', 'Merrimac');
addOption(document.searchMls.TownFrom,'365', 'Methuen');
addOption(document.searchMls.TownFrom,'321', 'Middleton');
addOption(document.searchMls.TownFrom,'314', 'Nahant');
addOption(document.searchMls.TownFrom,'342', 'Newbury');
addOption(document.searchMls.TownFrom,'344', 'Newburyport');
addOption(document.searchMls.TownFrom,'362', 'North Andover');
addOption(document.searchMls.TownFrom,'315', 'Peabody');
addOption(document.searchMls.TownFrom,'327', 'Rockport');
addOption(document.searchMls.TownFrom,'341', 'Rowley');
addOption(document.searchMls.TownFrom,'316', 'Salem');
addOption(document.searchMls.TownFrom,'345', 'Salisbury');
addOption(document.searchMls.TownFrom,'311', 'Saugus');
addOption(document.searchMls.TownFrom,'317', 'Swampscott');
addOption(document.searchMls.TownFrom,'322', 'Topsfield');
addOption(document.searchMls.TownFrom,'323', 'Wenham');
addOption(document.searchMls.TownFrom,'343', 'West Newbury');
}

if(document.searchMls.County.value == 'Franklin'){
addOption(document.searchMls.TownFrom,'520', 'Ashfield');
addOption(document.searchMls.TownFrom,'509', 'Bernardston');
addOption(document.searchMls.TownFrom,'519', 'Buckland');
addOption(document.searchMls.TownFrom,'517', 'Charlemont');
addOption(document.searchMls.TownFrom,'513', 'Colrain');
addOption(document.searchMls.TownFrom,'521', 'Conway');
addOption(document.searchMls.TownFrom,'522', 'Deerfield');
addOption(document.searchMls.TownFrom,'505', 'Erving');
addOption(document.searchMls.TownFrom,'508', 'Gill');
addOption(document.searchMls.TownFrom,'511', 'Greenfield');
addOption(document.searchMls.TownFrom,'518', 'Hawley');
addOption(document.searchMls.TownFrom,'514', 'Heath');
addOption(document.searchMls.TownFrom,'501', 'Leverett');
addOption(document.searchMls.TownFrom,'510', 'Leyden');
addOption(document.searchMls.TownFrom,'516', 'Monroe');
addOption(document.searchMls.TownFrom,'523', 'Montague');
addOption(document.searchMls.TownFrom,'503', 'New Salem');
addOption(document.searchMls.TownFrom,'507', 'Northfield');
addOption(document.searchMls.TownFrom,'473', 'Orange');
addOption(document.searchMls.TownFrom,'515', 'Rowe');
addOption(document.searchMls.TownFrom,'512', 'Shelburne');
addOption(document.searchMls.TownFrom,'502', 'Shutesbury');
addOption(document.searchMls.TownFrom,'524', 'Sunderland');
addOption(document.searchMls.TownFrom,'506', 'Warwick');
addOption(document.searchMls.TownFrom,'504', 'Wendell');
addOption(document.searchMls.TownFrom,'525', 'Whately');
}

if(document.searchMls.County.value == 'Hampden'){
addOption(document.searchMls.TownFrom,'851', 'Agawam');
addOption(document.searchMls.TownFrom,'834', 'Blandford');
addOption(document.searchMls.TownFrom,'869', 'Brimfield');
addOption(document.searchMls.TownFrom,'833', 'Chester');
addOption(document.searchMls.TownFrom,'857', 'Chicopee');
addOption(document.searchMls.TownFrom,'853', 'East Longmeadow');
addOption(document.searchMls.TownFrom,'836', 'Granville');
addOption(document.searchMls.TownFrom,'854', 'Hampden');
addOption(document.searchMls.TownFrom,'871', 'Holland');
addOption(document.searchMls.TownFrom,'858', 'Holyoke');
addOption(document.searchMls.TownFrom,'852', 'Longmeadow');
addOption(document.searchMls.TownFrom,'856', 'Ludlow');
addOption(document.searchMls.TownFrom,'865', 'Monson');
addOption(document.searchMls.TownFrom,'838', 'Montgomery');
addOption(document.searchMls.TownFrom,'866', 'Palmer');
addOption(document.searchMls.TownFrom,'837', 'Russell');
addOption(document.searchMls.TownFrom,'863', 'Southwick');
addOption(document.searchMls.TownFrom,'839', 'Springfield');
addOption(document.searchMls.TownFrom,'835', 'Tolland');
addOption(document.searchMls.TownFrom,'870', 'Wales');
addOption(document.searchMls.TownFrom,'850', 'West Springfield');
addOption(document.searchMls.TownFrom,'862', 'Westfield');
addOption(document.searchMls.TownFrom,'855', 'Wilbraham');
}

if(document.searchMls.County.value == 'Hampshire'){
addOption(document.searchMls.TownFrom,'526', 'Amherst');
addOption(document.searchMls.TownFrom,'867', 'Belchertown');
addOption(document.searchMls.TownFrom,'531', 'Chesterfield');
addOption(document.searchMls.TownFrom,'532', 'Cummington');
addOption(document.searchMls.TownFrom,'539', 'Easthampton');
addOption(document.searchMls.TownFrom,'534', 'Goshen');
addOption(document.searchMls.TownFrom,'860', 'Granby');
addOption(document.searchMls.TownFrom,'527', 'Hadley');
addOption(document.searchMls.TownFrom,'529', 'Hatfield');
addOption(document.searchMls.TownFrom,'536', 'Huntington');
addOption(document.searchMls.TownFrom,'537', 'Middlefield');
addOption(document.searchMls.TownFrom,'530', 'Northampton');
addOption(document.searchMls.TownFrom,'528', 'Pelham');
addOption(document.searchMls.TownFrom,'538', 'Plainfield');
addOption(document.searchMls.TownFrom,'859', 'South Hadley');
addOption(document.searchMls.TownFrom,'861', 'Southampton');
addOption(document.searchMls.TownFrom,'868', 'Ware');
addOption(document.searchMls.TownFrom,'540', 'Westhampton');
addOption(document.searchMls.TownFrom,'535', 'Williamsburg');
addOption(document.searchMls.TownFrom,'533', 'Worthington');
}

if(document.searchMls.County.value == 'Middlesex'){
addOption(document.searchMls.TownFrom,'58', 'Acton');
addOption(document.searchMls.TownFrom,'42', 'Arlington');
addOption(document.searchMls.TownFrom,'462', 'Ashby');
addOption(document.searchMls.TownFrom,'45', 'Ashland');
addOption(document.searchMls.TownFrom,'458', 'Ayer');
addOption(document.searchMls.TownFrom,'59', 'Bedford');
addOption(document.searchMls.TownFrom,'43', 'Belmont');
addOption(document.searchMls.TownFrom,'374', 'Billerica');
addOption(document.searchMls.TownFrom,'60', 'Boxborough');
addOption(document.searchMls.TownFrom,'61', 'Burlington');
addOption(document.searchMls.TownFrom,'13', 'Cambridge');
addOption(document.searchMls.TownFrom,'375', 'Carlisle');
addOption(document.searchMls.TownFrom,'376', 'Chelmsford');
addOption(document.searchMls.TownFrom,'62', 'Concord');
addOption(document.searchMls.TownFrom,'371', 'Dracut');
addOption(document.searchMls.TownFrom,'378', 'Dunstable');
addOption(document.searchMls.TownFrom,'14', 'Everett');
addOption(document.searchMls.TownFrom,'46', 'Framingham');
addOption(document.searchMls.TownFrom,'459', 'Groton');
addOption(document.searchMls.TownFrom,'47', 'Holliston');
addOption(document.searchMls.TownFrom,'48', 'Hopkinton');
addOption(document.searchMls.TownFrom,'49', 'Hudson');
addOption(document.searchMls.TownFrom,'63', 'Lexington');
addOption(document.searchMls.TownFrom,'64', 'Lincoln');
addOption(document.searchMls.TownFrom,'380', 'Littleton');
addOption(document.searchMls.TownFrom,'372', 'Lowell');
addOption(document.searchMls.TownFrom,'15', 'Malden');
addOption(document.searchMls.TownFrom,'405', 'Marlborough');
addOption(document.searchMls.TownFrom,'65', 'Maynard');
addOption(document.searchMls.TownFrom,'16', 'Medford');
addOption(document.searchMls.TownFrom,'306', 'Melrose');
addOption(document.searchMls.TownFrom,'50', 'Natick');
addOption(document.searchMls.TownFrom,'39', 'Newton');
addOption(document.searchMls.TownFrom,'303', 'North Reading');
addOption(document.searchMls.TownFrom,'460', 'Pepperell');
addOption(document.searchMls.TownFrom,'304', 'Reading');
addOption(document.searchMls.TownFrom,'55', 'Sherborn');
addOption(document.searchMls.TownFrom,'457', 'Shirley');
addOption(document.searchMls.TownFrom,'17', 'Somerville');
addOption(document.searchMls.TownFrom,'305', 'Stoneham');
addOption(document.searchMls.TownFrom,'66', 'Stow');
addOption(document.searchMls.TownFrom,'51', 'Sudbury');
addOption(document.searchMls.TownFrom,'373', 'Tewksbury');
addOption(document.searchMls.TownFrom,'461', 'Townsend');
addOption(document.searchMls.TownFrom,'377', 'Tyngsborough');
addOption(document.searchMls.TownFrom,'307', 'Wakefield');
addOption(document.searchMls.TownFrom,'40', 'Waltham');
addOption(document.searchMls.TownFrom,'41', 'Watertown');
addOption(document.searchMls.TownFrom,'52', 'Wayland');
addOption(document.searchMls.TownFrom,'379', 'Westford');
addOption(document.searchMls.TownFrom,'57', 'Weston');
addOption(document.searchMls.TownFrom,'302', 'Wilmington');
addOption(document.searchMls.TownFrom,'44', 'Winchester');
addOption(document.searchMls.TownFrom,'301', 'Woburn');
}

if(document.searchMls.County.value == 'Nantucket'){
addOption(document.searchMls.TownFrom,'112', 'Nantucket');
}

if(document.searchMls.County.value == 'Norfolk'){
addOption(document.searchMls.TownFrom,'191', 'Avon');
addOption(document.searchMls.TownFrom,'33', 'Bellingham');
addOption(document.searchMls.TownFrom,'194', 'Braintree');
addOption(document.searchMls.TownFrom,'12', 'Brookline');
addOption(document.searchMls.TownFrom,'23', 'Canton');
addOption(document.searchMls.TownFrom,'201', 'Cohasset');
addOption(document.searchMls.TownFrom,'24', 'Dedham');
addOption(document.searchMls.TownFrom,'53', 'Dover');
addOption(document.searchMls.TownFrom,'25', 'Foxboro');
addOption(document.searchMls.TownFrom,'34', 'Franklin');
addOption(document.searchMls.TownFrom,'189', 'Holbrook');
addOption(document.searchMls.TownFrom,'27', 'Medfield');
addOption(document.searchMls.TownFrom,'35', 'Medway');
addOption(document.searchMls.TownFrom,'36', 'Millis');
addOption(document.searchMls.TownFrom,'28', 'Milton');
addOption(document.searchMls.TownFrom,'54', 'Needham');
addOption(document.searchMls.TownFrom,'37', 'Norfolk');
addOption(document.searchMls.TownFrom,'29', 'Norwood');
addOption(document.searchMls.TownFrom,'69', 'Plainville');
addOption(document.searchMls.TownFrom,'195', 'Quincy');
addOption(document.searchMls.TownFrom,'190', 'Randolph');
addOption(document.searchMls.TownFrom,'30', 'Sharon');
addOption(document.searchMls.TownFrom,'192', 'Stoughton');
addOption(document.searchMls.TownFrom,'31', 'Walpole');
addOption(document.searchMls.TownFrom,'56', 'Wellesley');
addOption(document.searchMls.TownFrom,'32', 'Westwood');
addOption(document.searchMls.TownFrom,'193', 'Weymouth');
addOption(document.searchMls.TownFrom,'38', 'Wrentham');
}


if(document.searchMls.County.value == 'Plymouth'){
addOption(document.searchMls.TownFrom,'188', 'Abington');
addOption(document.searchMls.TownFrom,'181', 'Bridgewater');
addOption(document.searchMls.TownFrom,'185', 'Brockton');
addOption(document.searchMls.TownFrom,'212', 'Carver');
addOption(document.searchMls.TownFrom,'209', 'Duxbury');
addOption(document.searchMls.TownFrom,'182', 'East Bridgewater');
addOption(document.searchMls.TownFrom,'206', 'Halifax');
addOption(document.searchMls.TownFrom,'204', 'Hanover');
addOption(document.searchMls.TownFrom,'205', 'Hanson');
addOption(document.searchMls.TownFrom,'200', 'Hingham');
addOption(document.searchMls.TownFrom,'196', 'Hull');
addOption(document.searchMls.TownFrom,'210', 'Kingston');
addOption(document.searchMls.TownFrom,'153', 'Lakeville');
addOption(document.searchMls.TownFrom,'150', 'Marion');
addOption(document.searchMls.TownFrom,'208', 'Marshfield');
addOption(document.searchMls.TownFrom,'151', 'Mattapoisett');
addOption(document.searchMls.TownFrom,'180', 'Middleboro');
addOption(document.searchMls.TownFrom,'203', 'Norwell');
addOption(document.searchMls.TownFrom,'207', 'Pembroke');
addOption(document.searchMls.TownFrom,'213', 'Plymouth');
addOption(document.searchMls.TownFrom,'211', 'Plympton');
addOption(document.searchMls.TownFrom,'152', 'Rochester');
addOption(document.searchMls.TownFrom,'187', 'Rockland');
addOption(document.searchMls.TownFrom,'202', 'Scituate');
addOption(document.searchMls.TownFrom,'117', 'Wareham');
addOption(document.searchMls.TownFrom,'183', 'West Bridgewater');
addOption(document.searchMls.TownFrom,'186', 'Whitman');
}

if(document.searchMls.County.value == 'Suffolk'){
addOption(document.searchMls.TownFrom,'1', 'Boston');
addOption(document.searchMls.TownFrom,'22', 'Chelsea');
addOption(document.searchMls.TownFrom,'20', 'Revere');
addOption(document.searchMls.TownFrom,'21', 'Winthrop');
}

if(document.searchMls.County.value == 'Worcester'){
addOption(document.searchMls.TownFrom,'463', 'Ashburnham');
addOption(document.searchMls.TownFrom,'472', 'Athol');
addOption(document.searchMls.TownFrom,'445', 'Auburn');
addOption(document.searchMls.TownFrom,'415', 'Barre');
addOption(document.searchMls.TownFrom,'402', 'Berlin');
addOption(document.searchMls.TownFrom,'438', 'Blackstone');
addOption(document.searchMls.TownFrom,'451', 'Bolton');
addOption(document.searchMls.TownFrom,'403', 'Boylston');
addOption(document.searchMls.TownFrom,'425', 'Brookfield');
addOption(document.searchMls.TownFrom,'430', 'Charlton');
addOption(document.searchMls.TownFrom,'404', 'Clinton');
addOption(document.searchMls.TownFrom,'479', 'Devens');
addOption(document.searchMls.TownFrom,'433', 'Douglas');
addOption(document.searchMls.TownFrom,'429', 'Dudley');
addOption(document.searchMls.TownFrom,'422', 'East Brookfield');
addOption(document.searchMls.TownFrom,'455', 'Fitchburg');
addOption(document.searchMls.TownFrom,'465', 'Gardner');
addOption(document.searchMls.TownFrom,'443', 'Grafton');
addOption(document.searchMls.TownFrom,'416', 'Hardwick');
addOption(document.searchMls.TownFrom,'452', 'Harvard');
addOption(document.searchMls.TownFrom,'413', 'Holden');
addOption(document.searchMls.TownFrom,'440', 'Hopedale');
addOption(document.searchMls.TownFrom,'469', 'Hubbardston');
addOption(document.searchMls.TownFrom,'453', 'Lancaster');
addOption(document.searchMls.TownFrom,'420', 'Leicester');
addOption(document.searchMls.TownFrom,'454', 'Leominster');
addOption(document.searchMls.TownFrom,'456', 'Lunenburg');
addOption(document.searchMls.TownFrom,'439', 'Mendon');
addOption(document.searchMls.TownFrom,'441', 'Milford');
addOption(document.searchMls.TownFrom,'444', 'Millbury');
addOption(document.searchMls.TownFrom,'437', 'Millville');
addOption(document.searchMls.TownFrom,'417', 'New Braintree');
addOption(document.searchMls.TownFrom,'423', 'North Brookfield');
addOption(document.searchMls.TownFrom,'406', 'Northborough');
addOption(document.searchMls.TownFrom,'435', 'Northbridge');
addOption(document.searchMls.TownFrom,'418', 'Oakham');
addOption(document.searchMls.TownFrom,'431', 'Oxford');
addOption(document.searchMls.TownFrom,'419', 'Paxton');
addOption(document.searchMls.TownFrom,'471', 'Petersham');
addOption(document.searchMls.TownFrom,'470', 'Phillipston');
addOption(document.searchMls.TownFrom,'412', 'Princeton');
addOption(document.searchMls.TownFrom,'467', 'Royalston');
addOption(document.searchMls.TownFrom,'414', 'Rutland');
addOption(document.searchMls.TownFrom,'409', 'Shrewsbury');
addOption(document.searchMls.TownFrom,'407', 'Southborough');
addOption(document.searchMls.TownFrom,'428', 'Southbridge');
addOption(document.searchMls.TownFrom,'421', 'Spencer');
addOption(document.searchMls.TownFrom,'411', 'Sterling');
addOption(document.searchMls.TownFrom,'427', 'Sturbridge');
addOption(document.searchMls.TownFrom,'434', 'Sutton');
addOption(document.searchMls.TownFrom,'468', 'Templeton');
addOption(document.searchMls.TownFrom,'442', 'Upton');
addOption(document.searchMls.TownFrom,'436', 'Uxbridge');
addOption(document.searchMls.TownFrom,'426', 'Warren');
addOption(document.searchMls.TownFrom,'432', 'Webster');
addOption(document.searchMls.TownFrom,'410', 'West Boylston');
addOption(document.searchMls.TownFrom,'424', 'West Brookfield');
addOption(document.searchMls.TownFrom,'408', 'Westborough');
addOption(document.searchMls.TownFrom,'464', 'Westminster');
addOption(document.searchMls.TownFrom,'466', 'Winchendon');
addOption(document.searchMls.TownFrom,'401', 'Worcester');
}

}

function removeAllOptions(selectbox)
{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
	{
		selectbox.remove(i);
	}
}


function addOption(selectbox, value, text )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;

	selectbox.options.add(optn);
}

