function StateSuggestions() {
    this.states = [
"Bear",
"Bethany Beach",
"Claymont",
"Delaware City",
"Dewey Beach",
"Dover",
"Felton",
"Fenwick Island",
"Frankford",
"Georgetown",
"Harrington",
"Hockessin",
"Laurel",
"Lewes",
"Middletown",
"Milford",
"Millsboro",
"Milton",
"Montchanin",
"New Castle",
"Newark",
"Rehoboth Beach",
"Seaford",
"Selbyville",
"Smyrna",
"Talleyville",
"Wilmington"];
}

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

