
function hideSelect() {
	for (j=0; j<document.forms.length; j++) {
		var theForm = document.forms[j]
		for(i=0; i<theForm.elements.length; i++){
			if (theForm.elements[i].type == "select-one") {
				theForm.elements[i].style.visibility = "hidden";
			}
		}
	}
}

function showSelect() {
	for (j=0; j<document.forms.length; j++) {
		var theForm = document.forms[j]
		for(i=0; i<theForm.elements.length; i++){
			if (theForm.elements[i].type == "select-one") {
				theForm.elements[i].style.visibility = "visible";
			}
		}
	} 
}

function is_old_browser () {
	// old browsers : IE <= 6.0, oldies
	// new browsers : IE 7, gecko*, safari, opera, khtml*
	return typeof document.body.style.maxHeight == "undefined";
}

function montre(id) {
	var d = document.getElementById(id);
	for (var i = 1; i<=20; i++) {
		if (document.getElementById('smenu'+i)) {
			document.getElementById('smenu'+i).style.display='none';
			if (is_old_browser()) showSelect();
		}
	}
	if (d) {
		d.style.display='block';
		if (is_old_browser()) hideSelect();
	}
}
//window.onload=montre;



function OuvrirPopup(lienHTTP,width,height,scroll) {
 var fen = window.open(lienHTTP.href,'Popup','resizable=no, location=no, width='+width+', height='+height+', status=no, scrollbars='+scroll+', menubar=no');
 fen.focus();
 
 return false;
}

function OuvrirPopupPlan(lienHTTP,width,height,scroll) {
 window.open(lienHTTP,'Popup','resizable=no, location=no, width='+width+', height='+height+', status=no, scrollbars='+scroll+', menubar=no');
}