var xmlHttp

function showMenu(str)
{

/*if (str.length==0)
  { 
  alert("Enter text to be searched");
  //document.getElementById("txtHint").innerHTML="";
  return false;
  }*/
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="result.php"
url=url+"?q="+str
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged
//alert("first");
xmlHttp.open("GET",url,true)
//alert("second");
xmlHttp.send(null)
} 


function stateChanged1() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
//alert(xmlHttp.responseText);
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
}
}
function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
//alert(xmlHttp.responseText);
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
}
}
function showSite(str)
{
//alert("str"+str);
if (str.length==0)
  { 
  document.getElementById("txtHint").innerHTML="";
  return;
  }
  // document.getElementById("supplierstr").style.height="100";
   
    // document.getElementById("suptable").style.height="100";
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="searchresult.php";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
//alert("first");
xmlHttp.open("GET",url,true);
//alert("second");
xmlHttp.send(null);
} 


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 highlight()
{
	document.getElementById.style.backgroundColor="#FFCC80";

}