function MM_callJS(bocURI,langtype) { //v2.1

jsStr = "https://its.bochk.com" + bocURI;

  	return eval(newin(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 newiCbWindow (ip_URL,ip_winName)
{
	var resWidth  = 790;
	var resHeight = 525;
	
	if (document.layers)
		myFeatures    = "left=0,top=0,screenX=0,screenY=0,resizable=no,menubar=no,toolbar=no,status=yes,scrollbars=no,width="+resWidth+",height="+resHeight;
	else
		myFeatures    = "left=0,top=0,screenX=0,screenY=0,resizable=yes,menubar=no,toolbar=no,status=yes,scrollbars=no,width="+resWidth+",height="+resHeight;
		
	window.open(ip_URL,ip_winName,myFeatures);
}*/

function newiCbWindow (ip_URL)
{
	var resWidth  = 790;
	var resHeight = 525;
	var isResizable   = "yes";
	var ip_icb_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_icb_link,'BOCicb',myFeatures);
	winID.focus();
}

function newiCnWindow (ip_URL)
{
	var resWidth  = 790;
	var resHeight = 525;
	var isResizable   = "yes";
	var ip_icn_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,location=no,directories=no,status=yes,scrollbars=yes,width="+resWidth+",height="+resHeight;
		
	winID = window.open(ip_icn_link,'BOCicn',myFeatures);
	winID.focus();
}

function newFisWindow (ip_URL)
{
	var resWidth  = 790;
	var resHeight = 525;
	var isResizable   = "yes";
	var ip_fis_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=yes,width="+resWidth+",height="+resHeight;
		
	winID = window.open(ip_fis_link,'BOCfis',myFeatures);
	winID.focus();
}

function newicnWindow (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 openDemo(lang) {
  	chiDemo = "http://its.bochk.com/demo/ibs_in_fs_index_t.html";
  	schiDemo = "http://its.bochk.com/demo/ibs_in_fs_index_s.html";
  	engDemo = "http://its.bochk.com/demo/ibs_in_fs_index_e.html";
	if(lang.match('C'))
		MM_openBrWindow(chiDemo,'ibsdemo','left=0,top=0,screenX=0,screenY=0,resizable=yes,status=yes,scrollbars=yes,width=790,height=520');
	else if(lang.match('S'))
		MM_openBrWindow(schiDemo,'ibsdemo','left=0,top=0,screenX=0,screenY=0,resizable=yes,status=yes,scrollbars=yes,width=790,height=520');	
	else
		MM_openBrWindow(engDemo,'ibsdemo','left=0,top=0,screenX=0,screenY=0,resizable=yes,status=yes,scrollbars=yes,width=790,height=520');
}
