monthNames = new Array(12);
monthNames[1] = "January";
monthNames[2] = "February";
monthNames[3] = "March";
monthNames[4] = "April";
monthNames[5] = "May";
monthNames[6] = "June";
monthNames[7] = "July";
monthNames[8] = "August";
monthNames[9] = "September";
monthNames[10] = "October";
monthNames[11] = "November";
monthNames[12] = "December";

var prefix = new Array(31);
prefix[1] = "st";prefix[2] = "nd";prefix[3] = "rd";prefix[4] = "th";prefix[5] = "th";
prefix[6] = "th";prefix[7] = "th";prefix[8] = "th";prefix[9] = "th";prefix[10] = "th";
prefix[11] = "th";prefix[12] = "th";prefix[13] = "th";prefix[14] = "th";prefix[15] = "th";
prefix[16] = "th";prefix[17] = "th";prefix[18] = "th";prefix[19] = "th";prefix[20] = "th";
prefix[21] = "st";prefix[22] = "nd";prefix[23] = "rd";prefix[24] = "th";prefix[25] = "th";
prefix[26] = "th";prefix[27] = "th";prefix[28] = "th";prefix[29] = "th";prefix[30] = "th";
prefix[31] = "st";

var d = new Date();
var theMonth = monthNames[d.getMonth() + 1];
if(navigator.appName=='Netscape')
var theYear = d.getYear()+1900;
else
var theYear = d.getYear();
var datestring= theMonth +" "+d.getDate() +""+prefix[d.getDate()]+" ,"+ theYear;
document.write(datestring);


