// popup window open for bcm_library home Page //////////////////////////////////////////////////////////////////////////////////// 
var homeWin;
function goToHomeWin_bcm(link, openerWin)
{
	if(openerWin && !openerWin.closed)
	{
		openerWin.focus();	
		openerWin.location.href = link;		
	}
	else
	{
		homeWin = window.open(link,'homeWindow','width=1024,height=730,  directories=yes,location=yes, menubar=yes, scrollbars=yes, status=yes, toolbar=yes, resizable=yes');
	}
}
// END popup window open for bcm_library home Page //////////////////////////////////////////////////////////////////////////////////// 

// popup window open for ARTICLE SEARCH HOME //////////////////////////////////////////////////////////////////////////////////// 
var articleSearch;
function openArticleSearchWin_bcm(link)
{
	if(articleSearch && !articleSearch.closed)
	{
		articleSearch.focus();			
	}
	else
	{
		articleSearch = window.open(link,'articleSearch','width=1024,height=730, directories=yes,location=yes, menubar=yes, scrollbars=yes, status=yes, toolbar=yes, resizable=yes');
	}
}
// End popup window open for ARTICLE SEARCH HOME //////////////////////////////////////////////////////////////////////////////////// 
// popup window open for E-JOURNAL HOME //////////////////////////////////////////////////////////////////////////////////// 
var eJournal;
function openEjournalWin_bcm(link)
{
	if(eJournal && !eJournal.closed)
	{
		eJournal.focus();			
	}
	else
	{
		eJournal = window.open(link,'eJournal','width=1024,height=730, directories=yes,location=yes, menubar=yes, scrollbars=yes, status=yes, toolbar=yes, resizable=yes');
	}
}
// End popup window open for E-JOURNAL HOME //////////////////////////////////////////////////////////////////////////////////// 




//------------- AG fix --------------
// yamil fix -- overriding an AG function to add the "toolbar" parameter
//so opened browser windows have back/forward buttons
function OpenWindowWithToolBar(sURL,sWinName,iWidth,iHeight,y,x)
{    

  //--- pre existing code ----
	//myWindow = window.open(sURL,sWinName,"width="+iWidth+",height="+iHeight+",top="+y+",left="+x+",resizable=1,scrollbars=1,toolbar=1,menubar=1");	
	//myWindow = window.open(sURL, sWinName,"width="+iWidth+",height="+iHeight+",top="+y+",left="+x+",resizable=1,scrollbars=1,directories=1,location=1");
	
	//------------
	//yamil fix - Mon Sep 22 , 2008
	myWindow = window.open(sURL, sWinName,"width="+iWidth+",height="+iHeight+",top="+y+",left="+x+",resizable=1,scrollbars=1,toolbar=1,directories=1,menubar=1");	
	
	myWindow.focus();
}