function insertSWF(fichier,w,h) {
	document.write('<object type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" data="'+fichier+'">\n');
	document.write('<param name="movie" value="'+fichier+'" />\n');
	document.write('<param name="wmode" value="transparent" />');
	document.write('</object>\n');
}
function hauteur_fenetre(){
	if (window.innerHeight) return window.innerHeight;
	else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
	else return 0;
} 
function largeur_fenetre(){
	if (window.innerWidth) return window.innerWidth;
	else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
	else return 0;
}

function statistiques(iduser,action,nom){
	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("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
	   return;
	}
	
	var method   = "GET";
	var filename = "admin/statistiques.php";
	var data     = null;
	
	data = "iduser="+iduser+"&action="+action+"&nom="+nom;	

   filename += "?"+data;
   data      = null;	
	xhr_object.open(method, filename, true);
	
	xhr_object.onreadystatechange = function() {
	   if(xhr_object.readyState == 4) {
		  var tmp = xhr_object.responseText;
	   }
	}	
	
	xhr_object.send(data);
}