	function lookup(inputString,rad_val,catval) {
		if(inputString.length == 0) {
			// Hide the suggestion box.
			$('#suggestions').hide();
		} else {
			$.post("rpc.php", {queryString: ""+inputString+"",rad_val:""+rad_val+"",catval:""+catval+""}, function(data){
				if(data.length >0) {
					$('#suggestions').show();
					$('#autoSuggestionsList').html(data);
				}
			});
		}
	} // lookup
	
	function lookup1(category) {
		if(category.length == 0) {
			// Hide the suggestion box.
			$('#catsug').hide();
		} else {
			$.post("rpc1.php", {queryString: ""+category+""}, function(data){
				if(data.length >0) {
					$('#catsug').show();
					$('#autocatsugBoxList').html(data);
				}
			});
		}
	}
	
	//look up for topsearch category
	
	function topsearchlookup(inputString) {
		if(inputString.length == 0) {
			// Hide the suggestion box.
			$('#topsearchsuggestions').hide();
		} else {
			$.post("topsearchrpc.php", {queryString: ""+inputString+""}, function(data){
				if(data.length >0) {
					$('#topsearchsuggestions').show();
					$('#topsearchSuggestionsList').html(data);
				}
			});
		}
	}
	
	
	
	//look up for an area
	
		function arealookup(inputString) {
		if(inputString.length == 0) {
			// Hide the suggestion box.
			$('#suggestions').hide();
		} else {
			$.post("arealookup.php", {queryString: ""+inputString+""}, function(data){
				if(data.length >0) {
					$('#suggestions').show();
					$('#autoSuggestionsList').html(data);
				}
			});
		}
	}
	
	function toparealookup(inputString) {
		if(inputString.length == 0) {
			// Hide the suggestion box.
			$('#topsuggestions').hide();
		} else {
			$.post("toparealookup.php", {queryString: ""+inputString+""}, function(data){
				if(data.length >0) {
					$('#topsuggestions').show();
					$('#topautoSuggestionsList').html(data);
				}
			});
		}
	}
	
	
	function fill(thisValue) {
		$('#inputString').val(thisValue);
		setTimeout("$('#suggestions').hide();", 200);
		document.search.inputString.focus();
	}
	
	function filltoparea(thisValue) {
		$('#topinputString').val(thisValue);
		setTimeout("$('#topsuggestions').hide();", 200);
		document.search.inputString.focus();
	}
	
	
	function topsearchcatfill(thisValue) {
		$('#topsearchcat').val(thisValue);
					setTimeout("$('#topsearchsuggestions').hide();", 200);
					
		document.topsearchform.topsearchcat.focus();
	}
	
	
	//Fill category bxo
function fill1(thisValue) {
		$('#category').val(thisValue);
		$('#bankname').val(thisValue);
		setTimeout("$('#categoryval').hide();", 200);
		document.search.category.focus();
	}
	function fill3(thisValue) {
		$('#category').val(thisValue);
		$('#bankname').val(thisValue);
		setTimeout("$('#categoryvaljob').hide();", 200);
		//document.search.category.focus();
	}
	//fill auto category box
	function fill2(thisValue) {
		$('#category').val(thisValue);
		setTimeout("$('#catsug').hide();", 200);
		//document.search.category.focus();
	}
	
	//fills hidden value for category selection
	function fill12(thisValue) {
		$('#category1').val(thisValue);
			}
	function filltopcat(thisValue) {
		$('#topcatsearch').val(thisValue);
					}
		
	function fill13(thisValue) {
		$('#category2').val(thisValue);
			}

