document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
<html>
<head>
<script type="text/javascript">
xmlHttp=null;
function showHint(str)
{
if (str.length==0)
document.getElementById("txtHint").innerHTML="";
return;
}
try
{// Firefox, Opera 8.0+, Safari, IE7
xmlHttp=new XMLHttpRequest();
catch(e)
{// Old IE
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");