function viewlist(channel){
	link = document.images[channel].link;
	newwin = open(link);
	newwin.focus();
	return false;
}
function chgimg(img,src,link){
	if (src!=''){
		document.images[img].src = src;
		document.images[img].link = link;
	}
}

var date = new Date();
tzoffset = date.getTimezoneOffset();
audate = new Date(date.getTime() + 60*1000*(10*60+tzoffset));
audate = new Date(date.getTime() + 60*1000*(11*60+tzoffset));
cyear = audate.getFullYear(), cmonth = audate.getMonth(), cdate = audate.getDate(), today=audate;

function showautime(){
	var date = new Date();
	tzoffset = date.getTimezoneOffset();
	audate = new Date(date.getTime() + 60*1000*(10*60+tzoffset));
	audate = new Date(date.getTime() + 60*1000*(11*60+tzoffset));

//	var audate = new Date();

	text = audate.getUTCHours()+':'+audate.getUTCMinutes()+':'+audate.getUTCSeconds();
	cyear = audate.getFullYear(), cmonth = audate.getMonth(), cdate = audate.getDate(), today=audate; //varibles for calender
	dualtime.innerHTML = audate.toLocaleString()+' (EST)';
}
function showhktime(){
	var date = new Date();
	tzoffset = date.getTimezoneOffset();
	hkdate = new Date(date.getTime() + 60*1000*(tzoffset+8*60));
	text = hkdate.getUTCHours()+':'+hkdate.getUTCMinutes()+':'+hkdate.getUTCSeconds();
	cyear = hkdate.getFullYear(), cmonth = hkdate.getMonth(), cdate = hkdate.getDate(), today=hkdate; //varibles for calender
	dualtime.innerHTML = hkdate.toLocaleString();
}
function chgtime(zone){
	clearInterval(timeid);
	if (zone=='au'){
		showautime();
		autime.src=relpath+'ui/im/auhk_over_01.gif'
		hktime.src=relpath+'ui/im/auhk_02.gif';
		timeid = setInterval('showautime()',1000);
	}
	else{
		showhktime();
		autime.src=relpath+'ui/im/auhk_01.gif'
		hktime.src=relpath+'ui/im/auhk_over_02.gif';
		timeid = setInterval('showhktime()',1000);
	}
}
showautime();
timeid = setInterval('showautime()',1000);

function gob5(){
	path = document.location.toString();
	location = path.replace('_eng.html','.html');
}
function goen(){
	path = document.location.toString();
	location = path.replace('.html','_eng.html');
}
function zfill(x){
	if (x>9) return x;
	return '0'+x;
}

function popup(){
	popwin = open(relpath+"popups/popup071101.html","notice","width=600,height=480,resizable");
	popwin.focus();
}
//init();
