//REDIRECTION
function redirigerVersPageFromPopUp(lien){
	var source = window.opener;
	if(source){
		// I think the problem might be the word parent.
		window.opener.parent.location.href=lien;
		self.close();	
	}else{
		window.location.href=lien;
	}
}
//FIN REDIRECTION

//CENTRER UNE POPUP
function popupCentrer(page,largeur,hauteur,options) {

  var top=(screen.height-hauteur)/2;
  var left=(screen.width-largeur)/2;
  window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}
//FIN CENTRER UNE POPUP 


//OUVRIR POPUP
function ouvrirPopUp(popupUrl, popUpName, dim){
	window.open(popupUrl,popUpName, dim);
}
//FIN OUVRIR POPUP

//POP UP CONFIRMATION
function ouvrirPopUpConfirmation(message,lien){
var agree = confirm(message);
if(agree)
{
document.location.href = lien;
}	
}
//FIN POP UP CONFIRMATION 