// This writes the date in format: 8th October 2001
function getTodaysDate() {
	dtmToday = new Date();
	intDay = dtmToday.getDate();
	intMonth = dtmToday.getMonth() + 1;
	intYear = dtmToday.getYear();

	strS = "th";
	if (intDay == 1 || intDay == 21 || intDay == 31) {strS = "st";}
	if (intDay == 2 || intDay == 22) {strS = "nd";}
	if (intDay == 3 || intDay == 23) {strS = "rd";}

	strM = "";
	if (intMonth == 1) {strM = "January"};
	if (intMonth == 2) {strM = "February"};
	if (intMonth == 3) {strM = "March"};
	if (intMonth == 4) {strM = "April"};
	if (intMonth == 5) {strM = "May"};
	if (intMonth == 6) {strM = "June"};
	if (intMonth == 7) {strM = "July"};
	if (intMonth == 8) {strM = "August"};
	if (intMonth == 9) {strM = "September"};
	if (intMonth == 10) {strM = "October"};
	if (intMonth == 11) {strM = "November"};
	if (intMonth == 12) {strM = "December"};

	if (intYear <= 1900) {intYear += 1900;}

	document.write(intDay + strS + ' ' + strM + ' ' + intYear);
}