var Digital = new Date();
var day = Digital.getDay();
var mday = Digital.getDate();
var month = Digital.getMonth();
var myear = Digital.getFullYear();
var hours = Digital.getHours();
if (hours < 11) { Xapm='AM' }
else if (hours > 11) { Xapm='PM' }

if (hours == 0) { xhours = '12' }
else if (hours == 1) { xhours = '01' }
else if (hours == 2) { xhours = '02' }
else if (hours == 3) { xhours = '03' }
else if (hours == 4) { xhours = '04' }
else if (hours == 5) { xhours = '05' }
else if (hours == 6) { xhours = '06' }
else if (hours == 7) { xhours = '07' }
else if (hours == 8) { xhours = '08' }
else if (hours == 9) { xhours = '09' }
else if (hours == 12) { xhours = '12' }
else if (hours == 13) { xhours = '01' }
else if (hours == 14) { xhours = '02' }
else if (hours == 15) { xhours = '03' }
else if (hours == 16) { xhours = '04' }
else if (hours == 17) { xhours = '05' }
else if (hours == 18) { xhours = '06' }
else if (hours == 19) { xhours = '07' }
else if (hours == 20) { xhours = '08' }
else if (hours == 21) { xhours = '09' }
else if (hours == 22) { xhours = '10' }
else if (hours == 23) { xhours = '11' }
var minutes = Digital.getMinutes();

if (minutes == 0) { minutes = '00' }
else if (minutes == 1) { minutes = '01' }
else if (minutes == 2) { minutes = '02' }
else if (minutes == 3) { minutes = '03' }
else if (minutes == 4) { minutes = '04' }
else if (minutes == 5) { minutes = '05' }
else if (minutes == 6) { minutes = '06' }
else if (minutes == 7) { minutes = '07' }
else if (minutes == 8) { minutes = '08' }
else if (minutes == 9) { minutes = '09' }
var seconds = Digital.getSeconds();
if (day == 0) { dnm = 'Sunday' }
if (day == 1) { dnm = 'Monday' }
if (day == 2) { dnm = 'Tuesday' }
if (day == 3) { dnm = 'Wednesday' }
if (day == 4) { dnm = 'Thursday' }
if (day == 5) { dnm = 'Friday' }
if (day == 6) { dnm = 'Saturday' }
if (month == 0) { mnm = 'January' }
if (month == 1) { mnm = 'February' }
if (month == 2) { mnm = 'March' }
if (month == 3) { mnm = 'April' }
if (month == 4) { mnm = 'May' }
if (month == 5) { mnm = 'June' }
if (month == 6) { mnm = 'July' }
if (month == 7) { mnm = 'August' }
if (month == 8) { mnm = 'September' }
if (month == 9) { mnm = 'October' }
if (month == 10) { mnm = 'November' }
if (month == 11) { mnm = 'December' }
var mn = 'th';
if (mday == 1) { mn = 'st' }
else if (mday == 2) { mn = 'nd' }
else if (mday == 3) { mn = 'rd' }
else if (mday == 21) { mn = 'st' }
else if (mday == 22) { mn = 'nd' }
else if (mday == 23) { mn = 'rd' }
else if (mday == 31) { mn = 'st' }
document.write('<font color=#FFFFFF size=1>',dnm,', ',mnm,' ',mday,mn,' ',myear,'&nbsp;');