function dateToday()
/*********************************************************************************/
/* Function: dateToday
/* Purpose:  Puts out today's date to a web page 
/* Input:    None                                            
/* Output:   Action only
/* Author:   B Harries
/* Date:     6th August 2005
/*********************************************************************************/

{
 var dayName = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
 var monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
 var now = new Date;
 var nowYear = now.getYear();
 if (nowYear<2000)
    nowYear+=1900;
 var today = now.getDate();
 var suffix = "th";
 if ((today==1)||(today==21)||(today==31))
    suffix="st";
 if ((today==2)||(today==22))
    suffix="nd";
 if ((today==3)||(today==23))
    suffix="rd";
 document.write(now.getDate()+ suffix + " " + monName[now.getMonth()] + " "+nowYear);
};

function dateModified()
/*********************************************************************************/
/* Function: dateModified
/* Purpose:  Puts date the document was last updated onto the footer of the page
/* Input:    None                                            
/* Output:   Action only
/* Author:   B Harries
/* Date:     6th August 2005
/* Notes:    Use the document object to find out when last changes and outputs
/*           the information to the footer of each web page
/*********************************************************************************/

{
 document.write("Updated: "+document.lastModified);
};