function MM_callJS(bocURI,langtype) { //v2.1
jsStr = "https://" + bocURI;
  	return eval(newin(jsStr));
}
function MM_callJS_HK_CBS(langtype) { //CBS
if(langtype=='TC')//traditional chinese
	//bocURI = "cbs.bochk.com/beforelogin/loginpage/icb_index_login_c.jsp";
	bocURI = "cib.bochk.com/login/cib_login043_c.jsp" 

else if(langtype=='ENG') // english
	//bocURI = "cbs.bochk.com/beforelogin/loginpage/icb_index_login_e.jsp";
	bocURI = "cib.bochk.com/login/cib_login043_e.jsp"

jsStr = "https://" + bocURI;
  	return eval(newin4cbs(jsStr, 'BOCicb'));
}
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 = "https://" + bocURI;
  	return eval(newin(jsStr));
}
function MM_callJS_CN_ITS(langtype) { //v2.1
if(langtype=='TC'){ //traditional chinese
	bocURI = "ibs.ncbchina.cn/perbank/index_t.html";
}else if(langtype=='ENG'){ // english	
	bocURI = "ibs.ncbchina.cn/perbank/index_e.html"; 
}
jsStr = "https://" + bocURI;
  	return eval(newin4icn(jsStr));
}

function MM_callJS_CN_C_ITS(langtype) { 
	if(langtype=='TC'){ //traditional chinese 
		bocURI = "cbs.ncbchina.cn/corporbank/index_t.html";	
	}else if(langtype=='ENG'){ // english
		bocURI = "cbs.ncbchina.cn/corporbank/index_e.html";
	}
	jsStr = "https://" + bocURI;
	  	return eval(newin4icn_c(jsStr));
	}

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'); // Old
	popup=window.open(url,'BOCicn','width=1050,height=700,left=0,top=0,screenX=0,screenY=0,status=yes,scrollbars=yes,resizable=yes,menubar=0,location=0,directories=0');
	
	popup.focus();
}
function newin4icn_c(url) {
	popup=window.open(url,'BOCicn','width=1012,height=666,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";
	
	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;
	} else {
		resWidth  = 1024;
		resHeight = 768;
	}
		
	if (document.layers){
		isResizable = "no";
	}	
	myFeatures = "left=0,top=0,screenX=0,screenY=0,resizable="+isResizable+",menubar=no,toolbar=no,status=yes,scrollbars=yes,width="+resWidth+",height="+resHeight;
		
	winID = window.open(ip_URL,ip_winName,myFeatures);
	winID.focus();
}
