function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}
function dir_hit_site(i)
{
        var xmlHttp=GetXmlHttpObject();
        xmlHttp.open("GET","ajax_hits.php?s="+i);
        xmlHttp.send(null);
}
function update_site_thumbnail(i)
{
        var xmlHttp=GetXmlHttpObject();
        xmlHttp.onreadystatechange=function()
        {
                if (xmlHttp.readyState==4)
                {
                        alert(xmlHttp.responseText);
                }

        }
        xmlHttp.open("GET","ajax_update_thumbnail.php?s="+i+"&"+new Date());
        xmlHttp.send(null);
}
function update_site_pagerank(i)
{
        var xmlHttp=GetXmlHttpObject();
        xmlHttp.onreadystatechange=function()
        {
                if (xmlHttp.readyState==4)
                {
                        alert(xmlHttp.responseText);
                }

        }
        xmlHttp.open("GET","ajax_update_page_rank.php?s="+i+"&"+new Date());
        xmlHttp.send(null);
}