var OpenWin;

function openPopUpEconnect(varPage){
	OpenWin=window.open( varPage , 'pop1' , 'scrollbars = no, resizable = no, width = 1024, height = 660, left = 0, top = 60, status = no, location = no, toolbar = no, menubar = no');
	if (window.focus){OpenWin.focus()};}

function openPopUp(varPage,thisWidth,thisHeight,thisLeft,thisTop){
	OpenWin=window.open( varPage , 'pop1' , 'scrollbars = no, resizable = no, width = '+thisWidth+', height = '+thisHeight+', left = '+thisLeft+', top = '+thisTop+', status = no, location = no, toolbar = no, menubar = no');
	if (window.focus){OpenWin.focus()};}

function openPopUpScroll(varPage,thisWidth,thisHeight,thisLeft,thisTop){
	OpenWin=window.open( varPage , 'pop1' , 'scrollbars = yes, resizable = no, width = '+thisWidth+', height = '+thisHeight+', left = '+thisLeft+', top = '+thisTop+', status = no, location = no, toolbar = no, menubar = no');
	if (window.focus){OpenWin.focus()};}

function openPopUpResizable(varPage,thisWidth,thisHeight,thisLeft,thisTop){
	OpenWin=window.open( varPage , 'pop1' , 'scrollbars = yes, resizable = yes, width = '+thisWidth+', height = '+thisHeight+', left = '+thisLeft+', top = '+thisTop+', status = no, location = no, toolbar = yes, menubar = yes');
	if (window.focus){OpenWin.focus()};}

function openPDF(varPage){
	OpenWin=window.open( varPage, 'pdf' , 'scrollbars = no, resizable = yes, width = 650, height = 500, left = 130, top = 100, status = no, location = no, toolbar = no, menubar = no')
	if (window.focus){OpenWin.focus()};}
	
function openPDFWidthTitle(varPage,varTitle){
	OpenWin=window.open('bsicommon/cfm/opendoc.cfm?openWhat='+varPage+'&thisTitle='+varTitle, 'pdf' , 'scrollbars = no, resizable = yes, width = 650, height = 500, left = 130, top = 100, status = no, location = no, toolbar = no, menubar = no');
	if (window.focus){OpenWin.focus()};}


function openPDFWidthTitleLux(varPage,varTitle){
	OpenWin=window.open('bsicommon/cfm/opendocLux.cfm?openWhat='+varPage+'&thisTitle='+varTitle, 'pdf' , 'scrollbars = no, resizable = yes, width = 650, height = 500, left = 130, top = 100, status = no, location = no, toolbar = no, menubar = no');
	if (window.focus){OpenWin.focus()};}


function openPDFWidthTitleBS(varPage,varTitle){
	OpenWin=window.open('bsicommon/cfm/opendocBS.cfm?openWhat='+varPage+'&thisTitle='+varTitle, 'pdf' , 'scrollbars = no, resizable = yes, width = 650, height = 500, left = 130, top = 100, status = no, location = no, toolbar = no, menubar = no');
	if (window.focus){OpenWin.focus()};}


function openPDFWidthTitleIFA(varPage,varTitle){
	OpenWin=window.open('bsicommon/cfm/opendocifa.cfm?openWhat='+varPage+'&thisTitle='+varTitle, 'pdf' , 'scrollbars = no, resizable = yes, width = 650, height = 500, left = 130, top = 100, status = no, location = no, toolbar = no, menubar = no');
	if (window.focus){OpenWin.focus()};}

function openPDFWidthTitleBS(varPage,varTitle){
	OpenWin=window.open('bsicommon/cfm/opendocbs.cfm?openWhat='+varPage+'&thisTitle='+varTitle, 'pdf' , 'scrollbars = no, resizable = yes, width = 650, height = 500, left = 130, top = 100, status = no, location = no, toolbar = no, menubar = no');
	if (window.focus){OpenWin.focus()};}
	
	
function openVideoWidthTitle(varPage,varTitle,thisWidth,thisHeight,thisLeft,thisTop){
	OpenWin=window.open('bsicommon/cfm/flvplayerPopUp.cfm?openWhat='+varPage+'&thisTitle='+varTitle, 'Video' , 'scrollbars = no, resizable = no, width = '+thisWidth+', height = '+thisHeight+', left = '+thisLeft+', top = '+thisTop+', status = no, location = no, toolbar = no, menubar = no');
	if (window.focus){OpenWin.focus()};}

function openVideoHomeBanner(){
	OpenWin=window.open('bsicommon/cfm/flvplayerPopUp.cfm?openWhat=free_zone_china&thisTitle=The making of Free Zone: China', 'Video' , 'scrollbars = no, resizable = no, width = 350, height = 380, left = 50, top = 380, status = no, location = no, toolbar = no, menubar = no');
	if (window.focus){OpenWin.focus()};}

function openExibitionPopUp(str){
	OpenWin=window.open(str, 'inBSI' , 'scrollbars = yes, resizable = yes, width = 1024, height = 768, left = 0, top = 0, status = no, location = no, toolbar = no, menubar = no, fullscreen=yes');
	if (window.focus){OpenWin.focus()};}	
	
