﻿if (typeof(IWindow_loaded)=="undefined"){var IWindow_loaded=1; var oWindowManager=new WindowManager("oWindowManager"); var pO=window.onload; var po=null; window.onload= function (pY){if (pO!=null)pO(); if (typeof(ob_OnBeforePanelUpdate)=="function")po=ob_OnBeforePanelUpdate; ob_OnBeforePanelUpdate= function (py,pI,page){oWindowManager.sHD(); if (po!=null)return po(py,pI,page); return true; };};}function IWindow(pi,txtStyleRootFolder,pA,pa,pE,pe,pU,pu,pZ,pz,pX,px,pW,pw,pV,pv,pT,pt,pS,ps,pR,pr,pQ,pq,pP,pp,pN,pn,pM,pm,pL,pl,pK,pk,pJ){pj=document.getElementById("h_"+pi+"_mode"); pH=document.getElementById("h_"+pi+"_top"); ph=document.getElementById("h_"+pi+"_left"); pG=document.getElementById("h_"+pi+"_width"); pg=document.getElementById("h_"+pi+"_height"); pF=document.getElementById("h_"+pi+"_opacity"); pf=document.getElementById("h_"+pi+"_visible"); if (pj!=null)pU=pj.value; if (pH!=null)pw=parseInt(pH.value); if (ph!=null)pW=parseInt(ph.value); if (pG!=null)pV=parseInt(pG.value); if (pg!=null)pv=parseInt(pg.value); if (pF!=null)pS=parseInt(pF.value); if (pf!=null)pR=parseInt(pf.value); this.pD=new Window(pi); this.pD.pd=pi; this.pD.objRelative=document.getElementById(pa); this.pC=this.setStyle(pA,txtStyleRootFolder); this.pD.createWindowFrame(1,0,1,pn,1,"absolute",document.getElementById(pE)); this.setTitle(pu); this.pc(pZ); this.pD.setBuiltinButtons(pp,pN,pP); this.setStatus(px); if (pz!=null){switch (pX){case "AUTO":pB="auto"; break; case "HIDDEN":pB="no"; break; case "SCROLL":pB="yes"; break; } this.pD.createContentPanel("iframe",pB); }else this.pD.createContentPanel("div"); var pb=navigator.userAgent.toLowerCase(); if (!(((pb.indexOf("msie")!=-1) && (pb.indexOf("opera")==-1)) && (pz!=null)))this.pD.getContentPanel().style.overflow=pX; this.setSize(pV,pv); this.setPosition(pW-1,pw); if (pQ)this.pD.enableWindowResize(pT,pt,1,1,1,1,1,1,1,1,pK); if (pr)this.pD.enableDragging(0,null,100,pl); if (document.getElementById(pe)!=null)document.getElementById(pe).style.display="block"; if (pz!=null)this.pD.getContentPanel().src=pz; else this.pD.getContentPanel().appendChild(document.getElementById(pe)); oWindowManager.addWindow(this.pD); this.setOpacity(pS); this.setPageOpacity(ps); this.setPosition(pW,pw); if (pq)this.pD.enableFilter(); this.OnInit=pM; this.pD.OnOpen=pL; this.pD.OnPreOpen=pm; this.OnInit(); this.pD.setVisibility(pR); this.setMode(pU); this.pD.OnPreClose=pk; this.pD.OnClose=pJ; this.pD.objIWindow=this ; } ; IWindow.prototype.setStyle= function (po0,pO0){return this.pD.setStyle(po0,pO0); } ; IWindow.prototype.bringToFront= function (){ this.pD.bringToFront(); } ; IWindow.prototype.setPosition= function (x,y){ this.pD.setPosition(x,y); } ; IWindow.prototype.getPosition= function (){return this.pD.getPosition(); } ; IWindow.prototype.setSize= function (width,height){ this.pD.setSize(width,height); } ; IWindow.prototype.getSize= function (){return this.pD.getSize(); } ; IWindow.prototype.setTitle= function (pu){ this.pD.setTitle(pu); this.pD.pl0("title",pu); } ; IWindow.prototype.pc= function (pi0){ this.pD.setLogo(pi0); } ; IWindow.prototype.setStatus= function (px){ this.pD.setStatus(px); this.pD.pl0("status",px); } ; IWindow.prototype.Open= function (){ this.pD.setVisibility( true); } ; IWindow.prototype.Close= function (){ this.pD.setVisibility( false); } ; IWindow.prototype.getVisibility= function (){return this.pD.getVisibility(); } ; IWindow.prototype.setOpacity= function (pS){ this.pD.setOpacity(pS); } ; IWindow.prototype.setPageOpacity= function (ps){ this.pD.setPageOpacity(ps); } ; IWindow.prototype.getOpacity= function (){return this.pD.getOpacity(); } ; IWindow.prototype.setzIndex= function (pI0){ this.pD.setzIndex(pI0); } ; IWindow.prototype.getzIndex= function (){return this.pD.getzIndex(); } ; IWindow.prototype.po1= function (){ this.pD.unload(); } ; IWindow.prototype.getContentPanel= function (){return this.pD.getContentPanel(); } ; IWindow.prototype.setUrl= function (pz){if (this.pD.getContentPanel().nodeName=="IFRAME"){ this.pD.getContentPanel().src=pz; this.pD.pl0("url",pz); }} ; IWindow.prototype.setMode= function (pU){ this.pD.setMode(pU); } ; IWindow.prototype.PinOff= function (pO1){ this.pD.PinOff(pO1); } ; IWindow.prototype.getMode= function (){return this.pD.getMode(); };IWindow.prototype.screenCenter= function (){ this.pD.screenCenter(); };Window.prototype.pl0= function (pl1,pi1){var pI1=document.getElementById("h_"+this.pd+"_"+pl1); if (pI1!=null)pI1.value=pi1; } ; Window.prototype.sAH= function (){var pR=this.getVisibility(); if (pR== false){var po2=this.getOpacity(); this.setOpacity(0); this.setVisibility(1,1); }var p=this.getPosition(); if (pR== false){ this.setOpacity(po2); this.setVisibility(0,1); }var s=this.getSize(); this.pl0("mode",this.getMode()); switch (this.getMode()){case "normal": this.pl0("top",p.top); this.pl0("left",p.left); this.pl0("width",s.width); this.pl0("height",s.height); break; case "maximize": this.pl0("top",this.oldPos.top); this.pl0("left",this.oldPos.left); this.pl0("width",this.oldSize.width); this.pl0("height",this.oldSize.height); break; } this.pl0("visible",(this.getVisibility())?"1": "0"); this.pl0("opacity",this.getOpacity()); } ; function __cNIW(pA,txtStyleRootFolder,pO2,pz,pl2,pi2,pI2,pQ,pr,pq){var pE=pO2+"_container"; var pe=pO2+"_content"; pl2=(pl2!=null)?pl2: 1; pi2=(pi2!=null)?pi2: 1; pI2=(pI2!=null)?pI2: 1; pQ=(pQ!=null)?pQ: 1; pr=(pr!=null)?pr: 1; pq=(pq!=null)?pq: 0; var po3=new IWindow(pO2,txtStyleRootFolder,pA,null,pE,pe,"normal","New window","",pz,"AUTO","Status",0,0,320,240,120,100,100,0,pr,pQ,pq,pl2,0,pi2,pI2, function (){} , function (){} , function (){} , function (){} , function (){} , function (){} ); return po3; }
