var derniere_reponse_ouverte;
var dernier_axe;

function affiche_reponse(id_question, axe)
{
	var div=id_question+'_'+axe;
	var li='li_'+id_question+'_'+axe;
	
	if(derniere_reponse_ouverte!=null && derniere_reponse_ouverte==div)
	{
		cache_reponse(div, axe);
		derniere_reponse_ouverte=null;
		dernier_axe=null;
	}
	else if(derniere_reponse_ouverte!=null && derniere_reponse_ouverte!=div)
	{
		cache_reponse(derniere_reponse_ouverte, dernier_axe);
		document.getElementById(div).style.display='block';
		document.getElementById(li).style.listStyle="url('../../images/"+axe+"/puce_aide_ouverte.gif')";
		derniere_reponse_ouverte=div;
		dernier_axe=axe;
	}
	else
	{
		document.getElementById(div).style.display='block';
		document.getElementById(li).style.listStyle="url('../../images/"+axe+"/puce_aide_ouverte.gif')";
		derniere_reponse_ouverte=div;
		dernier_axe=axe;
	}
}



function cache_reponse(div, axe)
{
	var li='li_'+div;
	
	document.getElementById(div).style.display='none';
	document.getElementById(li).style.listStyle="url('../../images/"+axe+"/puce_aide.gif')";
	derniere_reponse_ouverte=null;
	dernier_axe=null;
}