	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
			$.post("/autoComplete.php", {mysearchString: ""+inputString+""}, function(data){

			if(data != undefined){
				if(data.length > 0 ) {
					$('#suggestions').show();
					$('#autoSuggestionsList').html(data);
				}

			}

			});
		}
	} //end
	
	// if user clicks a suggestion, fill the text box.

	function fill(thisValue, type) {

		if(type !=undefined && thisValue !=undefined){
      		window.location = '/?t=search&search_string=' + escape(thisValue) + '&type='+ type;   
		}

		else{
		setTimeout("$('#suggestions').hide();", 200);
		}

	}
