var pgLoadFlag=false;

//Show enews registration popup window
function eNewsShowHide(pgBG,cntCode,vbBlue)
{
	var objWinCord;
	var objIframe;
	var objBtnClose;
    var objIfrmPriceSearch;     
    objIframe = document.getElementById("ifrmEnews");
    objIfrmPriceSearch = document.getElementById("ifrmPriceSearch");
    if(objIfrmPriceSearch != null)
    {
        if(objIfrmPriceSearch.style.visibility =="visible" || objIfrmPriceSearch.style.display!="none")
        {
            objIfrmPriceSearch.style.visibility ="hidden";
            objIfrmPriceSearch.style.display ="none";
        }  
    }
	
	if(isCentre.toLowerCase()=="true")
	{
	    objWinCord=getAnchorPosition('eNews');
	}
	else
	{
	    objWinCord=getAnchorPosition('leftManu'); 
	}    
	pgLoadFlag = true
	
	if(pgLoadFlag)
	{
		if(objIframe.style.visibility=="hidden" || objIframe.style.display=="none")
		{
		    objIframe.style.top = (objWinCord.y - 15) + 'px';
	        objIframe.style.left= (objWinCord.x) + 540  + 'px';
	        objIframe.style.visibility = 'visible';
			objIframe.style.display = '';
	        objBtnClose =  objIframe.contentWindow.document.getElementById("btnClose");
	        if(objBtnClose !=null)
	        {
	           objIframe.src="../../code_net/common/enewsregistration.aspx";		 
	        }
		}
		else
		{
			objIframe.style.visibility = 'hidden';
			objIframe.style.display = 'none';
		}
	}
}
//Check page loaded fully
function chkPageLoad()
{
	pgLoadFlag=true;
}