	  function displayWindow( displayTitle, displayPage, width, height, callbackFunction ){
		 document.getElementById('popupTitle').innerHTML=displayTitle;          
		 document.getElementById('windowPopup').style.display="block";
		 if( document.getElementById( 'popupWindowCallbackFunction' ) != null ) {
			 document.getElementById('popupWindowCallbackFunction').value=callbackFunction;
		 }
		 
		 if (width == null) {
		    width=750;
		 }
		 if (height == null) {
		    height=500;
		 }
	     document.getElementById('windowWidth').style.width=""+width+"px";
	     document.getElementById('windowIframe').style.width=""+(width-30)+"px";
	   	 document.getElementById('windowIframe').style.height=""+height+"px";
	     windowPosition();
	     top.frames['windowIframe'].location.replace(displayPage);
	}
	
	function windowPosition() {
	        document.getElementById('masking').style.display="block";
	        document.getElementById('masking').style.height=document.body.scrollHeight + "px";
            document.getElementById('masking').style.width=document.body.scrollWidth + "px";
	        window.onresize=windowPosition;
	        window.onunload=windowPopupClose;
		    var positionX;
	        var positionY;
	        if(window.pageYOffset) {
               positionY=window.pageYOffset + 30;
            }
            else if (document.body.scrollTop) {
               positionY=document.body.scrollTop + 30;
            }
            else {
               positionY=document.documentElement.scrollTop + 30;
            }
            if (navigator.userAgent.match(/MSIE 6/i)) {
               document.getElementById('windowPopup').style.width=document.body.clientWidth+"px";
            }
	        document.getElementById('windowPopup').style.top=positionY + "px";
	}
	function windowPopupClose() {
	        document.getElementById('masking').style.display="none";
	        document.getElementById('windowPopup').style.display="none";
	        top.frames['windowIframe'].location.replace("/blank.html");
	        window.onresize = function(){void(0)};
	        window.onunload = function(){void(0)};
	}