// Friendly Date Format

function MakeArray(n) 
{
	this.length = n;
	return this;
}

var monthNames = new MakeArray(12);
monthNames[1] = "January";
monthNames[2] = "February";
monthNames[3] = "March";
monthNames[4] = "April";
monthNames[5] = "May";
monthNames[6] = "June";
monthNames[7] = "July";
monthNames[8] = "August";
monthNames[9] = "September";
monthNames[10] = "October";
monthNames[11] = "November";
monthNames[12] = "December";

var 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";

var seasons = new MakeArray(4);
seasons[1] = "Winter";
seasons[2] = "Spring";
seasons[3] = "Summer";
seasons[4] = "Autumn";

var iSeason = new MakeArray(12);
iSeason[1] = 1;
iSeason[2] = 1;
iSeason[3] = 2;
iSeason[4] = 2;
iSeason[5] = 2;
iSeason[6] = 3;
iSeason[7] = 3;
iSeason[8] = 3;
iSeason[9] = 4;
iSeason[10] = 4;
iSeason[11] = 4;
iSeason[12] = 1;


function customDateString(oneDate)
{
	var theDay = dayNames[oneDate.getDay() +1];
	var theMonth = monthNames[oneDate.getMonth() + 1];

	var theSeason = seasons[iSeason[oneDate.getMonth()+1]];
	
	var theYear = oneDate.getYear();
	if (theYear < 100)
	{ theYear = theYear + 2000; }

	var theDate = theMonth + " " + oneDate.getDate() + ", " + theYear + " - " + theSeason;
	return theDate;
}

