// JavaScript Document

//script visibilit blocs

function visibilite3(thingId)
{
 var i;
 var targetElement;
 for(i=1; i<4; i++){
  targetElement = document.getElementById("section" + i) ;
  targetElement.style.display = "none" ;
 }
 targetElement = document.getElementById("section" + thingId) ;
 targetElement.style.display = "block" ;
}



function ongletactif3(numero)
{
	var i;
 	var targetElement;
 	for(i=1; i<4; i++){
		targetElement = document.getElementById("sec" + i) ;
		targetElement.style.backgroundColor = "#E6E6E6" ;
		targetElement.style.color = "Black" ;
		targetElement.style.borderBottom = "0.1em solid #003366" ;
		
		 }
 		targetElement = document.getElementById("sec" + numero) ;
 		targetElement.style.backgroundColor = "#fff" ;
		targetElement.style.color = "#BF0000" ;
		targetElement.style.borderBottom = "0.1em solid #ffffff" ;
		
 		
}



function visibilite4(thingId)
{
 var i;
 var targetElement;
 for(i=1; i<5; i++){
  targetElement = document.getElementById("section" + i) ;
  targetElement.style.display = "none" ;
 }
 targetElement = document.getElementById("section" + thingId) ;
 targetElement.style.display = "block" ;
}



function ongletactif4(numero)
{
	var i;
 	var targetElement;
 	for(i=1; i<5; i++){
		targetElement = document.getElementById("sec" + i) ;
		targetElement.style.backgroundColor = "#E6E6E6" ;
		targetElement.style.color = "Black" ;
		targetElement.style.borderBottom = "0.1em solid #003366" ;
		
		 }
 		targetElement = document.getElementById("sec" + numero) ;
 		targetElement.style.backgroundColor = "#fff" ;
		targetElement.style.color = "#BF0000" ;
		targetElement.style.borderBottom = "0.1em solid #ffffff" ;
		
 		
}


function imprimer4 ()

{


targetElement = document.getElementById("section1") ;
targetElement.style.display = "block" ;
targetElement = document.getElementById("section2") ;
targetElement.style.display = "block" ;
targetElement = document.getElementById("section3") ;
targetElement.style.display = "block" ;
targetElement = document.getElementById("section4") ;
targetElement.style.display = "block" ;


window.print();

}


function visibilite5(thingId)
{
 var i;
 var targetElement;
 for(i=1; i<6; i++){
  targetElement = document.getElementById("section" + i) ;
  targetElement.style.display = "none" ;
 }
 targetElement = document.getElementById("section" + thingId) ;
 targetElement.style.display = "block" ;
}



function ongletactif5(numero)
{
	var i;
 	var targetElement;
 	for(i=1; i<6; i++){
		targetElement = document.getElementById("sec" + i) ;
		targetElement.style.backgroundColor = "#E6E6E6" ;
		targetElement.style.color = "Black" ;
		targetElement.style.borderBottom = "0.1em solid #003366" ;
		
		 }
 		targetElement = document.getElementById("sec" + numero) ;
 		targetElement.style.backgroundColor = "#fff" ;
		targetElement.style.color = "#BF0000" ;
		targetElement.style.borderBottom = "0.1em solid #ffffff" ;
		
 		
}

function imprimer5 ()

{


targetElement = document.getElementById("section1") ;
targetElement.style.display = "block" ;
targetElement = document.getElementById("section2") ;
targetElement.style.display = "block" ;
targetElement = document.getElementById("section3") ;
targetElement.style.display = "block" ;
targetElement = document.getElementById("section4") ;
targetElement.style.display = "block" ;
targetElement = document.getElementById("section5") ;
targetElement.style.display = "block" ;

window.print();

}
