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