
// CHARGEMENT D'UNE FEUILLE DE STYLE NE FONCTION DU NAVIGATEUR VERSION 2
//**************************************************************************************

function selectCSS(){
var agent = navigator.userAgent.toLowerCase();
var ver = parseInt(navigator.appVersion);

 if ((agent.indexOf("mozilla") != -1) && (ver >= 4) && (navigator.appName.indexOf("Netscape") != -1)){ 
	document.write('<link rel="stylesheet" href="../../css/styleNS.css" REL="stylesheet" TYPE="text/css">');} 
 else{
	document.write('<link rel="stylesheet" href="../../css/styleIE.css" REL="stylesheet" TYPE="text/css">');}
}


// Ouverture des PopUp en donnant des parametres
//**************************************************************************************
var fenetre=0;
function ouvrirPopUpArgs(urlpage,lescroll,sizeX,sizeY)
{
  if(fenetre)
  {
    if(!fenetre.closed) fenetre.close();
  }
 fenetre=window.open(urlpage,'fenetre','toolbar=no,directories=no,status=no,menubar=no,scrollbars=' +lescroll+ ',copyhistory=no,width=' +sizeX+ ',height=' +sizeY+ ', resizable=no, left=0, top=0,screenX=0,screenY=0');
}


// Appel de la popup Contact dans une autre PopUp
//**************************************************************************************
function ouvrirContact()
{
href=document.location.href;
debut=href.indexOf('/frfr/');

 if (debut >= 0)
{
	url="/frfr/contact/contact.htm";
}
 else
{
	url="/enen/contact/contact.htm";
}	

newfenetre=window.open(url,'newfenetre','width=580,height=520,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no,left=420, top=160,screenX=420,screenY=160');
}


// OUVERTURE D'UNE FENETRE A PARTIR D'UNE LISTE DEROULANTE
//**************************************************************************************
function selectIntranet(nav)
{
window.open(nav.options[nav.selectedIndex].value,'_blank');
}


// OUVERTURE D'UNE FENETRE POPUP A PARTIR D'UNE LISTE DEROULANTE : APPEL CALENDRIER JOURS FERIES
//**************************************************************************************
function ouvrirPopUpListe(lanav)
{
 window.open(lanav.options[lanav.selectedIndex].value, 'truc', 'toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,width=780,height=600, resizable=no, left=0, top=0,screenX=0,screenY=0');

}


// Ouverture d'une page dans la fenetre parent  : Oł Trouver ?
//**************************************************************************************
function my_location(url)
{
    opener.location=url;
    window.close();
}


// OUVERTURE D'UNE FENETRE POPUP A PARTIR D'UNE LISTE DEROULANTE DANS LA PAGE COURANTE : PAGES CALENDRIER JOURS FERIES
//**************************************************************************************
var maPop = 0;
function ouvrirPopUpListeSelf(lanav)
{
 window.open(lanav.options[lanav.selectedIndex].value,'_self');
}


// Fermeture D'une PopUp
//**************************************************************************************
function closePopUp(){
	document.close();
}


// Lancement Impression
//**************************************************************************************
function printPopUp(){
	document.print();
}



