var now = new Date();
var yr = now.getFullYear();
var mName = now.getMonth() + 1;
var dName = now.getDay() + 1;
var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate();
if(dName==1) Day = "dimanche";
if(dName==2) Day = "lundi";
if(dName==3) Day = "mardi";
if(dName==4) Day = "mercredi";
if(dName==5) Day = "jeudi";
if(dName==6) Day = "vendredi";
if(dName==7) Day = "samedi";
if(mName==1) Month="janvier";
if(mName==2) Month="février";
if(mName==3) Month="mars";
if(mName==4) Month="avril";
if(mName==5) Month="mai";
if(mName==6) Month="juin";
if(mName==7) Month="juillet";
if(mName==8) Month="aout";
if(mName==9) Month="septembre";
if(mName==10) Month="octobre";
if(mName==11) Month="novembre";
if(mName==12) Month="décembre";
// String to display current date.
var todaysDate =(" "
+ Day
+ ", "
+ dayNr
+ ". "
+ Month
+ " "
+ yr
+ "<BR>");
document.open();
document.write(""+todaysDate+"");