// 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 = "Jan"};
	if (intMonth == 2) {strM = "Feb"};
	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 = "Aug"};
	if (intMonth == 9) {strM = "Sept"};
	if (intMonth == 10) {strM = "Oct"};
	if (intMonth == 11) {strM = "Nov"};
	if (intMonth == 12) {strM = "Dec"};

	if (intYear <= 1900) {intYear += 1900;}

	document.write(intDay + strS + ' ' + strM + ' ' + intYear);
}
