function StateSuggestions() {
    this.states = [
"Acworth",
"Adairsville",
"Adel",
"Albany",
"Alma",
"Alpharetta",
"Americus",
"Ashburn",
"Athens",
"Atlanta",
"Augusta",
"Austell",
"Bainbridge",
"Barnesville",
"Baxley",
"Blackshear",
"Blairsville",
"Blakely",
"Bloomingdale",
"Blue Ridge",
"Bogart",
"Braselton",
"Bremen",
"Brunswick",
"Buchanan",
"Buford",
"Byron",
"Cairo",
"Calhoun",
"Calvary",
"Camilla",
"Canton",
"Carrollton",
"Cartersville",
"Cave Spring",
"Cecil",
"Cedartown",
"Chamblee",
"Chatsworth",
"Chauncey",
"Chickamauga",
"Clarkesville",
"Claxton",
"Clayton",
"Clermont",
"Cleveland",
"Cochran",
"College Park",
"Colquitt",
"Columbus",
"Comer",
"Commerce",
"Conley",
"Conyers",
"Cordele",
"Cornelia",
"Covington",
"Cumming",
"Cuthbert",
"Dahlonega",
"Dallas",
"Dalton",
"Darien",
"Dawson",
"Dawsonville",
"Decatur",
"Dillard",
"Donalsonville",
"Doraville",
"Douglas",
"Douglasville",
"Dublin",
"Duluth",
"East Dublin",
"East Ellijay",
"East Point",
"Eastman",
"Eatonton",
"Elberton",
"Ellijay",
"Fairburn",
"Fayetteville",
"Fitzgerald",
"Flowery Branch",
"Folkston",
"Forest Park",
"Forsyth",
"Fort Gaines",
"Fort Oglethorpe",
"Fort Valley",
"Franklin",
"Gainesville",
"Garden City",
"Glennville",
"Gray",
"Greensboro",
"Griffin",
"Grovetown",
"Hahira",
"Hamilton",
"Hampton",
"Hapeville",
"Hartwell",
"Hawkinsville",
"Hazlehurst",
"Helen",
"Hephzibah",
"Hiawassee",
"Hinesville",
"Hiram",
"Hogansville",
"Homerville",
"Irwinton",
"Jackson",
"Jasper",
"Jefferson",
"Jeffersonville",
"Jekyll Island",
"Jesup",
"Jonesboro",
"Kennesaw",
"Kingsland",
"La Fayette",
"Lagrange",
"Lake Park",
"Lakeland",
"Lakemont",
"Lavonia",
"Lawrenceville",
"Leesburg",
"Lenox",
"Lilburn",
"Lincolnton",
"Lithia Springs",
"Lithonia",
"Locust Grove",
"Loganville",
"Lookout Mountain",
"Louisville",
"Ludowici",
"Lyons",
"Mableton",
"Macon",
"Madison",
"Manchester",
"Marble Hill",
"Marietta",
"Martinez",
"Mc Rae",
"Mcdonough",
"Metter",
"Midway",
"Milledgeville",
"Millen",
"Monroe",
"Montezuma",
"Monticello",
"Morganton",
"Morrow",
"Moultrie",
"Mount Airy",
"Mount Vernon",
"Murrayville",
"Nashville",
"Newnan",
"Norcross",
"Oakwood",
"Ocilla",
"Palmetto",
"Peachtree City",
"Pearson",
"Pelham",
"Pembroke",
"Perry",
"Pine Mountain",
"Plains",
"Pooler",
"Port Wentworth",
"Quitman",
"Register",
"Reidsville",
"Richland",
"Richmond Hill",
"Rincon",
"Ringgold",
"Riverdale",
"Rockmart",
"Rome",
"Rossville",
"Roswell",
"Royston",
"Saint Marys",
"Saint Simons Island",
"Sandersville",
"Sautee Nacoochee",
"Savannah",
"Scottdale",
"Screven",
"Sea Island",
"Shiloh",
"Smyrna",
"Snellville",
"Social Circle",
"Sparks",
"Sparta",
"Statesboro",
"Stockbridge",
"Stockton",
"Stone Mountain",
"Summerville",
"Suwanee",
"Swainsboro",
"Sylvania",
"Sylvester",
"Tallapoosa",
"Temple",
"Thomaston",
"Thomasville",
"Thomson",
"Tifton",
"Tignall",
"Toccoa",
"Townsend",
"Trenton",
"Trion",
"Tucker",
"Tybee Island",
"Unadilla",
"Union City",
"Valdosta",
"Vidalia",
"Vienna",
"Villa Rica",
"Waco",
"Wadley",
"Warm Springs",
"Warner Robins",
"Washington",
"Watkinsville",
"Waverly",
"Waycross",
"Waynesboro",
"West Point",
"White",
"Whitesburg",
"Winder",
"Winterville",
"Woodbine",
"Woodbury",
"Woodstock",
"Wrens",
"Wrightsville",
"Young Harris"];
}

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

