function lookup(inputString) {
		if(inputString.length == 0) {
			// Hide the suggestion box.
			$('#suggestions').hide();
		} else {
			$.post("./class/autoComplete/rpc.php", {queryString: ""+inputString+""}, function(data){
				if(data.length >0) {
					$('#suggestions').show();
					$('#autoSuggestionsList').html(data);
				}
			});
		}
	} // lookup
	
	function fill(thisValue) {
		$('#inputString').val(thisValue);
		setTimeout("$('#suggestions').hide();", 200);
	}

function lookupAuth(inputStringAuth) {
		if(inputStringAuth.length == 0) {
			// Hide the suggestion box.
			$('#suggestionsAuth').hide();
		} else {
			$.post("./class/autoComplete/rpcauthor.php", {queryStringAuth: ""+inputStringAuth+""}, function(data){
				if(data.length >0) {
					$('#suggestionsAuth').show();
					$('#autoSuggestionsListAuth').html(data);
				}
			});
		}
	} // lookupAuth
	
	function fillAuth(thisValue) {
		$('#inputStringAuth').val(thisValue);
		setTimeout("$('#suggestionsAuth').hide();", 200);
	}

function lookupSubject(inputStringSubject) {
		if(inputStringSubject.length == 0) {
			// Hide the suggestion box.
			$('#suggestionsSubject').hide();
		} else {
			$.post("./class/autoComplete/subject.php", {queryStringSubject: ""+inputStringSubject+""}, function(data){
				if(data.length >0) {
					$('#suggestionsSubject').show();
					$('#autoSuggestionsListSubject').html(data);
				}
			});
		}
	} // lookupAuth
	
	function fillSubject(thisValue) {
		$('#inputStringSubject').val(thisValue);
		setTimeout("$('#suggestionsSubject').hide();", 200);
	}

function lookupPublisher(inputStringPublisher) {
		if(inputStringPublisher.length == 0) {
			// Hide the suggestion box.
			$('#suggestionsPublisher').hide();
		} else {
			$.post("./class/autoComplete/publisher.php", {queryStringPublisher: ""+inputStringPublisher+""}, function(data){
				if(data.length >0) {
					$('#suggestionsPublisher').show();
					$('#autoSuggestionsListPublisher').html(data);
				}
			});
		}
	} // lookupAuth
	
	function fillPublisher(thisValue) {
		$('#inputStringPublisher').val(thisValue);
		setTimeout("$('#suggestionsPublisher').hide();", 200);
	}
	
function lookupCity(inputStringCity) {
		if(inputStringCity.length == 0) {
			// Hide the suggestion box.
			$('#suggestionsCity').hide();
		} else {
			$.post("./class/autoComplete/city.php", {queryStringCity: ""+inputStringCity+""}, function(data){
				if(data.length >0) {
					$('#suggestionsCity').show();
					$('#autoSuggestionsListCity').html(data);
				}
			});
		}
	} // lookupAuth
	
	function fillCity(thisValue) {
		$('#inputStringCity').val(thisValue);
		setTimeout("$('#suggestionsCity').hide();", 200);
	}
function lookupDept(inputStringDept) {
		if(inputStringDept.length == 0) {
			// Hide the suggestion box.
			$('#suggestionsDept').hide();
		} else {
			$.post("./class/autoComplete/dept.php", {queryStringDept: ""+inputStringDept+""}, function(data){
				if(data.length >0) {
					$('#suggestionsDept').show();
					$('#autoSuggestionsListDept').html(data);
				}
			});
		}
	} // lookupAuth
	
	function fillDept(thisValue) {
		$('#inputStringDept').val(thisValue);
		setTimeout("$('#suggestionsDept').hide();", 200);
	}
