function lookup(inputString) {
	if(inputString.length == 0) {
		// Hide the suggestion box.
		jqVar('#suggestions').hide();
	} else {
		// post data to our php processing page and if there is a return greater than zero
		// show the suggestions box
		jqVar.post("/string_search.php", {mysearchString: ""+inputString+""}, function(data){
			if(data.length > 0) {
				jqVar('#suggestions').show();
				jqVar('#autoSuggestionsList').html(data);
			}
		});
	}
} //end

// if user clicks a suggestion, fill the text box.
function fill(thisValue) {
	jqVar('#inputString').val(thisValue);
	setTimeout("jqVar('#suggestions').hide();", 200);
	jqVar('#search-form').submit();
}
