function popup(nom_page, nom_fenetre)
{
	window.open(nom_page, nom_fenetre, config='height=600, width=900,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no')
}

// a_faire params => 0 : décocher; 1 : cocher; 2 : inverser

function GestCheckBox(conteneur, a_faire) 
{
	var blnEtat=null;
	var Chckbox = document.getElementById(conteneur).firstChild;
		while (Chckbox!=null) 
		{
			if (Chckbox.nodeName=="input")
				if (Chckbox.getAttribute("type")=="checkbox") 
				{
					blnEtat = (a_faire=='0') ? false : (a_faire=='1') ? true : (document.getElementById(Chckbox.getAttribute("id")).checked) ? false : true;
					document.getElementById(Chckbox.getAttribute("id")).checked=blnEtat;
				}
			Chckbox = Chckbox.nextSibling;
		}
}
