var etat = new Object();
etat.clique = '0';
function open_news()
{
	if(etat['clique'] == 0)
	{
		var xhr; 
		try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
		    catch (e) 
		    {
		        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
		        catch (e2) 
		        {
		          try {  xhr = new XMLHttpRequest();     }
		          catch (e3) {  xhr = false;   }
		        }
		     }
		xhr.onreadystatechange  = function()
		    { 
		         if(xhr.readyState  == 4)
		         {
		              if(xhr.status  == 200) 
		                 {
							 document.getElementById('archives').innerHTML = xhr.responseText; 
							 etat.clique = '1';
						 }
		              else 
		                 document.getElementById('archives').innerHTML = "<br />Erreur : " + xhr.status;
		         }
		    }; 
		xhr.open("POST", "./fonctions/archives.php","false"); 
		xhr.send(null); 
	}
	else
	{
		document.getElementById('archives').innerHTML = ""; 
		etat.clique = '0';
	}
}//fin fonction open_news
