﻿function Chg_Index(BaseURL) {
ChgTime = 2000

//圖片
ImgSrc = new Array()
ImgSrc[0] = BaseURL + "images/icon_strategy_mg.jpg"
ImgSrc[1] = BaseURL + "images/icon_strategy_it.jpg"
ImgSrc[2] = BaseURL + "images/icon_strategy_all.jpg"
//
ReportURL = new Array()
ReportURL [0] = BaseURL + "info/str/ma/default.html"
ReportURL [1] = BaseURL + "info/str/it/default.html"
ReportURL [2] = BaseURL + "info/str/all03.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)

}


