tim_dsp();

function tim_dsp(){
  stance = 8*60*60*1000; //8時間の時差
  yobi = new Array("日","月","火","水","木","金","土")

//現在の時刻の取得＆表示
  gtim0 = new Date();
  mn0 = gtim0.getMonth() + 1;
  txt0 = "";
  txt0 = txt0 + gtim0.getFullYear() + "年";
  txt0 = txt0 + mn0 + "月";
  txt0 = txt0 + gtim0.getDate() + "日";
  txt0 = txt0 + "(" + yobi[gtim0.getDay()] + ")";
  txt0 = txt0 + gtim0.getHours() + "時";
  txt0 = txt0 + gtim0.getMinutes() + "分";
  txt0 = txt0 + gtim0.getSeconds() + "秒";
  document.frm1['tim0'].value = txt0;

//8時間前の時刻の取得＆表示
  gtim0 = new Date();
  gtim0.setTime(gtim0.getTime() - stance);
  mn0 = gtim0.getMonth() + 1;
  txt0 = "";
  txt0 = txt0 + gtim0.getFullYear() + "年";
  txt0 = txt0 + mn0 + "月";
  txt0 = txt0 + gtim0.getDate() + "日";
  txt0 = txt0 + "(" + yobi[gtim0.getDay()] + ")";
  txt0 = txt0 + gtim0.getHours() + "時";
  txt0 = txt0 + gtim0.getMinutes() + "分";
  txt0 = txt0 + gtim0.getSeconds() + "秒";
  document.frm1['tim1'].value = txt0;

//8時間後の時刻の取得＆表示
  gtim0 = new Date();
  gtim0.setTime(gtim0.getTime() + stance);
  mn0 = gtim0.getMonth() + 1;
  txt0 = "";
  txt0 = txt0 + gtim0.getFullYear() + "年";
  txt0 = txt0 + mn0 + "月";
  txt0 = txt0 + gtim0.getDate() + "日";
  txt0 = txt0 + "(" + yobi[gtim0.getDay()] + ")";
  txt0 = txt0 + gtim0.getHours() + "時";
  txt0 = txt0 + gtim0.getMinutes() + "分";
  txt0 = txt0 + gtim0.getSeconds() + "秒";
  document.frm1['tim2'].value = txt0;
}

