function StateSuggestions() {
    this.states = [
"Acton",
"Adams",
"Agawam",
"Allston",
"Amesbury",
"Amherst",
"Andover",
"Aquinnah",
"Arlington",
"Attleboro",
"Auburn",
"Auburndale",
"Ayer",
"Barre",
"Becket",
"Bedford",
"Bellingham",
"Bernardston",
"Beverly",
"Billerica",
"Bondsville",
"Boston",
"Bourne",
"Boxborough",
"Boylston",
"Braintree",
"Brewster",
"Brighton",
"Brimfield",
"Brockton",
"Brookline",
"Burlington",
"Buzzards Bay",
"Cambridge",
"Carlisle",
"Centerville",
"Charlemont",
"Charlestown",
"Charlton",
"Chatham",
"Chelmsford",
"Chelsea",
"Chester",
"Chestnut Hill",
"Chicopee",
"Chilmark",
"Clinton",
"Cohasset",
"Concord",
"Danvers",
"Dartmouth",
"Dedham",
"Deerfield",
"Dennis",
"Dennis Port",
"Dennisport",
"Devens",
"Dorchester",
"Dorchester Center",
"Duxbury",
"East Brookfield",
"East Dennis",
"East Falmouth",
"East Orleans",
"East Sandwich",
"East Wareham",
"Eastham",
"Edgartown",
"Essex",
"Everett",
"Fairhaven",
"Fall River",
"Falmouth",
"Fiskdale",
"Fitchburg",
"Florida",
"Forestdale",
"Foxboro",
"Framingham",
"Franklin",
"Gardner",
"Georgetown",
"Gloucester",
"Granby",
"Great Barrington",
"Greenfield",
"Groton",
"Hadley",
"Hancock",
"Hanover",
"Harwich",
"Harwich Port",
"Haverhill",
"Haydenville",
"Hingham",
"Holliston",
"Holyoke",
"Hopkinton",
"Hudson",
"Hull",
"Hyannis",
"Ipswich",
"Jamaica Plain",
"Kingston",
"Lanesboro",
"Lawrence",
"Lee",
"Lenox",
"Leominster",
"Lexington",
"Lincoln",
"Lowell",
"Ludlow",
"Lynn",
"Malden",
"Mansfield",
"Marblehead",
"Marion",
"Marlborough",
"Marshfield",
"Mashpee",
"Mattapan",
"Medford",
"Merrimac",
"Methuen",
"Middleboro",
"Middleton",
"Milford",
"Millers Falls",
"Nahant",
"Nantucket",
"Natick",
"Needham",
"Needham Heights",
"New Ashford",
"New Bedford",
"New Braintree",
"New Salem",
"Newbury",
"Newburyport",
"Newton",
"North Adams",
"North Andover",
"North Attleboro",
"North Chelmsford",
"North Dartmouth",
"North Eastham",
"North Easton",
"North Egremont",
"North Falmouth",
"North Truro",
"Northampton",
"Northborough",
"Northfield",
"Norton",
"Norwell",
"Norwood",
"Oak Bluffs",
"Onset",
"Orange",
"Orleans",
"Palmer",
"Peabody",
"Phillipston",
"Pittsfield",
"Plainfield",
"Plainville",
"Plymouth",
"Pocasset",
"Provincetown",
"Quincy",
"Randolph",
"Raynham",
"Revere",
"Richmond",
"Rockland",
"Rockport",
"Rowe",
"Roxbury",
"Salem",
"Salisbury",
"Sandwich",
"Saugus",
"Scituate",
"Seekonk",
"Sharon",
"Sheffield",
"Shelburne Falls",
"Shrewsbury",
"Siasconset",
"Somerset",
"Somerville",
"South Chatham",
"South Deerfield",
"South Dennis",
"South Harwich",
"South Wellfleet",
"South Yarmouth",
"Southborough",
"Southbridge",
"Springfield",
"Sterling",
"Stockbridge",
"Stoughton",
"Stow",
"Sturbridge",
"Sudbury",
"Sutton",
"Swampscott",
"Swansea",
"Taunton",
"Teaticket",
"Tewksbury",
"Townsend",
"Truro",
"Tyngsboro",
"Tyringham",
"Uxbridge",
"Vineyard Haven",
"Waban",
"Wakefield",
"Walpole",
"Waltham",
"Ware",
"Wareham",
"Washington",
"Watertown",
"Webster",
"Wellesley",
"Wellesley Hills",
"Wellfleet",
"West Barnstable",
"West Boylston",
"West Bridgewater",
"West Brookfield",
"West Dennis",
"West Falmouth",
"West Harwich",
"West Hatfield",
"West Roxbury",
"West Springfield",
"West Stockbridge",
"West Yarmouth",
"Westborough",
"Westfield",
"Westford",
"Westminster",
"Weston",
"Westport",
"Westwood",
"Weymouth",
"Wilbraham",
"Williamstown",
"Winchendon",
"Winthrop",
"Woburn",
"Woods Hole",
"Worcester",
"Wrentham",
"Yarmouth",
"Yarmouth Port"];
}

StateSuggestions.prototype.requestSuggestions = function (oAutoSuggestControl /*:AutoSuggestControl*/,
                                                          bTypeAhead /*:boolean*/) {
    var aSuggestions = [];
    var sTextboxValue = oAutoSuggestControl.textbox.value;
    
    if (sTextboxValue.length > 0){
    	topsuggestion = null;
        for (var i=0; i < this.states.length; i++) { 
            if (this.states[i].toLowerCase().indexOf(sTextboxValue.toLowerCase()) == 0) {
                aSuggestions.push(this.states[i]);
		if (!topsuggestion) {topsuggestion = this.states[i];}
            } 
        }
    }

    oAutoSuggestControl.autosuggest(aSuggestions, bTypeAhead);
};

