//_main/_library/textual_date.js
//1.00, MC, 18/11/07

function textual_date(d8){
	day=d8.getDate()
	if (day==1) suffix=("st")
	else if (day==2) suffix=("nd")
	else if (day==3) suffix=("rd")
	else if (day==21) suffix=("st")
	else if (day==22) suffix=("nd")
	else if (day==23) suffix=("rd")
	else if (day==31) suffix=("st")
	else suffix=("th")
	month=new Array(12)
	month[0]="Jan"
	month[1]="Feb"
	month[2]="Mar"
	month[3]="Apr"
	month[4]="May"
	month[5]="Jun"
	month[6]="Jul"
	month[7]="Aug"
	month[8]="Sep"
	month[9]="Oct"
	month[10]="Nov"
	month[11]="Dec"
	return day+suffix+" "+month[d8.getMonth()]+" "+right(d8.getFullYear(),2)
}