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

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


function lookupedit(inputStringedit) {
	if(inputStringedit.length == 0) {
		// Hide the suggestion box.
		$('#suggestionsedit').hide();
	} else {
		// post data to our php processing page and if there is a return greater than zero
		// show the suggestions box
		$('#inputStringedit').addClass('indicator');
		$.post("index.php/area", {mysearchString: ""+inputString+""}, function(data){
			if(data.length >0) {
				$('#suggestionsedit').show();
				$('#autoSuggestionsListedit').html(data);
			}
			$('#inputStringedit').removeClass('indicator');
		});
	}
} //end


