<!--©  Steve Tyson v1.00 15th November 2009--!>

function suffix(day)							//Function: 'suffix' to determine the day suffix. 
{                          			
   if (day == 1 || day == 21 || day == 31) return 'st';
   else if (day == 2 || day == 22) return 'nd';
   if (day == 3 || day == 23) return 'rd';
   else return 'th';
       }
//Create an array to hold the months names.
var monthArray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

dateStr = new Date(document.lastModified);   	//Set 'dateStr' to a 'new' last modified date.
words=dateStr.toGMTString().split(" ");      	//Set var 'words' to the trimed 'dateStr' & split using blank space as delimiter.
day=(Math.abs(words[1]));                    	//Set var 'day' to the 1st word converted to an absolute number.
	month=monthArray[dateStr.getMonth()];		//Set var 'month' to the month's number in 'dateStr' from the monthArray.
	document.write("This page was last updated: " +day+suffix(day)+" "+month+" "+words[3]);  //Build the string.............

