
	$().ready(function() {
	
		function log(event, data, formatted) {
			$("<li>").html( !data ? "No match!" : "Selected: " + formatted).appendTo("#result");
		}
	
		function formatItem(row) {
			return row[0] + " (<strong>id: " + row[1] + "</strong>)";
		}
		function formatResult(row) {
			return row[0].replace(/(<.+?>)/gi, '');
		}
	
			$("#suggest1").focus().autocomplete(textdat, {
			matchContains: true,
			minChars: 0
		});
	
	
		$("#clear").click(function() {
			$(":input").unautocomplete();
		});
	});



