function ChangeSide(id) {
  sNomClass = document.getElementById('lien-onglet-'+id).className;
  
  var d = document.getElementById('lien-onglet-'+id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('lien-onglet-'+i)) {document.getElementById('lien-onglet-'+i).className="";}
	}
  if (d) {d.className='actif';}
  
  var d = document.getElementById('onglet-'+id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('onglet-'+i)) {document.getElementById('onglet-'+i).style.display="none";}
	}
  if (d) {d.style.display='block';}
  
 }
 
 function clearDisplay() { 
 	var elDownload = document.getElementById('onglet-2');
 	var elAgenda = document.getElementById('onglet-1');
 	var hd = null;
 	var ha = null;
 	if (document.all) { // ok I.E 
	 	hd = elDownload.currentStyle.height;
	 	ha = elAgenda.currentStyle.height;
	 	if (hd== 'auto' && ha == 'auto') {
 			elDownload.style.height = 120;
 			elAgenda.style.height = 120;
 		} else if (hd == 'auto') {
 			elDownload.style.height = ha;
 		} else if (ha == 'auto') {
 			elAgenda.style.height = hd;
 		} else if (ha > hd) {
 			elDownload.style.height = ha;
 		} else {
 			elAgenda.style.height = hd;
 		}
 	}
 	else {
	 	hd = document.defaultView.getComputedStyle(elDownload, null).height;
	 	ha = document.defaultView.getComputedStyle(elAgenda, null).height;
	 	if (hd== 'auto' && ha == 'auto') {
 			document.defaultView.getComputedStyle(elDownload, null).height = 130;
 			document.defaultView.getComputedStyle(elAgenda, null).height = 130;
 		} else if (hd == 'auto') {
 			elDownload.style.height = ha;
 		} else if (ha == 'auto') {
 			elAgenda.style.height = hd;
 		} else if (ha > hd) {
 			elDownload.style.height = ha;
 		} else {
 			elAgenda.style.height = hd;
 		}	
 	}
 }
 
function displayListNew(page, nbPage) {
	for (var i=1; i <=nbPage; i++) {
		document.getElementById('div-list-'+i).style.display = 'none';
	}
	document.getElementById('div-list-'+page).style.display = 'block';
}
