if(typeof (PHP2Controls)=="undefined"){PHP2Controls=new Object()}PHP2Controls.popupAjaxSubpage=function(A){this.id=A;this.subpageHTMLObject=document.getElementById(this.id);this.subpageHeaderHTMLObject=document.getElementById("winHeader_"+this.id);this.subpageBodyHTMLObject=document.getElementById("winBody_"+this.id);this.protectFrameId=null;this.popup=new ___Popup(this.id,400,300);this.ajaxPopUpSubPage=null;this.loader='<center><br/><br/><img src="/images/ajax/loading.circle.gif" /><br/><br/></center>'};PHP2Controls.popupAjaxSubpage.prototype.close=function(){this.popup.hide();document.getElementById(this.id+"_Page").innerHTML=this.loader;HTMLWindow.unsetDraggable(this.subpageHTMLObject,this.subpageHeaderHTMLObject)};PHP2Controls.popupAjaxSubpage.prototype.open=function(A){this.initDragAndDrop();this.ajaxPopUpSubPage=new AjaxPage.AjaxSubPage(this.id+"_Page",A,"mainForm");this.ajaxPopUpSubPage.load();this.popup.setTopPos(170+this.getScrollTop());this.popup.show()};PHP2Controls.popupAjaxSubpage.prototype.initScreenPosition=function(){this.protectFrameId=HTMLElement.protectIEDiv(this.id)};PHP2Controls.popupAjaxSubpage.prototype.initDragAndDrop=function(){HTMLWindow.setDraggable(this.subpageHTMLObject,this.subpageHeaderHTMLObject)};PHP2Controls.popupAjaxSubpage.prototype.title=function(A){this.subpageHeaderHTMLObject.innerHTML=A};PHP2Controls.popupAjaxSubpage.prototype.getScrollTop=function(){var A=0;if(typeof (window.pageYOffset)=="number"){A=window.pageYOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){A=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){A=document.documentElement.scrollTop}}}return A};
