function suggest(inputString){
		if(inputString.length < 3) {
			$('#suggestions').fadeOut();
		} else {
		$('#htr_search').addClass('load');
		$.post("/modules/htr_suggest/htr_suggest.php", {queryString: ""+inputString+""}, function(data){
				if(data.length >0) {
					$('#suggestions').fadeIn();
					$('#suggestionsList').html(data);
                                        //$('#suggestionsList').accordion({ header: 'a.header' });
					$('#htr_search').removeClass('load');
				}else{
				    $('#suggestions').fadeOut();
				}
			});
		}
	}

	function fill(thisValue) {
		$('#htr_search').val(thisValue);
		setTimeout("$('#suggestions').fadeOut();", 600);
	}
	function fillpopup(data){
		var mypop
	}
	function showhtrpopup(id){
	    document.getElementById(id).style.visibility='visible';
	    //if (!e) var e = window.event;
	    //if (e.pageX || e.pageY) {
		//posx = e.pageX;
		//posy = e.pageY;
	    //}
	    //var tPosX = e.pageX - 500; 
	    //var tPosY = e.pageY -180;
	    //$('div.htrpopup').css({top: tPosY, left: tPosX}) 
	}
	function hidehtrpopup(id){
	    document.getElementById(id).style.visibility='hidden';
	}
        function toggle_htr_details(me){
             $('.htrpopup').fadeOut();
             $('#'+me).show();
        }
/*htr_suggest*/

