function StateSuggestions() {
    this.states = [
"Abbeville",
"Aiken",
"Allendale",
"Anderson",
"Andrews",
"Atlantic Beach",
"Aynor",
"Bamberg",
"Barnwell",
"Beaufort",
"Beech Island",
"Bennettsville",
"Bishopville",
"Bluffton",
"Blythewood",
"Boiling Springs",
"Bonneau",
"Buffalo",
"Calhoun Falls",
"Camden",
"Cameron",
"Cayce",
"Charleston",
"Cheraw",
"Chesnee",
"Chesterfield",
"Clearwater",
"Clemson",
"Clinton",
"Clover",
"Columbia",
"Conway",
"Cross Hill",
"Dalzell",
"Darlington",
"Denmark",
"Dillon",
"Duncan",
"Early Branch",
"Easley",
"Eastover",
"Edgefield",
"Edisto Island",
"Effingham",
"Elgin",
"Estill",
"Fair Play",
"Florence",
"Folly Beach",
"Fort Lawn",
"Fort Mill",
"Fountain Inn",
"Fripp Island",
"Gaffney",
"Georgetown",
"Goose Creek",
"Greenville",
"Greenwood",
"Greer",
"Hamer",
"Hampton",
"Hardeeville",
"Harleyville",
"Hartsville",
"Hemingway",
"Hilton Head Island",
"Honea Path",
"Irmo",
"Isle Of Palms",
"Johns Island",
"Johnston",
"Kershaw",
"Kiawah Island",
"Kingstree",
"Ladson",
"Lake City",
"Lake View",
"Lancaster",
"Latta",
"Laurens",
"Lexington",
"Liberty",
"Litchfield",
"Little River",
"Loris",
"Lugoff",
"Lyman",
"Lynchburg",
"Manning",
"Marion",
"Mauldin",
"Mc Bee",
"Moncks Corner",
"Mount Pleasant",
"Mullins",
"Murrells Inlet",
"Myrtle Beach",
"New Zion",
"Newberry",
"Ninety Six",
"North Augusta",
"North Charleston",
"North Myrtle Beach",
"Olanta",
"Orangeburg",
"Pacolet",
"Pageland",
"Pawleys Island",
"Pendleton",
"Pickens",
"Piedmont",
"Port Royal",
"Richburg",
"Ridgeland",
"Ridgeway",
"Rock Hill",
"Saint George",
"Saint Helena Island",
"Saint Stephen",
"Salem",
"Saluda",
"Santee",
"Seabrook Island",
"Seneca",
"Simpsonville",
"Spartanburg",
"Summerton",
"Summerville",
"Sumter",
"Surfside Beach",
"Timmonsville",
"Travelers Rest",
"Trenton",
"Turbeville",
"Union",
"Walhalla",
"Walterboro",
"Wedgefield",
"West Columbia",
"Westminster",
"Williston",
"Winnsboro",
"Yemassee",
"York"];
}

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

