// JavaScript Document

function lookup(inputString) {
	 $kbrand=document.getElementById("nbrand").value;
 
		if(inputString.length == 0) {
			$("suggestions").hide();
		} else {
   
			$.post("/jquery/autocomplete/autocart.php", {kbrand:$kbrand,kname: ""+inputString+""}, function(data){
				if(data.length >0) {
					$('#suggestions').show();
					$('#autoSuggestionsList').html(data);
				}
				
			});
		}
	} // lookup
	
	function fill(sname,gid) {
		 $('#kwd').val(sname);$('#gid').val(gid);
	}
 
	function hidlist(){
	$("suggestions").hide();
	}
    //$.noConflict(); //±ÜÃâJS³åÍ»
	 jQuery(document).click(function(){ jQuery("#suggestions").hide(); } )
 
	
 