<script language="javascript">
function date_time()
{
var monthArr = new Array();
monthArr[0] = 'January';
monthArr[1] = 'February';
monthArr[2] = 'March';
monthArr[3] = 'April';
monthArr[4] = 'May';
monthArr[5] = 'June';
monthArr[6] = 'July';
monthArr[7] = 'August';
monthArr[8] = 'September';
monthArr[9] = 'October';
monthArr[10] = 'November';
monthArr[11] = 'December';
var x = new Date();
var prefx = 'th';
var dstr = x.toLocaleString();
if(x.getDate() == 1 || x.getDate() == 21 || x.getDate() == 31)
prefx = 'st';
if(x.getDate() == 2 || x.getDate() == 22)
prefx = 'nd';
if(x.getDate() == 3 || x.getDate() == 23)
prefx = 'rd';
var fdstr = x.toLocaleString();
document.getElementById('time').innerHTML = fdstr;
}
setInterval("date_time()", 1000);
</script>
<div id="time" name="time" style="font-weight:bold; font-size:20;text-align:right;"><br></div>