
		/**
		 * IE-safe innerHTML setter-----marche pas
		 */ 



function IE_patch_ElementHTMLById (TableID, ligne, cell, valeur ) // s'appellait setElementHTMLById
{ 
	//Avec Internet explorer innerHTML is read/write for all objects except the following, for which it is read-only: 
	//COL, COLGROUP, FRAMESET, HTML, STYLE, TABLE, TBODY, TFOOT, THEAD, TITLE, TR.
	//Voici un script de contournement pour changer la cellule "cell" de la ligne "ligne" par la valeur "valeur"
	
	var otab = document.getElementById(TableID); // you must specify table id.
	if (otab) otab.rows[ligne].cells[cell].innerHTML= valeur;
}


function ajaxFunction(id0)

{
	
	//alert ("ajax");
	//var ajaxRequest;  // The variable that makes Ajax possible!
	
	
	
	try
		{
		// Opera 8.0+, Firefox, Safari
		window['ajaxRequest'+id0] = new XMLHttpRequest();
		} 
		
		catch (e)
		{
		// Internet Explorer Browsers
		try
			{
			window['ajaxRequest'+id0] = new ActiveXObject("Msxml2.XMLHTTP");
			} 
			catch (e) 
				{
				try
					{
					window['ajaxRequest'+id0] = new ActiveXObject("Microsoft.XMLHTTP");
					} 
						catch (e)
						{
						// Something went wrong
						alert("Votre navigateur n'est pas supporté par cette application");
						return false;
						}
				}	
		}
}
	// Create a function that will receive data sent from the server
	//ajaxRequest.onreadystatechange = 


function lanceAjax (ID1,action)
{
ajaxFunction (ID1);
	//alert (Ban);
	window['ajaxRequest'+ID1].open("GET", action, true); //identique à  "var ajaxRequesttoto" si ID1='toto'
	window['ajaxRequest'+ID1].send(null); 
	window['ajaxRequest'+ID1].onreadystatechange = function()
	{

	if(window['ajaxRequest'+ID1].readyState == 4)
			{
			var ajaxDisplay = document.getElementById(ID1);
			$rrrr= (window['ajaxRequest'+ID1].responseText);

			
			try 
				{
				ajaxDisplay.innerHTML=$rrrr;
				}
				catch (erreur) 
					{
					IE_patch_ElementHTMLById (ID1,0,0, $rrrr);
					}
			
			}
			
	}		

}



function lance (ID3,action)
{
ChangePlusMoins (ID3);
lanceAjax (ID3,action);
}

function ChangePlusMoins (ID2)
{
IDplus= ID2+'plus';
//alert (IDplus);
//alert (document.getElementById(ID2));
if (document.getElementById(ID2).className == "show") {document.getElementById(ID2).className = "hide";document.getElementById(IDplus).src= "images/plus.gif"}
	else {document.getElementById(ID2).className = "show";document.getElementById(IDplus).src= "images/minus.gif"}

}



