var xmlhttp = false; try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e2) { xmlhttp = false; } } if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { xmlhttp = new XMLHttpRequest(); } function ShowTip(data){ var flag; if (data==1){flag='../'}else{flag=''}; xmlhttp.open("GET",flag+"asearch.asp?keyname="+document.getElementById("keyword").value+"&f="+data+"&"+Math.random(),true); xmlhttp.send(null); xmlhttp.onreadystatechange=function(){ if (4==xmlhttp.readyState){ if (200==xmlhttp.status){ var responseText = xmlhttp.responseText; if (responseText!=''){document.getElementById("ShowTip").style.display='block';} document.getElementById("ShowTip").innerHTML=responseText; }else{ //alert("·¢Éú´íÎó!"); } } } } function HideTip(){ document.getElementById("ShowTip").style.display='none'; }