var xmlHttp

function showHint(str)
{
if (str.length==0)
{ 
document.getElementById("txtHint").innerHTML=""
document.getElementById("sugestion").style.visibility="hidden"
return
}
//alert(event.clientY)
//alert(event.offsetY)
//alert(document.body.clientHeight)
xx = parseInt(event.clientX) - parseInt(event.offsetX)
yy = parseInt(event.clientY) - parseInt(event.offsetY)
//alert(document.body.scrollTop)
yy = yy + (document.body.scrollTop);
document.getElementById("sugestion").style.visibility="visible"
document.getElementById("sugestion").style.left=xx-201
document.getElementById("sugestion").style.top=yy+20
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="gethinttukan.asp"
url=url+"?q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.setRequestHeader("Content-type", "text/html;charset=windows-1255")
xmlHttp.send(null)
}


function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
} 
}  


function GetXmlHttpObject()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
} 