function MakeArray(n)  { 
     this.length = n 
     return this 
} 

monthNames = new MakeArray(12) 
monthNames[1] = "janvier" 
monthNames[2] = "fevrier" 
monthNames[3] = "mars" 
monthNames[4] = "avril" 
monthNames[5] = "mai" 
monthNames[6] = "juin" 
monthNames[7] = "juillet" 
monthNames[8] = "aout" 
monthNames[9] = "septembre" 
monthNames[10] = "octobre" 
monthNames[11] = "novembre" 
monthNames[12] = "decembre" 

dayNames = new MakeArray(7) 
dayNames[1] = "dimanche" 
dayNames[2] = "lundi" 
dayNames[3] = "mardi" 
dayNames[4] = "mercredi" 
dayNames[5] = "jeudi" 
dayNames[6] = "vendredi" 
dayNames[7] = "samedi" 

oneDate = new Date();

function customDateString(oneDate)  { 
     var theDay = dayNames[oneDate.getDay() + 1] 
     var theMonth = monthNames[oneDate.getMonth() + 1] 
     var theYear = oneDate.getYear()
     if (theYear < 2000)
	{ theYear = theYear + 1900 }
     var theSuffix = ""
     var theDayNo = oneDate.getDate()
     if (theDayNo == 1 || theDayNo == 21 || theDayNo == 31) 
	{ theSuffix = "" }
     if (theDayNo == 2 || theDayNo == 22)
	{ theSuffix = "" }
     if (theDayNo == 3 || theDayNo == 23)
	{ theSuffix = "" }
     return theDay + " " + oneDate.getDate() + theSuffix + " " + 
	theMonth + " " + theYear 
} 
