// Fonction permettant de cocher tous les éléments contenus dans un block portant un id
function tout_cocher(container_id)
{
    var rows = document.getElementById(container_id).getElementsByTagName('input');
    var checkbox;
	var cpt = 0;
    while (cpt < rows.length)
	{
        checkbox = rows[cpt];
        if(checkbox && checkbox.type == 'checkbox')
		{
			checkbox.checked = true;
        }
		cpt = cpt + 1
    }
	return true;
}
//------------------------------------------------------------------------------------------------------------------------------------------

// Fonction permettant de décocher tous les éléments contenus dans un block portant un id
function tout_decocher(container_id)
{
    var rows = document.getElementById(container_id).getElementsByTagName('input');
    var checkbox;
	var cpt = 0;
    while (cpt < rows.length)
	{
        checkbox = rows[cpt];
        if(checkbox && checkbox.type == 'checkbox')
		{
        	checkbox.checked = false;
        }
		cpt = cpt + 1
    }
	return true;
}
//------------------------------------------------------------------------------------------------------------------------------------------
