window.addEvent('domready', function() {
    suiviUtilisateurs("JSFIRST_CALL",PAGE_ID,LANGCODE,ZONECODE,SITE);
});


function suiviUtilisateurs(MODE,PAGE_CONSULTEE,LANGCODE,ZONECODE,SITE){
	/*
	if (window.XMLHttpRequest) { // Mozilla, Safari, ...
		httpRequest = new XMLHttpRequest();
	}
	else if (window.ActiveXObject) { // IE
		httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
	}
	httpRequest.onreadystatechange = function() {
    // instructions de traitement de la réponse
	};
	*/
	variables="";
	variables+="MODE="+MODE+"&";
	variables+="SITE="+SITE+"&";
	variables+="PAGE_CONSULTEE="+PAGE_CONSULTEE+"&";
	variables+="LANGCODE="+LANGCODE+"&";
	variables+="ZONECODE="+ZONECODE+"&";
	variables+="SCREEN_SIZE="+screen.width+"/"+screen.height+"&";
	variables+="SCREEN_AVAIL_SIZE="+screen.availWidth+"/"+screen.availHeight+"&";
	variables+="SCREEN_COLOR_DEPTH="+screen.colorDepth+"&";
	variables+="MAIN_URL="+document.location+"&";
	variables+="UID="+UID+"&";
	variables+="rando="+Math.random()+"&";
	variables+="getReturn=true&";
	
	
	var req = new Request({
		url: RACINE_PROJET+'ws_tracking/implement/suiviUtilisateurs.php',
		method: 'get',
		data:variables,
		evalScripts:true,
		onSuccess: function(){
		},
		onFailure: function(){
		}
	});
	req.send();
	
	
	//httpRequest.open('GET', RACINE_PROJET+'ws_tracking/implement/suiviUtilisateurs.php?'+variables, true);
	//httpRequest.send();
	
}

