// Original:  Dandello (dandello@pacifier.com) -->

// This script and many more are available free online at -->
// The JavaScript Source!! http://javascript.internet.com -->
// This script was modified for proprietary use by Ken Breeden, Renaissance Interactive, 10/19/99 -->

// Begin
var day="";
var month="";
var myweekday="";
var year="";
newdate = new Date();
mydate = new Date();
newtime=newdate.getTime();

mydate.setTime(newtime);
myday = mydate.getDay();
mymonth = mydate.getMonth();
myweekday= mydate.getDate();
weekday= myweekday;
myyear= mydate.getYear();
year = myyear;

// Y2K fix by Ken Breeden - Renaissance Interactive 1/10/00
if (year < 2000)
	year += 1900;

yhours = mydate.getHours();
if (yhours > 12) {
myhours = yhours - 12 ; mm = " pm";
}
else {
	if (yhours == 0)
		myhours = 12;
	else
		myhours = yhours;
	if (yhours == 12)
		mm = " pm";
	else
		mm = " am";
}
myminutes = mydate.getMinutes();
if (myminutes < 10){
mytime = ":0" + myminutes;
}
else {
mytime = ":" + myminutes;
};
arday = new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi")
armonth = new Array("Janvier ","Février ","Mars ","Avril ","Mai ","Juin ","Juillet ","Aôut ","Septembre ", "Octobre ","Novembre ","Decembre ")
ardate = new Array("0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31");
// rename locale as needed.

// var time = (arday[myday] +", " +ardate[myweekday] + armonth[mymonth] +" "+ ", " + year + " " + myhours + mytime + mm);
var time = (arday[myday] +", " +ardate[myweekday] + " " + armonth[mymonth] +" " + year +"   ");
document.write(time);
