function lsmo(id){
a=document.getElementById(id)
a.style.background="#7a996f";
a.style.cursor="pointer";
a.style.color="#FFFFFF";

b=document.getElementById(id+"a");
if (b) {
  b.style.filter = "alpha(opacity=80)";
  b.mozopacity = ".80";
  b.style.opacity = ".80";
}


}

function lsmt(id){
document.getElementById(id).style.background="#FFFFFF";
document.getElementById(id).style.color="#000000";

b=document.getElementById(id+"a");
if (b) {
  b.style.filter = "alpha(opacity=100)";
  b.mozopacity = ".99";
  b.style.opacity = ".99";
}

}

var xmlHttp;

function showResult(str)
{
if (str.length==0)
 { 
 document.getElementById("livesearch").
 innerHTML="";
// document.getElementById("livesearch").
// style.border="0px";
 return
 } 

xmlHttp=GetXmlHttpObject();

if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 

//liveSearchReq.open("GET", liveSearchRoot + "/common/livesearch.php?"+"&q=" + searchform.q2.value + liveSearchParams2);
	
var url="http://www.tangkoko.co.uk/c/ls.php";
url=url+"?q="+str
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
} 

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("livesearch").
  innerHTML=xmlHttp.responseText;
document.getElementById("livesearch").style.display="block";
document.getElementById("livesearch").style.zIndex="1020";
document.getElementById("livesearch").style.visiblity="visible";

 } 
}

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;
}
