Date.prototype.getDayName = function()
{
	return ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'][this.getDay()];
}
Date.prototype.getMonthName = function()
{
	return ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'][this.getMonth()]; 
}
Date.prototype.getDaySuffix = function()
{
	n = this.getDate();
	return n + ["th","st","nd","rd"][(!( ((n%10) >3) || (Math.floor(n%100/10)==1)) ) * (n%10)];
}
Date.prototype.getFormattedDate = function()
{
	return this.getDayName() + "%20" + this.getDaySuffix() + "%20" + this.getMonthName();
}
echoSportDate = function()
{
	today = new Date();
	document.write("<h3 style=\"background-image: url(http://sport.netpreference.co.uk/DynamicHeader/TabDate.php?text="+today.getFormattedDate()+"&amp;tag=h3); background-repeat:no-repeat\">&nbsp;</h3>");
} 
