function adClick(id, link) {
	xmlHttp = GetXmlHttpObject();
	if (xmlHttp == null) {
		return;
	}
	var url = 'ads.php?id='+id+'&link=' + link;
	xmlHttp.open('POST', url, true);
	xmlHttp.send(null);
}

function GetXmlHttpObject() {
	var objXMLHttp = null;
	if (window.XMLHttpRequest) {
		objXMLHttp = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	return objXMLHttp;
}

