function showLeg()
	{
		if (document.getElementById('ucSpecComp2_lblLeg').innerText=='Show legend')		
		{
			document.getElementById('ucSpecComp2_pnlLegend').style.display='inline';
			document.getElementById('ucSpecComp2_lblLeg').innerText='Hide legend';		
		}			
		else 
		{
			document.getElementById('ucSpecComp2_pnlLegend').style.display='none';
			document.getElementById('ucSpecComp2_lblLeg').innerText='Show legend';		
		}				
	}
	
function showLegUcSpecComp4()
	{
		if (document.getElementById('ucSpecComp4_lblLeg').innerText=='Show legend')		
		{
			document.getElementById('ucSpecComp4_pnlLegend').style.display='inline';
			document.getElementById('ucSpecComp4_lblLeg').innerText='Hide legend';		
		}			
		else 
		{
			document.getElementById('ucSpecComp4_pnlLegend').style.display='none';
			document.getElementById('ucSpecComp4_lblLeg').innerText='Show legend';		
		}				
	}
	
var g_wPopUp = null;	

function openPopUp( strURL,iW,iH )
{

	
	if ( ( g_wPopUp==null )||g_wPopUp.closed )
	{
		var iWidth=iW;
		var iHeight = iH;
		var iLocX = ( screen.width - iWidth ) / 2;
		var iLocY = ( screen.height - iHeight ) / 2;
		var strFeatures = "width=" + iWidth
									+ ",height=" + iHeight
									+ ",screenX=" + iLocX
									+ ",screenY=" + iLocY
									+ ",left=" + iLocX
									+ ",top=" + iLocY;
																	
		
		g_wPopUp = open( strURL, "winName", strFeatures );																	
		g_wPopUp.focus(); 
	}
	else
	{
	g_wPopUp .location = strURL;
	g_wPopUp.focus();	
	}
	}	
