﻿function MakeArray(n) {
	this.length = n
	return this
}
monthNames = new MakeArray(12)
monthNames[1] = "Ιανουαρίου"
monthNames[2] = "Φεβρουαρίου"
monthNames[3] = "Μαρτίου"
monthNames[4] = "Απριλίου"
monthNames[5] = "Μαΐου"
monthNames[6] = "Ιουνίου"
monthNames[7] = "Ιουλίου"
monthNames[8] = "Αυγούστου"
monthNames[9] = "Σεπτεμβρίου"
monthNames[10] = "Οκτωβρίου"
monthNames[11] = "Νοεμβρίου"
monthNames[12] = "Δεκεμβρίου"
dayNames = new MakeArray(7)
dayNames[1] = "Κυριακή"
dayNames[2] = "Δευτέρα"
dayNames[3] = "Τρίτη"
dayNames[4] = "Τετάρτη"
dayNames[5] = "Πέμπτη"
dayNames[6] = "Παρασκευή"
dayNames[7] = "Σαββάτο"

function customDateString() {
	currentDate = new Date()
	var theDay = dayNames[currentDate.getDay() + 1]
	var theMonth = monthNames[currentDate.getMonth() + 1]
	msie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
	if (msie4) {
	    var theYear = currentDate.getYear()
	}
	else {
	     var theYear = currentDate.getYear() +1900
	}
	return theDay + " " + currentDate.getDate() +  " " +  theMonth + ", " +  theYear
}
//-->