﻿function Chg_Index(BaseURL) {
ChgTime = 2000

//圖片
ImgSrc = new Array()
ImgSrc[0] = BaseURL + "images/icon_infra_nw.jpg"
ImgSrc[1] = BaseURL + "images/icon_infra_hw.jpg"
ImgSrc[2] = BaseURL + "images/icon_infra_db.jpg"
ImgSrc[3] = BaseURL + "images/icon_infra_os.jpg"
ImgSrc[4] = BaseURL + "images/icon_infra_index.jpg"
//
ReportURL = new Array()
ReportURL [0] = BaseURL + "info/infra/nw/default.html"
ReportURL [1] = BaseURL + "info/infra/hw/default.html"
ReportURL [2] = BaseURL + "info/infra/db/default.html"
ReportURL [3] = BaseURL + "info/infra/os/default.html"
ReportURL [4] = BaseURL + "info/infra/all05.html"

//
ChgLoop = 0
//ShowImg1()
mytimer = setInterval('ShowImg1()',ChgTime)

}

function ShowImg1(){
showimg1 = "<a href='" + ReportURL[ChgLoop ] +  "'><img src='" + ImgSrc[ChgLoop ] + "' width='170' height='115' /></a></td>"

document.getElementById("report_link").innerHTML = showimg1 

ChgLoop++
if(ChgLoop >= ImgSrc.length)ChgLoop = 0

}

function StopImg(){
clearInterval(mytimer)

}


