var xmlHttp
var objj
function showHint(add,obj,str){
  objj=obj;
  xmlHttp=GetXmlHttpObject();
  if (xmlHttp==null)  { 
    alert ("Browser does not support HTTP Request");
    return ;
  } 
  var url=add;
  url=url+"?item="+str;
  url=url+"&sid="+Math.random();
  xmlHttp.onreadystatechange=stateChanged ;
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);  
}

function stateChanged()
{ 
  if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
  { 
     // if server HTTP response is "OK"
     if(xmlHttp.status == 200) {
        document.getElementById(objj).innerHTML=xmlHttp.responseText;
     } else {
       // issue an error message for any other HTTP response
       //alert("An error has occurred: " + xmlHttp.statusText);
	   document.getElementById(objj).innerHTML="An error has occurred: " + xmlHttp.statusText;
     }  
    //document.getElementById(objj).innerHTML=xmlHttp.responseText
  }
  else
    document.getElementById(objj).innerHTML='<img src=images/movewait.gif><br><font face=tahoma size=2>Please Wait...</font>';
} 


//********************
function send_data(add,obj,item1,item2,item3){
  objj=obj;
  //alert(objj)
  xmlHttp=GetXmlHttpObject();
  if (xmlHttp==null)  { 
    alert ("Browser does not support HTTP Request");
    return ;
  } 
  var url=add;
  var poststring = "Name="+item1+"&Email="+item2+"&Comment="+item3;  
  xmlHttp.onreadystatechange=stateChanged ;
  xmlHttp.open("POST",url,true);
  xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  xmlHttp.setRequestHeader("Content-length", poststring.length);
  xmlHttp.send(poststring);
}
//********************
function GetXmlHttpObject()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}