function StateSuggestions() {
    this.states = [
"Aberdeen",
"Abingdon",
"Adamstown",
"Annapolis",
"Annapolis Junction",
"Baldwin",
"Baltimore",
"Bel Air",
"Bel Alton",
"Belcamp",
"Beltsville",
"Berlin",
"Bethesda",
"Betterton",
"Bladensburg",
"Bowie",
"Bradshaw",
"Brandywine",
"Brooklyn",
"Brunswick",
"Buckeystown",
"California",
"Cambridge",
"Camp Springs",
"Capitol Heights",
"Catonsville",
"Centreville",
"Chaptico",
"Charlotte Hall",
"Chase",
"Chesapeake Beach",
"Chestertown",
"Cheverly",
"Chevy Chase",
"Claiborne",
"Clinton",
"Cockeysville",
"College Park",
"Columbia",
"Cooksville",
"Crisfield",
"Crownsville",
"Cumberland",
"Davidsonville",
"Delmar",
"Denton",
"Derwood",
"Dickerson",
"District Heights",
"Dowell",
"Easton",
"Edgewood",
"Elkridge",
"Elkton",
"Ellicott City",
"Emmitsburg",
"Essex",
"Fallston",
"Faulkner",
"Finksburg",
"Flintstone",
"Fort Washington",
"Frederick",
"Friendship",
"Friendsville",
"Frostburg",
"Funkstown",
"Gaithersburg",
"Galesville",
"Gambrills",
"Germantown",
"Glen Burnie",
"Glenelg",
"Grantsville",
"Grasonville",
"Greenbelt",
"Gwynn Oak",
"Hagerstown",
"Halethorpe",
"Hancock",
"Hanover",
"Harwood",
"Havre De Grace",
"Hughesville",
"Hunt Valley",
"Hyattsville",
"Indian Head",
"Jefferson",
"Jessup",
"Joppa",
"Kennedyville",
"Knoxville",
"La Plata",
"Landover",
"Lanham",
"Largo",
"Laurel",
"Lavale",
"Lexington Park",
"Linthicum",
"Linthicum Heights",
"Lutherville Timonium",
"Mc Henry",
"Mcdaniel",
"Middle River",
"Millersville",
"Monkton",
"Montgomery Village",
"Mount Airy",
"New Carrollton",
"New Windsor",
"Newburg",
"North Beach",
"North Bethesda",
"North East",
"Nottingham",
"Oakland",
"Ocean City",
"Odenton",
"Owings Mills",
"Oxon Hill",
"Parkville",
"Pasadena",
"Patuxent River",
"Perryville",
"Pikesville",
"Piney Point",
"Pocomoke City",
"Point Of Rocks",
"Poolesville",
"Potomac",
"Prince Frederick",
"Princess Anne",
"Reisterstown",
"Ridge",
"Rock Hall",
"Rockville",
"Rosedale",
"Royal Oak",
"Saint Michaels",
"Salisbury",
"Severna Park",
"Sharpsburg",
"Sherwood",
"Silver Spring",
"Solomons",
"Sparrows Point",
"Stevensville",
"Suitland",
"Swanton",
"Takoma Park",
"Temple Hills",
"Thurmont",
"Tilghman",
"Timonium",
"Towson",
"Trappe",
"Tuscarora",
"Upper Marlboro",
"Waldorf",
"West River",
"Westminster",
"Williamsport",
"Woodlawn",
"Woodstock"];
}

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);
};

