$(document).ready(function(){
	function formatSearch(row) {
		return row[0];
	}
	
	$("#city").autocomplete(
		'villes.php', {
		minChars:1,
		max:0,
		width:300,
		scroll: true,
		formatItem:formatSearch,
		extraParams:{ajaxSearch:1,id_lang:2}
	})
});
