// JavaScript Document

// Note that this script takes no account of leap years, but it should still work ok

<!-- GRAB DATE FROM THE COMPUTER -->
var now = new Date();
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

dayno = now.getDay();
var day = days[dayno];
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
var monthno = ((now.getMonth()<10) ? "0" : "")+ now.getMonth();
var month = months[monthno];
var year = now.getFullYear(); 

var hours = now.getHours();
var mins = now.getMinutes();
var secs = now.getSeconds();
var msecs = now.getMilliseconds();

// Get end bit of date right!
if (date == 1 || date == 21 || date ==  31)
	date_end_bit = "st";
else if (date == 2 || date == 22)
	date_end_bit = "nd";
else if (date == 3 || date == 23)
	date_end_bit = "rd";
else
	date_end_bit = "th";
