function getHTTPObject()
{
	// code for Mozilla, etc.
	if (window.XMLHttpRequest)
  	{
  		xmlhttp=new XMLHttpRequest()
  	}
// code for IE
	else if (window.ActiveXObject)
  	{
  		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
  	}
	return xmlhttp;
}
var http = getHTTPObject();

function count_click(bannerid)
{
	//get url of ajax file
	var url = siteurl+"ajax_banner_click.php";
	url = url + "?bannerId="+ escape(bannerid);
	http.open("GET", url, true);
    http.send(null);
}
