/*
* Fonction qui charge la popup qui demande à l'utilisateur s'il désire changer son code confidentiel.
*/

/*
function chargerPopupMDP(){
window.open('../html/popupMDP.jsp','popupMDP','width=400,height=550,menubar=no,directories=no,scrollbars=no,status=no,toolbar=no,resizable=no');
}

function chargerPopupMDP(){
alert('function chargerPopupMDP');
var changermdp = window.showModalDialog('../html/popupMDP.jsp','changermdp','dialogWidth=400,dialogHeight=550,scroll=no,status=no,resizable=no');

if(changermdp=='1')
	window.location='../jsp/login.jsp';
}

function chargerEcranMDP(){
var changermdp = '1';
window.returnValue = changermdp;
alert('close');
alert(changermdp);
window.close();
}

function fermerPopup(){
window.close();
}

function showModalFenetre(){
var changermdp = window.showModalDialog('../html/popupMDP.jsp',null,'dialogWidth:400px,dialogHeight:550px,scroll:no,status:no,resizable:no');
				if(changermdp=='1')
				window.location='../jsp/changementMDP.faces';
}
*/
function closePopup(){
el=document.getElementById("popup");
el.style.visibility="hidden";
}


function showDiv(divName) {
	if (document.getElementById(divName)) {
		showMask();
		/*document.getElementById(divName).style.display = "block";*/
		
		if (document.getElementById("info-log")) {

			document.getElementById("info-log").style.display = "none";

			var contenuDivAide = document.getElementById(divName).innerHTML;
			if (document.getElementById("popup_aide_bloc_droit")) {
				document.getElementById("popup_aide_bloc_droit").innerHTML = contenuDivAide;
				document.getElementById("popup_aide_bloc_droit").style.display = "block";
			}
		}
	}
}

function hideDiv(divName) {
	if (document.getElementById(divName)) {
		/*document.getElementById(divName).style.display = "none";*/

		if (document.getElementById("info-log")) {
			if (document.getElementById("popup_aide_bloc_droit")) {
				document.getElementById("info-log").style.display = "block";
				document.getElementById("popup_aide_bloc_droit").style.display = "none";
			}
		}

		hideMask();
	}
}

function showMask() {
	document.getElementById("mask").style.display = "block";
	document.getElementById("mask").style.height = document.body.scrollHeight;
}

function hideMask() {
	document.getElementById("mask").style.display = "none";
}

function ouvre_popup(url){
	window.open(url,null,"menubar=no,status=no,scrollbars=no");
}




