// JavaScript Document
var nSec=10;
function window.onload(){
startClock()
window.setInterval(changeUrl, 1000*nSec);
}

function changeUrl(){
if(document.all.kk.src=="http://www.chi.com.tw/")document.all.kk.src="http://www.chi.com.tw/ERP/ERP.htm";
else if(document.all.kk.src=="http://www.chi.com.tw/CHIERP.htm") document.all.kk.src="http://www.chi.com.tw/MWE.htm";
else if(document.all.kk.src=="http://www.chi.com.tw/professional_manager.htm") document.all.kk.src="http://www.chi.com.tw/EIP.htm";
else if(document.all.kk.src=="http://www.chi.com.tw/our_custermer.html") document.all.kk.src="http://www.chi.com.tw/BPM.htm";
else if(document.all.kk.src=="http://www.chi.com.tw/") document.all.kk.src="http://www.chi.com.tw/BI.htm";
else if(document.all.kk.src=="http://www.chi.com.tw/product_south.html") document.all.kk.src="http://www.chi.com.tw/HR.htm";
else if(document.all.kk.src=="http://www.chi.com.tw/our_custermer.html") document.all.kk.src="http://www.chi.com.tw/CFS.htm";
else document.all.kk.src="http://www.chi.com.tw/";
}
<!--
    var Temp;
    var TimerId = null;
    var TimerRunning = false;
    Seconds = 0
    Minutes = 0
    Hours = 0
    function showtime() 
    {
      if(Seconds >= 59) 
      {
        Seconds = 0
        if(Minutes >= 59) 
        {
          Minutes = 0
          if(Hours >= 23) 
          {
            Seconds = 0
            Minutes = 0
            Hours = 0
          } 
          else { 
            ++Hours 
          }
        } 
        else { 
          ++Minutes 
        }
      } 
      else { 
        ++Seconds 
      }
      if(Seconds != 1) { var ss="s" } else { var ss="" }
      if(Minutes != 1) { var ms="s" } else { var ms="" }
      if(Hours != 1) { var hs="s" } else { var hs="" }
      Temp = '停留時間： '+Hours+' 小時'+' '+Minutes+' 分'+' '+Seconds+' 秒'+''
      window.status = Temp;
      TimerId = setTimeout("showtime()", 1000);
      TimerRunning = true;
    }
    var TimerId = null;
    var TimerRunning = false;
    function stopClock() {
      if(TimerRunning) 
        clearTimeout(TimerId);
        TimerRunning = false;
    }
    function startClock() {
      stopClock();
      showtime();
    }
    function stat(txt) {
      window.status = txt;
      setTimeout("erase()", 2000);
    }
    function erase() {
      window.status = "";
    }
-->
