	function lookup(inputString) {
		if(inputString.length == 0) {
			// Hide the suggestion box.
			$('#suggestionsLivre').hide();
			$('#suggestionsAuteur').hide();
		} else {
			$.post("/ajax/rpc.php?type=livre&", {queryString: ""+inputString+""}, function(data){
				if(data.length >0) {
					$('#suggestionsLivre').show();
					$('#autoSuggestionsListLivre').html(data);
				}
			});
			$.post("/ajax/rpc.php?type=auteur&", {queryString: ""+inputString+""}, function(data){
				if(data.length >0) {
					$('#suggestionsAuteur').show();
					$('#autoSuggestionsListAuteur').html(data);
				}
			});
		}
	} // lookup
	
	function fill(categorie, thisValue) {
		$('#inputString').val(thisValue);
		$('#categorie').val(categorie);
		setTimeout("$('#suggestionsLivre').hide();", 200);
		setTimeout("$('#suggestionsAuteur').hide();", 200);
	}
	
	function favoris() {
		if ( navigator.appName != 'Microsoft Internet Explorer' ) {
			window.sidebar.addPanel("Largevision : Livres en grands caracteres","http://www.largevision.com","");
		} else {
			window.external.AddFavorite("http://www.largevision.com","Largevision : Livres en grands caracteres");
		}
	}