function ShowTime() {
        Dt = new Date() ;
        DW = new Array('日', '月', '火', '水', '木', '金', '土') ;
        now = Dt.getFullYear()+'年'+(Dt.getMonth()+1)+'月'+Dt.getDate()+'日 '+DW[Dt.getDay()]+'曜日 '+
              Dt.getHours()+'時'+Dt.getMinutes()+'分'+Dt.getSeconds()+'秒 ';

        document.getElementById('indication').innerHTML = now ;
      }
function createRequest() {
 var req = null;
 if ("XMLHttpRequest" in window) {
  req = new XMLHttpRequest();
 } else if ("ActiveXObject" in window) {
  try {
   req = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e) {
   try {
    req = new ActiveXObject("Microsoft.XMLHTTP");
   } catch (e) {}
  }
 }
 return req;
}

function requestText() {
 var req = createRequest();
 req.open("GET", "/actions/times.php", false);
 req.setRequestHeader("If-Modified-Since", "Thu, 01 Jun 1970 00:00:00 GMT");
 req.send(null);

 var pLabel = document.getElementById("label");
 pLabel.innerHTML = req.responseText;
}
  function outputLAYER(layName,html){
    if(document.getElementById){        //e5,e6,n6,n7,m1,o7,s1用
      document.getElementById(layName).innerHTML=html
    } else if(document.all){            //e4用
      document.all(layName).innerHTML=html
    } else if(document.layers) {        //n4用
       with(document.layers[layName].document){
         open()
         write(html)
         close()
      }
    }
  }
  //--クロックセットとスタート(この関数をonloadで起動してください)
  function setclock(){
    if(document.getElementById)ClockLay=document.getElementById('clock')
    else if(document.all)      ClockLay=document.all('clock')
    else if(document.layers)   ClockLay=document.layers['clock']
    startclock()
  }
  //--クロック動作開始
  function startclock(){
    if(!clockFlg)
        clockId=setInterval('tick();clockFlg=true',1000)
    else 
        clearInterval(clockId)
  }
  //--時間文字列作成
  function tick() {
    var today = new Date()
    var timeString = '<SPAN CLASS="clockstyle">'+today+'</SPAN>'
    bunki(timeString) //出力先分岐へ
  }

  //--出力先分岐
  function bunki(timeString) {
    if(document.layers||document.all||document.getElementById){
        //--DHTML対応ならレイヤ?へ出力
        outputLAYER(ClockLay.id,timeString)
    } else {
        //--DHTML非対応ならstatus行へ出力
        status=today                    
    }
  }

