function MakeArray(arrayLength) {
	this.length = arrayLength;
	for (var i = 1; i <= arrayLength; i++) this[i] = i-1;
		return this
}

function writeDate() {
dateNow = new Date();
theDay = new MakeArray(7);
theDay[0] = "Sunday"; theDay[1] = "Monday"; theDay[2] = "Tuesday"; theDay[3] = "Wednesday";
theDay[4] = "Thursday"; theDay[5] = "Friday"; theDay[6] = "Saturday";

theMonth = new MakeArray(12);
theMonth[0] = "January"; theMonth[1] = "February"; theMonth[2] = "March";
theMonth[3] = "April"; theMonth[4] = "May"; theMonth[5] = "June";
theMonth[6] = "July"; theMonth[7] = "August"; theMonth[8] = "September";
theMonth[9] = "October"; theMonth[10] = "November"; theMonth[11] = "December";

whichDay = theDay[dateNow.getDay()];
whichMonth = theMonth[dateNow.getMonth()];
whichDate = dateNow.getDate();

document.writeln(whichDay + ", " + whichMonth + " " + whichDate);
}

writeDate(0,"/");
// -->