function openPopUpEdemo(varPage,thisWidth,thisHeight,thisLeft,thisTop){
	OpenWin=window.open( varPage , 'pop1' , 'scrollbars = yes, resizable = yes, width = '+thisWidth+', height = '+thisHeight+', left = '+thisLeft+', top = '+thisTop+', status = no, location = no, toolbar = no, menubar = no');
	if (window.focus){OpenWin.focus()};}


function OpenDownloadPDF(DocumentType,varTitle){
switch (DocumentType){
			case 'WeeklyStrategy':{
				document.DownloadForm.FlashCommunications.value="";
				document.DownloadForm.FinancialPrevision.value="";
				document.DownloadForm.FinancialLetter.value="";
				document.DownloadForm.PoliticalInvest.value="";
				document.DownloadForm.Congiuntura.value="";
				document.DownloadForm.VariousPresentation.value="";
				document.DownloadForm.RassegnaStampa.value="";
				thisPDF=document.DownloadForm.WeeklyStrategy.value;
				break				  	
			  }
			case 'FlashCommunications':{
				document.DownloadForm.WeeklyStrategy.value="";
				document.DownloadForm.FinancialPrevision.value="";
				document.DownloadForm.FinancialLetter.value="";
				document.DownloadForm.PoliticalInvest.value="";
				document.DownloadForm.Congiuntura.value="";
				document.DownloadForm.VariousPresentation.value="";
				document.DownloadForm.RassegnaStampa.value="";
				thisPDF=document.DownloadForm.FlashCommunications.value;
				break				  	
			  };
			case 'FinancialLetter':{
				document.DownloadForm.WeeklyStrategy.value="";
				document.DownloadForm.FlashCommunications.value="";
				document.DownloadForm.FinancialPrevision.value="";
				document.DownloadForm.PoliticalInvest.value="";
				document.DownloadForm.Congiuntura.value="";
				document.DownloadForm.VariousPresentation.value="";
				document.DownloadForm.RassegnaStampa.value="";
				thisPDF=document.DownloadForm.FinancialLetter.value;
				break				  	
			  };
			case 'FinancialPrevision':{
				document.DownloadForm.WeeklyStrategy.value="";
				document.DownloadForm.FlashCommunications.value="";
				document.DownloadForm.FinancialLetter.value="";
				document.DownloadForm.PoliticalInvest.value="";
				document.DownloadForm.Congiuntura.value="";
				document.DownloadForm.VariousPresentation.value="";
				document.DownloadForm.RassegnaStampa.value="";
				thisPDF=document.DownloadForm.FinancialPrevision.value;
				break				  	
			  };
			case 'PoliticalInvest':{
				document.DownloadForm.WeeklyStrategy.value="";
				document.DownloadForm.FlashCommunications.value="";
				document.DownloadForm.FinancialPrevision.value="";
				document.DownloadForm.FinancialLetter.value="";
				document.DownloadForm.Congiuntura.value="";
				document.DownloadForm.VariousPresentation.value="";
				document.DownloadForm.RassegnaStampa.value="";
				thisPDF=document.DownloadForm.PoliticalInvest.value;
				break				  	
			  };
			case 'Congiuntura':{
				document.DownloadForm.WeeklyStrategy.value="";
				document.DownloadForm.FlashCommunications.value="";
				document.DownloadForm.FinancialPrevision.value="";
				document.DownloadForm.FinancialLetter.value="";
				document.DownloadForm.PoliticalInvest.value="";
				document.DownloadForm.VariousPresentation.value="";
				document.DownloadForm.RassegnaStampa.value="";
				thisPDF=document.DownloadForm.Congiuntura.value;
				break				  	
			  };
			case 'VariousPresentation':{
				document.DownloadForm.WeeklyStrategy.value="";
				document.DownloadForm.FlashCommunications.value="";
				document.DownloadForm.FinancialPrevision.value="";
				document.DownloadForm.FinancialLetter.value="";
				document.DownloadForm.PoliticalInvest.value="";
				document.DownloadForm.Congiuntura.value="";
				document.DownloadForm.RassegnaStampa.value="";
				thisPDF=document.DownloadForm.VariousPresentation.value;
				break				  	
			  };			  
			case 'RassegnaStampa':{
				document.DownloadForm.WeeklyStrategy.value="";
				document.DownloadForm.FlashCommunications.value="";
				document.DownloadForm.FinancialPrevision.value="";
				document.DownloadForm.FinancialLetter.value="";
				document.DownloadForm.PoliticalInvest.value="";
				document.DownloadForm.Congiuntura.value="";
				document.DownloadForm.VariousPresentation.value="";
				thisPDF=document.DownloadForm.RassegnaStampa.value;
				break				  	
			  };
	}
	OpenWin=window.open('bsicommon/cfm/opendocbs.cfm?openWhat='+thisPDF+'&thisTitle='+varTitle, 'pdf' , 'scrollbars = yes, resizable = yes, width = 800, height = 600, left = 50, top = 50, status = no, location = yes, toolbar = yes, menubar = yes');
	if (window.focus){OpenWin.focus()};
}

function gottLink(thisLang){
	OpenWin=window.open('https://www.mygottardo.com/PRIVATE/publisher/main/rel1/Login/NewLogin.html?lang='+thisLang, 'pdf' , 'scrollbars = yes, resizable = yes, width = 800, height = 600, left = 50, top = 50, status = no, location = yes, toolbar = yes, menubar = yes');
		if (window.focus){OpenWin.focus()};
}


