	function findValue(li) {
	    if( li == null ) return alert("No match!");
		if( !!li.extra ) var sValue = li.extra[0];
		else var sValue = li.selectValue;
	}
				
	function selectItem(li) {
		findValue(li);
	}
				
	function formatItem(row) {
		return row[0];
	}
				
	function lookupAjax(){
		var oSuggest = $("#ProductList")[0].autocompleter;
		oSuggest.findValue();
		return false;
	}
				
	$(document).ready(function() {
		$("#ProductList").autocomplete(
			links+"/autocomplete.php",
			{
				delay:10,
				minChars:1,
				matchSubset:1,
				matchContains:1, 
				cacheLength:10,
				onItemSelect:selectItem,
				onFindValue:findValue,
				formatItem:formatItem,
				autoFill:false
			}
		);
	});
			
				

