BROWSER_NS = (document.layers) ? true : false;
BROWSER_NSold = (BROWSER_NS && (parseFloat(navigator.appVersion) < 6.0));

function showImage(id,img){
	document.images[id].src = img;
}

function openDisclaimerWindow0() {
	var url = "disclaimer.html"
	var hWnd = window.open(url,"popupWindow","width=461,height=510,resizable=no,scrollbars=no");
	if ((document.window != null) && (!hWnd.opener))
	hWnd.opener = document.window;
}

function openDisclaimerWindow() {
	var url = "../disclaimer.html"
	var hWnd = window.open(url,"popupWindow","width=461,height=510,resizable=no,scrollbars=no");
	if ((document.window != null) && (!hWnd.opener))
	hWnd.opener = document.window;
}

function getGBLangURL(){
	var strPathName = new String(self.document.location.href)
	if (strPathName.search("chinese.big5") > 0) {
		return strPathName.replace(/chinese.big5/g, "chinese.gb");
	} else {
		return strPathName.replace(/english/g, "chinese.gb");
	}
	return strPathName;
}

function getBIG5LangURL(){
	var strPathName = new String(self.document.location.href)
	if (strPathName.search("chinese.gb") > 0) {
		return strPathName.replace(/chinese.gb/g, "chinese.big5");
	} else {
		return strPathName.replace(/english/g, "chinese.big5");
	}
	return strPathName;
}

function getENLangURL(){
	var strPathName = new String(self.document.location.href)
	if (strPathName.search("chinese.big5") > 0) {
		return strPathName.replace(/chinese.big5/g, "english");
	} else {
		return strPathName.replace(/chinese.gb/g, "english");
	}
	return strPathName;
}


