// popup windows

var newWin = null; 
function popUp(strURL, strType, strHeight, strWidth) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 if (strType=="console") 
   strOptions="resizable,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixed") 
   strOptions="status,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixedscroll") 
   strOptions="status,scrollbars,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="elastic") 
   strOptions="scrollbars,"+ 
     "resizable,height="+ 
     strHeight+",width="+strWidth; 
 newWin = window.open(strURL, 'newWin', strOptions); 
 newWin.focus(); 
}

// bookmark function

function AddBookmarkLink (title, url)
{
	if (window.sidebar) 
	{
		// Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url, '');
	}
	else
		if (window.external)
		{
			// IE Favourite
			window.external.AddFavorite (url, title);
		}
		else 
			if (window.opera && window.print)
			{
				// Opera hotlist
				return true;
			}	
}

// FAQs and Board pages
function toggleDiv(_id){_oDivStyle=document.getElementById(_id).style;(_oDivStyle.display=='block')?_oDivStyle.display='none':_oDivStyle.display='block';} 
function toggleDivs(){
	if( arguments ){
		for( var i = 0 ; i < arguments.length ; i++ ){
			var _id = arguments[ i ];
			_oDivStyle=document.getElementById(_id).style;(_oDivStyle.display=='block')?_oDivStyle.display='none':_oDivStyle.display='block';
		}
	}
}

// Reuters disclaimer popup
function disclaimWin(theUrl, winName) 
{
window.open(theUrl,winName,'toolbar=yes,status=yes,width=420,height=265,directories=no,SCROLLbars=yes,resize=no,menubar=yes,top=10,left=10')
}
