/*


function news(id) { 
	var xhr_object = null; 

	entree = new Date;
	entree = entree.getTime();

	if(window.XMLHttpRequest)
		xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else { 
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		return; 
	} 
	var method = "GET";
	if(window.location.pathname=="/"){
		var filename = "./_boxes/news.box.inc.php?page="+id;
	} else {
		var filename = "./_boxes/news.box.inc.php?page="+id;
	}
	xhr_object.open(method, filename, true); 
	xhr_object.onreadystatechange = function() { 
		if(xhr_object.readyState == 1) { 
		//	document.getElementById('XMLnews_refresh').innerHTML = "Chargement...";
		//	document.getElementById('XMLnews_bottom').innerHTML = "<span class=\"status\"><img src=\"./_themes/chargmnt.gif\" align=\"right\"/>Chargement en cours...</span>";
			document.getElementById('XMLnews_refresh').innerHTML = "<span class=\"status\"><img src=\"./_themes/chargmnt.gif\" align=\"right\"/>Chargement en cours...</span>";
		} 
		if(xhr_object.readyState == 4) {

		 fin = new Date;
		 fin = fin.getTime();
		
		 temps = (fin-entree);
	//	 microsecondes = (fin-entree);
	//	 secondes = (fin-entree)/1000;
		 if(temps>=1000){
		    tps=(fin-entree)/1000;
		    denom='sc';
		 }
		  else {
		    tps=(fin-entree);
		    denom='ms';
		 }

			if(xhr_object.status == 200)
			{
			//	document.getElementById('XMLnews_bottom').innerHTML = "<span class=\"status\">Termin&eacute;</span><span class=\"tps\">(" + tps + denom + ")</span>";
				document.getElementById('XMLnews_refresh').innerHTML = xhr_object.responseText;
			}
			else
			{
			//	document.getElementById('XMLnews_bottom').innerHTML = "<span class=\"status\">Termin&eacute; - Error: returned status code " + xhr_object.status + " " + xhr_object.statusText + "</span><span class=\"tps\">(" + tps + denom + ")</span>";
				document.getElementById('XMLnews_refresh').innerHTML = "<span class=\"status\">Termin&eacute; - Error: returned status code " + xhr_object.status + " " + xhr_object.statusText + "</span><span class=\"tps\">(" + tps + denom + ")</span>";
			}
		} 
	}
	xhr_object.send(null);
}


function openPopUp(page,nom,width,height) {
	var option_width       = 'width='+width+',';
	var option_height      = 'height='+height+',';
	var option_scrollbars  = 'scrollbars=yes,';
	var option_resizable   = 'resizable=no,';
	var option_location    = 'location=no,';
	var option_menubar     = 'menubar=no,';
	var option_status      = 'status=no,';
	//var option_innerWidth  = 'innerWidth=100,';
	//var option_innerHeight = 'innerHeight=200,';
	//var option_screenX     = 'screenX=100,';
	//var option_screenY     = 'screenY=200,';
	var option_left        = 'left=200,';
	var option_top         = 'top=100,';
	var option_dependent   = 'dependent=yes';

	var wd = window.open(page,nom,option_width+option_height+option_scrollbars+option_resizable+option_location+option_menubar+option_status+option_left+option_top+option_dependent);
	wd.self.focus();
}

*/