function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

var newWin = null;
function closeWin(){
if (newWin != null){
if(!newWin.closed)
newWin.close();
}
}
function popUp(strURL,strType,strHeight,strWidth) {
closeWin();
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,
height="+strHeight+",width="+strWidth;
newWin = window.open(strURL, 'newWin', strOptions);
newWin.focus();
} 
/*
INSEREZ CE CODE UNE SEULE FOIS DANS LE HEAD DEVOTRE PAGE
*/
function makevisible(cur,which)
        {
        if(document.getElementById)
                {
                if (which==0)
                        {
                        if(document.all)
                                cur.filters.alpha.opacity=100
                        else
                                cur.style.setProperty("-moz-opacity", 1, "");
                        }
                else
                        {
                        if(document.all)
                                cur.filters.alpha.opacity=40
                        else
                                cur.style.setProperty("-moz-opacity", .4, "");
                        }
                }
        }
function VersionNavigateur(Netscape, Explorer) {
  if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      
      (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
    return true;
else return false;
}
function Semaine(){
           this[0] = "Dimanche";  this[1] = "Lundi";
           this[2] = "Mardi";     this[3] = "Mercredi";
           this[4] = "Jeudi";     this[5] = "Vendredi";
           this[6] = "Samedi";
           }

function Mois(){
           this[0] = "Janvier";    this[1] = "Février";
           this[2] = "Mars";       this[3] = "Avril";
           this[4] = "Mai";        this[5] = "Juin";
           this[6] = "Juillet";    this[7] = "Août";
           this[8] = "Septembre";  this[9] = "Octobre";
           this[10] = "Novembre";  this[11] = "Décembre";
           }
today = new Date;
function date(){
        var semaine=new Semaine();
        var mois=new Mois();
        var myDate=new Date();
        annee = today.getFullYear();
  

        var result=semaine[myDate.getDay()]+" "+myDate.getDate()+" "+mois[myDate.getMonth()]+" "+annee;
        document.writeln(result);
    }
        function openWin( windowURL, windowName, windowFeatures ) { 
                return window.open( windowURL, windowName, windowFeatures ) ; 
        }

function tS(){
    x=new Date();
    x.setTime(x.getTime());
    return x;
}
function lZ(x){
    return (x>9)?x:'0'+x;
}
function dT(){
    if(fr==0){
        fr=1;
        document.write(" " + '<span id="tP">'+eval(oT)+'</span>');
    }
    document.getElementById("tP").innerHTML =  eval(oT);
    setTimeout('dT()',1000);
}
var fr=0;
oT="tS().getHours()+':'+lZ(tS().getMinutes())+':'+lZ(tS().getSeconds())";
