var xmlHttp
function track_click(str,name,company,country)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
 //alert(str + name + company);
var url="http://www.gapdirectory.co.uk/english/click_tracking.php"
url=url+"?q="+str
url=url+"&name="+name
url=url+"&company="+company
url=url+"&country="+country
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged_click_track 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged_click_track() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;

 } 
}
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;
}