<!-- DisplayDate.js  -->

// Following script is used to custom format the Date
function MakeArray(n) {
	this.length = n
	return this
}
monthNames = new MakeArray(12)
monthNames[1] = "Jan."
monthNames[2] = "Feb."
monthNames[3] = "Mar."
monthNames[4] = "Apr."
monthNames[5] = "May"
monthNames[6] = "Jun."
monthNames[7] = "Jul."
monthNames[8] = "Aug."
monthNames[9] = "Sep."
monthNames[10] = "Oct."
monthNames[11] = "Nov."
monthNames[12] = "Dec."

dayNames = new MakeArray(7)
dayNames[1] = "Sunday"
dayNames[2] = "Monday"
dayNames[3] = "Tuesday"
dayNames[4] = "Wednesday"
dayNames[5] = "Thursday"
dayNames[6] = "Friday"
dayNames[7] = "Saturday"

function customDateString(oneDate) {
	var theDay = dayNames[oneDate.getDay() + 1]
	var theMonth = monthNames[oneDate.getMonth() + 1]
	var theYear = oneDate.getFullYear()
//	var theYear = oneDate.getYear()
//	theYear += (theYear < 100) ? 1900 : 0
//	return theDay + " - " + theMonth + " " + oneDate.getDate() + 
//", " + theYear
	return theDay + " - " + theMonth + " " + oneDate.getDate() + 
", " + theYear
}

