
var flag2=1;
function changeimage(id) {
	var hh,mm,ss,flag;
	currDate=new Date();
	hh=currDate.getHours();
	mm=currDate.getMinutes();
	ss=currDate.getSeconds();
	flag2 = id;
	var timestamp = '&timestamp=' + hh + mm + ss;
	var currentURL;
	var scode;
	var xfile;
	var image1, image2;
	var picURL='http://drawing.capital.com.tw/';
	//var picURL='http://drawing.capital.com.tw/cgi-bin/rtquote_cptl_v2?quote=';
	//var picURL='http://rtchart.fortunengine.com.tw/cgi-bin/rt/bin/rtquote_cptl_v2?quote=';

	switch(id) {
		case 1 :
			scode = 'FITX00';
			xfile='tx00.png';
			image1='/images/cap1-on.gif';
			image2='/images/cap2-up.gif';
			break;
	
		case 2 :
			scode = 'Y9999&type=s';
			xfile='tse.png';
			image1='/images/cap1-up.gif';
			image2='/images/cap2-on.gif';
			break;
	}
	currentURL = picURL + xfile;
	document.imageChart.src = currentURL;
	document.image1.src=image1;
	document.image2.src=image2;
}

function large() {
	switch(flag2) {
		case 1 :
			window.location.href="/quotations/default.asp?xy=2&xt=1";
			break;
		case 2 :
			window.location.href="";
			break;
	}
}

