try 
{
	http = new XMLHttpRequest(); /* e.g. Firefox */
} 
catch(e) 
{
	try 
	{
    	http = new ActiveXObject("Msxml2.XMLHTTP"); 
  	}
	catch (e) 
	{
    	try 
		{
    		http = new ActiveXObject("Microsoft.XMLHTTP");  /* some versions IE */
    	} 
		catch (E) 
		{
			http = false;
		} 
	} 
}

/*
function TrackSiteHit(site_id) // url = xyz.php?mode=
{

	var url_str = "http://bestourismdeals.com/console/includes/_ajax.module.php?response=SITE_HIT&site_id="+site_id;
	
	
	
	var myRandom=parseInt(Math.random()*99999999);  // cache buster

	// alert(url_str);
	http.open("POST", url_str+"&rand=" + myRandom, true);
	http.onreadystatechange = handleHttpHitSiteResponse;
	http.send(null);
}
*/

function TrackSiteHit(site_id) // url = xyz.php?mode=
{

	var url_str = "http://www.besttourismdeals.com/console/includes/_ajax.module.php?response=SITE_HIT&site_id="+site_id;
	
	//var url_str = "http://126.0.0.100/btd/includes/_ajax.module.php?response=SITE_HIT&site_id="+site_id;
	
	var myRandom=parseInt(Math.random()*99999999);  // cache buster
	// alert(url_str);
	http.open("GET", url_str+"&rand=" + myRandom, true);
	http.onreadystatechange = handleHttpHitSiteResponse;
	http.send(null);
}

function handleHttpHitSiteResponse() // success! now don't do nething!
{
	//alert(http.responseText);
	if (http.readyState == 4) 
	{
		// alert(http.responseText);
		// results = http.responseText.split("~");
  	}
}