/* ADS */

function RecordClickOnAds(code_identifiant){
	var xhr_object = null;
		if(window.XMLHttpRequest) // Firefox
		xhr_object = new XMLHttpRequest();
	else if(window.ActiveXObject) // Internet Explorer
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
	else { // XMLHttpRequest non supporté par le navigateur
		alert("ERROR");
		return;
	}

	xhr_object.open("POST", "Functions/SaveClickOnAds.php", true);
	var data =encodeURI("code_identifiant="+code_identifiant);
	xhr_object.onreadystatechange = function() {
		if(xhr_object.readyState == 4) {
		}
	}
	//Send the proper header information along with the request
	xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xhr_object.setRequestHeader("Content-length", data.length);
	xhr_object.setRequestHeader("Connection", "close");
	xhr_object.send(data);
}
