'+_img(_pe._images+"transp.gif",A,B)+" |
=_pe._lovBS){break}var E=R[O];var Q=null;if(L){Q=L[O];if(Q==""){Q=E}else{if(H.dop==0){Q=E+PE_VALUE_DESC_SEPARATOR+Q}}}else{Q=E}if(K&&K==E){S=M;H.sidx=C}F.add(E,Q);O++;M++}F.update();J=document.getElementById(D);if(S!=-1){if(B){S++}J.selectedIndex=S}H.updateLOVNB(N,I!=A.sidx)}function P_getDesc(A){if(!A){return null}var F=this;var E=F.vl;var C=F.dl;if(!C){return null}var B=-1;for(var D in E){if(E[D]==A){B=D;break}}if(B>=0){return C[B]}return null}function P_updateSLOV(){var A=this;var K=A.id;var J=document.getElementById(K+"ListBox");if(!J){return }var B=A.sl;if(typeof (B)!="object"){return }var M=PE_getLB(J);var E=A.vl;var L=A.dl;for(var I in B){var P=B[I];if(typeof (P)=="string"){var O=A.getDesc(P);var H;if(O&&O!=""){if(A.dop){H=O}else{H=P+PE_VALUE_DESC_SEPARATOR+O}}else{H=P}M.add(P,H,false)}else{var N=P.l;var G=P.u;var F=P.lt;var D=P.ut;var C=null;var H=null;if(F==0||F==1){C="(";H="("}else{C="[";H="["}if(F){C+=N;var O=A.getDesc(N);if(O&&O!=""){if(A.dop){H+=O}else{H+=N+PE_VALUE_DESC_SEPARATOR+O}}else{H+=N}}C+="_crRANGE_";H+=" .. ";if(D){C+=G;var O=A.getDesc(G);if(O&&O!=""){if(A.dop){H+=O}else{H+=G+PE_VALUE_DESC_SEPARATOR+O}}else{H+=G}}if(D==0||D==1){C+=")";H+=")"}else{C+="]";H+="]"}M.add(C,H,false)}}M.update()}function P_update(A){var B=this;if(A){if(A=="AvailableList"){B.updateLOV(A)}else{if(A=="ListBox"){B.updateSLOV()}else{B.updateLOV(A,true)}}}else{B.updateLOV("SelectValue",true);B.updateLOV("AvailableList");B.updateLOV("SelectLowerRangeValue",true);B.updateLOV("SelectUpperRangeValue",true);B.updateSLOV()}}function P_setLOV(B,A){var C=this;C.vl=B;if(B){if(!A||B.length!=A.length){C.dl=null}else{C.dl=A}}else{C.dl=null}}function P_setInitSel(B){var C=this;var A=C.lov.SelectValue;A.sel=B}function P_setInitSelList(A){this.sl=A}function P_setInitBound(B,A){var E=this;var D=E.lov.SelectLowerRangeValue;D.sel=B;var C=E.lov.SelectUpperRangeValue;C.sel=A}function P_back(C){var D=this;var A=D.lov[C];if(!A){return }var B=A.bidx;if(B>0){B--;if(B<0){B=0}A.bidx=B;D.update(C)}}function P_next(D){var E=this;var B=E.lov[D];if(!B){return }var A=((B.vl)?B.vl.length:E.vl.length);var C=B.bidx;if((C+1)*_pe._lovBS=0){var A=F.lov[E];if(!A){return }A.bidx=C;F.update(E)}}function P_applyFilter(D,B){if(B==null){return }var C=this;var E=C.vl;var J=C.dl;if(!E||E.constructor!=Array||E.length==0){return }var I=true;if(!J||J.constructor!=Array){I=false}var M=C.lov[D];if(!M){return }var P=M.filter;if(!P){P=""}if(B==P){return }var A=null;var G=null;if(B==""){B=null}else{A=[];if(I){G=[]}B=B.replace(String.fromCharCode(160)," ");var F=0;for(var H=0,L=E.length;H "+A.endHTML());A.init();H.init();C.init();E.init();A.textField=E;return A}function FilterDlg_setValue(A){var B=this;B.textField.setValue(A)}function FilterDlg_getValue(){var A=this;if(A.textField){return A.textField.getValue()}return null}function FilterDlg_initDlg(A,D){var C=this;if(A+C.getWidth()>_winWidth()+_getScrollX()){A=Math.max(0,_winWidth()+_getScrollX()-C.getWidth()-10)}if(D+C.getHeight()>_winHeight()+_getScrollY()){D=Math.max(0,_winHeight()+getScrollY()-C.getHeight()-10)}C.move(A,D);C.placeIframe(true,true);var B=C.textField;B.select();B.focus()}function newCtl(B){var A=new Object;A.id=B;A.layer=null;A.css=null;A.getHTML=Ctl_getHTML;A.beginHTML=Ctl_getHTML;A.endHTML=Ctl_getHTML;A.write=Ctl_write;A.begin=Ctl_begin;A.end=Ctl_end;A.init=Ctl_init;A.move=Ctl_move;A.resize=Ctl_resize;A.setBgColor=Ctl_setBgColor;A.show=Ctl_show;A.getWidth=Ctl_getWidth;A.getHeight=Ctl_getHeight;A.setHTML=Ctl_setHTML;A.setDisabled=Ctl_setDisabled;A.focus=Ctl_focus;A.setDisplay=Ctl_setDisplay;A.isDisplayed=Ctl_isDisplayed;A.setTooltip=Ctl_setTooltip;A.initialized=Ctl_initialized;A.widx=_pe._widgets.length;_pe._widgets[A.widx]=A;return A}function Ctl_getHTML(){return""}function Ctl_write(B){var A=this.getHTML(B);if(parent.writeSource){parent.writeSource(A)}document.write(A)}function Ctl_begin(){document.write(this.beginHTML())}function Ctl_end(){document.write(this.endHTML())}function Ctl_init(){var A=this;A.layer=_getLayer(A.id);A.css=A.layer.style;A.layer._widget=A.widx;if(A.initialHTML){A.setHTML(A.initialHTML)}}function Ctl_move(A,B){c=this.css;if(A!=null){if(_pe._moz){c.left=""+A+"px"}else{c.pixelLeft=A}}if(B!=null){if(_pe._moz){c.top=""+B+"px"}else{c.pixelTop=B}}}function Ctl_focus(){_safeSetFocus(this.layer)}function Ctl_setBgColor(A){this.css.backgroundColor=A}function Ctl_show(A){this.css.visibility=A?_pe._show:_pe._hide}function Ctl_getWidth(){return this.layer.offsetWidth}function Ctl_getHeight(){return this.layer.offsetHeight}function Ctl_setHTML(A){var B=this;if(B.layer){B.layer.innerHTML=A}else{B.initialHTML=A}}function Ctl_setDisplay(A){this.css.display=A?"":"none"}function Ctl_isDisplayed(){if(this.css.display=="none"){return false}else{return true}}function Ctl_setDisabled(A){if(this.layer){this.layer.disabled=A}}function Ctl_resize(A,B){if(A!=null){this.css.width=""+(Math.max(0,A))+"px"}if(B!=null){this.css.height=""+(Math.max(0,B))+"px"}}function Ctl_setTooltip(A){this.layer.title=A}function Ctl_initialized(){return this.layer!=null}function PE_beginBlocking(){var A=newBlockWidget();A.show(true)}function PE_endBlocking(){var A=_getLayer(_BlockWaitWidgetID);if(A){A.style.display="none"}}function newBlockWidget(){if(window._PEBlockWidget!=null){return window._PEBlockWidget}var A=newCtl(_BlockWaitWidgetID);A.getPrivateHTML=BlockWidget_getPrivateHTML;A.init=BlockWidget_init;A.show=BlockWidget_show;window._PEBlockWidget=A;return A}function BlockWidget_init(){}function BlockWidget_getPrivateHTML(){return''}function BlockWidget_show(A){var B=this;if(B.layer==null){B.layer=_getLayer(B.id);if(B.layer==null){_targetApp(B.getPrivateHTML());B.layer=_getLayer(B.id);B.css=B.layer.style}else{B.css=B.layer.style}}B.setDisplay(A)}function newBtn(C,L,H,D,F,Q,G,I,B,M,K,P,N,J,A,O){var E=newCtl(C);E.label=L;E.cb=H;E.width=D;E.hlp=F;E.tooltip=Q;E.tabIndex=G;E.isGray=false;E.txt=null;E.icn=null;E.margin=I?I:0;E.extraStyle="";if(B){E.url=B;E.w=M;E.h=K;E.dx=P;E.dy=N;E.disDx=(A!=null)?A:P;E.disDy=(O!=null)?O:N;E.imgRight=J?true:false}E.getHTML=Btn_getHTML;E.setDisabled=Btn_setDisabled;E.setText=Btn_setText;E.changeImg=Btn_changeImg;E.oldInit=E.init;E.init=Btn_init;E.isDisabled=Btn_isDisabled;E.instIndex=Btn_currInst;Btn_inst[Btn_currInst++]=E;return E}Btn_inst=new Array;Btn_currInst=0;function Btn_getHTML(){with(this){var clk="Btn_clickCB("+this.instIndex+');return false;"';var clcbs='onclick="'+clk+'" ';if(_pe._ie){clcbs+='ondblclick="'+clk+'" '}var url1=_pe._images+"button.gif",addPar=' style="'+extraStyle+"cursor:"+_pe._hand+";margin-left:"+margin+"px; margin-right:"+margin+'px; "'+clcbs+" ",tip=_attr("title",tooltip),idText="theBttn"+id,bg=_backImgOffset(url1,0,42),idIcon="theBttnIcon"+id;var lnkB="';var l=(label!=null);var im=(this.url?(''+H.getHTML()+" "+_getSpace(5,1)+" "+C.getHTML()+" '+(l?"":lnkB)+_simpleImgOffset(url,w,h,this.isGray?disDs:dx,this.isGray?disDy:dy,idIcon,null,(l?"":tooltip),"cursor:"+_pe._hand)+(l?"":"")+" "):"");return"
"}}function Btn_setDisabled(C){var B=this,A=C?"default":_pe._hand;B.isGray=C;if(B.layer){B.txt.className=C?"wizbuttongray":"wizbutton";B.txt.style.cursor=A;B.css.cursor=A;if(B.icn){_changeSimpleOffset(B.icn,B.isGray?B.disDx:B.dx,B.isGray?B.disDy:B.dy);B.icn.style.cursor=A}}}function Btn_isDisabled(){return this.isGray}function Btn_setText(A){this.txt.innerHTML=convStr(A)}function Btn_init(){var B=this;B.oldInit();B.txt=_getLayer("theBttn"+this.id);B.icn=_getLayer("theBttnIcon"+this.id);var A=B.isGray?"wizbuttongray":"wizbutton";if(B.txt.className!=A){B.txt.className=A}}function Btn_changeImg(B,A,E,D,C,F){var G=this;if(C){G.url=C}if(B!=null){G.dx=B}if(A!=null){G.dy=A}if(E!=null){G.disDx=E}if(D!=null){G.disDy=D}if(F!=null){G.tooltip=F}if(G.icn){_changeSimpleOffset(G.icn,G.isGray?G.disDx:G.dx,G.isGray?G.disDy:G.dy,G.url,G.tooltip)}}function Btn_clickCB(A){var B=Btn_inst[A];if(B&&!B.isGray){setTimeout("Btn_delayClickCB("+A+")",1)}}function Btn_delayClickCB(index){var btn=Btn_inst[index];if(btn.cb){if(typeof btn.cb!="string"){btn.cb()}else{eval(btn.cb)}}}function newTextField(C,G,J,F,I,B,K,D,A,H){var E=newCtl(C);E.tooltip=K;E.changeCB=G;E.maxChar=J;E.keyUpCB=F;E.enterCB=I;E.noMargin=B;E.width=D==null?null:""+D+"px";E.focusCB=A;E.blurCB=H;E.getHTML=TextField_getHTML;E.getValue=TextField_getValue;E.setValue=TextField_setValue;E.intValue=TextField_intValue;E.intPosValue=TextField_intPosValue;E.select=TextField_select;E.beforeChange=null;E.wInit=E.init;E.init=TextField_init;E.oldValue="";return E}function TextField_init(){var A=this;A.wInit();A.layer.value=""+A.oldValue}function TextField_getHTML(){return''}function TextField_getValue(){return this.layer.value}function TextField_setValue(A){if(this.layer){this.layer.value=""+A}else{this.oldValue=A}}function TextField_changeCB(B,A){var C=_getWidget(A);if(C.beforeChange){C.beforeChange()}if(C.changeCB){C.changeCB(B)}}function TextField_keyUpCB(B,A){var C=_getWidget(A);if(_eventGetKey(B)==13){if(C.beforeChange){C.beforeChange()}if(C.enterCB){C.enterCB(B)}return false}else{if(C.keyUpCB){C.keyUpCB(B);return true}}}function TextField_focus(A){var B=_getWidget(A);if(B.focusCB){B.focusCB()}}function TextField_blur(A){var B=_getWidget(A);if(B.beforeChange){B.beforeChange()}if(B.blurCB){B.blurCB()}}function TextField_intValue(A){var B=parseInt(this.getValue());return isNaN(B)?A:B}function TextField_intPosValue(A){var B=this.intValue(A);return(B<0)?A:B}function TextField_select(){this.layer.select()}function newDlgBox(H,F,D,A,B,G,C){var E=newCtl(H);E.title=F;E.width=D;E.height=A;E.defaultCB=B;E.cancelCB=G;E.noCloseButton=C?C:false;E.resizeable=false;E.oldKeyPress=null;E.oldMouseDown=null;E.oldCurrent=null;E.modal=null;E.hiddenVis=new Array;E.lastLink=null;E.firstLink=null;E.titleLayer=null;E.oldInit=E.init;E.oldShow=E.show;E.init=DlgBox_init;E.setResize=DlgBox_setResize;E.beginHTML=DlgBox_beginHTML;E.endHTML=DlgBox_endHTML;E.show=DlgBox_Show;E.center=DlgBox_center;E.focus=DlgBox_focus;E.setTitle=DlgBox_setTitle;E.getContainerWidth=DlgBox_getContainerWidth;E.getContainerHeight=DlgBox_getContainerHeight;_pe.DlgBox_instances[H]=E;E.modal=newCtl("modal_"+H);E.placeIframe=DlgBox_placeIframe;E.oldResize=E.resize;E.resize=DlgBox_resize;return E}function DlgBox_setResize(A,C,D,B,F){var E=this;E.resizeable=true;E.resizeCB=A;E.minWidth=C?C:50;E.minHeight=D?D:50;E.noResizeW=B;E.noResizeH=F}function DlgBox_setTitle(B){var A=this;A.title=B;if(A.titleLayer==null){A.titleLayer=_getLayer("titledialog_"+this.id)}A.titleLayer.innerHTML=_convStr(B)}function DlgBox_setCloseIcon(A,B){_changeOffset(A,0,(B==1?0:18))}function DlgBox_beginHTML(){with(this){var moveableCb=' onselectstart="return false" ondragstart="return false" onmousedown="DlgBox_down(event,\''+id+"',this,false);return false;\" ";var mdl=_pe._ie?(''):('');var titleBG="background-image:url('"+_pe._images+"dialogtitle.gif')";return mdl+'"+_getBGIframe("dlgIF_"+id)+''+_simpleImgOffset(url1,5,21,0,0)+" "+(this.imgRight?"":im)+(l?(" "):"")+(this.imgRight?im:"")+''+_simpleImgOffset(url1,5,21,0,21)+"
"}function DlgBox_getContainerWidth(){var A=this;return A.width-(2+2)}function DlgBox_getContainerHeight(){var A=this;return A.height-(2+18+2+2+2)}function DlgBox_close(B){var A=_pe.DlgBox_instances[B];if(A){A.show(false);if(A.cancelCB!=null){A.cancelCB()}}}function DlgBox_resizeIframeCB(A){_pe.DlgBox_instances[A].placeIframe(true,false)}function DlgBox_placeIframe(B,A){var C=this;if(C.iframe){if(B){C.iframe.resize(C.getWidth(),C.getHeight())}if(A){C.iframe.move(C.layer.offsetLeft,C.layer.offsetTop)}}}function DlgBox_resize(A,B){var C=this;C.oldResize(A,B);if(C.iframe){C.iframe.resize(A,B);if(C.firstTR){if(A!=null){C.firstTR.style.width=A-4}if(B!=null){C.secondTR.style.height=B-44}}}}function DlgBox_init(){if(this.layer!=null){return }var A=this;A.oldInit();A.modal.init();A.lastLink=newCtl("lastLink_"+A.id);A.firstLink=newCtl("firstLink_"+A.id);A.lastLink.init();A.firstLink.init();if(!A.noCloseButton){A.closeButton=_getLayer("dialogClose_"+A.id);DlgBox_setCloseIcon(A.closeButton,false)}if(_pe._moz&&!_pe._saf){A.firstTR=_getLayer("dlgFirstTr_"+A.id);A.secondTR=_getLayer("dlgSecTr_"+A.id)}A.iframe=newCtl("dlgIF_"+A.id);A.iframe.init()}function DlgBox_down(e,id,obj,isResize){_pe._dlgResize=isResize;var o=_pe.DlgBox_instances[id],lyr=o.layer,mod=o.modal.layer;lyr.onmousemove=mod.onmousemove=eval("DlgBox_move");lyr.onmouseup=mod.onmouseup=eval("DlgBox_up");lyr.dlgStartPosx=mod.dlgStartPosx=parseInt(lyr.style.left);lyr.dlgStartPosy=mod.dlgStartPosy=parseInt(lyr.style.top);lyr.dlgStartx=mod.dlgStartx=_eventGetX(e);lyr.dlgStarty=mod.dlgStarty=_eventGetY(e);lyr.dlgStartw=mod.dlgStartw=o.getWidth();lyr.dlgStarth=mod.dlgStarth=o.getHeight();lyr._widget=mod._widget=o.widx;_pe._theLYR=lyr;_eventCancelBubble(e);if(lyr.setCapture){lyr.setCapture(true)}}function DlgBox_move(C){var E=_pe._theLYR,D=_getWidget(E);if(D){if(_pe._dlgResize){var G=Math.max(D.minWidth,E.dlgStartw+_eventGetX(C)-E.dlgStartx);var B=Math.max(D.minHeight,E.dlgStarth+_eventGetY(C)-E.dlgStarty);D.resize(D.noResizeW?null:G,D.noResizeH?null:B);if(D.firstTR){if(!D.noResizeW){D.firstTR.style.width=G-4}if(!D.noResizeH){D.secondTR.style.height=B-44}}if(D.resizeCB){D.resizeCB(G,B)}}else{var A=Math.max(0,E.dlgStartPosx-E.dlgStartx+_eventGetX(C));var F=Math.max(0,E.dlgStartPosy-E.dlgStarty+_eventGetY(C));A=Math.min(Math.max(10,_winWidth()-10),A);F=Math.min(Math.max(10,_winHeight()-18),F);D.iframe.move(A,F);D.move(A,F)}}_eventCancelBubble(C);return false}function DlgBox_up(C){var D=_getWidget(_pe._theLYR),A=D.layer,B=D.modal.layer;A.onmousemove=B.onmousemove=null;A.onmouseup=B.onmouseup=null;if(A.releaseCapture){A.releaseCapture()}_pe._theLYR=null}function DlgBox_keypress(B){var C=_pe.DlgBox_current;if(C!=null){switch(_eventGetKey(B)){case 13:var A=_pe._ie?window.event.srcElement.id:B.target.id;if((A=="insRepText"||A=="renRepText")&&(C.defaultCB!=null)){C.defaultCB();return false}if(C.yes&&!C.no){C.defaultCB();return false}break;case 27:C.show(false);if(C.cancelCB!=null){C.cancelCB()}return false;break;case 8:return _isTextInput(_pe._ie?window.event:B);break}}}function DlgBoxResizeModals(B){for(var A in _pe.DlgBox_modals){m_sty=_pe.DlgBox_modals[A];m_sty.width=_documentWidth();m_sty.height=_documentHeight()}}function DlgBox_center(){var C=this,A=_getScrollY(),B=_getScrollX();C.height=C.layer.offsetHeight;C.width=C.layer.offsetWidth;C.move(Math.max(0,B+(_winWidth()-C.width)/2),Math.max(0,A+(_winHeight()-C.height)/2));C.placeIframe(true,true)}function DlgBox_Show(sh){with(this){m_sty=modal.css;l_sty=css;if(sh){oldCurrent=_pe.DlgBox_current;_pe.DlgBox_current=this;if(_pe._ie){oldKeyPress=document.onkeydown;document.onkeydown=eval("window.DlgBox_keypress")}else{document.addEventListener("keydown",eval("window.DlgBox_keypress"),false)}oldMouseDown=document.onmousedown;document.onmousedown=null;_disableAllInputs()}else{_pe.DlgBox_current=oldCurrent;oldCurrent=null;if(_pe._ie){document.onkeydown=oldKeyPress}else{document.removeEventListener("keydown",eval("window.DlgBox_keypress"),false)}document.onmousedown=oldMouseDown;_restoreAllDisabledInputs()}var sameState=(layer.isShown==sh);if(sameState){return }layer.isShown=sh;if(sh){if(window.DialogBoxWidget_zindex==null){window.DialogBoxWidget_zindex=1000}this.iframe.css.zIndex=window.DialogBoxWidget_zindex++;m_sty.zIndex=window.DialogBoxWidget_zindex++;l_sty.zIndex=window.DialogBoxWidget_zindex++;_pe.DlgBox_modals[_pe.DlgBox_modals.length]=m_sty;m_sty.display="";l_sty.display="block";this.iframe.setDisplay(true);DlgBoxResizeModals();this.height=layer.offsetHeight;this.width=layer.offsetWidth;if(_isHidden(layer)){this.center()}if(this.firstTR){this.firstTR.style.width=this.getWidth()-4;this.secondTR.style.height=this.getHeight()-44}if(this.resizeCB){this.resizeCB(this.width,this.height)}}else{var l=_pe.DlgBox_modals.length=Math.max(0,_pe.DlgBox_modals.length-1);m_sty.width="1px";m_sty.height="1px";m_sty.display="none";l_sty.display="none";move(-2000,-2000);this.iframe.setDisplay(false)}modal.show(sh);firstLink.show(sh);lastLink.show(sh);oldShow(sh);if(_pe.DlgBox_current!=null&&sh==true){_pe.DlgBox_current.focus()}}}function DlgBox_keepFocus(B){var A=_pe.DlgBox_instances[B];if(A){A.focus()}}function DlgBox_focus(){with(this){if(titleLayer==null){titleLayer=_getLayer("titledialog_"+id)}if(titleLayer.focus){titleLayer.focus()}}}var isJava=false;var isNetscape=navigator.appName.indexOf("Netscape")!=-1;var LEFT_ARROW_KEY=37;var RIGHT_ARROW_KEY=39;var ENTER_KEY=13;function promptengine_encodePrompt(A){if(isJava){return encodeURIComponent(A)}else{return promptengine_urlEncode(A)}}function promptengine_addDiscreteValue(D,I,H){var B=document.getElementById(D);var G=document.getElementById(H+"DiscreteValue");var A=G;var K=G.type.toLowerCase();var J=false;if(K!="text"&&K!="hidden"&&K!="password"){A=G.options[G.selectedIndex];J=true}var C=A.value;if(!promptengine_checkValue(C,I)){_safeSetFocus(G);return false}var E=document.getElementById(H+"ListBox");PE_clearSel(E);var F=promptengine_findOptionInList(E,C);if(F<0){F=E.length;E.options[F]=new Option(((A.text)?A.text:C),C,false,false)}E.options[F].selected=true;_safeSetFocus(G);if(G.select){G.select()}if(J&&G.selectedIndex'+_getSpace(5,18)+" '+(noCloseButton?"":''+_imgOffset(_pe._images+"dialogelements.gif",18,18,0,18,"dialogClose_"+this.id,'onmouseover="DlgBox_setCloseIcon(this,1)" onmouseout="DlgBox_setCloseIcon(this,0)" ',L_closeDialog,"cursor:"+_pe._hand)+"")+' '}}function DlgBox_endHTML(){var B=' onselectstart="return false" ondragstart="return false" onmousedown="DlgBox_down(event,\''+this.id+"',this,true);return false;\" ";var A=this.resizeable?(' "):"";return""+A+''+_img(_pe._images+"resize.gif",14,14,null,B+' style="cursor:NW-resize" ')+"