var dayarray=new Array("&#2974;&#3006;&#2991;&#3007;&#2993;&#3009;","&#2980;&#3007;&#2969;&#3021;&#2965;&#2995;&#3021;","&#2970;&#3014;&#2997;&#3021;&#2997;&#3006;&#2991;&#3021;","&#2986;&#3009;&#2980;&#2985;&#3021;","&#2997;&#3007;&#2991;&#3006;&#2996;&#2985;&#3021;","&#2997;&#3014;&#2995;&#3021;&#2995;&#3007;","&#2970;&#2985;&#3007;")
var montharray=new Array("&#2990;&#3006;&#2992;&#3021;&#2965;&#2996;&#3007;","&#2980;&#3016;","&#2990;&#3006;&#2970;&#3007;","&#2986;&#2969;&#3021;&#2965;&#3009;&#2985;&#3007;","&#2970;&#3007;&#2980;&#3021;&#2980;&#3007;&#2992;&#3016;","&#2997;&#3016;&#2965;&#3006;&#2970;&#3007;","&#2950;&#2985;&#3007;","&#2950;&#2975;&#3007;","&#2950;&#2997;&#2979;&#3007;","&#2986;&#3009;&#2992;&#2975;&#3021;&#2975;&#3006;&#2980;&#3007;","&#2960;&#2986;&#3021;&#2986;&#2970;&#3007;","&#2965;&#3006;&#2992;&#3021;&#2980;&#3021;&#2980;&#3007;&#2965;&#3016;")

function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate="<small><font color='003366' face='Tahoma'>"+dayarray[day]+", "+daym+",<br> "+montharray[month]+" "+year+" </font></small>"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}
