function _HpbDays()
{
  this[0] = "日"; this[1] = "月"; this[2] = "火"; this[3] = "水";
  this[4] = "木"; this[5] = "金"; this[6] = "土";
}
function watch() {

now = new Date();
year = now.getYear();
month = now.getMonth()+1;
day = now.getDate();
dy = now.getDay();
dys = new _HpbDays();
dyj = dys[dy];
hour = now.getHours();
min = now.getMinutes();
sec = now.getSeconds();
if (hour < 10) { hour = "0"+hour };
if (min < 10) { min = "0"+min };
if (sec < 10) { sec = "0"+sec };
document.Today.watch.value = year+"年"+month+"月"+day+"日"+ "(" + dyj + ") "+hour+":"+min+":"+sec;
setTimeout('watch()',1000)

}
document.write('<form name="Today"><input name="watch" size="35" style="font-weight: bold;  color : purple;  background-color : palegoldenrod;  text-align : center;"></form>')

watch() 
