<html>
<HEAD>
<TITLE>CLOCK</TITLE>
<body text="#FFFFFF" bgcolor="#000000">


<div id=Clock align=left style="font-family: Verdana; font-size:17; color:white">&nbsp;</div>

<script>
function tick() {
  var hours, minutes, seconds, af, ab;
  var intHours, intMinutes, intSeconds;
  var today, YY, MM, DD, dd, yy;

  today = new Date();

  intHours = today.getHours();
  intMinutes = today.getMinutes();
  intSeconds = today.getSeconds();
  YY = today.getYear();
  MM = today.getMonth() + 1;
  DD = today.getDate();
  dd = today.getDay();

  if (intHours < 12) {
     hours = intHours +":";
  } else {
     hours = intHours + ":";
  }

  if (intMinutes < 10) {
     minutes = "0"+intMinutes+":";
  } else {
     minutes = intMinutes+":";
  }

  if (intSeconds < 10) {
     seconds = "0"+intSeconds+" ";
  } else {
     seconds = intSeconds+" ";
  }

  if (dd == 0)       yy = "日";
  else if (dd == 1)  yy = "月";
  else if (dd == 2)  yy = "火";
  else if (dd == 3)  yy = "水";
  else if (dd == 4)  yy = "木";
  else if (dd == 5)  yy = "金";
  else if (dd == 6)  yy = "土";

  af="現在時刻は、";
  ab="です。";
  
  timeString = af+YY+"年"+MM+"月"+DD+"日"+"（"+yy+"） "+hours+minutes+seconds+ab;

  Clock.innerHTML = timeString;

  window.setTimeout("tick();", 100);
}

window.onload = tick;


</SCRIPT>

</BODY>
</html>

