
var xmlHttp
function showHint(query,id,type,cPath)
{if(query.length<2)
{document.getElementById(id).innerHTML="";return}
xmlHttp=GetXmlHttpObject()
if(xmlHttp==null)
{alert("Browser does not support HTTP Request")
return}
var url="get_result.php"
query=encodeURI(query);url=url+"?query="+query+"&type="+type+"&cPath="+cPath
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=function stateChanged()
{if(xmlHttp.readyState==4||xmlHttp.readyState=="complete")
{document.getElementById(id).innerHTML=xmlHttp.responseText}}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function GetXmlHttpObject()
{var xmlHttp=null;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}

function close_div(id){
 document.getElementById(id).style.visibility = 'hidden';
 document.getElementById(id).style.display = 'none';
}