// JavaScript Document

/*************************************************/
/*             requette AJAX                     */
/*************************************************/
function RequeteA(url,id)
{
	var xhr_object = null;
	var position = id;
	document.getElementById(position).innerHTML = "<div><img src='../images/loading.gif' /></div>";
	document.getElementById(position).style.display="block";
	   if(window.XMLHttpRequest)  xhr_object = new XMLHttpRequest();
	  else
	    if (window.ActiveXObject)  xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	// On ouvre la requete vers la page désirée
	xhr_object.open("GET", url, true);
	xhr_object.onreadystatechange = function(){
	if ( xhr_object.readyState == 4 )
	{
		// j'affiche dans la DIV spécifiées le contenu retourné par le fichier
		document.getElementById(position).innerHTML = xhr_object.responseText;
	}
	}
	// dans le cas du get
	xhr_object.send(null);
}

/**********************************************************/
/*                 Permutation des onglets                */
/**********************************************************/
function rotation_Ong(){			
	for(var i=1;i<=rotation_Ong.arguments[5];i++){
		document.getElementById(rotation_Ong.arguments[0]+i).className=rotation_Ong.arguments[1];
		document.getElementById(rotation_Ong.arguments[2]+i).className=rotation_Ong.arguments[3];
	}
	document.getElementById(rotation_Ong.arguments[0]+rotation_Ong.arguments[4]).className=rotation_Ong.arguments[1]+"_select";
	document.getElementById(rotation_Ong.arguments[2]+rotation_Ong.arguments[4]).className=rotation_Ong.arguments[3]+"_select";
}
