function tokei2() {
    now = new Date();
    year = now.getYear();
    month = now.getMonth()+1;
    day = now.getDate();
    wday=now.getDay();
    hour = now.getHours();
    minute = now.getMinutes();
    second = now.getSeconds();
   
    if (year < 1000) { year += 1900 }
    if (hour < 10) { hour = '0' + hour }
    if (minute < 10) { minute = '0' + minute }
    if (second < 10) { second = '0' + second }
    if (wday==0)  {wday='(<font color=#3326ed>'+'sun'+'</font>)'}
    if (wday==1)  {wday='(mon)'}
    if (wday==2)  {wday='(tue)'}
    if (wday==3)  {wday='(wed)'}
    if (wday==4)  {wday='(thu)'}
    if (wday==5)  {wday='(fri)'}    
    if (wday==6)  {wday='(<font color=#3326ed>'+'sat'+'</font>)'}
    
    if (document.all)
document.all.clock.innerHTML=year+'/' + month + '/' + day + '/ '+ wday + hour + ':' + minute + ':' + second;
else if (document.getElementById)
document.getElementById("clock").innerHTML=year+'/' + month + '/' + day + '/ '+ wday + hour + ':' + minute + ':' + second;
else
document.write(year+'/' + month + '/' + day + '/ '+ wday + hour + ':' + minute + ':' + second);

    setTimeout("tokei2()",1000);
}