function StateSuggestions() {
    this.states = [
"Adamsville",
"Alcoa",
"Antioch",
"Ardmore",
"Ashland City",
"Athens",
"Bartlett",
"Bean Station",
"Bells",
"Benton",
"Bethpage",
"Blaine",
"Bloomington Springs",
"Blountville",
"Bolivar",
"Brentwood",
"Bristol",
"Brownsville",
"Buchanan",
"Bulls Gap",
"Butler",
"Byrdstown",
"Camden",
"Carthage",
"Caryville",
"Celina",
"Centerville",
"Chattanooga",
"Church Hill",
"Clarksville",
"Cleveland",
"Clifton",
"Clinton",
"Collierville",
"Columbia",
"Cookeville",
"Cordova",
"Cornersville",
"Cosby",
"Cottontown",
"Counce",
"Covington",
"Cowan",
"Crossville",
"Crump",
"Cumberland City",
"Cumberland Gap",
"Dandridge",
"Dayton",
"Decherd",
"Denmark",
"Dickson",
"Dover",
"Dresden",
"Dunlap",
"Dyersburg",
"East Ridge",
"Elizabethton",
"Erin",
"Erwin",
"Etowah",
"Fairview",
"Fayetteville",
"Finger",
"Franklin",
"Friendsville",
"Gallatin",
"Gatlinburg",
"Germantown",
"Goodlettsville",
"Gordonsville",
"Grand Junction",
"Greenbrier",
"Greeneville",
"Hampton",
"Harriman",
"Harrison",
"Heiskell",
"Helenwood",
"Henderson",
"Hendersonville",
"Hermitage",
"Hilham",
"Hixson",
"Hohenwald",
"Holladay",
"Hornbeak",
"Humboldt",
"Huntingdon",
"Hurricane Mills",
"Jackson",
"Jamestown",
"Jasper",
"Jefferson City",
"Jellico",
"Joelton",
"Johnson City",
"Jonesborough",
"Kimball",
"Kingsport",
"Kingston",
"Kingston Springs",
"Knoxville",
"Kodak",
"Kyles Ford",
"La Follette",
"La Vergne",
"Lafayette",
"Lake City",
"Lakeland",
"Lawrenceburg",
"Lebanon",
"Lenoir City",
"Lewisburg",
"Lexington",
"Livingston",
"Loudon",
"Lynchburg",
"Madison",
"Madisonville",
"Manchester",
"Martin",
"Maryville",
"Mascot",
"Mason",
"Maynardville",
"Mc Donald",
"Mc Kenzie",
"Mc Minnville",
"Memphis",
"Milan",
"Millington",
"Monroe",
"Monteagle",
"Monterey",
"Mooresburg",
"Morristown",
"Moscow",
"Mount Juliet",
"Mount Pleasant",
"Mountain City",
"Mulberry",
"Murfreesboro",
"Nashville",
"New Johnsonville",
"New Tazewell",
"Newport",
"Norris",
"Oak Ridge",
"Oakland",
"Ocoee",
"Oneida",
"Only",
"Ooltewah",
"Paris",
"Parsons",
"Philadelphia",
"Pigeon Forge",
"Pikeville",
"Pioneer",
"Pleasantville",
"Portland",
"Powell",
"Pulaski",
"Red Boiling Springs",
"Reliance",
"Riceville",
"Ridgely",
"Ripley",
"Robbins",
"Rock Island",
"Rockwood",
"Rogersville",
"Samburg",
"Savannah",
"Selmer",
"Sevierville",
"Seymour",
"Shelbyville",
"Shiloh",
"Silver Point",
"Smithville",
"Smyrna",
"Sneedville",
"Soddy Daisy",
"Somerville",
"South Fulton",
"South Pittsburg",
"Sparta",
"Spring City",
"Spring Hill",
"Springfield",
"Springville",
"Stanton",
"Stewart",
"Strawberry Plains",
"Sunbright",
"Sweetwater",
"Tazewell",
"Tellico Plains",
"Ten Mile",
"Thorn Hill",
"Tiptonville",
"Townsend",
"Tracy City",
"Trenton",
"Tullahoma",
"Union City",
"Vonore",
"Walland",
"Wartburg",
"Wartrace",
"Waverly",
"Waynesboro",
"White Bluff",
"White House",
"White Pine",
"Whites Creek",
"Whiteville",
"Wildersville",
"Winchester",
"Winfield"];
}

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

