// FONCTION JAVASCRIPT permettant de masquer / afficher un élément
// Disponible sur le SdZ : http://www.siteduzero.com/tutoriel-3-8133-le-css-via-js.html#ss_part_3
function toggleDisplay(elmt, elmt1, elmt2, type)
{
	if(typeof elmt == "string")
		elmt = document.getElementById(elmt);
	if(typeof elmt1 == "string")
		elmt1 = document.getElementById(elmt1);
	if(typeof elmt2 == "string")
		elmt2 = document.getElementById(elmt2);
		
	if(type == "tableau")
	{
		// affichage / masquage de elmt
		if(elmt.style.display == "none")
			elmt.style.display = "block";
		else
			elmt.style.display = "none";
		// affichage / masquage du libelle "Données du capteur ..."
		if(elmt.style.display == "none" && elmt1.style.display == "none")
			elmt2.style.display = "none";
		else
			elmt2.style.display = "block";
	}
	if(type == "date")
	{	
		elmt.style.display = "inline";
		elmt1.style.display = "none";
		elmt2.style.display = "none";
	}
}

function toggleDisplayCourbe(elmt)
{
	if(typeof elmt == "string")
		elmt = document.getElementById(elmt);
	if(elmt.style.display == "none")
		elmt.style.display = "";
	else
		elmt.style.display = "none";
}