if(typeof(dojo)!="undefined"){dojo.provide("MochiKit.Base")}if(typeof(MochiKit)=="undefined"){MochiKit={}}if(typeof(MochiKit.Base)=="undefined"){MochiKit.Base={}}MochiKit.Base.VERSION="1.4";MochiKit.Base.NAME="MochiKit.Base";MochiKit.Base.update=function(b,d){if(b===null){b={}}for(var c=1;cc){a=c}}g=[];for(e=0;e=0;j--){g=[e[j].apply(this,g)]}return g[0]}},bind:function(e,c){if(typeof(e)=="string"){e=c[e]}var d=e.im_func;var g=e.im_preargs;var b=e.im_self;var a=MochiKit.Base;if(typeof(e)=="function"&&typeof(e.apply)=="undefined"){e=a._wrapDumbFunction(e)}if(typeof(d)!="function"){d=e}if(typeof(c)!="undefined"){b=c}if(typeof(g)=="undefined"){g=[]}else{g=g.slice()}a.extend(g,arguments,2);var f=function(){var j=arguments;var k=arguments.callee;if(k.im_preargs.length>0){j=a.concat(k.im_preargs,j)}var i=k.im_self;if(!i){i=this}return k.im_func.apply(i,j)};f.im_self=b;f.im_func=d;f.im_preargs=g;return f},bindMethods:function(b){var d=MochiKit.Base.bind;for(var a in b){var c=b[a];if(typeof(c)=="function"){b[a]=d(c,b)}}},registerComparator:function(c,b,a,d){MochiKit.Base.comparatorRegistry.register(c,b,a,d)},_primitives:{"boolean":true,string:true,number:true},compare:function(j,d){if(j==d){return 0}var i=(typeof(j)=="undefined"||j===null);var k=(typeof(d)=="undefined"||d===null);if(i&&k){return 0}else{if(i){return -1}else{if(k){return 1}}}var c=MochiKit.Base;var g=c._primitives;if(!(typeof(j) in g&&typeof(d) in g)){try{return c.comparatorRegistry.match(j,d)}catch(l){if(l!=c.NotFound){throw l}}}if(jd){return 1}}var f=c.repr;throw new TypeError(f(j)+" and "+f(d)+" can not be compared")},compareDateLike:function(d,c){return MochiKit.Base.compare(d.getTime(),c.getTime())},compareArrayLike:function(d,c){var j=MochiKit.Base.compare;var g=d.length;var k=0;if(g>c.length){k=1;g=c.length}else{if(g=0;c--){d+=f[c]}}else{d+=f}}if(e<=0){throw new TypeError("mean() requires at least one argument")}return d/e},median:function(){var b=MochiKit.Base.flattenArguments(arguments);if(b.length===0){throw new TypeError("median() requires at least one argument")}b.sort(compare);if(b.length%2==0){var a=b.length/2;return(b[a]+b[a-1])/2}else{return b[(b.length-1)/2]}},findValue:function(a,e,f,b){if(typeof(b)=="undefined"||b===null){b=a.length}if(typeof(f)=="undefined"||f===null){f=0}var d=MochiKit.Base.compare;for(var c=f;c0))){var g=MochiKit.DOM.formContents(j);j=g[0];l=g[1]}else{if(arguments.length==1){var a=j;j=[];l=[];for(var b in a){var m=a[b];if(typeof(m)!="function"){j.push(b);l.push(m)}}}}var e=[];var f=Math.min(j.length,l.length);var c=MochiKit.Base.urlEncode;for(var d=0;d=0)||(_userAgent.indexOf("applewebkit")>=0);var _firefox=(_userAgent.indexOf("firefox")>=0);var _mac=(_appVer.indexOf("macintosh")>=0)||(_appVer.indexOf("macos")>=0);var _opera=(_userAgent.indexOf("opera")!=-1);var _userAgent=navigator.userAgent?navigator.userAgent.toLowerCase():null;var _saf=_moz&&(_userAgent.indexOf("safari")>=0);var _ctrl=0;var _shift=1;var _alt=2;var _ie6=_ie&&(_appVer.indexOf("msie 5")<0);var _small=(screen.height<=600);var _curDoc=document;var _curWin=self;var _tooltipWin=self;var _tooltipDx=0;var _tooltipDy=0;var _codeWinName="_CW";var _leftBtn=(_ie||_saf)?1:0;var _preloadArr=new Array();var _widgets=new Array();var _resizeW=_ie6?"col-resize":"E-resize";var _resizeH=_ie6?"row-resize":"S-resize";var _ddData=new Array;var _dontNeedEncoding=null;var _thex=null;var _allGrabbers=new Array();var _defaultButtonWidth=60;var BGIFramePool=null;var id=0;var _rtl=false;var KEY_ENTER=13;var KEY_SPACE=32;var KEY_PAGEUP=33;var KEY_PAGEDOWN=34;var KEY_END=35;var KEY_HOME=36;var KEY_LEFT=37;var KEY_UP=38;var KEY_RIGHT=39;var KEY_DOWN=40;function initDom(e,c,f,d,b,a){_skin=e;_lang=f;_rtl=d;_style=c;if(b){_curWin=b;_curDoc=b.document}_tooltipWin=_curWin;if(a){_codeWinName="_CW"+a}_dhtmlLib=_codeWinName+".DHTMLLIB";_curWin[_codeWinName]=self}function styleSheet(){includeCSS("style")}function isLayerDisplayed(a){var b=a?a.style:null;if(b){if(b.display=="none"||b.visibility=="hidden"){return false}else{var c=a.parentNode;if(c!=null){return isLayerDisplayed(c)}else{return true}}}else{return true}}function safeSetFocus(a){if(a&&a.focus&&isLayerDisplayed(a)){a.focus()}}function newWidget(b){var a=new Object;a.id=b;a.layer=null;a.css=null;a.getHTML=Widget_getHTML;a.beginHTML=Widget_getHTML;a.endHTML=Widget_getHTML;a.write=Widget_write;a.begin=Widget_begin;a.end=Widget_end;a.init=Widget_init;a.move=Widget_move;a.resize=Widget_resize;a.setBgColor=Widget_setBgColor;a.show=Widget_show;a.getWidth=Widget_getWidth;a.getHeight=Widget_getHeight;a.setHTML=Widget_setHTML;a.setDisabled=Widget_setDisabled;a.focus=Widget_focus;a.setDisplay=Widget_setDisplay;a.isDisplayed=Widget_isDisplayed;a.appendHTML=Widget_appendHTML;a.setTooltip=Widget_setTooltip;a.initialized=Widget_initialized;a.respectPageDirection=true;a.widx=_widgets.length;_widgets[a.widx]=a;return a}function new_Widget(a){return newWidget(a.id)}function getEvent(b,a){if(_ie&&(b==null)){b=a?a.event:_curWin.event}return b}function Widget_param(c,b,a){var d=c?c[b]:null;return d==null?a:d}function Widget_appendHTML(){append(_curDoc.body,this.getHTML())}function Widget_getHTML(){return""}function Widget_write(a){_curDoc.write(this.getHTML(a))}function Widget_begin(){_curDoc.write(this.beginHTML())}function Widget_end(){_curDoc.write(this.endHTML())}function Widget_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 Widget_move(a,d){var b=this.css;if(a!=null){if(_rtl&&this.respectPageDirection){if(_moz){b.right=""+a+"px"}else{b.pixelRight=a}}else{if(_moz){b.left=""+a+"px"}else{b.pixelLeft=a}}}if(d!=null){if(_moz){b.top=""+d+"px"}else{b.pixelTop=d}}}function Widget_focus(){safeSetFocus(this.layer)}function Widget_setBgColor(a){this.css.backgroundColor=a}function Widget_show(a){this.css.visibility=a?_show:_hide}function Widget_getWidth(){return this.layer.offsetWidth}function Widget_getHeight(){return this.layer.offsetHeight}function Widget_setHTML(a){var b=this;if(b.layer){b.layer.innerHTML=a}else{b.initialHTML=a}}function Widget_setDisplay(a){if(this.css){this.css.display=a?"":"none"}}function Widget_isDisplayed(){if(this.css.display=="none"){return false}else{return true}}function Widget_setDisabled(a){if(this.layer){this.layer.disabled=a}}function Widget_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 Widget_setTooltip(a){this.layer.title=a}function Widget_initialized(){return this.layer!=null}function newGrabberWidget(a,d,g,f,i,e,c,b,j){o=newWidget(a);o.resizeCB=d;o.x=g;o.y=f;o.w=i;o.h=e;o.dx=0;o.dy=0;o.min=null;o.max=null;o.isHori=c;o.preloaded=new Image;o.preloaded.src=_skin+"../resizepattern.gif";o.buttonCB=b;o.allowGrab=true;o.collapsed=false;o.isFromButton=false;o.showGrab=GrabberWidget_showGrab;o.setCollapsed=GrabberWidget_setCollapsed;o.tooltipButton=j;o.getHTML=GrabberWidget_getHTML;o.enableGrab=GrabberWidget_enableGrab;o.setMinMax=GrabberWidget_setMinMax;o.index=_allGrabbers.length;_allGrabbers[o.index]=o;o.buttonLyr=null;o.setButtonImage=GrabberWidget_setButtonImage;o.getImgOffset=GrabberWidget_getImgOffset;return o}function GrabberWidget_setCollapsed(b,a){this.collapsed=b;this.setButtonImage(false,a)}function GrabberWidget_getImgOffset(a){var b=this;if(b.isHori){b.dx=(b.collapsed?12:0)+(a?6:0);b.dy=0}else{b.dy=(b.collapsed?12:0)+(a?6:0);b.dx=0}}function GrabberWidget_setButtonImage(a,b){var c=this;c.getImgOffset(a);c.tooltipButton=b;if(c.layer){if(c.buttonLyr==null){c.buttonLyr=getLayer("grabImg_"+c.id)}if(c.buttonLyr){changeSimpleOffset(c.buttonLyr,c.dx,c.dy,null,b)}}}function GrabberWidget_enableGrab(a){var b=this;b.allowGrab=a;if(b.css){b.css.cursor=b.allowGrab?(b.isHori?_resizeW:_resizeH):"default"}}function GrabberWidget_getHTML(){var b=this;var a=b.isHori?_resizeW:_resizeH;var d='onselectstart="return false" ondragstart="return false" onmousedown="'+_dhtmlLib+".GrabberWidget_down(event,'"+b.index+"',this);return false;\"";var c=_ie?(''):('');return getBGIframe("grabIframe_"+b.id)+c+'
'}function GrabberWidget_setMinMax(b,a){this.min=b;this.max=a}function GrabberWidget_button(e,index,lyr){var o=_allGrabbers[index];o.isFromButton=true;lyr.onmouseup=eval("_curWin."+_dhtmlLib+".GrabberWidget_buttonup")}function GrabberWidget_buttonover(c,b,a){var d=_allGrabbers[b];d.setButtonImage(true)}function GrabberWidget_buttonout(c,b,a){var d=_allGrabbers[b];d.setButtonImage(false)}function GrabberWidget_buttonup(a){GrabberWidget_up(a)}function GrabberWidget_showGrab(){var d=this,c=d.mod,e=d.iframe,b=d.layer.style,a=c.style;e.setDisplay(true)}function GrabberWidget_down(e,index,lyr){var o=_allGrabbers[index];window._theGrabber=o;if(o.mod==null){o.mod=getLayer("modal_"+o.id);o.iframe=newWidget("grabIframe_"+o.id);o.iframe.init()}o.mod.onmousemove=eval("_curWin."+_dhtmlLib+".GrabberWidget_move");o.mod.onmouseup=eval("_curWin."+_dhtmlLib+".GrabberWidget_up");o.grabStartPosx=parseInt(_rtl?lyr.style.right:lyr.style.left);o.grabStartPosy=parseInt(lyr.style.top);o.grabStartx=eventGetX(e);o.grabStarty=eventGetY(e);var mod=o.mod,ifr=o.iframe,stl=o.layer.style,st=mod.style;stl.backgroundImage="url('"+_skin+"../resizepattern.gif')";o.prevZ=stl.zIndex;stl.zIndex=9999;ifr.css.zIndex=9998;st.width="100%";st.height="100%";mod.style.display="block";var x=o.grabStartPosx;var y=o.grabStartPosy;ifr.move(x,y);ifr.resize(o.getWidth(),o.getHeight());if(!o.isFromButton){o.showGrab()}return false}function GrabberWidget_move(g){var c=_theGrabber,f=c.layer,j=c.mod;if(c.isFromButton){if(c.isHori){var k=eventGetX(g),d=c.grabStartx;if((kd+3)){c.isFromButton=false}}else{var a=eventGetY(g),b=c.grabStarty;if((ib+3)){c.isFromButton=false}}if(!c.isFromButton){c.showGrab()}}if(!c.isFromButton){if(c.allowGrab){var k=c.isHori?Math.max(0,_rtl?c.grabStartPosx-(eventGetX(g)-c.grabStartx):c.grabStartPosx-c.grabStartx+eventGetX(g)):null;var i=c.isHori?null:Math.max(0,c.grabStartPosy-c.grabStarty+eventGetY(g));if(c.isHori){if(c.min!=null){k=Math.max(k,c.min)}if(c.max!=null){k=Math.min(k,c.max)}}else{if(c.min!=null){i=Math.max(i,c.min)}if(c.max!=null){i=Math.min(i,c.max)}}eventCancelBubble(g);c.move(k,i);getPos(c.layer);if(c.buttonCB){var l=c.buttonLyr.style;if(l.display!="none"){l.display="none"}}c.iframe.move(k,i)}}}function GrabberWidget_up(f){var g=_theGrabber,b=g.layer,d=g.mod,c=b.style;c.backgroundImage="";c.zIndex=g.prevZ;var i=g.iframe;i.move(_rtl?100:-100,-100);i.resize(1,1);i.setDisplay(false);eventCancelBubble(f);var a=d.style;a.display="none";a.width="0px";a.height="0px";if(g.buttonCB){g.buttonLyr.style.display=""}if(g&&(g.isFromButton)){if(g.buttonCB){g.buttonCB()}g.isFromButton=false}if(g.allowGrab&&(!g.isFromButton)){if(g.resizeCB){g.resizeCB(parseInt(_rtl?b.style.right:b.style.left),parseInt(b.style.top))}}}function newButtonWidget(c,m,i,d,f,s,g,j,b,n,l,r,p,k,a,q){var e=newWidget(c);e.label=m;e.cb=i;e.width=d;e.hlp=f;e.tooltip=s;e.tabIndex=g;e.isGray=false;e.isDefault=false;e.txt=null;e.icn=null;e.margin=j?j:0;e.extraStyle="";e.isDelayCallback=true;if(b){e.url=b;e.w=n;e.h=l;e.dx=r;e.dy=p;e.disDx=(a!=null)?a:r;e.disDy=(q!=null)?q:p;e.imgRight=k?true:false}e.getHTML=ButtonWidget_getHTML;e.setDisabled=ButtonWidget_setDisabled;e.setText=ButtonWidget_setText;e.changeImg=ButtonWidget_changeImg;e.oldInit=e.init;e.init=ButtonWidget_init;e.isDisabled=ButtonWidget_isDisabled;e.setDefaultButton=ButtonWidget_setDefaultButton;e.executeCB=ButtonWidget_executeCB;e.setTooltip=ButtonWidget_setTooltip;e.setDelayCallback=ButtonWidget_setDelayCallback;e.instIndex=ButtonWidget_currInst;ButtonWidget_inst[ButtonWidget_currInst++]=e;return e}var ButtonWidget_inst=new Array;var ButtonWidget_currInst=0;function ButtonWidget_getHTML(){with(this){var clk=_dhtmlLib+".ButtonWidget_clickCB("+this.instIndex+');return false;"';var clcbs='onclick="'+clk+'" ';if(_ie){clcbs+='ondblclick="'+clk+'" '}var isDefaultSty=(this.isDefault&&!this.isGray);clcbs+='onkeydown=" return '+_dhtmlLib+".ButtonWidget_keydownCB(event,"+this.instIndex+');" ';var addPar=' style="'+extraStyle+"cursor:"+_hand+";margin-left:"+margin+"px; margin-right:"+margin+'px; "'+clcbs+" ",tip=attr("title",tooltip),idText="theBttn"+id,idIcon="theBttnIcon"+id;var lnkB="';var l=(label!=null);var im=(this.url?(''+(l?"":lnkB)+simpleImgOffset(url,w,h,this.isGray?disDs:dx,this.isGray?disDy:dy,idIcon,null,(l?"":tooltip),"cursor:"+_hand)+(l?"":"")+""):"");return''+(this.imgRight?"":im)+(l?('"):"")+(this.imgRight?im:"")+"
'+lnkB+label+"
"}}function ButtonWidget_setDelayCallback(a){this.isDelayCallback=(a==true)}function ButtonWidget_setDisabled(g){var f=this,e=g?"default":_hand;f.isGray=g;if(f.layer){var b=g?"wizbuttongray":"wizbutton";if(f.txt.className!=b){f.txt.className=b;f.txt.style.cursor=e;f.css.cursor=e;if(f.icn){changeSimpleOffset(f.icn,f.isGray?f.disDx:f.dx,f.isGray?f.disDy:f.dy);f.icn.style.cursor=e}if(f.isDefault){var a=!g,c=_skin+"button.gif";changeSimpleOffset(f.leftImg,0,a?63:0,c);changeOffset(f.centerImg,0,a?105:42,c);changeSimpleOffset(f.rightImg,0,a?84:21,c)}}}}function ButtonWidget_setDefaultButton(){var c=this;if(c.layer){var a=!c.isGray,b=_skin+"button.gif";changeSimpleOffset(c.leftImg,0,a?63:0,b);changeOffset(c.centerImg,0,a?105:42,b);changeSimpleOffset(c.rightImg,0,a?84:21,b)}c.isDefault=true}function ButtonWidget_isDisabled(){return this.isGray}function ButtonWidget_setText(a){this.txt.innerHTML=convStr(a)}function ButtonWidget_setTooltip(a){var b=this;b.tooltip=a;b.layer.title=a;if(b.txt){b.txt.title=a}if(b.icn){b.icn.title=a}}function ButtonWidget_init(){var b=this;b.oldInit();b.txt=getLayer("theBttn"+this.id);b.icn=getLayer("theBttnIcon"+this.id);b.leftImg=getLayer("theBttnLeftImg"+this.id);b.centerImg=getLayer("theBttnCenterImg"+this.id);b.rightImg=getLayer("theBttnRightImg"+this.id);var a=b.isGray?"wizbuttongray":"wizbutton";if(b.txt.className!=a){b.setDisabled(b.isGray)}}function ButtonWidget_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 ButtonWidget_clickCB(a){var b=ButtonWidget_inst[a];if(b&&!b.isGray){if(b.isDelayCallback){setTimeout(_dhtmlLib+".ButtonWidget_delayClickCB("+a+")",1)}else{ButtonWidget_delayClickCB(a)}}}function ButtonWidget_delayClickCB(a){var b=ButtonWidget_inst[a];b.executeCB()}function ButtonWidget_executeCB(){var o=this;if(o.cb){if(typeof o.cb!="string"){o.cb()}else{eval(o.cb)}}}function ButtonWidget_keydownCB(d,b){var a=eventGetKey(d);var c=ButtonWidget_inst[b];if(a==13&&c.cb){eventCancelBubble(d)}return true}function newScrolledZoneWidget(g,c,e,b,d,a){var f=newWidget(g);f.borderW=c;f.padding=e;f.w=b;f.h=d;f.oldResize=f.resize;f.beginHTML=ScrolledZoneWidget_beginHTML;f.endHTML=ScrolledZoneWidget_endHTML;f.resize=ScrolledZoneWidget_resize;f.bgClass=(a)?a:"insetBorder";return f}function ScrolledZoneWidget_beginHTML(){var a=this.w,b=this.h;var c=_moz?2*(this.borderW+this.padding):0;if(typeof(a)=="number"){if(_moz){a=Math.max(0,a-c)}a=""+a+"px"}if(typeof(b)=="number"){if(_moz){b=Math.max(0,b-c)}b=""+b+"px"}return'
'}function ScrolledZoneWidget_endHTML(){return"
"}function ScrolledZoneWidget_resize(a,b){if(_moz){var c=2*(this.borderW+this.padding);if(a!=null){a=Math.max(0,a-c)}if(b!=null){b=Math.max(0,b-c)}}this.oldResize(a,b)}function newComboWidget(f,e,a,b,c){var d=newWidget(f);d.tooltip=c;d.size=1;d.getHTML=ComboWidget_getHTML;d.beginHTML=ComboWidget_beginHTML;d.endHTML=ComboWidget_endHTML;d.changeCB=e;d.noMargin=a;d.width=b==null?null:""+b+"px";d.add=ComboWidget_add;d.del=ComboWidget_del;d.getSelection=ComboWidget_getSelection;d.select=ComboWidget_select;d.valueSelect=ComboWidget_valueSelect;d.getCount=ComboWidget_getCount;d.oldSetDisabled=d.setDisabled;d.setDisabled=ComboWidget_setDisabled;d.setUndefined=ComboWidget_setUndefined;d.delByID=ComboWidget_delByID;d.findByValue=ComboWidget_findByValue;d.findByText=ComboWidget_findByText;d.getValue=ComboWidget_getValue;d.isGrayed=ComboWidget_isGrayed;d.clearSelection=ComboWidget_clearSelection;d.isDisabled=false;d.multi=false;d.undef=false;d.isCombo=true;d.undefId=d.id+"__undef";d.disabledId=d.id+"__disabled";return d}function ComboWidget_beginHTML(){var b=this,a=((_moz&&!b.isCombo)?"font-size:12px;":"");return""}function ComboWidget_getHTML(a){return this.beginHTML()+(a?a:"")+this.endHTML()}function ComboWidget_add(b,g,c,i,f){var d=this.layer,a=_curDoc.createElement("option");if(_ie){d.options.add(a)}else{d.appendChild(a)}if(a.innerText!=null){a.innerText=b}else{a.innerHTML=convStr(b)}a.value=g;if(i!=null){a.id=i}if(c){a.selected=true}if(f){a.style.color="gray"}return a}function ComboWidget_getSelection(){var c=this.layer,b=c.selectedIndex;if(b<0){return null}var a=new Object;a.index=b;a.value=c.options[b].value;a.text=c.options[b].text;return a}function ComboWidget_select(b){var d=this,c=d.layer,a=c.options.length;if(b==null){c.selectedIndex=-1}if((b<0)||(b>=a)){b=a-1}if(b>=0){c.selectedIndex=b}d.setUndefined(false)}function ComboWidget_valueSelect(b){var g=this,f=g.layer,d=f.options,a=d.length;for(var c=0;ca){return null}var b=new Object;b.index=c;b.value=f.options[c].value;return b}function ComboWidget_isGrayed(b){var f=this,d=f.layer,c=d.options,a=c.length;if(b==null||b<0||b>a){return false}return(d.options[b].style.color=="gray")}function newListWidget(a,f,e,b,k,j,g,d,i){var c=newComboWidget(a,f,true,b,j);c.clickCB=i;c.dblClickCB=g;c.keyUpCB=d;c.size=k;c.multi=e;c.getMultiSelection=ListWidget_getMultiSelection;c.setUndefined=ListWidget_setUndefined;c.isUndefined=ListWidget_isUndefined;c.change=ListWidget_change;c.isCombo=false;return c}function ListWidget_setUndefined(a){var b=this;b.undef=a;if(a==true){b.layer.selectedIndex=-1}}function ListWidget_isUndefined(){return(this.layer.selectedIndex==-1)}function ListWidget_getMultiSelection(){var g=this.layer,f=new Array,a=g.options.length;for(var d=0;d'+img(_skin+"../help.gif",16,16,"top",null,L_DHTMLLIB_helpLab)+''+convStr(a.title)+''+convStr(a.boldTitle)+"
"+getSpace(1,2)+'
'+convStr(a.text,false,true)+"
"}function InfoWidget_resize(b,c){var d=this;if(b!=null){d.w=b}if(c!=null){d.h=c}d.oldResize(b,c);if(d.layer){var a=d.textLayer;if(a==null){a=d.textLayer=getLayer("infozone_"+d.id)}if(a){if(d.h!=null){a.style.height=""+Math.max(0,d.h-(_ie?18:28))+"px"}}}}function newCheckWidget(a,i,f,e,j,g,d,c){var b=newWidget(a);b.text=i;b.convText=c;b.changeCB=f;b.idCheckbox="check_"+a;b.checkbox=null;b.kind="checkbox";b.name=b.idCheckbox;b.bold=e;b.imgUrl=j;b.imgW=g;b.imgH=d;b.getHTML=CheckWidget_getHTML;b.setText=CheckWidget_setText;b.parentInit=Widget_init;b.init=CheckWidget_init;b.check=CheckWidget_check;b.isChecked=CheckWidget_isChecked;b.setDisabled=CheckWidget_setDisabled;b.isDisabled=CheckWidget_isDisabled;b.uncheckOthers=CheckWidget_uncheckOthers;b.isIndeterminate=CheckWidget_isIndeterminate;b.setIndeterminate=CheckWidget_setIndeterminate;b.layerClass=("dialogzone"+(b.bold?"bold":""));b.nobr=true;return b}function CheckWidget_getHTML(){var b=this,a=b.layerClass;return'"+(b.imgUrl?'":"")+"
"+(b.nobr?"":"")+'"+(b.nobr?"":"")+"
"}function CheckWidget_setText(a){var b=this;b.text=a;if(b.layer){if(b.labelLyr==null){b.labelLyr=getLayer("label_"+b.id)}b.labelLyr.innerHTML=b.convText?convStr(a):a}}function CheckWidget_init(){this.parentInit();this.checkbox=getLayer(this.idCheckbox)}function CheckWidget_check(a){this.checkbox.checked=a;if(a){this.uncheckOthers()}}function CheckWidget_isChecked(){return this.checkbox.checked}function CheckWidget_changeCB(b,a){var c=getWidget(a);c.uncheckOthers();if(c.changeCB){c.changeCB(b)}}function CheckWidget_setDisabled(a){this.checkbox.disabled=a;if(_moz){this.checkbox.className=(a?"dialogzone":"")}}function CheckWidget_isDisabled(){return this.checkbox.disabled}function CheckWidget_uncheckOthers(){}function CheckWidget_isIndeterminate(){return this.checkbox.indeterminate}function CheckWidget_setIndeterminate(a){this.checkbox.indeterminate=a}function newRadioWidget(a,k,l,i,f,m,j,d,c){var b=newCheckWidget(a,l,i,f,m,j,d,c);b.kind="radio";b.name=k;if(_RadioWidget_groups[k]==null){_RadioWidget_groups[k]=new Array}b.groupInstance=_RadioWidget_groups[k];var e=b.groupInstance;b.groupIdx=e.length;e[e.length]=b;b.uncheckOthers=RadioWidget_uncheckOthers;return b}var _RadioWidget_groups=new Array;function RadioWidget_uncheckOthers(){var e=this.groupInstance,b=this.groupIdx,a=e.length;for(var d=0;d
'}function TextFieldWidget_getValue(){var a=this;if(a.isHelpTxt){return""}else{return a.inputNode?a.inputNode.value:a.oldValue}}function TextFieldWidget_setValue(a){var b=this;if(b.inputNode){b.eraseHelpTxt();b.inputNode.value=""+a}else{b.oldValue=a}}function TextFieldWidget_changeCB(b,a){var c=getWidget(a);c.eraseHelpTxt();if(c.beforeChange){c.beforeChange()}if(c.changeCB){c.changeCB(b)}}function TextFieldWidget_keyPressCB(b,a){var c=getWidget(a);if(eventGetKey(b)==13){c.enterKeyPressed=true;return false}else{c.enterKeyPressed=false}return true}function TextFieldWidget_keyUpCB(b,a){var c=getWidget(a);c.eraseHelpTxt();if(eventGetKey(b)==13&&c.enterKeyPressed){if(c.beforeChange){c.beforeChange()}if(c.enterCB){if(c.enterCancelBubble){eventCancelBubble(b)}c.enterCB(b)}return false}else{if(c.keyUpCB){c.keyUpCB(b)}}c.enterKeyPressed=false;return true}function TextFieldWidget_keyDownCB(b,a){var c=getWidget(a);c.eraseHelpTxt();c.enterKeyPressed=false;if(eventGetKey(b)==13){return true}else{if(eventGetKey(b)==8){eventCancelBubble(b)}}return true}function TextFieldWidget_eraseHelpTxt(){var a=this;if(a.isHelpTxt&&a.inputNode){a.inputNode.value=""}a.isHelpTxt=false;if(a.inputNode){a.inputNode.style.color="black"}}function TextFieldWidget_focus(a){var b=getWidget(a);b.eraseHelpTxt();if(b.focusCB){b.focusCB()}}function TextFieldWidget_blur(a){var b=getWidget(a);if(b.beforeChange){b.beforeChange()}if(b.blurCB){b.blurCB()}}function TextFieldWidget_click(a){var b=getWidget(a);if(b.clickCB){b.clickCB()}}function TextFieldWidget_intValue(a){var b=parseInt(this.getValue());return isNaN(b)?a:b}function TextFieldWidget_intPosValue(a){var b=this.intValue(a);return(b<0)?a:b}function TextFieldWidget_select(){if(this.inputNode){this.inputNode.select()}}function TextFieldWidget_setHelpTxt(a){var b=this;b.helpTxt=a;if(b.inputNode&&(b.inputNode.value=="")){b.isHelpTxt=true;b.inputNode.value=a;b.inputNode.style.color="#808080"}}function newIntFieldWidget(c,g,j,f,i,b,k,d,a){var e=newTextFieldWidget(c,g,j,f,i,b,k,d);e.min=-Number.MAX_VALUE;e.max=Number.MAX_VALUE;e.customCheckCB=a;e.setMin=IntFieldWidget_setMin;e.setMax=IntFieldWidget_setMax;e.setValue=IntFieldWidget_setValue;e.beforeChange=IntFieldWidget_checkChangeCB;e.value="";return e}function IntFieldWidget_setMin(a){if(!isNaN(a)){this.min=a}}function IntFieldWidget_setMax(a){if(!isNaN(a)){this.max=a}}function IntFieldWidget_setValue(b){var c=this,a=c.layer;b=""+b;if(b==""){if(a){a.value=""}c.oldValue="";return}var d=parseInt(b);value="";if(!isNaN(d)&&(d>=c.min)&&(d<=c.max)&&((c.customCheckCB==null)||c.customCheckCB(d))){value=d;c.oldValue=value}else{if(c.oldValue){value=c.oldValue}}if(a){a.value=""+value}}function IntFieldWidget_checkChangeCB(){var a=this;a.setValue(a.layer.value)}function newFrameZoneWidget(e,a,c,b){var d=newWidget(e);d.w=(a!=null)?""+Math.max(0,a-10)+"px":null;d.h=(c!=null)?""+Math.max(0,c-10)+"px":null;d.reverse=(b!=null)?b:false;d.cont=null;d.beginHTML=FrameZoneWidget_beginHTML;d.endHTML=FrameZoneWidget_endHTML;d.oldResize=d.resize;d.resize=FrameZoneWidget_resize;return d}function FrameZoneWidget_resize(a,b){var e=this;var c=e.layer.display!="none";if(c&_moz&&!_saf){e.setDisplay(false)}e.oldResize(a,b);if(c&_moz&&!_saf){e.setDisplay(true)}}function FrameZoneWidget_beginHTML(){var a=this;return'
'}function FrameZoneWidget_endHTML(){var a=this;return"
"}function arrayAdd(e,g,d,b){var f=e[g],a=f.length;if((b==null)||(typeof b!="number")){b=-1}if((b<0)||(b>a)){b=a}if(b!=a){var c=f.slice(b);f.length=b+1;f[b]=d;f=f.concat(c)}else{f[b]=d}e[g]=f;return b}function arrayRemove(d,f,a){var e=d[f],c=e.length-1;if(a==null){e.length=0;d[f]=e;return -1}if((a<0)||(a>c)){return -1}if(a==c){e.length=c}else{var b=e.slice(a+1);e.length=a;e=e.concat(b)}d[f]=e;return a}function getFrame(name,par){if(par==null){par=self}var frames=par.frames,w=eval("frames."+name);if(w==null){return w}var l=frames.length;for(var i=0;i/g,">").replace(/"/g,""");if(a){b=b.replace(/ /g," ")}if(c){b=b.replace(/\n/g,"
")}return b}function escapeCR(b){b=""+b;var a=b.replace(/\r/g,"").replace(/\n/g,"\\n");return a}function hasNoRTLCharacters(a){return(-1==a.search(/[\u0590-\u074F\u0780-\u07BF\u08A0-\u08FA]/))}function addDblClickCB(b,a){if(b.addEventListener&&!_saf){b.addEventListener("dblclick",a,false)}else{b.ondblclick=a}}function img(e,a,c,f,b,d){b=(b?b:"");if(d==null){d=""}return""}function imgOffset(a,g,d,k,j,b,f,c,i,e){return img(_skin+"../transp.gif",g,d,e,(f?f:"")+" "+attr("id",b)+' style="float:left;'+backImgOffset(a,k,j)+(i?i:"")+'"',c)}function simpleImgOffset(a,g,d,k,j,b,f,c,i,e){if(_ie){if(k==null){k=0}if(j==null){j=0}return"
'+img(a,null,null,(e?e:"top"),'style="margin:0px;position:relative;top:'+(-j)+"px;left:"+(-k)+'px" tabIndex="-1"',c)+"
"}else{return imgOffset(a,g,d,k,j,b,f,c,i,e)}}function changeSimpleOffset(e,b,a,d,f){if(_ie){e=e.childNodes[0];var c=e.style;if((d!=null)&&(d!=e.src)){e.src=d}if(b!=null){c.left=""+(-b)+"px"}if(a!=null){c.top=""+(-a)+"px"}if(f!=null){e.title=f;e.alt=f}}else{changeOffset(e,b,a,d,f)}}function backImgOffset(c,b,a){return"background-image:url('"+c+"');background-position:"+(-b)+"px "+(-a)+"px;"}function changeOffset(e,b,a,d,f){var c=e.style;if(c){if((b!=null)&&(a!=null)){c.backgroundPosition=""+(-b)+"px "+(-a)+"px"}if(d){c.backgroundImage="url('"+d+"')"}}if(f){e.title=f}}function includeCSS(b,c){if(typeof(_skin)=="string"&&_skin!=""){var a="";if(c){a=_skin+"../"+b}else{a=_skin+b}a+=".css";_curDoc.write('')}}function getLayer(a){return _curDoc.getElementById(a)}function setLayerTransp(a,b){if(_ie){a.style.filter=(b==null)?"":"progid:DXImageTransform.Microsoft.Alpha( style=0,opacity="+b+")"}else{a.style.MozOpacity=(b==null)?1:b/100}}function getPos(b,a){a=a?a:null;for(var d=0,c=0;(b!=null)&&(b!=a);d+=b.offsetLeft,c+=b.offsetTop,b=b.offsetParent){}return{x:d,y:c}}function getPos2(b,a){var a=a?a:null;var d=0;var c=0;while(b.parentNode||b.offsetParent){if(b.offsetParent){d+=b.offsetLeft;c+=b.offsetTop;b=b.offsetParent}else{if(b.parentNode){if(b.style){if(b.style.left){d+=b.style.left}if(b.style.top){c+=b.style.top}}b=b.parentNode}else{break}}}if(a){relToCord=getPos2(a);d-=relToCord.x;c-=relToCord.y}return{x:d,y:c}}function getPosScrolled(c,b){b=b?b:null;if(_ie){for(var e=0,d=0;(c!=null)&&(c!=b);e+=c.offsetLeft-c.scrollLeft,d+=c.offsetTop-c.scrollTop,c=c.offsetParent){}}else{var a=c;for(var e=0,d=0;(c!=null)&&(c!=b);e+=c.offsetLeft,d+=c.offsetTop,c=c.offsetParent){}for(c=a;(c!=null)&&(c!=b);c=c.parentNode){if(c.scrollLeft!=null){e-=c.scrollLeft;d-=c.scrollTop}}}e+=getScrollX();d+=getScrollY();return{x:e,y:d}}function getWidget(b){if(b==null){return null}var a=b._widget;if(a!=null){return _widgets[a]}else{return getWidget(b.parentNode)}}function getWidgetFromID(b){if(b==null){return null}var a=getLayer(b);return getWidget(a)}function attr(a,b){return(b!=null?" "+a+'="'+b+'" ':"")}function sty(a,b){return(b!=null?a+":"+b+";":"")}function getSep(b,a){if(b==null){b=0}var c=b>0?''+getSpace(b,1)+"":"";return''+c+''+c+"
"}function writeSep(b,a){_curDoc.write(getSep(b,a))}function getSpace(a,b){return'
'+img(_skin+"../transp.gif",a,b)+"
"}function writeSpace(a,b){_curDoc.write(getSpace(a,b))}function documentWidth(b){var b=b?b:_curWin;var a=Math.max(document.body.clientWidth,document.documentElement.clientWidth);a=Math.max(a,document.body.scrollWidth);return a}function documentHeight(b){var b=b?b:_curWin;var a=Math.max(document.body.clientHeight,document.documentElement.clientHeight);a=Math.max(a,document.body.scrollHeight);return a}function winWidth(b){var a;var b=b?b:_curWin;if(_ie){if(_isQuirksMode){a=b.document.body.clientWidth}else{a=b.document.documentElement.clientWidth}}else{a=b.innerWidth}return a}function winHeight(b){var b=b?b:_curWin;var a;if(_ie){if(_isQuirksMode){a=document.body.clientHeight}else{a=document.documentElement.clientHeight}}else{a=b.innerHeight}return a}function getScrollX(a){var b=0;var a=a?a:_curWin;if(typeof(a.scrollX)=="number"){b=a.scrollX}else{b=Math.max(a.document.body.scrollLeft,a.document.documentElement.scrollLeft)}return b}function getScrollY(b){var a=0;var b=b?b:_curWin;if(typeof(b.scrollY)=="number"){a=window.scrollY}else{a=Math.max(b.document.body.scrollTop,b.document.documentElement.scrollTop)}return a}function winScrollTo(a,c,b){b=b?b:_curWin;b.scrollTo(a,c)}function eventGetKey(b,a){a=a?a:_curWin;return _ie?a.event.keyCode:b.keyCode}function eventGetX(a){return _ie?_curWin.event.clientX:a.clientX?a.clientX:a.pageX}function eventGetY(a){return _ie?_curWin.event.clientY:a.clientY?a.clientY:a.pageY}function xpos(d,c,b,a){if((a==null)||(!_ie)){a=1}return((c.clientX/a)-getPos(d).x)+getScrollX()}function ypos(d,c,b,a){if((a==null)||(!_ie)){a=1}return((c.clientY/a)-getPos(d).y)+(_ie?b.body.scrollTop:0)}function absxpos(b,a){if((a==null)||(!_ie)){return b.clientX}else{return b.clientX/a}}function absypos(b,a){if((a==null)||(!_ie)){return b.clientY}else{return b.clientY/a}}function eventCancelBubble(c,b){b=b?b:_curWin;var a=_ie?b.event:c;if(a){a.cancelBubble=true;if(a.stopPropagation){a.stopPropagation()}}}function eventPreventDefault(c,b){b=b?b:_curWin;var a=_ie?b.event:c;if(a){if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}}}function isHidden(b){if((b==null)||(b.tagName=="BODY")){return false}var a=b.style;if((a==null)||(a.visibility==_hide)||(a.display=="none")){return true}return isHidden(b.parentNode)}function opt(c,a,b){return'"}function lnk(c,d,a,f,b,e){if(d==null){d="return false"}b=b?b:"";return""+c+""}_oldErrHandler=null;function localErrHandler(){return true}function canScanFrames(a){var b=true;var e=null;if(_moz){_oldErrHandler=window.onerror;window.onerror=localErrHandler}try{var e=a.document;b=false}catch(c){}if(_moz){window.onerror=_oldErrHandler}return(!b&&(e!=null))}function getBGIframe(a){return''}function getDynamicBGIFrameLayer(){var b=false;var d=null;var c=0;if(BGIFramePool){d=BGIFramePool.split(",");var a=d.length;for(var c=0;c'}function BlockWhileWaitWidget_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 isTextInput(a){var b=_ie?a.srcElement:a.target;var c=false;if(b.tagName=="TEXTAREA"){c=true}if((b.tagName=="INPUT")&&((b.type.toLowerCase()=="text")||(b.type.toLowerCase()=="password"))){c=true}return c}function isTextArea(a){var b=_ie?a.srcElement:a.target;if(b.tagName=="TEXTAREA"){return true}else{return false}}function LZ(a){return(a<0||a>9?"":"0")+a}DHTMLLIB.add(eventCancelBubble,ButtonWidget_delayClickCB,ButtonWidget_clickCB,ButtonWidget_keydownCB,ComboWidget_changeCB,ComboWidget_clickCB,ComboWidget_dblClickCB,ComboWidget_keyUpCB,ComboWidget_keyDownCB,TextFieldWidget_focus,TextFieldWidget_blur,TextFieldWidget_click,TextFieldWidget_changeCB,TextFieldWidget_keyDownCB,TextFieldWidget_keyUpCB,TextFieldWidget_keyPressCB,GrabberWidget_down,GrabberWidget_buttonup,GrabberWidget_move,GrabberWidget_up,CheckWidget_changeCB,append2,getLayer,getWidgetFromID,targetApp,hasNoRTLCharacters);DHTMLLIB._widgets=_widgets;if(bobj.crv.config.isDebug){localErrHandler=null}initDom(bobj.crvUri("../dhtmllib/images/")+bobj.crv.config.skin+"/","",bobj.crv.config.lang,bobj.crv.config.isRTL);styleSheet();var DialogBoxWidget_instances=new Array();var DialogBoxWidget_current=null;var DialogBoxWidget_zindex=1000;var _promptDlgInfo=0;var _promptDlgWarning=1;var _promptDlgCritical=2;var _dlgTitleLBorderToTxt=20;var _dlgTitleHeight=25;var _dlgTitleMarginBottom=4;var _dlgTitleRBorderToClose=10;var _dlgTitleCloseBtnImgFile="dialogtitle.gif";var _dlgTitleCloseBtnW=11;var _dlgTitleCloseBtnH=10;var _dlgTitleCloseBtnDy=26;var _dlgTitleCloseBtnHoverDy=37;var _dlgBottomMargin=14;function newDialogBoxWidget(a,f,b,i,j,g,e,d){var c=newWidget(a);c.title=f;c.width=b;c.height=i;c.defaultCB=j;c.cancelCB=g;c.noCloseButton=e?e:false;c.isAlert=d;c.closeCB=null;c.resizeable=false;c.oldMouseDown=null;c.oldCurrent=null;c.modal=null;c.hiddenVis=new Array;c.lastLink=null;c.firstLink=null;c.titleLayer=null;c.defaultBtn=null;c.divLayer=null;c.oldInit=c.init;c.oldShow=c.show;c.init=DialogBoxWidget_init;c.setResize=DialogBoxWidget_setResize;c.beginHTML=DialogBoxWidget_beginHTML;c.endHTML=DialogBoxWidget_endHTML;c.show=DialogBoxWidget_Show;c.center=DialogBoxWidget_center;c.focus=DialogBoxWidget_focus;c.setTitle=DialogBoxWidget_setTitle;c.getContainerWidth=DialogBoxWidget_getContainerWidth;c.getContainerHeight=DialogBoxWidget_getContainerHeight;DialogBoxWidget_instances[a]=c;c.modal=newWidget("modal_"+a);c.placeIframe=DialogBoxWidget_placeIframe;c.oldResize=c.resize;c.resize=DialogBoxWidget_resize;c.attachDefaultButton=DialogBoxWidget_attachDefaultButton;c.unload=DialogBoxWidget_unload;c.close=DialogBoxWidget_close;c.setCloseCB=DialogBoxWidget_setCloseCB;c.setNoCloseButton=DialogBoxWidget_setNoCloseButton;c.resizeModal=DialogBoxWidget_ResizeModal;c.setParent=DialogBoxWidget_setParent;c._onWindowResize=function(){c.resizeModal()};c.respectPageDirection=false;if(!_ie){if(c.width!=null){c.width=Math.max(0,b+4)}if(c.height!=null){c.height=Math.max(0,i+4)}}return c}function DialogBoxWidget_setParent(a){this.parent=a}function DialogBoxWidget_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 DialogBoxWidget_setTitle(b){var a=this;a.title=b;if(a.titleLayer==null){a.titleLayer=getLayer("titledialog_"+this.id)}a.titleLayer.innerHTML=convStr(b)}function DialogBoxWidget_setCloseIcon(a,b){changeOffset(a,0,(b==1?0:18))}function DialogBoxWidget_beginHTML(){with(this){var moveableCb=' onselectstart="return false" ondragstart="return false" onmousedown="'+_dhtmlLib+".DialogBoxWidget_down(event,'"+id+"',this,false);return false;\" ";var titleBG="background-image:url("+_skin+"dialogtitle.gif)";var mdl='";var btn="";if(_dtd4){btn='
'}else{btn=''+simpleImgOffset(_skin+_dlgTitleCloseBtnImgFile,_dlgTitleCloseBtnW,_dlgTitleCloseBtnH,0,_dlgTitleCloseBtnDy,"dialogClose_"+id,null,L_DHTMLLIB_closeDialog)+""}var closeBtn=''+btn+"
";var dlgtitle='"+closeBtn+"
'+convStr(title)+"
";var s="";s=mdl;var dims=sty("width",width?(""+width+"px"):null)+sty("height",height?(""+Math.max(0,height+(_moz?-2:0))+"px"):null);s+='";s+='";s+='";a+='";return a}function DialogBoxWidget_getContainerWidth(){var a=this;return a.width-(2+2)}function DialogBoxWidget_getContainerHeight(){var a=this;return a.height-(2+18+2+2+2)}function DialogBoxWidget_close(b){var a=DialogBoxWidget_instances[b];if(a){a.show(false);if(a.cancelCB!=null){a.cancelCB()}}}function DialogBoxWidget_setCloseCB(a){this.closeCB=a}function DialogBoxWidget_setNoCloseButton(a){if(this.noCloseButton!==a){this.noCloseButton=a;if(this.initialized()){this.closeButton.style.visibility=this.noCloseButton?_hide:_show}}}function DialogBoxWidget_resizeIframeCB(b,a){DialogBoxWidget_instances[b].placeIframe()}function DialogBoxWidget_placeIframe(){var b=this;if(b.iframe){var a=b.td_lyr;if(a==null){b.td_lyr=a=getLayer("td_dialog_"+b.id)}b.iframe.resize(a.offsetWidth,a.offsetHeight);b.iframe.move(b.layer.offsetLeft,b.layer.offsetTop)}}function DialogBoxWidget_resize(a,b){var c=this;c.oldResize(a,b);if(c.iframe){c.iframe.resize(a,b)}}function DialogBoxWidget_init(){if(this.layer!=null){return}var a=this;a.oldInit();a.modal.init();a.lastLink=newWidget("lastLink_"+a.id);a.firstLink=newWidget("firstLink_"+a.id);a.lastLink.init();a.firstLink.init();if(_saf){a.webKitFocusElem=getLayer("webKitFocusElem"+a.id)}a.closeButton=getLayer("dialogClose_"+a.id);a.closeButton.style.visibility=a.noCloseButton?_hide:_show;a.closeButton.onmouseover=DialogBoxWidget_moverCloseBtn;a.closeButton.onmouseout=DialogBoxWidget_moverCloseBtn;a.closeButton.onclick=function(){a.close(a.id)}}function DialogBoxWidget_moverCloseBtn(a){var a=getEvent(a);var b=(a&&a.type=="mouseover")?true:false;if(_dtd4){this.className=b?"dlgCloseBtnHover":"dlgCloseBtn"}else{changeOffset(this,0,b?_dlgTitleCloseBtnHoverDy:_dlgTitleCloseBtnDy)}}function DialogBoxWidget_attachDefaultButton(a){this.defaultBtn=a;this.defaultBtn.setDefaultButton()}var _theLYR=null;var _dlgResize=null;function DialogBoxWidget_down(e,id,obj,isResize){_dlgResize=isResize;var o=DialogBoxWidget_instances[id],lyr=o.layer,mod=o.modal.layer;lyr.onmousemove=mod.onmousemove=eval("_curWin."+_dhtmlLib+".DialogBoxWidget_move");lyr.onmouseup=mod.onmouseup=eval("_curWin."+_dhtmlLib+".DialogBoxWidget_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;_theLYR=lyr;eventCancelBubble(e);if(lyr.setCapture){lyr.setCapture(true)}}function DialogBoxWidget_move(c){var f=_theLYR,d=getWidget(f);if(_dlgResize){var i=Math.max(d.minWidth,f.dlgStartw+eventGetX(c)-f.dlgStartx);var b=Math.max(d.minHeight,f.dlgStarth+eventGetY(c)-f.dlgStarty);d.resize(d.noResizeW?null:i,d.noResizeH?null:b);if(d.firstTR){if(!d.noResizeW){d.firstTR.style.width=i-4}if(!d.noResizeH){d.secondTR.style.height=b-44}}if(d.resizeCB){d.resizeCB(i,b)}}else{var a=Math.max(0,f.dlgStartPosx-f.dlgStartx+eventGetX(c));var g=Math.max(0,f.dlgStartPosy-f.dlgStarty+eventGetY(c));d.iframe.move(a,g);d.move(a,g)}eventCancelBubble(c);return false}function DialogBoxWidget_up(c){var d=getWidget(_theLYR),a=d.layer,b=d.modal.layer;a.onmousemove=b.onmousemove=null;a.onmouseup=b.onmouseup=null;if(a.releaseCapture){a.releaseCapture()}_theLYR=null}function DialogBoxWidget_keypress(a){eventCancelBubble(a);var b=DialogBoxWidget_current;if(b!=null){switch(eventGetKey(a)){case 13:if(b.yes&&!b.no){if(b.defaultCB){b.defaultCB()}return false}if(isTextArea(_ie?_curWin.event:a)){return true}if(b.defaultBtn!=null&&!b.defaultBtn.isDisabled()){b.defaultBtn.executeCB();return false}break;case 27:if(!b.noCloseButton){b.show(false);hideBlockWhileWaitWidget();if(b.cancelCB!=null){b.cancelCB()}}return false;break;case 8:return isTextInput(_ie?_curWin.event:a);break}}}function DialogBoxWidget_ResizeModal(){if(this.parent&&this.parent.layer){var a=this.parent.layer;var d=getPos2(a);var c={w:a.offsetWidth,h:a.offsetHeight};var b=this.modal.css;b.top=d.y+"px";b.left=d.x+"px";b.width=c.w+"px";b.height=c.h+"px"}}function DialogBoxWidget_center(){var b=this;var e={modalDisplay:b.modal.css.display,layerDisplay:b.css.display};var j=b.layer.offsetHeight,a=b.layer.offsetWidth;var c=0,i=0;if(this.parent&&this.parent.layer){var d=this.parent.layer;var g=getPos2(d);var f={w:d.offsetWidth,h:d.offsetHeight};c=g.y+Math.max(0,(f.h-j)/2);i=g.x+Math.max(0,(f.w-a)/2)}b.move(Math.max(0,i),Math.max(0,c));b.placeIframe()}function DialogBoxWidget_Show(sh){with(this){var m_sty=modal.css;var l_sty=css;if(sh){if(!this.iframe){this.iframe=newWidget(getDynamicBGIFrameLayer().id);this.iframe.init();this.iframe.respectPageDirection=this.respectPageDirection}oldCurrent=DialogBoxWidget_current;DialogBoxWidget_current=this;if(_ie){layer.onkeydown=eval("_curWin."+_dhtmlLib+".DialogBoxWidget_keypress");modal.layer.onkeydown=eval("_curWin."+_dhtmlLib+".DialogBoxWidget_keypress");window.attachEvent("onresize",this._onWindowResize)}else{_curDoc.addEventListener("keydown",eval("_curWin."+_dhtmlLib+".DialogBoxWidget_keypress"),false);window.addEventListener("resize",this._onWindowResize,false)}oldMouseDown=_curDoc.onmousedown;_curDoc.onmousedown=null;hideBlockWhileWaitWidget()}else{DialogBoxWidget_current=oldCurrent;oldCurrent=null;if(_ie){layer.onkeydown=null;modal.layer.onkeydown=null;window.detachEvent("onresize",this._onWindowResize)}else{_curDoc.removeEventListener("keydown",eval("_curWin."+_dhtmlLib+".DialogBoxWidget_keypress"),false);window.removeEventListener("resize",this._onWindowResize,false)}_curDoc.onmousedown=oldMouseDown}var sameState=(layer.isShown==sh);if(sameState){return}layer.isShown=sh;if(sh){this.iframe.css.zIndex=DialogBoxWidget_zindex++;m_sty.zIndex=DialogBoxWidget_zindex++;l_sty.zIndex=DialogBoxWidget_zindex++;m_sty.display="";l_sty.display="block";this.iframe.setDisplay(true);holdBGIFrame(this.iframe.id);this.resizeModal();this.height=layer.offsetHeight;this.width=layer.offsetWidth;if(_small&&height){if(divLayer==null){divLayer=getLayer("div_dialog_"+id)}if(divLayer){divLayer.style.overflow="auto";divLayer.style.height=(winHeight()0){focusableElems[focusableElems.length-1].focus()}}}}function newPromptDialog(a,i,k,g,d,j,l,c,f,e){var b=newDialogBoxWidget(a,i,300,null,PromptDialog_defaultCB,PromptDialog_cancelCB,f,e);b.text=k;b.getHTML=PromptDialog_getHTML;b.yes=g?newButtonWidget(a+"_yesBtn",g,'PromptDialog_yesCB("'+b.id+'")',70):null;b.no=d?newButtonWidget(a+"_noBtn",d,'PromptDialog_noCB("'+b.id+'")',70):null;b.yesCB=l;b.noCB=c;b.promptType=j;b.txtLayer=null;b.imgLayer=null;b.setPromptType=PromptDialog_setPromptType;b.setText=PromptDialog_setText;if(b.yes){b.attachDefaultButton(b.yes)}else{if(b.no){b.attachDefaultButton(b.no)}}return b}function PromptDialog_getimgPath(b){var a=_skin;switch(b){case _promptDlgInfo:a+="information_icon.gif";break;case _promptDlgWarning:a+="warning_icon.gif";break;default:a+="critical_icon.gif";break}return a}function PromptDialog_getimgAlt(b){var a="";return a}function PromptDialog_setPromptType(b){var a=this;if(a.imgLayer==null){a.imgLayer=getLayer("dlg_img_"+a.id)}a.imgLayer.src=PromptDialog_getimgPath(b);a.imgLayer.alt=PromptDialog_getimgAlt(b)}function PromptDialog_setText(b){var a=this;a.text=b;if(a.txtLayer==null){a.txtLayer=getLayer("dlg_txt_"+a.id)}a.txtLayer.innerHTML='
'+convStr(b,false,true)+"
"}function PromptDialog_getHTML(){var c=this;var b=PromptDialog_getimgPath(c.promptType);var a=PromptDialog_getimgAlt(c.promptType);return c.beginHTML()+'
'+img(b,32,32,null,'id="dlg_img_'+c.id+'"',a)+''+convStr(c.text,false,true)+"
"+getSep()+'
'+(c.yes?"":"")+(c.no?"":"")+"
"+c.yes.getHTML()+""+c.no.getHTML()+"
"+c.endHTML()}function PromptDialog_defaultCB(){var o=this;if(o.yesCB){if(typeof o.yesCB!="string"){o.yesCB()}else{eval(o.yesCB)}}this.show(false)}function PromptDialog_cancelCB(){var o=this;if(o.noCB){if(typeof o.noCB!="string"){o.noCB()}else{eval(o.noCB)}}this.show(false)}function PromptDialog_yesCB(a){DialogBoxWidget_instances[a].defaultCB()}function PromptDialog_noCB(a){DialogBoxWidget_instances[a].cancelCB()}DHTMLLIB.add(DialogBoxWidget_down,DialogBoxWidget_keepFocus,DialogBoxWidget_resizeIframeCB,DialogBoxWidget_move,DialogBoxWidget_up,DialogBoxWidget_keypress);function newWaitDialogBoxWidget(a,j,e,g,c,i,l,k,f){var d=250;var m=150;if(j
'+convStr(b.label.text,false,true)+"
";a+=b.frZone.endHTML()+"";a+=''+b.cancelButton.getHTML()+"";a+="";a+=b.endHTML();return a}function WaitDialog_FrameZoneWidget_beginHTML(){var a=this;return'
'}function WaitDialog_FrameZoneWidget_endHTML(){var a=this;return"
"}function WaitDialogBoxWidget_setShowCancel(a,c){var b=this;b.showCancel=a;b.cancelButton.setDisabled(false);b.cancelButton.setDisplay(a);b.cancelCB=c}function WaitDialogBoxWidget_setShowLabel(a,c){var b=this;b.showLabel=a;b.label.text=c;b.label.setHTML(c);b.label.setDisplay(a)}function WaitDialogBoxWidget_cancelCB(){var a=this;if(a.cancelCB!=null){a.cancelCB();a.cancelButton.setDisabled(true)}}function CancelButton_cancelCB(){var a=this;if(a.par.cancelCB!=null){a.par.cancelCB();a.par.cancelButton.setDisabled(true)}}if(typeof bobj=="undefined"){bobj={}}if(typeof bobj.constants=="undefined"){bobj.constants={modalLayerIndex:1000}}bobj.uniqueId=function(){return"bobjid_"+(++bobj.uniqueId._count)};if(typeof bobj.uniqueId._count=="undefined"){bobj.uniqueId._count=new Date().getTime()}bobj.updateIf=function(g,c,e){if(c===null){c={}}for(var d=1,a=arguments.length;dd.length){a=d.length}g=Math.max(0,g);if(g0){return a[0]}return null};bobj.getRect=function(d,b,a,c){return"rect("+d+"px, "+b+"px,"+a+"px,"+c+"px)"};bobj.getBodyScrollDimension=function(){var a=0;var c=0;var b=document.getElementsByTagName("Body");if(b&&b[0]){a=b[0].scrollWidth;c=b[0].scrollHeight}return{w:a,h:c}};bobj.disableTabbingKey=function(b,a){if(b){b.tabIndex=a?-1:0}};bobj.getStringWidth=function(b,a,e){if(document.body){var d=document.createElement("span");d.appendChild(document.createTextNode(b));d.style.position="absolute";d.style.visibility="hidden";if(a){d.style.fontFamily=a}if(e){d.style.fontSize=e}document.body.appendChild(d);var c=d.offsetWidth;document.body.removeChild(d);return c}return 0};bobj.deleteWidget=function(b){if(b&&b.widx){if(b.layer){b.layer.click=null;b.layer.onmouseup=null;b.layer.onmousedown=null;b.layer.onmouseover=null;b.layer.onmousemove=null;b.layer.onmouseout=null;b.layer.onchange=null;b.layer.onfocus=null;b.layer.onkeydown=null;b.layer.onkeyup=null;b.layer.onkeypress=null;var a=b.layer.parentNode;if(a){a.removeChild(b.layer)}delete b.layer}delete b.css;delete _widgets[b.widx];_widgets[b.widx]=null;delete b}};bobj.cloneArray=function(a){return a.slice()};bobj.getExecuteDOMCallbackHTML=function(a,b){return"return bobj.executeDOMCallback("+a+", '"+b+"', event)"};bobj.getExecuteDOMCallback=function(a,b){return function(c){return bobj.executeDOMCallback(a,b,c)}};bobj.executeDOMCallback=function(b,e,c){if(_widgets[b]!=null){var d=_widgets[b];if(d[e]!=null){var a=d[e];return a.apply(d,[c])}}};bobj.bindFunctionToObject=function(a,b){return function(){return a.apply(b,arguments)}};bobj.extendClass=function(a,d,b){MochiKit.Base.update(a,d);a.superClass={};for(var c in b){a.superClass[c]=bobj.bindFunctionToObject(b[c],a)}};bobj.displayElementWithAnimation=function(a){if(a!=null){MochiKit.DOM.setOpacity(a,0);MochiKit.Style.setDisplayForElement("block",a);new MochiKit.Visual.appear(a,{duration:0.5})}};bobj.getHiddenElementDimensions=function(d){var c={w:0,h:0};if(d){var a=document.body;var e=d.cloneNode(true);var b=e.style;b.display="";b.visibility="hidden";b.width="";b.height="";b.position="absolute";b.left="-1000px";b.top="-1000px";a.appendChild(e);c={w:e.offsetWidth,h:e.offsetHeight};a.removeChild(e)}return c};bobj.hasPDFReaderWithJSFunctionality=function(){if(window.ActiveXObject){try{var f=new ActiveXObject("AcroPDF.PDF.1");if(f){return true}}catch(d){}}else{if(navigator.plugins){var b=navigator.plugins;for(var c=0,a=b.length;ca)){MochiKit.Signal.signal(this,"showError",L_bobj_crv_PrintPageRangeError);return}}if(this.widgetType=="PrintUI"){MochiKit.Signal.signal(this,"printSubmitted",b,a)}else{MochiKit.Signal.signal(this,"exportSubmitted",b,a,this._comboBox.getSelection().value)}this.show(false)};bobj.crv.PrintUI._getRPSafeURL=function(c){if(!c){return}if(c.indexOf("/")===0){return c}var b=window.location.href;var d=b.lastIndexOf("?");if(d>0){b=b.substring(0,d)}var a=b.lastIndexOf("/");if(a<0){return c}b=b.substring(0,a);return b+"/"+c};bobj.crv.PrintUI._getObjectTag=function(b){var c=[];c.push('');c.push('');c.push('');if(this.lcid){c.push('')}if(this.url){c.push('')}if(this.title){c.push('')}if(this.maxPage){c.push('')}if(this.paperOrientation){c.push('')}if(this.paperSize){c.push('')}if(this.paperWidth){c.push('')}if(this.paperLength){c.push('')}if(this.driverName){c.push('')}if(this.useDefPrinter){c.push('')}if(this.useDefPrinterSettings){c.push('')}if(this.sendPostDataOnce){c.push('')}c.push("");c.push('');c.push('
');var e=this;var d=e.getContainerWidth()-10;var a=e.getContainerHeight()-(2*e.pad+21+10);c.push('
');c.push('');c.push('");c.push('
');c.push(img(_skin+"wait01.gif",200,40));c.push("
');c.push('
');c.push(convStr(L_bobj_crv_PrintControlProcessingMessage,false,true));c.push("
");c.push("
");c.push("
");return c.join("")};bobj.crv.PrintUI._cancel=function(){if(this.isActxPrinting){document.getElementById(this.actxContainerId).innerHTML="";this._processingPrinting=false}};bobj.crv.PrintUI._processPrinting=function(){if(!this._processingPrinting){var b=document.getElementById(this.actxId);var a=document.getElementById(this.actxId+"_wait");if(b&&a){b.width="100%";b.height="100%";a.style.display="none"}this._processingPrinting=true}};bobj.crv.PrintUI.show=function(b,a){this._processingPrinting=false;if(b){if(!this.layer){targetApp(this.getHTML());this.init()}if(this.isActxPrinting){this.resize(null,100);document.getElementById(this.actxContainerId).innerHTML=this._getObjectTag(a)}this._showOld(true)}else{if(this.layer){this._showOld(false)}}};bobj.crv.PrintUI.init=function(){this._initOld();if(!this.isActxPrinting){this._fromBox.init();this._toBox.init();this._submitBtn.init();this._allRadio.init();this._rangeRadio.init();this._allRadio.check(true);this._toBox.setDisabled(true);this._fromBox.setDisabled(true);if(this.widgetType=="ExportUI"){this._updateExportList()}}};bobj.crv.PrintUI.getHTML=function(){var b=bobj.html;var c=this;var a=c.beginHTML();if(!this.isActxPrinting){a+="
"+this._submitBtn.getHTML()+"
"}else{a+="