function MakeArray(a)
{
  this.length = a;
  return this;
}

monthNames = new MakeArray(12);
monthNames[1] = "Jan";
monthNames[2] = "Feb";
monthNames[3] = "March";
monthNames[4] = "April";
monthNames[5] = "May";
monthNames[6] = "June";
monthNames[7] = "July";
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.getYear() + 1900 ;
  if (document.layers)
  {
    if ( theYear < 100 )
      theYear +=1900;
  }
  else
  {
    theYear = theYear - 1900;
  }
  return theDay + ", " + theMonth + " " + oneDate.getDate() + ", " + theYear;
}

function goPage(page) {  document.location=page;}

function tdOver(src,overColor){ 
	if (!src.contains(event.fromElement)){ 
		src.style.cursor = 'hand'; 
		src.bgColor = overColor; 
		
	} 
} 

function tdOut(src,outColor){ 
	if (!src.contains(event.toElement)){ 
		src.style.cursor = 'default'; 
		src.bgColor = outColor;
		
	} 
}

function tdClick(src){ 
	if(event.srcElement.tagName=='TD')
		src.children.tags('A')[0].click();
}

