// JavaScript Document
function lookupVente(inputString) {
		if(inputString.length == 0) {
			// Hide the suggestion box.
			$('#suggestionsVente').hide();
		} else {
			$.post("auto/rpcV.php", {queryString: ""+inputString+""}, function(data){
				if(data.length >0) {
					$('#suggestionsVente').show();
					$('#autoSuggestionsListVente').html(data);
				}
			});
		}
	} // lookup
	
	function fillVente(thisValue) {
		$('#ville1V').val(thisValue);
		setTimeout("$('#suggestionsVente').hide();", 200);
	}
	
	function lookupLoc(inputString) {
		if(inputString.length == 0) {
			// Hide the suggestion box.
			$('#suggestions').hide();
		} else {
			$.post("auto/rpc.php", {queryString: ""+inputString+""}, function(data){
				if(data.length >0) {
					$('#suggestions').show();
					$('#autoSuggestionsList').html(data);
				}
			});
		}
	} // lookup
	
	function fillLoc(thisValue) {
		$('#ville1').val(thisValue);
		setTimeout("$('#suggestions').hide();", 200);
	}