// JavaScript Document
// Fonctions commune a toutes les pages de l'acces pratique
// 2009-06-10 Serge Fortin

function DateFr()
    { 
    ref_mois=new Array(12);
    ref_mois[0]="janvier"; ref_mois[1]="février";   ref_mois[2]="mars";
    ref_mois[3]="avril";   ref_mois[4]="mai";       ref_mois[5]="juin";
    ref_mois[6]="juillet"; ref_mois[7]="août";      ref_mois[8]="septembre";
    ref_mois[9]="octobre"; ref_mois[10]="novembre"; ref_mois[11]="décembre";
    ref_date=new Date(document.lastModified);
    var Mois=ref_mois[ref_date.getMonth()]; 
    var An=ref_date.getFullYear();
    return ref_date.getDate()+" "+Mois+" "+An;
    }
function detect()
    {
     framesetpage="index.htm";
     thispage=window.location.href;
     if (thispage.indexOf('://')<0)
       {thispage="://"+thispage;};
     prefix=thispage.substring(0,thispage.lastIndexOf('://'));
     suffix=thispage.substring(thispage.lastIndexOf('://')+3,thispage.length);
     if (parent.location.href==window.location.href) {parent.location.href=framesetpage+"?"+prefix+"&&&"+suffix};
    }
