			function lookupFirst(inputFirst) {
				if(inputFirst.length == 0) {
					// Hide the suggestion box.
					$('#suggestionsFirst').hide();
				} else {
					$.post("process.php", {queryString: ""+inputFirst+""}, function(data){
						if(data.length >0) {
							$('#suggestionsFirst').show();
							$('#autoSuggestionsListFirst').html(data);
						}
					});
				}
			} // lookup

			function fillFirst(thisValue) {
				$('#inputFirst').val(thisValue);
				document.getElementById('inputFirst').className='filled';
			   $('#suggestionsFirst').hide();
			}
			
			function setValueFirst(id) {
				$('#firstValue').val(id);
			}
				
			
			function lookupSecond(inputSecond) {
				if(inputSecond.length == 0) {
					// Hide the suggestion box.
					$('#suggestionsSecond').hide();
				} else {
					$.post("process2.php", {queryString: ""+inputSecond+""}, function(data){
						if(data.length >0) {
							$('#suggestionsSecond').show();
							$('#autoSuggestionsListSecond').html(data);
						}
					});
				}
			} // lookup

			function fillSecond(thisValue) {
				$('#inputSecond').val(thisValue);
				document.getElementById('inputSecond').className='filled';
			   $('#suggestionsSecond').hide();
			}
			
			function setValueSecond(id) {
				$('#secondValue').val(id);
			}
			
			function lookupThird(inputThird) {
				if(inputThird.length == 0) {
					// Hide the suggestion box.
					$('#suggestionsThird').hide();
				} else {
					$.post("process3.php", {queryString: ""+inputThird+""}, function(data){
						if(data.length >0) {
							$('#suggestionsThird').show();
							$('#autoSuggestionsListThird').html(data);
						}
					});
				}
			} // lookup

			function fillThird(thisValue) {
				$('#inputThird').val(thisValue);
				document.getElementById('inputThird').className='filled';
			   $('#suggestionsThird').hide();
			}
			
			function setValueThird(id) {
				$('#thirdValue').val(id);
			}
			
			function lookupFourth(inputFourth) {
				if(inputFourth.length == 0) {
					// Hide the suggestion box.
					$('#suggestionsFourth').hide();
				} else {
					$.post("process4.php", {queryString: ""+inputFourth+""}, function(data){
						if(data.length >0) {
							$('#suggestionsFourth').show();
							$('#autoSuggestionsListFourth').html(data);
						}
					});
				}
			} // lookup
				

			function fillFourth(thisValue) {
				$('#inputFourth').val(thisValue);
				document.getElementById('inputFourth').className='filled';
			   $('#suggestionsFourth').hide();
			}
			
			function setValueFourth(id) {
				$('#fourthValue').val(id);
			}
			
			function lookupFifth(inputFifth) {
				if(inputFifth.length == 0) {
					// Hide the suggestion box.
					$('#suggestionsFifth').hide();
				} else {
					$.post("process5.php", {queryString: ""+inputFifth+""}, function(data){
						if(data.length >0) {
							$('#suggestionsFifth').show();
							$('#autoSuggestionsListFifth').html(data);
						}
					});
				}
			} // lookup

			function fillFifth(thisValue) {
				$('#inputFifth').val(thisValue);
				document.getElementById('inputFifth').className='filled';
			   $('#suggestionsFifth').hide();
			}
			
			function setValueFifth(id) {
				$('#fifthValue').val(id);
			}