function monthArray() {
	this[0] = "Janvier";	this[1] = "Février";	this[2] = "Mars";
	this[3] = "Avril";	this[4] = "Mai";	this[5] = "Juin";
	this[6] = "Juillet";	this[7] = "Aout";	this[8] = "Septembre";
	this[9] = "Octobre";	this[10] = "Novembre";	this[11] = "Decembre";
    return (this);
}

function dayArray() {
	this[0] = "Dimanche";	this[1] = "Lundi";	this[2] = "Mardi";
	this[3] = "Mercredi";	this[4] = "Jeudi";	this[5] = "Vendredi";
	this[6] = "Samedi";
        return (this);
}


function formatYear(year)
{
  if (year > 1900) return year
  return year+1900;
}

function writeDate()
{
   days = new dayArray();
   months = new monthArray();
   d = new Date();
   day = d.getDate();
   month = d.getMonth();
   year = d.getYear();
   str = days[d.getDay()] + " " + day + " " + months[month] +" "+formatYear(year);
  document.writeln(str);
}

function writeTime()
{
   d = new Date();
   hour=d.getHours();
   min=d.getMinutes();
   sec=d.getSeconds();
   if (hour < 10) hour = "0"+hour;
   if (min < 10) min = "0"+min;
   if (sec < 10) sec = "0"+sec;
   str = hour+"h"+min;
   document.writeln(str);
}

