    function Inint_AJAX() {
        try {
            return new ActiveXObject("Msxml2.XMLHTTP");
        } catch(e) {} //IE
        try {
            return new ActiveXObject("Microsoft.XMLHTTP");
        } catch(e) {} //IE
        try {
            return new XMLHttpRequest();
        } catch(e) {} //Native Javascript
        alert("XMLHttpRequest not supported");
        return null;
    };

  	function eshopSearchHint(str){
        var req = Inint_AJAX();
				if (str.length!=0){	
						req.onreadystatechange = function () {
            		if (req.readyState == 4) {
                		if (req.status == 200) {
                    		document.getElementById('srchHint').style.display='block';
                    		document.getElementById('srchHint').innerHTML=req.responseText;
                		}
            		}
        		}
      req.open("GET", "/ajax/search.hint.php?q="+str);
        		req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=windows-1250"); // set Header
        		req.send(null);
					}
			}
  	function eshopSearchHintClose(){
      document.getElementById('srchHint').style.display='none';
 			}



