function ajaxFunction()
{
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
        if(xmlHttp.readyState == 0)
        {
        document.getElementById('usernames').innerHTML= "Sending Request...";
        }
        if(xmlHttp.readyState == 1)
        {
        document.getElementById('usernames').innerHTML= "<center>Loading Response...<img src=http://xtreview.com/loader.gif></center>";
        }
        if(xmlHttp.readyState == 2)
        {
        document.getElementById('usernames').innerHTML= "Response   Loaded...";
        }
        if(xmlHttp.readyState == 3)
        {
        document.getElementById('usernames').innerHTML= "Response Ready...";
        }

    if(xmlHttp.readyState==4)
      {
     // document.myForm.time.value=xmlHttp.responseText;
      document.getElementById('usernames').innerHTML=xmlHttp.responseText;

      }
    }
  xmlHttp.open('GET','ajnewssearch.php?newssearch=' + document.ajform1.newssearch.value,true);
  xmlHttp.send(null);
  }
