var now,hours,minutes,seconds,timeValue;
function showtime(){
  now = new Date();
  //year = now.getYear();
  year = now.getFullYear();
  month = now.getMonth()+1;
  date = now.getDate();

  hours = now.getHours();
  minutes = now.getMinutes();
  seconds = now.getSeconds();

  if(now.getDay()==0) day = "(日)"
  if(now.getDay()==1) day = "(一)"
  if(now.getDay()==2) day = "(二)"
  if(now.getDay()==3) day = "(三)"
  if(now.getDay()==4) day = "(四)"
  if(now.getDay()==5) day = "(五)"
  if(now.getDay()==6) day = "(六)"

  timeValue = year+"/"+month+"/"+date+day+" ";
  //timeValue = (hours >= 12) ? "下午 " : "上午 ";
  timeValue += ((hours > 12) ? hours : hours) + ":";
  timeValue += ((minutes < 10) ? " 0" : " ") + minutes + ":";
  timeValue += ((seconds < 10) ? " 0" : " ") + seconds;
  otopClock.innerHTML = "台灣時間 "+timeValue;
  setTimeout("showtime()",1000);
}