'+_img(_pe._images+"transp.gif",a,b)+" |
'+f.getHTML()+'"+a.endHTML());a.init();k.init();d.init();f.init();a.textField=f;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,e){var d=this;if(a+d.getWidth()>_winWidth()+_getScrollX()){a=Math.max(0,_winWidth()+_getScrollX()-d.getWidth()-10)}if(e+d.getHeight()>_winHeight()+_getScrollY()){e=Math.max(0,_winHeight()+getScrollY()-d.getHeight()-10)}d.move(a,e);d.placeIframe(true,true);var b=d.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(d,p,k,e,g,u,j,l,b,q,n,t,r,m,a,s){var f=newCtl(d);f.label=p;f.cb=k;f.width=e;f.hlp=g;f.tooltip=u;f.tabIndex=j;f.isGray=false;f.txt=null;f.icn=null;f.margin=l?l:0;f.extraStyle="";if(b){f.url=b;f.w=q;f.h=n;f.dx=t;f.dy=r;f.disDx=(a!=null)?a:t;f.disDy=(s!=null)?s:r;f.imgRight=m?true:false}f.getHTML=Btn_getHTML;f.setDisabled=Btn_setDisabled;f.setText=Btn_setText;f.changeImg=Btn_changeImg;f.oldInit=f.init;f.init=Btn_init;f.isDisabled=Btn_isDisabled;f.instIndex=Btn_currInst;Btn_inst[Btn_currInst++]=f;return f}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?('
'+k.getHTML()+" "+_getSpace(5,1)+" "+d.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(e){var b=this,a=e?"default":_pe._hand;b.isGray=e;if(b.layer){b.txt.className=e?"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,f,e,d,g){var j=this;if(d){j.url=d}if(b!=null){j.dx=b}if(a!=null){j.dy=a}if(f!=null){j.disDx=f}if(e!=null){j.disDy=e}if(g!=null){j.tooltip=g}if(j.icn){_changeSimpleOffset(j.icn,j.isGray?j.disDx:j.dx,j.isGray?j.disDy:j.dy,j.url,j.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(d,j,m,g,l,b,n,e,a,k){var f=newCtl(d);f.tooltip=n;f.changeCB=j;f.maxChar=m;f.keyUpCB=g;f.enterCB=l;f.noMargin=b;f.width=e==null?null:""+e+"px";f.focusCB=a;f.blurCB=k;f.getHTML=TextField_getHTML;f.getValue=TextField_getValue;f.setValue=TextField_setValue;f.intValue=TextField_intValue;f.intPosValue=TextField_intPosValue;f.select=TextField_select;f.beforeChange=null;f.wInit=f.init;f.init=TextField_init;f.oldValue="";return f}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 d=_getWidget(a);if(d.beforeChange){d.beforeChange()}if(d.changeCB){d.changeCB(b)}}function TextField_keyUpCB(b,a){var d=_getWidget(a);if(_eventGetKey(b)==13){if(d.beforeChange){d.beforeChange()}if(d.enterCB){d.enterCB(b)}return false}else{if(d.keyUpCB){d.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(k,g,e,a,b,j,d){var f=newCtl(k);f.title=g;f.width=e;f.height=a;f.defaultCB=b;f.cancelCB=j;f.noCloseButton=d?d:false;f.resizeable=false;f.oldKeyPress=null;f.oldMouseDown=null;f.oldCurrent=null;f.modal=null;f.hiddenVis=new Array;f.lastLink=null;f.firstLink=null;f.titleLayer=null;f.oldInit=f.init;f.oldShow=f.show;f.init=DlgBox_init;f.setResize=DlgBox_setResize;f.beginHTML=DlgBox_beginHTML;f.endHTML=DlgBox_endHTML;f.show=DlgBox_Show;f.center=DlgBox_center;f.focus=DlgBox_focus;f.setTitle=DlgBox_setTitle;f.getContainerWidth=DlgBox_getContainerWidth;f.getContainerHeight=DlgBox_getContainerHeight;_pe.DlgBox_instances[k]=f;f.modal=newCtl("modal_"+k);f.placeIframe=DlgBox_placeIframe;f.oldResize=f.resize;f.resize=DlgBox_resize;return f}function DlgBox_setResize(a,d,e,b,g){var f=this;f.resizeable=true;f.resizeCB=a;f.minWidth=d?d:50;f.minHeight=e?e:50;f.noResizeW=b;f.noResizeH=g}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:"")+' '+lnkB+label+" '+_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 d=this;if(d.iframe){if(b){d.iframe.resize(d.getWidth(),d.getHeight())}if(a){d.iframe.move(d.layer.offsetLeft,d.layer.offsetTop)}}}function DlgBox_resize(a,b){var d=this;d.oldResize(a,b);if(d.iframe){d.iframe.resize(a,b);if(d.firstTR){if(a!=null){d.firstTR.style.width=a-4}if(b!=null){d.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(d){var g=_pe._theLYR,f=_getWidget(g);if(f){if(_pe._dlgResize){var k=Math.max(f.minWidth,g.dlgStartw+_eventGetX(d)-g.dlgStartx);var b=Math.max(f.minHeight,g.dlgStarth+_eventGetY(d)-g.dlgStarty);f.resize(f.noResizeW?null:k,f.noResizeH?null:b);if(f.firstTR){if(!f.noResizeW){f.firstTR.style.width=k-4}if(!f.noResizeH){f.secondTR.style.height=b-44}}if(f.resizeCB){f.resizeCB(k,b)}}else{var a=Math.max(0,g.dlgStartPosx-g.dlgStartx+_eventGetX(d));var j=Math.max(0,g.dlgStartPosy-g.dlgStarty+_eventGetY(d));a=Math.min(Math.max(10,_winWidth()-10),a);j=Math.min(Math.max(10,_winHeight()-18),j);f.iframe.move(a,j);f.move(a,j)}}_eventCancelBubble(d);return false}function DlgBox_up(d){var f=_getWidget(_pe._theLYR),a=f.layer,b=f.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 d=_pe.DlgBox_current;if(d!=null){switch(_eventGetKey(b)){case 13:var a=_pe._ie?window.event.srcElement.id:b.target.id;if((a=="insRepText"||a=="renRepText")&&(d.defaultCB!=null)){d.defaultCB();return false}if(d.yes&&!d.no){d.defaultCB();return false}break;case 27:d.show(false);if(d.cancelCB!=null){d.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 d=this,a=_getScrollY(),b=_getScrollX();d.height=d.layer.offsetHeight;d.width=d.layer.offsetWidth;d.move(Math.max(0,b+(_winWidth()-d.width)/2),Math.max(0,a+(_winHeight()-d.height)/2));d.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=2000}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(e,l,k){var b=document.getElementById(e);var j=document.getElementById(k+"DiscreteValue");var a=j;var n=j.type.toLowerCase();var m=false;if(n!="text"&&n!="hidden"&&n!="password"){a=j.options[j.selectedIndex];m=true}var d=a.value;if(!promptengine_checkValue(d,l)){_safeSetFocus(j);return false}var f=document.getElementById(k+"ListBox");PE_clearSel(f);var g=promptengine_findOptionInList(f,d);if(g<0){g=f.length;f.options[g]=new Option(((a.text)?a.text:d),d,false,false)}f.options[g].selected=true;_safeSetFocus(j);if(j.select){j.select()}if(m&&j.selectedIndex
'+_getSpace(5,18)+" '+_convStr(title)+' '+(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" ')+" =0&&b+1 0){var k=d.length;for(var m=0;m 0&&j==lvalue){b=d.options[m].text;o=true;break}}}if(!o){b=(lowerBound.text&&!lowerUnBounded)?lowerBound.text:lvalue}o=false;if(l!=null&&uvalue!=null&&uvalue.length>0){var k=l.length;for(var m=0;m -1){theList.selectedIndex=g}else{theList.options[theList.length]=promptEntry}return true}function promptengine_findOptionInList(f,d){if(f==null||d==null){return -1}var e=f.length,b=f.options;for(var a=0;a 0){curVal+="&"}curVal+="cascadingPID="+b;valueField.value=curVal;return true}function PE_removeValue(d,j,n){var g=document.getElementById(j+"ListBox");var a=g.options;var l=g.length;if(l==0){return false}var f=false;var m=-1;var k=PE_getLB(g);for(var e=0;e =0){g=document.getElementById(j+"ListBox");if(m 0){g.options[m-1].selected=true}}}return true}function promptengine_removeValue(b,a){return PE_removeValue(b,a,false)}function promptengine_onRemoveValue(b,a){promptengine_removeValue(b,a)}function promptengine_removeAllValues(b,a){return PE_removeValue(b,a,true)}function promptengine_onRemoveAllValues(b,a){promptengine_removeAllValues(b,a)}function promptengine_updateValueField(d,a,b,e){valueField=document.getElementById(a);curVal=valueField.value;if(curVal.length>0){curVal+="&"}var f=promptengine_encodeValueField(e);curVal+=b+"="+f;valueField.value=curVal;return true}function promptengine_resetValueField(b,a){valueField=document.getElementById(a);valueField.value=""}function promptengine_updateDiscreteValue(b,e,l,g,f,a){var j="";if(document.getElementById(l+"NULL")!=null&&document.getElementById(l+"NULL").checked){j="_crNULL_"}else{valueField=document.getElementById(l+"DiscreteValue");if(valueField.type.toLowerCase()!="text"&&valueField.type.toLowerCase()!="hidden"&&valueField.type.toLowerCase()!="password"){j=valueField.options[valueField.selectedIndex].value}else{var k=document.getElementById(l+"SelectValue");if(k!=null&&k.options[k.selectedIndex].text=="..."&&valueField.value==""&&g==_pe._st){j="_crEMPTY_"}else{j=valueField.value}}if(!a&&(j==null||j.length==0)){return promptengine_updateValueField(b,e,l,"")}if(f&&!promptengine_checkValue(j,g)){if(valueField.focus&&valueField.type.toLowerCase()!="hidden"){valueField.focus()}else{var d=document.getElementById(l+"SelectValue");if(d!=null&&d.focus){d.focus()}}return false}}return promptengine_updateValueField(b,e,l,j)}function promptengine_updateRangeValue(j,a,b,f,e,g){if(document.getElementById(b+"NULL")!=null&&document.getElementById(b+"NULL").checked){value="_crNULL_"}else{lowerBound=document.getElementById(b+"LowerBound");upperBound=document.getElementById(b+"UpperBound");if(lowerBound.type.toLowerCase()!="text"&&lowerBound.type.toLowerCase()!="hidden"&&lowerBound.type.toLowerCase()!="password"){lowerBound=lowerBound.options[lowerBound.selectedIndex];upperBound=upperBound.options[upperBound.selectedIndex]}lowerUnBounded=document.getElementById(b+"NoLBoundCheck").checked;upperUnBounded=document.getElementById(b+"NoUBoundCheck").checked;lowerChecked=document.getElementById(b+"LowerCheck").checked;upperChecked=document.getElementById(b+"UpperCheck").checked;uvalue=lvalue="";if(!g&&(lowerBound.value==null||lowerBound.value.length==0||lowerUnBounded)&&(upperBound.value==null||upperBound.value.length==0||upperUnBounded)){return promptengine_updateValueField(j,a,b,"")}if(!lowerUnBounded){if(e&&!promptengine_checkRangeBoundValue(lowerBound.value,f)){if(lowerBound.focus&&lowerBound.type.toLowerCase()!="hidden"){lowerBound.focus()}else{var d=document.getElementById(b+"SelectLowerRangeValue");if(d!=null&&d.focus){d.focus()}}return false}lvalue=lowerBound.value}if(!upperUnBounded){if(e&&!promptengine_checkRangeBoundValue(upperBound.value,f)){if(upperBound.focus&&upperBound.type.toLowerCase()!="hidden"){upperBound.focus()}else{var d=document.getElementById(b+"SelectUpperRangeValue");if(d!=null&&d.focus){d.focus()}}return false}uvalue=upperBound.value}value=(lowerChecked&&!lowerUnBounded)?"[":"(";if(!lowerUnBounded){value+=lvalue}value+="_crRANGE_";if(!upperUnBounded){value+=uvalue}value+=(upperChecked&&!upperUnBounded)?"]":")"}return promptengine_updateValueField(j,a,b,value)}function promptengine_updateMultiValue(j,a,b,f,e,g){values=document.getElementById(b+"ListBox").options;value="";if(document.getElementById(b+"NULL")!=null&&document.getElementById(b+"NULL").checked){value="_crNULL_"}else{if(values.length==0){if(e&&g){var d=document.getElementById(b+"ListBox");if(d!=null&&d.focus){d.focus()}return false}value="_crEMPTY_"}else{for(i=0;i 0){alert(L_BadNumber)}else{alert((typeof L_Empty)!="undefined"?L_Empty:L_NoValue)}return false}else{if(d==_pe._cy&&!regCurrency.test(f)){if(f.length>0){alert(L_BadCurrency)}else{alert((typeof L_Empty)!="undefined"?L_Empty:L_NoValue)}return false}else{if(d==_pe._da){var e=promptengine_getDateRegex();if((e==null||!e.test(f))&&!regDate.test(f)&&!regDateHTML.test(f)){if(f.length>0){var a=L_BadDate.replace("%1",promptengine_getDateSpec());alert(a)}else{alert((typeof L_Empty)!="undefined"?L_Empty:L_NoValue)}return false}}else{if(d==_pe._dt){var e=promptengine_getDateTimeRegex();if((e==null||!e.test(f))&&!regDateTime.test(f)&&!regDateTimeHTML.test(f)){if(f.length>0){var b=L_BadDateTime.replace("%1",promptengine_getDateSpec());alert(b)}else{alert((typeof L_Empty)!="undefined"?L_Empty:L_NoValue)}return false}}else{if(d==_pe._tm&&!regTime.test(f)&&!regTimeHTML.test(f)){if(f.length>0){alert(L_BadTime)}else{alert((typeof L_Empty)!="undefined"?L_Empty:L_NoValue)}return false}}}}}return true}function promptengine_checkRangeBoundValue(b,a){if(b==null||b.length==0){alert((typeof L_Empty)!="undefined"?L_Empty:L_NoValue);return false}return promptengine_checkValue(b,a)}function promptengine_isSubmitEvent(d){var a=false;if(isNetscape){if(d.which==ENTER_KEY&&(d.target.type=="text"||d.target.type=="password")){a=true}}else{if(window.event.keyCode==ENTER_KEY&&(window.event.srcElement.type=="text"||window.event.srcElement.type=="password")){a=true}}if(a){_eventCancelBubble(d)}return a}function promptengine_isEnterKey(d){var a=false;if(isNetscape){if(d.which==ENTER_KEY&&d.target.tagName.toLowerCase()!="a"){a=true}}else{if(window.event.keyCode==ENTER_KEY&&window.event.srcElement.tagName.toLowerCase()!="a"){a=true}}if(a){_eventCancelBubble(d)}return a}function promptengine_urlEncode(a){var d=new String("");for(var b=0;b ":d+="%3E";break;case'"':d+="%22";break;case"'":d+="%27";break;case"#":d+="%23";break;case"{":d+="%7B";break;case"}":d+="%7D";break;case"|":d+="%7C";break;case"\\":d+="%5C";break;case"^":d+="%5E";break;case"~":d+="%7E";break;case"`":d+="%60";break;case"[":d+="%5B";break;case"]":d+="%5D";break;case";":d+="%3B";break;case"/":d+="%2F";break;case"?":d+="%3F";break;case":":d+="%3A";break;case"@":d+="%40";break;case"=":d+="%3D";break;case"&":d+="%26";break;default:d+=e;break}}return d}function promptengine_CancelRightClick(a){if(isNetscape){if(a.target.type!="text"&&a.target.type!="textarea"){a.preventDefault();a.cancelBubble=true;return true}}else{if(window.event.srcElement.type!="text"&&window.event.srcElement.type!="textarea"){window.event.cancelBubble=true;window.event.returnValue=false}}}function promptengine_showHidePromptByKey(b,e,j,g,a){var d=false;var f=document.getElementById(b);if(f==null){return}if(isNetscape){if((a.which==LEFT_ARROW_KEY&&f.style.display=="")||(a.which==RIGHT_ARROW_KEY&&f.style.display=="none")){d=true}}else{if((window.event.keyCode==LEFT_ARROW_KEY&&f.style.display=="")||(window.event.keyCode==RIGHT_ARROW_KEY&&f.style.display=="none")){d=true}}if(d==true){promptengine_showHidePrompt(b,e,j,g,a)}}function promptengine_showHidePrompt(b,d,j,g,a){var f;f=document.getElementById(d);if(f!=null&&b!=null){if(!f.origImage){f.origImage=f.src}var e=document.getElementById(b);if(e!=null){if(e.style.display==""){e.style.display="none"}else{e.style.display=""}if(!f.changed||f.changed==false){f.src=g;f.changed=true}else{f.src=j;f.changed=false}}}}function promptengine_scrollTo(e){if(!e){return}var a=_getScrollY(),d=_getScrollX();if(e.form){var f=e.form.offsetHeight,b=e.form.clientHeight,g=_getPos(e,e.form).y;e.form.scrollLeft=d;if(ga+b){e.form.scrollTop=Math.max(g,g+f-b)}}}else{var f=e.offsetHeight,b=_winHeight(),g=_getPos(e).y;if(ga+b){window.scrollTo(d,Math.max(g,g+f-b))}}}}function doNothing(){}function promptengine_anchorOnKeyPress(d){var a=d?d:window.event;var b=a.srcElement?a.srcElement:a.target;if(a.keyCode==13&&b.onclick){b.onclick.apply(b,[d])}return true}function promptengine_encodeUTF8(b){var a=[];var f=b.length;for(var e=0;e >6)|192);a.push(g&63|128)}else{if(g<55296||g>=57344){a.push((g>>12)|224);a.push((g>>6)&63|128);a.push(g&63|128)}else{if(g<56320){var d=b.charCodeAt(e+1);if(isNaN(d)||d<56320||d>=57344){a.push(239,191,189);continue}e++;val=((g&1023)<<10)|(d&1023);val+=65536;a.push((val>>18)|240);a.push((val>>12)&63|128);a.push((val>>6)&63|128);a.push(val&63|128)}else{a.push(239,191,189)}}}}}return a}function promptengine_encodeBASE64(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var j=[];var g,e,d,o,m,l,k;var f=0,n=a.length;while(f >2;m=((g&3)<<4)|(e>>4);l=((e&15)<<2)|(d>>6);k=d&63;if(isNaN(e)){l=k=64}else{if(isNaN(d)){k=64}}j.push(b.charAt(o));j.push(b.charAt(m));j.push(b.charAt(l));j.push(b.charAt(k))}return j.join("")}function promptengine_encodeValueField(a){return promptengine_encodePrompt(promptengine_encodeBASE64(promptengine_encodeUTF8(a)))}if(typeof(bobj)=="undefined"){bobj={}}if(typeof(bobj.prompt)=="undefined"){bobj.prompt={}}bobj.prompt.Calendar=function(f,b,a,e,d){this.locale=a;this.crystalreportviewerPath=e+"/../";this.loadFiles();this.formName=f;this.dateFormat=b;this.dateTimeFormat=b+" H:mm:ss";this.isDateTime=false;bobj.prompt.isRTL=d};bobj.prompt.Calendar.prototype={show:function(d,a){this.calendar=bobj.crv.Calendar.getInstance();this.input=document.getElementById(a);var b=d.target?d.target:d.srcElement;var f=this._getPosition(b);this._setValue(this.input.value);this._setSignals(true);this.calendar.setShowTime(this.isDateTime);this.calendar.show(true,f.x,f.y)},setIsDateTime:function(a){this.isDateTime=a},_getPosition:function(b){var a={x:0,y:0};var f={x:0,y:0};var d=b;while(d!=null){f.x+=d.offsetLeft;f.y+=d.offsetTop;d=d.offsetParent}var d=b;while(d!=null&&d.tagName.toLowerCase()!="body"){a.x+=d.scrollLeft;a.y+=d.scrollTop;d=d.parentNode}return{x:f.x-a.x,y:f.y-a.y}},_setValue:function(b){var a=this._getDateValue(b);if(!a){a=new Date()}this.calendar.setDate(a)},_onOkayClick:function(a){this._setFieldValue(a)},_setFieldValue:function(a){if(this.input){this.input.value=this._getStringValue(a)}},_onHide:function(){this._removeSignals()},_getStringValue:function(a){var b=this.isDateTime?this.dateTimeFormat:this.dateFormat;return bobj.external.date.formatDate(a,b)},_getDateValue:function(a){var b=this.isDateTime?this.dateTimeFormat:this.dateFormat;return bobj.external.date.getDateFromFormat(a,b)},_setSignals:function(b){var a=b?MochiKit.Signal.connect:MochiKit.Signal.disconnect;a(this.calendar,this.calendar.Signals.OK_CLICK,this,"_onOkayClick");a(this.calendar,this.calendar.Signals.ON_HIDE,this,"_onHide")},_removeSignals:function(){this._setSignals(false)},loadJsResources:function(){var b=["js/external/date.js","js/MochiKit/Base.js","js/MochiKit/DOM.js","js/MochiKit/Style.js","js/MochiKit/Signal.js","js/MochiKit/Iter.js","js/dhtmllib/dom.js","prompting/js/initDhtmlLib.js","js/dhtmllib/palette.js","js/dhtmllib/menu.js","js/dhtmllib/separator.js","js/crviewer/html.js","js/crviewer/common.js","js/crviewer/Calendar.js"];for(var a=0;a <\/script>')},loadLocaleStrings:function(){var a=["js/dhtmllib/language/en/labels.js","js/crviewer/strings_en.js"];var e="_";if(this.locale.indexOf("-")>0){e="-"}var d=this.locale.split(e);if(d.length>=1){a.push("js/dhtmllib/language/"+d[0]+"/labels.js");a.push("js/crviewer/strings_"+d[0]+".js")}if(d.length>=2){a.push("js/dhtmllib/language/"+d[0]+"_"+d[1]+"/labels.js");a.push("js/crviewer/strings_"+d[0]+"_"+d[1]+".js")}for(var b=0;b