/*
 * 
 *
 * Copyright (c) 2008
 * )
 * 
 *
 * 
 * 
 */
	function lookup(inputString) {
		if(inputString.length == 0) {
			// Hide the suggestion box.
			$('#suggestions').hide();
		} else {
			$.post("findrecord.php", {queryString: ""+inputString+""}, function(data){
				if(data.length >0) {
					$('#suggestions').show();
					$('#autoSuggestionsList').html(data);
				} else { 
				// need a function to make sure the user enter a house number first!  
				// alert box is acceptable, but I will need create a more elegant solution later - Jason 
				    alert ("please enter your street address starting with the NUMBERS. \n example: \"5005 minnetonka blvd\"")
				}  
			});
		}
	} // lookup
	
	function fill(thisValue) {
		$('#inputString').val(thisValue);
		setTimeout("$('#suggestions').hide();", 200);
	}
	
	$(document).ready(function(){
			$(".suggestionsBox").corner();
		});	