 function Tableau(n) {
    this.length=n;
    return this; }

 function  Nom_jour()
 {
    NomMois    =new Tableau(12);
    NomMois[1] ="Janvier";
    NomMois[2] ="Février";
    NomMois[3] ="Mars";
    NomMois[4] ="Avril";
    NomMois[5] ="Mai";
    NomMois[6] ="Juin";
    NomMois[7] ="Juillet"; 
    NomMois[8] ="Août";
    NomMois[9] ="Septembre";
    NomMois[10]="Octobre";
    NomMois[11]="Novembre";
    NomMois[12]="Décembre";
		
	NomJour  = new Tableau(7);
	NomJour[1]="Dimanche";
	NomJour[2]="Lundi";
	NomJour[3]="Mardi";
	NomJour[4]="Mercredi";
	NomJour[5]="Jeudi";
	NomJour[6]="Vendredi";
	NomJour[7]="Samedi";
	
    Today =new Date();
   
   return NomJour[Today.getDay()+1]; 
 }
 
function Date_jour()
{
return Today.getDate();
}
function Mois_en_cours()
{
return NomMois[Today.getMonth()+1];
}
function Annee_en_cours()
{
return 2000 + (Today.getYear() % 100) ;
}

function Nombre_de_jours()
{
var ndj = 0;
if (Today.getMonth()+1 > 1) { ndj = 31};
if (Today.getMonth()+1 > 2) { ndj = ndj + 29};
if (Today.getMonth()+1 > 3) { ndj = ndj + 31};
if (Today.getMonth()+1 > 4) { ndj = ndj + 30};
if (Today.getMonth()+1 > 5) { ndj = ndj + 31};
if (Today.getMonth()+1 > 6) { ndj = ndj + 30};
if (Today.getMonth()+1 > 7) { ndj = ndj + 31};
if (Today.getMonth()+1 > 8) { ndj = ndj + 31};
if (Today.getMonth()+1 > 9) { ndj = ndj + 30};
if (Today.getMonth()+1 > 10) { ndj = ndj + 31};
if (Today.getMonth()+1 > 11) { ndj = ndj + 30};
ndj = ndj + Today.getDate();
return ndj ;  
}

