function MM_callJS(bocURI,langtype) { //v2.1
jsStr = "https://" + bocURI;
  	return eval(newin(jsStr));
}
function MM_callJS_HK_ITS(langtype) { //v2.1
if(langtype=='TC')//traditional chinese
	bocURI = "its.bochk.com/login/nanyang/ibs_lgn_index_c.jsp";
else if(langtype=='ENG') // english
	bocURI = "its.bochk.com/login/nanyang/ibs_lgn_index_e.jsp";

jsStr_its = "https://" + bocURI;
  	return eval(newin(jsStr_its));
}
function MM_callJS_CN_ITS(langtype) { //v2.1
if(langtype=='TC'){//traditional chinese
	//bocURI = "icnuat.bocgroup.com/cbba/login/icn_login043_s.jsp";
	//bocURI = "cn.bochk.com/icn_login_s.html"; // Original
	bocURI = "cn.bochk.com/cbba/login/icn_login043_s.jsp"; // New
}else if(langtype=='ENG'){ // english
	//bocURI = "icnuat.bocgroup.com/cbba/login/icn_login043_e.jsp";
	//bocURI = "cn.bochk.com/icn_login_e.html";	// Original
	bocURI = "cn.bochk.com/cbba/login/icn_login043_e.jsp"; // New
}
jsStr_icn = "https://" + bocURI;
  	return eval(newin4icn(jsStr_icn));
}
function MM_callJS4its(ncbURI,langtype) { //v2.1
jsStr = "" + ncbURI;
  	return eval(newin4its(jsStr));
}

function newin(url) {
	popup=window.open(url,'BOCits','width=790,height=520,left=0,top=0,screenX=0,screenY=0,status=yes,scrollbars=yes,resizable=yes,menubar=0,location=0,directories=0');
	popup.focus();
}
function newin4its(url) {
	popup=window.open(url,'ncbits','width=240,height=120,left=240,top=260,screenX=0,screenY=0,status=no,scrollbars=no,resizable=no,menubar=0,location=0,directories=0');
	popup.focus();
}
function newin4icn(url) {
	popup=window.open(url,'BOCicn','width=790,height=520,left=0,top=0,screenX=0,screenY=0,status=yes,scrollbars=yes,resizable=yes,menubar=0,location=0,directories=0');
	popup.focus();
}
function newin4cbs(ip_URL,ip_winName) //2004.04
{
	var resWidth  = 790;
	var resHeight = 525;
	var isResizable   = "yes";
	var ip_cbs_link = ip_URL;
	
	if (navigator.appVersion.indexOf("NT 5.1")!=-1 ||
	    (navigator.appVersion.indexOf("NT 5.0")!=-1 && document.layers)){
		resHeight = 512;
	}
		
	if(screen.width <=640 || screen.height<=480){
		resWidth  = 630;
		resHeight = 405;
	}
		
	if (document.layers){
		isResizable = "no";
	}	
	myFeatures = "left=0,top=0,screenX=0,screenY=0,resizable="+isResizable+",menubar=no,toolbar=no,status=yes,scrollbars=no,width="+resWidth+",height="+resHeight;
		
	winID = window.open(ip_cbs_link,ip_winName,myFeatures);
	winID.focus();
}
