// Popup infobox div script
// Patched IE6 bug: Added iframe to prevent select fields from having the highest z-index (08/10/09)

        var g_PopupIFrame;
       
        function IsIE()
        {
	        return ( navigator.appName=="Microsoft Internet Explorer" ); 
        }
            
			
        function infoBoxClose(divID)
        {
            var divPopup;
			divPopup=document.getElementById(divID);
			divPopup.style.visibility = "hidden";
			
			if (IsIE()) 
		    {
		    	document.body.removeChild(g_PopupIFrame);
	            g_PopupIFrame=null;
	        }
        }
        
        
        function infoBoxPop(divID)
        {
            var divPopup=document.getElementById(divID);
            
            if (!IsIE()) 
            {
                //Just display the div
                divPopup.style.visibility ="visible";
                return;
		    }
		    		    
            //Increase default zIndex of div by 1, so that DIV appears before IFrame
            divPopup.style.zIndex=divPopup.style.zIndex+1;
                        
		    var iFrame = document.createElement("IFRAME");
	        iFrame.setAttribute("src", "/secured.htm");
			iFrame.frameBorder = 0;
	       
	        //Match IFrame position with divPopup
	        iFrame.style.position="absolute";
	        iFrame.style.left   =divPopup.offsetLeft + 'px';
			iFrame.style.top    =divPopup.offsetTop + 'px';
		    iFrame.style.width  =divPopup.offsetWidth + 'px';
			iFrame.style.height =divPopup.offsetHeight + 'px';
			
		    document.body.appendChild(iFrame);
		    
		    //Store iFrame in global variable, so it can get removed when divPopup is hidden
		    g_PopupIFrame=iFrame;
		    
	        divPopup.style.visibility ="visible";
	    }

