function menuchang(id) {
	var d = document.getElementById(id);
	for (var i = 1; i<=5; i++) {
		if (document.getElementById('m'+i)) {document.getElementById('m'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}

function Pop(url, nom, larg, haut) {
	var midWidth=(((window.top.screen.width)/2)-larg/2);
	var midHeight=(((window.top.screen.height)/2)-haut/2);
	var win_param=("left=" + midWidth + ",top=" + midHeight +",toolbar=no,location=no,directories=no,status=yes,alwaysRaised=yes,dependant=no,menubar=no,scrollbars=yes,resizable=yes,width=" + larg + ",height=" + haut + "");
	window.open(url, nom, win_param);
	}

function minmax(id) {
var option =  document.getElementById(id);

	isIE = (document.all)
	isGek = (!isIE) && (document.getElementById)
  
	if (isIE) option = document.all[id];
	if (isGek) option = document.getElementById(id);
  
	if (option.style.display == "none") {
		option.style.display = "block";
	}
	else {
	option.style.display = "none";
	}
}

function cacheMod() {

for(i=0; i<document.all.length; i++) {
  id = document.all[i].id;
  if(id.indexOf("mod") != -1);
  	{ document.all[i].indexOf("mod").style.display = 'none'; }
  	
if (id.indexOf("mod").style.display = inline);
{ document.all[i].indexOf("mod").style.display = 'inline'; }
	}
}

function confirmerSupp(dest, str) {
	if (confirm('Etes-vous sur de vouloir supprimer ces objets ? : ' + str) == true) {
	window.location.href = dest;
	}
	else {
	alert('suppression annulée');
	return false;
	}
}

