function MakeArray(n) {
	this.length = n
	return this
}

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"

function customDateString(oneDate) {
	var theMonth = monthNames[oneDate.getMonth() + 1]
	var theYear = oneDate.getYear()
	if (theYear < 1000) {
		theYear += 1900
	}	
	return theMonth + " " + oneDate.getDate() + ", " + theYear + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
}

today = new Date()
var header = getDate();// (customDateString(today));
//var header = (customDateString(today));
 

// this script fixes reload bug in Netscape

NS4 = document.layers;

if (NS4) {
  origWidth = innerWidth;
  origHeight = innerHeight;
}

function reDo() {
  if (innerWidth != origWidth || innerHeight != origHeight) {
  location.reload();
  }
}

if (NS4 && parseInt(navigator.appVersion) != 5) {
  onresize = reDo;
}

// end reload bug fix


function getDate() {
	//Define the months
	var allmonths=new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
	//Define the days
	var alldays= new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
	//var alldays= new Array("Sun", "Mon", "Tue", "Wednes", "Thur", "Fri", "Sat");

	//Create the working objects
	var tdate=new Date();
	var wholedate;

	//Build up the string of day, date, month, year
	wholedate= alldays[tdate.getDay()] + " " + tdate.getDate() + " " + allmonths[tdate.getMonth()] + ", " + getResolvedYear();

	//Write to the document.
	//document.write (wholedate);
	return wholedate + "&nbsp;&nbsp;&nbsp;";
}

function getResolvedYear() {
	var tdate=new Date();
	var Year;

	//
	if (tdate.getFullYear)
	{
		Year = tdate.getFullYear();
	} else	{
		Year = today.getYear();
		if (Year < 1999) Year += 1900;
	}

	return Year;


}

