/*
	Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(_1,_2){return _1.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){if(_2&&_2.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(_4,re,_6){if(!(_4 instanceof Array)){return re(_4);}var b=[];for(var i=0;i<_4.length;i++){b.push(re(_4[i]));}return dojo.regexp.group(b.join("|"),_6);};dojo.regexp.group=function(_9,_a){return "("+(_a?"?:":"")+_9+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(_b,_c,_d){var c=document.cookie;if(arguments.length==1){var _f=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(_b)+"=([^;]*)"));return _f?decodeURIComponent(_f[1]):undefined;}else{_d=_d||{};var exp=_d.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_d.expires=d;}if(exp&&exp.toUTCString){_d.expires=exp.toUTCString();}_c=encodeURIComponent(_c);var _12=_b+"="+_c,_13;for(_13 in _d){_12+="; "+_13;var _14=_d[_13];if(_14!==true){_12+="="+_14;}}document.cookie=_12;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _15=dojo.doc;if(_15.selection){var s=_15.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _17=dojo.global;var _18=_17.getSelection();if(dojo.isString(_18)){return !_18;}else{return _18.isCollapsed||!_18.toString();}}},getBookmark:function(){var _19,_1a=dojo.doc.selection;if(_1a){var _1b=_1a.createRange();if(_1a.type.toUpperCase()=="CONTROL"){if(_1b.length){_19=[];var i=0,len=_1b.length;while(i<len){_19.push(_1b.item(i++));}}else{_19=null;}}else{_19=_1b.getBookmark();}}else{if(window.getSelection){_1a=dojo.global.getSelection();if(_1a){_1b=_1a.getRangeAt(0);_19=_1b.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _19;},moveToBookmark:function(_1e){var _1f=dojo.doc;if(_1f.selection){var _20;if(dojo.isArray(_1e)){_20=_1f.body.createControlRange();dojo.forEach(_1e,function(n){_20.addElement(n);});}else{_20=_1f.selection.createRange();_20.moveToBookmark(_1e);}_20.select();}else{var _22=dojo.global.getSelection&&dojo.global.getSelection();if(_22&&_22.removeAllRanges){_22.removeAllRanges();_22.addRange(_1e);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_23,_24){return {node:_23&&dojo.isDescendant(dijit._curFocus,_23.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_24||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_24||dojo.global,dijit.getBookmark):null,openedForWindow:_24};},focus:function(_25){if(!_25){return;}var _26="node" in _25?_25.node:_25,_27=_25.bookmark,_28=_25.openedForWindow;if(_26){var _29=(_26.tagName.toLowerCase()=="iframe")?_26.contentWindow:_26;if(_29&&_29.focus){try{_29.focus();}catch(e){}}dijit._onFocusNode(_26);}if(_27&&dojo.withGlobal(_28||dojo.global,dijit.isCollapsed)){if(_28){_28.focus();}try{dojo.withGlobal(_28||dojo.global,dijit.moveToBookmark,null,[_27]);}catch(e){}}},_activeStack:[],registerWin:function(_2a){if(!_2a){_2a=window;}dojo.connect(_2a.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var doc=_2a.document;if(doc){if(dojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}doc=null;},_onBlurNode:function(_31){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(_32){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _33=[];try{while(_32){if(_32.dijitPopupParent){_32=dijit.byId(_32.dijitPopupParent).domNode;}else{if(_32.tagName&&_32.tagName.toLowerCase()=="body"){if(_32===dojo.body()){break;}_32=dijit.getDocumentWindow(_32.ownerDocument).frameElement;}else{var id=_32.getAttribute&&_32.getAttribute("widgetId");if(id){_33.unshift(id);}_32=_32.parentNode;}}}}catch(e){}dijit._setStack(_33);},_onFocusNode:function(_35){if(!_35){return;}if(_35.nodeType==9){return;}if(_35.nodeType==9){var _36=dijit.getDocumentWindow(_35).frameElement;if(!_36){return;}_35=_36;}dijit._onTouchNode(_35);if(_35==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_35;dojo.publish("focusNode",[_35]);},_setStack:function(_37){var _38=dijit._activeStack;dijit._activeStack=_37;for(var _39=0;_39<Math.min(_38.length,_37.length);_39++){if(_38[_39]!=_37[_39]){break;}}for(var i=_38.length-1;i>=_39;i--){var _3b=dijit.byId(_38[i]);if(_3b){_3b._focused=false;_3b._hasBeenBlurred=true;if(_3b._onBlur){_3b._onBlur();}if(_3b._setStateClass){_3b._setStateClass();}dojo.publish("widgetBlur",[_3b]);}}for(i=_39;i<_37.length;i++){_3b=dijit.byId(_37[i]);if(_3b){_3b._focused=true;if(_3b._onFocus){_3b._onFocus();}if(_3b._setStateClass){_3b._setStateClass();}dojo.publish("widgetFocus",[_3b]);}}}});dojo.addOnLoad(dijit.registerWin);}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(_3c){if(this._hash[_3c.id]){throw new Error("Tried to register widget with id=="+_3c.id+" but that id is already registered");}this._hash[_3c.id]=_3c;},remove:function(id){delete this._hash[id];},forEach:function(_3e){for(var id in this._hash){_3e(this._hash[id]);}},filter:function(_40){var res=new dijit.WidgetSet();this.forEach(function(_42){if(_40(_42)){res.add(_42);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_45){return _45.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_46){var id;do{id=_46+"_"+(_46 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_46]:dijit._widgetTypeCtr[_46]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.registry.forEach(function(_48){_48.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_4a){return dijit.registry.byId(_4a.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_4b){while(_4b){if(_4b.getAttribute&&_4b.getAttribute("widgetId")){return dijit.registry.byId(_4b.getAttribute("widgetId"));}_4b=_4b.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_4c){var _4d=dojo.style(_4c);return (_4d.visibility!="hidden")&&(_4d.visibility!="collapsed")&&(_4d.display!="none")&&(dojo.attr(_4c,"type")!="hidden");};dijit.isTabNavigable=function(_4e){if(dojo.hasAttr(_4e,"disabled")){return false;}var _4f=dojo.hasAttr(_4e,"tabindex");var _50=dojo.attr(_4e,"tabindex");if(_4f&&_50>=0){return true;}var _51=_4e.nodeName.toLowerCase();if(((_51=="a"&&dojo.hasAttr(_4e,"href"))||dijit._tabElements[_51])&&(!_4f||_50>=0)){return true;}return false;};dijit._getTabNavigable=function(_52){var _53,_54,_55,_56,_57,_58;var _59=function(_5a){dojo.query("> *",_5a).forEach(function(_5b){var _5c=dijit._isElementShown(_5b);if(_5c&&dijit.isTabNavigable(_5b)){var _5d=dojo.attr(_5b,"tabindex");if(!dojo.hasAttr(_5b,"tabindex")||_5d==0){if(!_53){_53=_5b;}_54=_5b;}else{if(_5d>0){if(!_55||_5d<_56){_56=_5d;_55=_5b;}if(!_57||_5d>=_58){_58=_5d;_57=_5b;}}}}if(_5c&&_5b.nodeName.toUpperCase()!="SELECT"){_59(_5b);}});};if(dijit._isElementShown(_52)){_59(_52);}return {first:_53,last:_54,lowest:_55,highest:_57};};dijit.getFirstInTabbingOrder=function(_5e){var _5f=dijit._getTabNavigable(dojo.byId(_5e));return _5f.lowest?_5f.lowest:_5f.first;};dijit.getLastInTabbingOrder=function(_60){var _61=dijit._getTabNavigable(dojo.byId(_60));return _61.last?_61.last:_61.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_62){this.pairs=[];this.returnWrappers=_62||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_63,_64,_65,_66,_67){this.pairs[((_67)?"unshift":"push")]([_63,_64,_65,_66]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _69=this.pairs[i];if(_69[1].apply(this,arguments)){if((_69[3])||(this.returnWrappers)){return _69[2];}else{return _69[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_6a){for(var i=0;i<this.pairs.length;i++){var _6c=this.pairs[i];if(_6c[0]==_6a){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _6d=dojo.global;var _6e=dojo.doc;var w=0,h=0;var de=_6e.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(dojo.isMozilla){var _74,_75,_76,_77;var dbw=_6e.body.clientWidth;if(dbw>dew){_74=dew;_76=dbw;}else{_76=dew;_74=dbw;}var dbh=_6e.body.clientHeight;if(dbh>deh){_75=deh;_77=dbh;}else{_77=deh;_75=dbh;}w=(_76>_6d.innerWidth)?_74:_76;h=(_77>_6d.innerHeight)?_75:_77;}else{if(!dojo.isOpera&&_6d.innerWidth){w=_6d.innerWidth;h=_6d.innerHeight;}else{if(dojo.isIE&&de&&deh){w=dew;h=deh;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _7a=dojo._docScroll();return {w:w,h:h,l:_7a.x,t:_7a.y};};dijit.placeOnScreen=function(_7b,pos,_7d,_7e){var _7f=dojo.map(_7d,function(_80){return {corner:_80,pos:pos};});return dijit._place(_7b,_7f);};dijit._place=function(_81,_82,_83){var _84=dijit.getViewport();if(!_81.parentNode||String(_81.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_81);}var _85=null;dojo.some(_82,function(_86){var _87=_86.corner;var pos=_86.pos;if(_83){_83(_81,_86.aroundCorner,_87);}var _89=_81.style;var _8a=_89.display;var _8b=_89.visibility;_89.visibility="hidden";_89.display="";var mb=dojo.marginBox(_81);_89.display=_8a;_89.visibility=_8b;var _8d=(_87.charAt(1)=="L"?pos.x:Math.max(_84.l,pos.x-mb.w)),_8e=(_87.charAt(0)=="T"?pos.y:Math.max(_84.t,pos.y-mb.h)),_8f=(_87.charAt(1)=="L"?Math.min(_84.l+_84.w,_8d+mb.w):pos.x),_90=(_87.charAt(0)=="T"?Math.min(_84.t+_84.h,_8e+mb.h):pos.y),_91=_8f-_8d,_92=_90-_8e,_93=(mb.w-_91)+(mb.h-_92);if(_85==null||_93<_85.overflow){_85={corner:_87,aroundCorner:_86.aroundCorner,x:_8d,y:_8e,w:_91,h:_92,overflow:_93};}return !_93;});_81.style.left=_85.x+"px";_81.style.top=_85.y+"px";if(_85.overflow&&_83){_83(_81,_85.aroundCorner,_85.corner);}return _85;};dijit.placeOnScreenAroundNode=function(_94,_95,_96,_97){_95=dojo.byId(_95);var _98=_95.style.display;_95.style.display="";var _99=_95.offsetWidth;var _9a=_95.offsetHeight;var _9b=dojo.coords(_95,true);_95.style.display=_98;return dijit._placeOnScreenAroundRect(_94,_9b.x,_9b.y,_99,_9a,_96,_97);};dijit.placeOnScreenAroundRectangle=function(_9c,_9d,_9e,_9f){return dijit._placeOnScreenAroundRect(_9c,_9d.x,_9d.y,_9d.width,_9d.height,_9e,_9f);};dijit._placeOnScreenAroundRect=function(_a0,x,y,_a3,_a4,_a5,_a6){var _a7=[];for(var _a8 in _a5){_a7.push({aroundCorner:_a8,corner:_a5[_a8],pos:{x:x+(_a8.charAt(1)=="L"?0:_a3),y:y+(_a8.charAt(0)=="T"?0:_a4)}});}return dijit._place(_a0,_a7,_a6);};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(_ad,_ae,_af,_b0){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var _b3=[],_b4=1000,_b5=1;this.prepare=function(_b6){dojo.body().appendChild(_b6);var s=_b6.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(_b8){var _b9=_b8.popup,_ba=_b8.orient||{"BL":"TL","TL":"BL"},_bb=_b8.around,id=(_b8.around&&_b8.around.id)?(_b8.around.id+"_dropdown"):("popup_"+_b5++);var _bd=dojo.doc.createElement("div");dijit.setWaiRole(_bd,"presentation");_bd.id=id;_bd.className="dijitPopup";_bd.style.zIndex=_b4+_b3.length;_bd.style.left=_bd.style.top="0px";_bd.style.visibility="hidden";if(_b8.parent){_bd.dijitPopupParent=_b8.parent.id;}dojo.body().appendChild(_bd);var s=_b9.domNode.style;s.display="";s.visibility="";s.position="";_bd.appendChild(_b9.domNode);var _bf=new dijit.BackgroundIframe(_bd);var _c0=_bb?dijit.placeOnScreenAroundElement(_bd,_bb,_ba,_b9.orient?dojo.hitch(_b9,"orient"):null):dijit.placeOnScreen(_bd,_b8,_ba=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_bd.style.visibility="visible";var _c1=[];var _c2=function(){for(var pi=_b3.length-1;pi>0&&_b3[pi].parent===_b3[pi-1].widget;pi--){}return _b3[pi];};_c1.push(dojo.connect(_bd,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_b8.onCancel){dojo.stopEvent(evt);_b8.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _c5=_c2();if(_c5&&_c5.onCancel){_c5.onCancel();}}}}));if(_b9.onCancel){_c1.push(dojo.connect(_b9,"onCancel",null,_b8.onCancel));}_c1.push(dojo.connect(_b9,_b9.onExecute?"onExecute":"onChange",null,function(){var _c6=_c2();if(_c6&&_c6.onExecute){_c6.onExecute();}}));_b3.push({wrapper:_bd,iframe:_bf,widget:_b9,parent:_b8.parent,onExecute:_b8.onExecute,onCancel:_b8.onCancel,onClose:_b8.onClose,handlers:_c1});if(_b9.onOpen){_b9.onOpen(_c0);}return _c0;};this.close=function(_c7){while(dojo.some(_b3,function(_c8){return _c8.widget==_c7;})){var top=_b3.pop(),_ca=top.wrapper,_cb=top.iframe,_cc=top.widget,_cd=top.onClose;if(_cc.onClose){_cc.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_cc||!_cc.domNode){return;}this.prepare(_cc.domNode);_cb.destroy();dojo._destroyElement(_ca);if(_cd){_cd();}}};}();dijit._frames=new function(){var _ce=[];this.pop=function(){var _cf;if(_ce.length){_cf=_ce.pop();_cf.style.display="";}else{if(dojo.isIE){var _d0=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _d1="<iframe src='"+_d0+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_cf=dojo.doc.createElement(_d1);}else{_cf=dojo.doc.createElement("iframe");_cf.src="javascript:\"\"";_cf.className="dijitBackgroundIframe";}_cf.tabIndex=-1;dojo.body().appendChild(_cf);}return _cf;};this.push=function(_d2){_d2.style.display="";if(dojo.isIE){_d2.style.removeExpression("width");_d2.style.removeExpression("height");}_ce.push(_d2);};}();if(dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(_d4){if(!_d4.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _d5=dijit._frames.pop();_d4.appendChild(_d5);if(dojo.isIE){_d5.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+_d4.id+"').offsetWidth");_d5.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+_d4.id+"').offsetHeight");}this.iframe=_d5;}};dojo.extend(dijit.BackgroundIframe,{destroy:function(){if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(_d6){_d6=dojo.byId(_d6);var _d7=_d6.ownerDocument.body;var _d8=_d7.parentNode;if(dojo.isFF==2||_d6==_d7||_d6==_d8){_d6.scrollIntoView(false);return;}var rtl=!dojo._isBodyLtr();var _da=dojo.doc.compatMode!="BackCompat";var _db=(_da&&!dojo.isSafari)?_d8:_d7;function addPseudoAttrs(_dc){var _dd=_dc.parentNode;var _de=_dc.offsetParent;if(_de==null){_dc=_db;_de=_d8;_dd=null;}_dc._offsetParent=(_de==_d7)?_db:_de;_dc._parent=(_dd==_d7)?_db:_dd;_dc._start={H:_dc.offsetLeft,V:_dc.offsetTop};_dc._scroll={H:_dc.scrollLeft,V:_dc.scrollTop};_dc._renderedSize={H:_dc.offsetWidth,V:_dc.offsetHeight};var bp=dojo._getBorderExtents(_dc);_dc._borderStart={H:bp.l,V:bp.t};_dc._borderSize={H:bp.w,V:bp.h};_dc._clientSize=(_dc._offsetParent==_d8&&dojo.isSafari&&_da)?{H:_d8.clientWidth,V:_d8.clientHeight}:{H:_dc.clientWidth,V:_dc.clientHeight};_dc._scrollBarSize={V:null,H:null};for(var dir in _dc._scrollBarSize){var _e1=_dc._renderedSize[dir]-_dc._clientSize[dir]-_dc._borderSize[dir];_dc._scrollBarSize[dir]=(_dc._clientSize[dir]>0&&_e1>=15&&_e1<=17)?_e1:0;}_dc._isScrollable={V:null,H:null};for(dir in _dc._isScrollable){var _e2=dir=="H"?"V":"H";_dc._isScrollable[dir]=_dc==_db||_dc._scroll[dir]||_dc._scrollBarSize[_e2];}};var _e3=_d6;while(_e3!=null){addPseudoAttrs(_e3);var _e4=_e3._parent;if(_e4){_e4._child=_e3;}_e3=_e4;}for(var dir in _db._renderedSize){_db._renderedSize[dir]=Math.min(_db._clientSize[dir],_db._renderedSize[dir]);}var _e6=_d6;while(_e6!=_db){_e3=_e6._parent;if(_e3.tagName=="TD"){var _e7=_e3._parent._parent._parent;if(_e7._offsetParent==_e6._offsetParent&&_e3._offsetParent!=_e6._offsetParent){_e3=_e7;}}var _e8=_e6==_db||(_e3._offsetParent!=_e6._offsetParent);for(dir in _e6._start){var _e9=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(dojo.isSafari||dojo.isIE)&&_e3._clientSize.H>0){var _ea=_e3.scrollWidth-_e3._clientSize.H;if(_ea>0){_e3._scroll.H-=_ea;}}if(dojo.isIE&&_e3._offsetParent.tagName=="TABLE"){_e3._start[dir]-=_e3._offsetParent._borderStart[dir];_e3._borderStart[dir]=_e3._borderSize[dir]=0;}if(_e3._clientSize[dir]==0){_e3._renderedSize[dir]=_e3._clientSize[dir]=_e3._child._clientSize[dir];if(rtl&&dir=="H"){_e3._start[dir]-=_e3._renderedSize[dir];}}else{_e3._renderedSize[dir]-=_e3._borderSize[dir]+_e3._scrollBarSize[dir];}_e3._start[dir]+=_e3._borderStart[dir];var _eb=_e6._start[dir]-(_e8?0:_e3._start[dir])-_e3._scroll[dir];var _ec=_eb+_e6._renderedSize[dir]-_e3._renderedSize[dir];var _ed,_ee=(dir=="H")?"scrollLeft":"scrollTop";var _ef=(dir=="H"&&rtl);var _f0=_ef?-_ec:_eb;var _f1=_ef?-_eb:_ec;if(_f0<=0){_ed=_f0;}else{if(_f1<=0){_ed=0;}else{if(_f0<_f1){_ed=_f0;}else{_ed=_f1;}}}var _f2=0;if(_ed!=0){var _f3=_e3[_ee];_e3[_ee]+=_ef?-_ed:_ed;_f2=_e3[_ee]-_f3;_eb-=_f2;_f1-=_ef?-_f2:_f2;}_e3._renderedSize[dir]=_e6._renderedSize[dir]+_e3._scrollBarSize[dir]-((_e3._isScrollable[dir]&&_f1>0)?_f1:0);_e3._start[dir]+=(_eb>=0||!_e3._isScrollable[dir])?_eb:0;}_e6=_e3;}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo;var ie=d.isIE;var _f6=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _f9=d.boxModel.replace(/-/,"");var _fa={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_f6,dj_opera8:maj(_f6)==8,dj_opera9:maj(_f6)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_fa["dj_"+_f9]=true;var _fb=dojo.doc.documentElement;for(var p in _fa){if(_fa[p]){if(_fb.className){_fb.className+=" "+p;}else{_fb.className=p;}}}dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){_fb.className+=" dijitRtl";for(var p in _fa){if(_fa[p]){_fb.className+=" "+p+"-rtl";}}}});})();}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_ff,node,_101,obj,_103,_104){if(obj!=this._obj){this.stop();this._initialDelay=_104||500;this._subsequentDelay=_103||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_ff,_101);this._fireEventAndReload();}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_106,_107,_108,_109,_10a){if(_106.keyCode){_106.charOrCode=_106.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_106.charCode){_106.charOrCode=String.fromCharCode(_106.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_106.charOrCode&&(_106.ctrlKey===undefined||_106.ctrlKey==evt.ctrlKey)&&(_106.altKey===undefined||_106.altKey==evt.ctrlKey)&&(_106.shiftKey===undefined||_106.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_106,_107,node,_108,_106,_109,_10a);}else{if(dijit.typematic._obj==_106){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_106){dijit.typematic.stop();}})];},addMouseListener:function(node,_10e,_10f,_110,_111){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_10e,node,_10f,node,_110,_111);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_10e,node,_10f,node,_110,_111);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_118,_119,_11a,_11b,_11c,_11d,_11e){return this.addKeyListener(_119,_11a,_11b,_11c,_11d,_11e).concat(this.addMouseListener(_118,_11b,_11c,_11d,_11e));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.doc.createElement("div");div.id="a11yTestNode";div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");";dojo.body().appendChild(div);var cs=dojo.getComputedStyle(div);if(cs){var _121=cs.backgroundImage;var _122=(cs.borderTopColor==cs.borderRightColor)||(_121!=null&&(_121=="none"||_121=="url(invalid-url:)"));dojo[_122?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var _125=this.getWaiRole(elem);if(role){return (_125.indexOf(role)>-1);}else{return (_125.length>0);}},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _129=dojo.attr(elem,"role")||"";if(dojo.isFF<3||!this._XhtmlRoles.test(_129)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+_129+" ").indexOf(" "+role+" ")<0){var _12a=dojo.trim(_129.replace(this._XhtmlRoles,""));var _12b=dojo.trim(_129.replace(_12a,""));dojo.attr(elem,"role",_12b+(_12b?" ":"")+role);}}},removeWaiRole:function(elem,role){var _12e=dojo.attr(elem,"role");if(!_12e){return;}if(role){var _12f=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+_12e+" ").replace(" "+_12f+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_132){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_132);}else{return elem.hasAttribute?elem.hasAttribute("aria-"+_132):!!elem.getAttribute("aria-"+_132);}},getWaiState:function(elem,_134){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_134);}else{var _135=elem.getAttribute("aria-"+_134);return _135?_135:"";}},setWaiState:function(elem,_137,_138){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_137,_138);}else{elem.setAttribute("aria-"+_137,_138);}},removeWaiState:function(elem,_13a){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_13a);}else{elem.removeAttribute("aria-"+_13a);}}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"connect",function(_13b,_13c){if(_13b&&dojo.isFunction(_13b._onConnect)){_13b._onConnect(_13c);}});dijit._connectOnUseEventHandler=function(_13d){};(function(){var _13e={};var _13f=function(dc){if(!_13e[dc]){var r=[];var _142;var _143=dojo.getObject(dc).prototype;for(var _144 in _143){if(dojo.isFunction(_143[_144])&&(_142=_144.match(/^_set([a-zA-Z]*)Attr$/))&&_142[1]){r.push(_142[1].charAt(0).toLowerCase()+_142[1].substr(1));}}_13e[dc]=r;}return _13e[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")),postscript:function(_145,_146){this.create(_145,_146);},create:function(_147,_148){this.srcNodeRef=dojo.byId(_148);this._connects=[];this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_147){this.params=_147;dojo.mixin(this,_147);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();for(attr in this.params){this._onConnect(attr);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _14a=function(attr,_14c){if((_14c.params&&attr in _14c.params)||_14c[attr]){_14c.attr(attr,_14c[attr]);}};for(var attr in this.attributeMap){_14a(attr,this);}dojo.forEach(_13f(this.declaredClass),function(a){if(!(a in this.attributeMap)){_14a(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_14f){this.destroyDescendants(_14f);this.destroy(_14f);},destroy:function(_150){this.uninitialize();dojo.forEach(this._connects,function(_151){dojo.forEach(_151,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_150);dijit.registry.remove(this.id);},destroyRendering:function(_153){if(this.bgIframe){this.bgIframe.destroy(_153);delete this.bgIframe;}if(this.domNode){if(!_153){dojo._destroyElement(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_153){dojo._destroyElement(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_154){dojo.forEach(this.getDescendants(),function(_155){if(_155.destroy){_155.destroy(_154);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_157){if(_157 in this._deferredConnects){var _158=this[this._deferredConnects[_157]||"domNode"];this.connect(_158,_157.toLowerCase(),this[_157]);delete this._deferredConnects[_157];}},_setClassAttr:function(_159){var _15a=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_15a,this["class"]);this["class"]=_159;dojo.addClass(_15a,_159);},_setStyleAttr:function(_15b){var _15c=this[this.attributeMap["style"]||"domNode"];if(_15c.style.cssText){_15c.style.cssText+="; "+_15b;}else{_15c.style.cssText=_15b;}this["style"]=_15b;},setAttribute:function(attr,_15e){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_15e);},_attrToDom:function(attr,_160){var _161=this.attributeMap[attr];dojo.forEach(dojo.isArray(_161)?_161:[_161],function(_162){var _163=this[_162.node||_162||"domNode"];var type=_162.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_160)){_160=dojo.hitch(this,_160);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_163,attr,_160);break;case "innerHTML":_163.innerHTML=_160;break;case "class":dojo.removeClass(_163,this[attr]);dojo.addClass(_163,_160);break;}},this);this[attr]=_160;},attr:function(name,_166){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _169=this._getAttrNames(name);if(args==2){if(this[_169.s]){return this[_169.s](_166)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_166);}this[name]=_166;}return this;}else{if(this[_169.g]){return this[_169.g]();}else{return this[name];}}},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=dojo.query("[widgetId]",this.containerNode);return list.map(dijit.byNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_16f,_170){var d=dojo;var dco=d.hitch(d,"connect",obj);var _173=[];if(_16f=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_170);_173.push(dco("onkeydown",this,function(e){if(!d.isFF&&e.keyCode==d.keys.ENTER){return m(e);}else{if(e.keyCode==d.keys.SPACE){d.stopEvent(e);}}}),dco("onkeyup",this,function(e){if(e.keyCode==d.keys.SPACE){return m(e);}}));if(d.isFF){_173.push(dco("onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER){return m(e);}}));}}_16f="onclick";}_173.push(dco(_16f,this,_170));this._connects.push(_173);return _173;},disconnect:function(_178){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_178){dojo.forEach(_178,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){return dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_17a,_17b){if(_17a["declaredClass"]&&_17a["addChild"]){_17a.addChild(this,_17b);}else{dojo.place(this.domNode,_17a,_17b);}return this;}});})();}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Contained",null,{getParent:function(){for(var p=this.domNode.parentNode;p;p=p.parentNode){var id=p.getAttribute&&p.getAttribute("widgetId");if(id){var _17e=dijit.byId(id);return _17e.isContainer?_17e:null;}}return null;},_getSibling:function(_17f){var node=this.domNode;do{node=node[_17f+"Sibling"];}while(node&&node.nodeType!=1);if(!node){return null;}var id=node.getAttribute("widgetId");return dijit.byId(id);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_183,_184){var _185=this.containerNode;if(_184&&typeof _184=="number"){var _186=dojo.query("> [widgetId]",_185);if(_186&&_186.length>=_184){_185=_186[_184-1];_184="after";}}dojo.place(_183.domNode,_185,_184);if(this._started&&!_183._started){_183.startup();}},removeChild:function(_187){if(typeof _187=="number"&&_187>0){_187=this.getChildren()[_187];}if(!_187||!_187.domNode){return;}var node=_187.domNode;node.parentNode.removeChild(node);},_nextElement:function(node){do{node=node.nextSibling;}while(node&&node.nodeType!=1);return node;},_firstElement:function(node){node=node.firstChild;if(node&&node.nodeType!=1){node=this._nextElement(node);}return node;},getChildren:function(){return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);},hasChildren:function(){return !!this._firstElement(this.containerNode);},destroyDescendants:function(_18b){dojo.forEach(this.getChildren(),function(_18c){_18c.destroyRecursive(_18b);});},_getSiblingOfChild:function(_18d,dir){var node=_18d.domNode;var _190=(dir>0?"nextSibling":"previousSibling");do{node=node[_190];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(_191){var _192=this.getChildren();for(var i=0,c;c=_192[i];i++){if(c==_191){return i;}}return -1;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_195,_196){var _197=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_195,function(code){_197[code]=prev;});dojo.forEach(_196,function(code){_197[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_19c,_19d){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_19c);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild());},focusNext:function(){if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){this.focusedChild.focusNext();return;}var _19e=this._getNextFocusableChild(this.focusedChild,1);if(_19e.getFocalNodes){this.focusChild(_19e,_19e.getFocalNodes()[0]);}else{this.focusChild(_19e);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _19f=this._getNextFocusableChild(this.focusedChild,-1);if(_19f.getFocalNodes){var _1a0=_19f.getFocalNodes();this.focusChild(_19f,_1a0[_1a0.length-1]);}else{this.focusChild(_19f);}},focusChild:function(_1a1,node){if(_1a1){if(this.focusedChild&&_1a1!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_1a1;if(node&&_1a1.focusFocalNode){_1a1.focusFocalNode(node);}else{_1a1.focus();}}},_startupChild:function(_1a3){if(_1a3.getFocalNodes){dojo.forEach(_1a3.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_1a3.focusNode||_1a3.domNode;if(_1a3.isFocusable()){dojo.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target===this.domNode){this.focusFirstChild();}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){dojo.attr(this.domNode,"tabindex",-1);var _1ab=dijit.getEnclosingWidget(evt.target);if(_1ab&&_1ab.isFocusable()){this.focusedChild=_1ab;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}dojo.stopEvent(evt);},_onChildBlur:function(_1ad){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_1ae,dir){if(_1ae){_1ae=this._getSiblingOfChild(_1ae,dir);}var _1b0=this.getChildren();for(var i=0;i<_1b0.length;i++){if(!_1ae){_1ae=_1b0[(dir>0)?0:(_1b0.length-1)];}if(_1ae.isFocusable()){return _1ae;}_1ae=this._getSiblingOfChild(_1ae,dir);}return null;}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_1b2){_1b2.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(dojo.global,"onresize","resize");}this.inherited(arguments);},resize:function(_1b3,_1b4){var node=this.domNode;if(_1b3){dojo.marginBox(node,_1b3);if(_1b3.t){node.style.top=_1b3.t+"px";}if(_1b3.l){node.style.left=_1b3.l+"px";}}var mb=_1b4||{};dojo.mixin(mb,_1b3||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(node),mb);}var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var be=dojo._getBorderExtents(node,cs);var bb=this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)};var pe=dojo._getPadExtents(node,cs);this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_1bc){if(_1bc.baseClass){dojo.addClass(_1bc.domNode,this.baseClass+"-"+_1bc.baseClass);}},addChild:function(_1bd,_1be){this.inherited(arguments);if(this._started){this._setupChild(_1bd);}},removeChild:function(_1bf){if(_1bf.baseClass){dojo.removeClass(_1bf.domNode,this.baseClass+"-"+_1bf.baseClass);}this.inherited(arguments);}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _1c5=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1c8,dim){_1c8.resize?_1c8.resize(dim):dojo.marginBox(_1c8.domNode,dim);dojo.mixin(_1c8,dojo.marginBox(_1c8.domNode));dojo.mixin(_1c8,dim);};dijit.layout.layoutChildren=function(_1ca,dim,_1cc){dim=dojo.mixin({},dim);dojo.addClass(_1ca,"dijitLayoutContainer");_1cc=dojo.filter(_1cc,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_1cc,function(item){return item.layoutAlign=="client";}));dojo.forEach(_1cc,function(_1cf){var elm=_1cf.domNode,pos=_1cf.layoutAlign;var _1d2=elm.style;_1d2.left=dim.l+"px";_1d2.top=dim.t+"px";_1d2.bottom=_1d2.right="auto";dojo.addClass(elm,"dijitAlign"+_1c5(pos));if(pos=="top"||pos=="bottom"){size(_1cf,{w:dim.w});dim.h-=_1cf.h;if(pos=="top"){dim.t+=_1cf.h;}else{_1d2.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_1cf,{h:dim.h});dim.w-=_1cf.w;if(pos=="left"){dim.l+=_1cf.w;}else{_1d2.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_1cf,dim);}}}});};})();}if(!dojo._hasResource["dijit.layout.SplitContainer"]){dojo._hasResource["dijit.layout.SplitContainer"]=true;dojo.provide("dijit.layout.SplitContainer");dojo.declare("dijit.layout.SplitContainer",dijit.layout._LayoutWidget,{constructor:function(){dojo.deprecated("dijit.layout.SplitContainer is deprecated","use BorderContainer with splitter instead",2);},activeSizing:false,sizerWidth:7,orientation:"horizontal",persist:true,baseClass:"dijitSplitContainer",postMixInProperties:function(){this.inherited("postMixInProperties",arguments);this.isHorizontal=(this.orientation=="horizontal");},postCreate:function(){this.inherited(arguments);this.sizers=[];if(dojo.isMozilla){this.domNode.style.overflow="-moz-scrollbars-none";}if(typeof this.sizerWidth=="object"){try{this.sizerWidth=parseInt(this.sizerWidth.toString());}catch(e){this.sizerWidth=7;}}var _1d3=this.virtualSizer=dojo.doc.createElement("div");_1d3.style.position="relative";_1d3.style.zIndex=10;_1d3.className=this.isHorizontal?"dijitSplitContainerVirtualSizerH":"dijitSplitContainerVirtualSizerV";this.domNode.appendChild(_1d3);dojo.setSelectable(_1d3,false);},destroy:function(){delete this.virtualSizer;dojo.forEach(this._ownconnects,dojo.disconnect);this.inherited(arguments);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_1d4,i,_1d6){this._setupChild(_1d4);if(i<_1d6.length-1){this._addSizer();}},this);if(this.persist){this._restoreState();}this.inherited(arguments);},_setupChild:function(_1d7){this.inherited(arguments);_1d7.domNode.style.position="absolute";dojo.addClass(_1d7.domNode,"dijitSplitPane");},_addSizer:function(){var i=this.sizers.length;var _1d9=this.sizers[i]=dojo.doc.createElement("div");this.domNode.appendChild(_1d9);_1d9.className=this.isHorizontal?"dijitSplitContainerSizerH":"dijitSplitContainerSizerV";var _1da=dojo.doc.createElement("div");_1da.className="thumb";_1d9.appendChild(_1da);var self=this;var _1dc=(function(){var _1dd=i;return function(e){self.beginSizing(e,_1dd);};})();this.connect(_1d9,"onmousedown",_1dc);dojo.setSelectable(_1d9,false);},removeChild:function(_1df){if(this.sizers.length){var i=dojo.indexOf(this.getChildren(),_1df);if(i!=-1){if(i==this.sizers.length){i--;}dojo._destroyElement(this.sizers[i]);this.sizers.splice(i,1);}}this.inherited(arguments);if(this._started){this.layout();}},addChild:function(_1e1,_1e2){this.inherited(arguments);if(this._started){var _1e3=this.getChildren();if(_1e3.length>1){this._addSizer();}this.layout();}},layout:function(){this.paneWidth=this._contentBox.w;this.paneHeight=this._contentBox.h;var _1e4=this.getChildren();if(!_1e4.length){return;}var _1e5=this.isHorizontal?this.paneWidth:this.paneHeight;if(_1e4.length>1){_1e5-=this.sizerWidth*(_1e4.length-1);}var _1e6=0;dojo.forEach(_1e4,function(_1e7){_1e6+=_1e7.sizeShare;});var _1e8=_1e5/_1e6;var _1e9=0;dojo.forEach(_1e4.slice(0,_1e4.length-1),function(_1ea){var size=Math.round(_1e8*_1ea.sizeShare);_1ea.sizeActual=size;_1e9+=size;});_1e4[_1e4.length-1].sizeActual=_1e5-_1e9;this._checkSizes();var pos=0;var size=_1e4[0].sizeActual;this._movePanel(_1e4[0],pos,size);_1e4[0].position=pos;pos+=size;if(!this.sizers){return;}dojo.some(_1e4.slice(1),function(_1ee,i){if(!this.sizers[i]){return true;}this._moveSlider(this.sizers[i],pos,this.sizerWidth);this.sizers[i].position=pos;pos+=this.sizerWidth;size=_1ee.sizeActual;this._movePanel(_1ee,pos,size);_1ee.position=pos;pos+=size;},this);},_movePanel:function(_1f0,pos,size){if(this.isHorizontal){_1f0.domNode.style.left=pos+"px";_1f0.domNode.style.top=0;var box={w:size,h:this.paneHeight};if(_1f0.resize){_1f0.resize(box);}else{dojo.marginBox(_1f0.domNode,box);}}else{_1f0.domNode.style.left=0;_1f0.domNode.style.top=pos+"px";var box={w:this.paneWidth,h:size};if(_1f0.resize){_1f0.resize(box);}else{dojo.marginBox(_1f0.domNode,box);}}},_moveSlider:function(_1f4,pos,size){if(this.isHorizontal){_1f4.style.left=pos+"px";_1f4.style.top=0;dojo.marginBox(_1f4,{w:size,h:this.paneHeight});}else{_1f4.style.left=0;_1f4.style.top=pos+"px";dojo.marginBox(_1f4,{w:this.paneWidth,h:size});}},_growPane:function(_1f7,pane){if(_1f7>0){if(pane.sizeActual>pane.sizeMin){if((pane.sizeActual-pane.sizeMin)>_1f7){pane.sizeActual=pane.sizeActual-_1f7;_1f7=0;}else{_1f7-=pane.sizeActual-pane.sizeMin;pane.sizeActual=pane.sizeMin;}}}return _1f7;},_checkSizes:function(){var _1f9=0;var _1fa=0;var _1fb=this.getChildren();dojo.forEach(_1fb,function(_1fc){_1fa+=_1fc.sizeActual;_1f9+=_1fc.sizeMin;});if(_1f9<=_1fa){var _1fd=0;dojo.forEach(_1fb,function(_1fe){if(_1fe.sizeActual<_1fe.sizeMin){_1fd+=_1fe.sizeMin-_1fe.sizeActual;_1fe.sizeActual=_1fe.sizeMin;}});if(_1fd>0){var list=this.isDraggingLeft?_1fb.reverse():_1fb;dojo.forEach(list,function(_200){_1fd=this._growPane(_1fd,_200);},this);}}else{dojo.forEach(_1fb,function(_201){_201.sizeActual=Math.round(_1fa*(_201.sizeMin/_1f9));});}},beginSizing:function(e,i){var _204=this.getChildren();this.paneBefore=_204[i];this.paneAfter=_204[i+1];this.isSizing=true;this.sizingSplitter=this.sizers[i];if(!this.cover){this.cover=dojo.doc.createElement("div");this.domNode.appendChild(this.cover);var s=this.cover.style;s.position="absolute";s.zIndex=1;s.top=0;s.left=0;s.width="100%";s.height="100%";}else{this.cover.style.zIndex=1;}this.sizingSplitter.style.zIndex=2;this.originPos=dojo.coords(_204[0].domNode,true);if(this.isHorizontal){var _206=e.layerX||e.offsetX||0;var _207=e.pageX;this.originPos=this.originPos.x;}else{var _206=e.layerY||e.offsetY||0;var _207=e.pageY;this.originPos=this.originPos.y;}this.startPoint=this.lastPoint=_207;this.screenToClientOffset=_207-_206;this.dragOffset=this.lastPoint-this.paneBefore.sizeActual-this.originPos-this.paneBefore.position;if(!this.activeSizing){this._showSizingLine();}this._ownconnects=[];this._ownconnects.push(dojo.connect(dojo.doc.documentElement,"onmousemove",this,"changeSizing"));this._ownconnects.push(dojo.connect(dojo.doc.documentElement,"onmouseup",this,"endSizing"));dojo.stopEvent(e);},changeSizing:function(e){if(!this.isSizing){return;}this.lastPoint=this.isHorizontal?e.pageX:e.pageY;this.movePoint();if(this.activeSizing){this._updateSize();}else{this._moveSizingLine();}dojo.stopEvent(e);},endSizing:function(e){if(!this.isSizing){return;}if(this.cover){this.cover.style.zIndex=-1;}if(!this.activeSizing){this._hideSizingLine();}this._updateSize();this.isSizing=false;if(this.persist){this._saveState(this);}dojo.forEach(this._ownconnects,dojo.disconnect);},movePoint:function(){var p=this.lastPoint-this.screenToClientOffset;var a=p-this.dragOffset;a=this.legaliseSplitPoint(a);p=a+this.dragOffset;this.lastPoint=p+this.screenToClientOffset;},legaliseSplitPoint:function(a){a+=this.sizingSplitter.position;this.isDraggingLeft=!!(a>0);if(!this.activeSizing){var min=this.paneBefore.position+this.paneBefore.sizeMin;if(a<min){a=min;}var max=this.paneAfter.position+(this.paneAfter.sizeActual-(this.sizerWidth+this.paneAfter.sizeMin));if(a>max){a=max;}}a-=this.sizingSplitter.position;this._checkSizes();return a;},_updateSize:function(){var pos=this.lastPoint-this.dragOffset-this.originPos;var _210=this.paneBefore.position;var _211=this.paneAfter.position+this.paneAfter.sizeActual;this.paneBefore.sizeActual=pos-_210;this.paneAfter.position=pos+this.sizerWidth;this.paneAfter.sizeActual=_211-this.paneAfter.position;dojo.forEach(this.getChildren(),function(_212){_212.sizeShare=_212.sizeActual;});if(this._started){this.layout();}},_showSizingLine:function(){this._moveSizingLine();dojo.marginBox(this.virtualSizer,this.isHorizontal?{w:this.sizerWidth,h:this.paneHeight}:{w:this.paneWidth,h:this.sizerWidth});this.virtualSizer.style.display="block";},_hideSizingLine:function(){this.virtualSizer.style.display="none";},_moveSizingLine:function(){var pos=(this.lastPoint-this.startPoint)+this.sizingSplitter.position;dojo.style(this.virtualSizer,(this.isHorizontal?"left":"top"),pos+"px");},_getCookieName:function(i){return this.id+"_"+i;},_restoreState:function(){dojo.forEach(this.getChildren(),function(_215,i){var _217=this._getCookieName(i);var _218=dojo.cookie(_217);if(_218){var pos=parseInt(_218);if(typeof pos=="number"){_215.sizeShare=pos;}}},this);},_saveState:function(){if(!this.persist){return;}dojo.forEach(this.getChildren(),function(_21a,i){dojo.cookie(this._getCookieName(i),_21a.sizeShare,{expires:365});},this);}});dojo.extend(dijit._Widget,{sizeMin:10,sizeShare:10});}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_225,map,_227,_228){_228=_228||dojo.global;_227=(!_227)?function(v){return v;}:dojo.hitch(_228,_227);return _225.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_22a,key,_22c){var _22d=dojo.getObject(key,false,map);if(_22c){_22d=dojo.getObject(_22c,false,_228).call(_228,_22d,key);}return _227(_22d,key).toString();});};dojo.string.trim=function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_230,_231){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _232=dojo.date.stamp._isoRegExp.exec(_230);var _233=null;if(_232){_232.shift();if(_232[1]){_232[1]--;}if(_232[6]){_232[6]*=1000;}if(_231){_231=new Date(_231);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _231["get"+prop]();}).forEach(function(_235,_236){if(_232[_236]===undefined){_232[_236]=_235;}});}_233=new Date(_232[0]||1970,_232[1]||0,_232[2]||1,_232[3]||0,_232[4]||0,_232[5]||0,_232[6]||0);var _237=0;var _238=_232[7]&&_232[7].charAt(0);if(_238!="Z"){_237=((_232[8]||0)*60)+(Number(_232[9])||0);if(_238!="-"){_237*=-1;}}if(_238){_237-=_233.getTimezoneOffset();}if(_237){_233.setTime(_233.getTime()+_237*60000);}}return _233;};dojo.date.stamp.toISOString=function(_239,_23a){var _=function(n){return (n<10)?"0"+n:n;};_23a=_23a||{};var _23d=[];var _23e=_23a.zulu?"getUTC":"get";var date="";if(_23a.selector!="time"){var year=_239[_23e+"FullYear"]();date=["0000".substr((year+"").length)+year,_(_239[_23e+"Month"]()+1),_(_239[_23e+"Date"]())].join("-");}_23d.push(date);if(_23a.selector!="date"){var time=[_(_239[_23e+"Hours"]()),_(_239[_23e+"Minutes"]()),_(_239[_23e+"Seconds"]())].join(":");var _242=_239[_23e+"Milliseconds"]();if(_23a.milliseconds){time+="."+(_242<100?"0":"")+_(_242);}if(_23a.zulu){time+="Z";}else{if(_23a.selector!="time"){var _243=_239.getTimezoneOffset();var _244=Math.abs(_243);time+=(_243>0?"-":"+")+_(Math.floor(_244/60))+":"+_(_244%60);}}_23d.push(time);}return _23d.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var _246=d._scopeName+"Type";var qry="["+_246+"]";function val2type(_248){if(d.isString(_248)){return "string";}if(typeof _248=="number"){return "number";}if(typeof _248=="boolean"){return "boolean";}if(d.isFunction(_248)){return "function";}if(d.isArray(_248)){return "array";}if(_248 instanceof Date){return "date";}if(_248 instanceof d._Url){return "url";}return "object";};function str2obj(_249,type){switch(type){case "string":return _249;case "number":return _249.length?Number(_249):NaN;case "boolean":return typeof _249=="boolean"?_249:!(_249.toLowerCase()=="false");case "function":if(d.isFunction(_249)){_249=_249.toString();_249=d.trim(_249.substring(_249.indexOf("{")+1,_249.length-1));}try{if(_249.search(/[^\w\.]+/i)!=-1){_249=d.parser._nameAnonFunc(new Function(_249),this);}return d.getObject(_249,false);}catch(e){return new Function();}case "array":return _249?_249.split(/\s*,\s*/):[];case "date":switch(_249){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_249);}case "url":return d.baseUrl+_249;default:return d.fromJson(_249);}};var _24b={};function getClassInfo(_24c){if(!_24b[_24c]){var cls=d.getObject(_24c);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_24c+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _24e=cls.prototype;var _24f={};for(var name in _24e){if(name.charAt(0)=="_"){continue;}var _251=_24e[name];_24f[name]=val2type(_251);}_24b[_24c]={cls:cls,params:_24f};}return _24b[_24c];};this._functionFromScript=function(_252){var _253="";var _254="";var _255=_252.getAttribute("args");if(_255){d.forEach(_255.split(/\s*,\s*/),function(part,idx){_253+="var "+part+" = arguments["+idx+"]; ";});}var _258=_252.getAttribute("with");if(_258&&_258.length){d.forEach(_258.split(/\s*,\s*/),function(part){_253+="with("+part+"){";_254+="}";});}return new Function(_253+_252.innerHTML+_254);};this.instantiate=function(_25a){var _25b=[];d.forEach(_25a,function(node){if(!node){return;}var type=node.getAttribute(_246);if((!type)||(!type.length)){return;}var _25e=getClassInfo(type);var _25f=_25e.cls;var ps=_25f._noScript||_25f.prototype._noScript;var _261={};var _262=node.attributes;for(var name in _25e.params){var item=_262.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _265=item.value;switch(name){case "class":_265=node.className;break;case "style":_265=node.style&&node.style.cssText;}var _266=_25e.params[name];_261[name]=str2obj(_265,_266);}if(!ps){var _267=[],_268=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_269){var _26a=_269.getAttribute("event"),type=_269.getAttribute("type"),nf=d.parser._functionFromScript(_269);if(_26a){if(type=="dojo/connect"){_267.push({event:_26a,func:nf});}else{_261[_26a]=nf;}}else{_268.push(nf);}});}var _26c=_25f["markupFactory"];if(!_26c&&_25f["prototype"]){_26c=_25f.prototype["markupFactory"];}var _26d=_26c?_26c(_261,node,_25f):new _25f(_261,node);_25b.push(_26d);var _26e=node.getAttribute("jsId");if(_26e){d.setObject(_26e,_26d);}if(!ps){d.forEach(_267,function(_26f){d.connect(_26d,_26f.event,null,_26f.func);});d.forEach(_268,function(func){func.call(_26d);});}});d.forEach(_25b,function(_271){if(_271&&_271.startup&&!_271._started&&(!_271.getParent||!_271.getParent())){_271.startup();}});return _25b;};this.parse=function(_272){var list=d.query(qry,_272);var _274=this.instantiate(list);return _274;};}();(function(){var _275=function(){if(dojo.config["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_275);}else{dojo._loaders.unshift(_275);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_276,_277){var jpn="$joinpoint";var nso=(_277||dojo.parser._anon);if(dojo.isIE){var cn=_276["__dojoNameCache"];if(cn&&nso[cn]===_276){return _276["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_276;return ret;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){var _27d=this.declaredClass,_27e=this;return dojo.string.substitute(tmpl,this,function(_27f,key){if(key.charAt(0)=="!"){_27f=_27e[key.substr(1)];}if(typeof _27f=="undefined"){throw new Error(_27d+" template:"+key);}if(_27f==null){return "";}return key.charAt(0)=="!"?_27f:_27f.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _281=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_281)){node=dijit._Templated._createNodesFromText(this._stringRepl(_281))[0];}else{node=_281.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);var _283=this.srcNodeRef;if(_283&&_283.parentNode){_283.parentNode.replaceChild(node,_283);}if(this.widgetsInTemplate){var cw=(this._supportingWidgets=dojo.parser.parse(node));this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_283);},_fillContent:function(_287){var dest=this.containerNode;if(_287&&dest){while(_287.hasChildNodes()){dest.appendChild(_287.firstChild);}}},_attachTemplateNodes:function(_289,_28a){_28a=_28a||function(n,p){return n.getAttribute(p);};var _28d=dojo.isArray(_289)?_289:(_289.all||_289.getElementsByTagName("*"));var x=dojo.isArray(_289)?0:-1;var _28f={};for(;x<_28d.length;x++){var _290=(x==-1)?_289:_28d[x];if(this.widgetsInTemplate&&_28a(_290,"dojoType")){continue;}var _291=_28a(_290,"dojoAttachPoint");if(_291){var _292,_293=_291.split(/\s*,\s*/);while((_292=_293.shift())){if(dojo.isArray(this[_292])){this[_292].push(_290);}else{this[_292]=_290;}}}var _294=_28a(_290,"dojoAttachEvent");if(_294){var _295,_296=_294.split(/\s*,\s*/);var trim=dojo.trim;while((_295=_296.shift())){if(_295){var _298=null;if(_295.indexOf(":")!=-1){var _299=_295.split(":");_295=trim(_299[0]);_298=trim(_299[1]);}else{_295=trim(_295);}if(!_298){_298=_295;}this.connect(_290,_295,_298);}}}var role=_28a(_290,"waiRole");if(role){dijit.setWaiRole(_290,role);}var _29b=_28a(_290,"waiState");if(_29b){dojo.forEach(_29b.split(/\s*,\s*/),function(_29c){if(_29c.indexOf("-")!=-1){var pair=_29c.split("-");dijit.setWaiState(_290,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_29e,_29f,_2a0){var _2a1=dijit._Templated._templateCache;var key=_29f||_29e;var _2a3=_2a1[key];if(_2a3){if(!_2a3.ownerDocument||_2a3.ownerDocument==dojo.doc){return _2a3;}dojo._destroyElement(_2a3);}if(!_29f){_29f=dijit._Templated._sanitizeTemplateString(dojo._getText(_29e));}_29f=dojo.string.trim(_29f);if(_2a0||_29f.match(/\$\{([^\}]+)\}/g)){return (_2a1[key]=_29f);}else{return (_2a1[key]=dijit._Templated._createNodesFromText(_29f)[0]);}};dijit._Templated._sanitizeTemplateString=function(_2a4){if(_2a4){_2a4=_2a4.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _2a5=_2a4.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_2a5){_2a4=_2a5[1];}}else{_2a4="";}return _2a4;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _2a6=dijit._Templated._templateCache;for(var key in _2a6){var _2a8=_2a6[key];if(!isNaN(_2a8.nodeType)){dojo._destroyElement(_2a8);}delete _2a6[key];}});}(function(){var _2a9={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;dijit._Templated._createNodesFromText=function(text){if(tn&&tn.ownerDocument!=dojo.doc){dojo._destroyElement(tn);tn=undefined;}if(!tn){tn=dojo.doc.createElement("div");tn.style.display="none";dojo.body().appendChild(tn);}var _2ac="none";var _2ad=text.replace(/^\s+/,"");for(var type in _2a9){var map=_2a9[type];if(map.re.test(_2ad)){_2ac=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_2ac];var _2b1=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _2b2=[];while(_2b1.firstChild){_2b2.push(_2b1.removeChild(_2b1.firstChild));}tn.innerHTML="";return _2b2;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),_setDisabledAttr:function(_2b3){this.disabled=_2b3;dojo.attr(this.focusNode,"disabled",_2b3);dijit.setWaiState(this.focusNode,"disabled",_2b3);if(_2b3){this._hovering=false;this._active=false;this.focusNode.removeAttribute("tabIndex");}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}this._setStateClass();},setDisabled:function(_2b4){dojo.deprecated("setDisabled("+_2b4+") is deprecated. Use attr('disabled',"+_2b4+") instead.","","2.0");this.attr("disabled",_2b4);},_scroll:true,_onFocus:function(e){if(this._scroll){dijit.scrollIntoView(this.domNode);}this.inherited(arguments);},_onMouse:function(_2b6){var _2b7=_2b6.currentTarget;if(_2b7&&_2b7.getAttribute){this.stateModifier=_2b7.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_2b6.type){case "mouseenter":case "mouseover":this._hovering=true;this._active=this._mouseDown;break;case "mouseout":case "mouseleave":this._hovering=false;this._active=false;break;case "mousedown":this._active=true;this._mouseDown=true;var _2b8=this.connect(dojo.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus();}this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_2b8);});break;}this._setStateClass();}},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){dijit.focus(this.focusNode);},_setStateClass:function(){var _2b9=this.baseClass.split(" ");function multiply(_2ba){_2b9=_2b9.concat(dojo.map(_2b9,function(c){return c+_2ba;}),"dijit"+_2ba);};if(this.checked){multiply("Checked");}if(this.state){multiply(this.state);}if(this.selected){multiply("Selected");}if(this.disabled){multiply("Disabled");}else{if(this.readOnly){multiply("ReadOnly");}else{if(this._active){multiply(this.stateModifier+"Active");}else{if(this._focused){multiply("Focused");}if(this._hovering){multiply(this.stateModifier+"Hover");}}}}var tn=this.stateNode||this.domNode,_2bd={};dojo.forEach(tn.className.split(" "),function(c){_2bd[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _2bd[c];});}dojo.forEach(_2b9,function(c){_2bd[c]=true;});var _2c1=[];for(var c in _2bd){_2c1.push(c);}tn.className=_2c1.join(" ");this._stateClasses=_2b9;},compare:function(val1,val2){if((typeof val1=="number")&&(typeof val2=="number")){return (isNaN(val1)&&isNaN(val2))?0:(val1-val2);}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(_2c5){},_onChangeActive:false,_handleOnChange:function(_2c6,_2c7){this._lastValue=_2c6;if(this._lastValueReported==undefined&&(_2c7===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_2c6;}if((this.intermediateChanges||_2c7||_2c7===undefined)&&((typeof _2c6!=typeof this._lastValueReported)||this.compare(_2c6,this._lastValueReported)!=0)){this._lastValueReported=_2c6;if(this._onChangeActive){this.onChange(_2c6);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass();},destroy:function(){if(this._layoutHackHandle){clearTimeout(this._layoutHackHandle);}this.inherited(arguments);},setValue:function(_2c8){dojo.deprecated("dijit.form._FormWidget:setValue("+_2c8+") is deprecated.  Use attr('value',"+_2c8+") instead.","","2.0");this.attr("value",_2c8);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_layoutHack:function(){if(dojo.isFF==2&&!this._layoutHackHandle){var node=this.domNode;var old=node.style.opacity;node.style.opacity="0.999";this._layoutHackHandle=setTimeout(dojo.hitch(this,function(){this._layoutHackHandle=null;node.style.opacity=old;}),0);}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{value:""}),postCreate:function(){if(dojo.isIE||dojo.isSafari){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._resetValue=this.value;}},_setValueAttr:function(_2cb,_2cc){this.value=_2cb;this._handleOnChange(_2cb,_2cc);},_getValueAttr:function(_2cd){return this._lastValue;},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_valueChanged:function(){var v=this.attr("value");var lv=this._lastValueReported;return ((v!==null&&(v!==undefined)&&v.toString)?v.toString():"")!==((lv!==null&&(lv!==undefined)&&lv.toString)?lv.toString():"");},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}else{if(dojo.isSafari){te=document.createEvent("Events");te.initEvent("keypress",true,true);te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.target.dispatchEvent(te);}}}},_onKeyPress:function(e){if(e.charOrCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey&&this._valueChanged()){this.undo();dojo.stopEvent(e);return false;}else{if(this.intermediateChanges){var _2d3=this;setTimeout(function(){_2d3._handleOnChange(_2d3.attr("value"),false);},0);}}return true;}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\r\n\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\r\n\t><span class=\"dijitReset dijitRight dijitInline\"\r\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\r\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\r\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\" \r\n\t\t\t\tname=\"${name}\" type=\"${type}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" \r\n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \r\n\t\t\t\t></span \r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\" \r\n\t\t\t\t\tid=\"${id}_label\"  \r\n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\r\n\t\t\t\t></span\r\n\t\t\t></button\r\n\t\t></span\r\n\t></span\r\n></span>\r\n",attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){if(this.disabled||this.readOnly){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(e.type!="click"){dojo.stopEvent(e);}if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!this.focusNode.form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _2d7=dijit.byNode(node);if(_2d7&&typeof _2d7._onSubmit=="function"){_2d7._onSubmit(e);break;}}}}},_fillContent:function(_2d8){if(_2d8&&!("label" in this.params)){this.attr("label",_2d8.innerHTML);}},postCreate:function(){if(this.showLabel==false){dojo.addClass(this.containerNode,"dijitDisplayNone");}dojo.setSelectable(this.focusNode,false);this.inherited(arguments);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_2db){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_2db);},_setLabelAttr:function(_2dc){this.containerNode.innerHTML=this.label=_2dc;this._layoutHack();if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\r\n\t><span class='dijitReset dijitRight dijitInline'\r\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\r\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\" \r\n\t\t\t\ttype=\"${type}\" name=\"${name}\"\r\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" \r\n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\r\n\t\t\t\t><span class=\"dijitReset dijitInline\" \r\n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\r\n\t\t\t\t></span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  \r\n\t\t\t\t\tdojoAttachPoint=\"containerNode,popupStateNode\" \r\n\t\t\t\t\tid=\"${id}_label\"\r\n\t\t\t\t></span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\r\n\t\t\t></button\r\n\t\t></span\r\n\t></span\r\n></span>\r\n",_fillContent:function(){if(this.srcNodeRef){var _2dd=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_2dd[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown){var _2de=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_2de);delete this.dropDownContainer;}dijit.popup.prepare(this.dropDown.domNode);this.inherited(arguments);},destroyDescendants:function(){if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}this.inherited(arguments);},_onArrowClick:function(e){if(this.disabled||this.readOnly){return;}this._toggleDropDown();},_onDropDownClick:function(e){var _2e1=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_2e1||e.detail!=0||this._seenKeydown){this._onArrowClick(e);}this._seenKeydown=false;},_onDropDownKeydown:function(e){this._seenKeydown=true;},_onDropDownBlur:function(e){this._seenKeydown=false;},_onKey:function(e){if(this.disabled||this.readOnly){return;}if(e.charOrCode==dojo.keys.DOWN_ARROW){if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){dojo.stopEvent(e);this._toggleDropDown();}}},_onBlur:function(){this._closeDropDown();this.inherited(arguments);},_toggleDropDown:function(){if(this.disabled||this.readOnly){return;}dijit.focus(this.popupStateNode);var _2e5=this.dropDown;if(!_2e5){return;}if(!this._opened){if(_2e5.href&&!_2e5.isLoaded){var self=this;var _2e7=dojo.connect(_2e5,"onLoad",function(){dojo.disconnect(_2e7);self._openDropDown();});_2e5._loadCheck(true);return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _2e8=this.dropDown;var _2e9=_2e8.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_2e8,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){self._closeDropDown(true);},onCancel:function(){self._closeDropDown(true);},onClose:function(){_2e8.domNode.style.width=_2e9;self.popupStateNode.removeAttribute("popupActive");self._opened=false;}});if(this.domNode.offsetWidth>_2e8.domNode.offsetWidth){var _2eb=null;if(!this.isLeftToRight()){_2eb=_2e8.domNode.parentNode;var _2ec=_2eb.offsetLeft+_2eb.offsetWidth;}dojo.marginBox(_2e8.domNode,{w:this.domNode.offsetWidth});if(_2eb){_2eb.style.left=_2ec-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_2e8.focus){_2e8.focus();}},_closeDropDown:function(_2ed){if(this._opened){dijit.popup.close(this.dropDown);if(_2ed){this.focus();}this._opened=false;}}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\r\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\r\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\r\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\r\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\r\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\r\n\t\t></td\r\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\r\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\r\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\r\n\t\t\tstateModifier=\"DownArrow\"\r\n\t\t\ttitle=\"${optionsTitle}\" name=\"${name}\"\r\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\r\n\t\t></td\r\n\t></tr></tbody\r\n></table>\r\n",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",name:"",tabIndex:["focusNode","titleNode"]}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){this.inherited(arguments);this._focalNodes=[this.titleNode,this.popupStateNode];dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){if(dojo.isIE){this.connect(node,"onactivate",this._onNodeFocus);this.connect(node,"ondeactivate",this._onNodeBlur);}else{this.connect(node,"onfocus",this._onNodeFocus);this.connect(node,"onblur",this._onNodeBlur);}}));},focusFocalNode:function(node){this._focusedNode=node;dijit.focus(node);},hasNextFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[1];},focusNext:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];dijit.focus(this._focusedNode);},hasPrevFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[0];},focusPrev:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];dijit.focus(this._focusedNode);},getFocalNodes:function(){return this._focalNodes;},_onNodeFocus:function(evt){this._focusedNode=evt.currentTarget;var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.addClass(this._focusedNode,fnc);},_onNodeBlur:function(evt){var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.removeClass(evt.currentTarget,fnc);},_onBlur:function(){this.inherited(arguments);this._focusedNode=null;}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.attr("checked",!this.checked);},_setCheckedAttr:function(_2f5){this.checked=_2f5;dojo.attr(this.focusNode||this.domNode,"checked",_2f5);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_2f5);this._setStateClass();this._handleOnChange(_2f5,true);},setChecked:function(_2f6){dojo.deprecated("setChecked("+_2f6+") is deprecated. Use attr('checked',"+_2f6+") instead.","","2.0");this.attr("checked",_2f6);},reset:function(){this._hasBeenBlurred=false;this.attr("checked",this.params.checked||false);}});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit.Menu",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{constructor:function(){this._bindings=[];},templateString:"<table class=\"dijit dijitMenu dijitReset dijitMenuTable\" waiRole=\"menu\" dojoAttachEvent=\"onkeypress:_onKeyPress\">"+"<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>"+"</table>",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,parentMenu:null,popupDelay:500,_contextMenuWithMouse:false,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}this.connectKeyNavHandlers([dojo.keys.UP_ARROW],[dojo.keys.DOWN_ARROW]);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_2f7){_2f7.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_2f8){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case dojo.keys.RIGHT_ARROW:this._moveToPopup(evt);dojo.stopEvent(evt);break;case dojo.keys.LEFT_ARROW:if(this.parentMenu){this.onCancel(false);}else{dojo.stopEvent(evt);}break;}},onItemHover:function(item){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}},_onChildBlur:function(item){dijit.popup.close(item.popup);item._blur();this._stopPopupTimer();},onItemUnhover:function(item){},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(item.disabled){return false;}if(item.popup){if(!this.is_open){this._openPopup();}}else{this.onExecute();item.onClick(evt);}},_iframeContentWindow:function(_301){var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_301))||dijit.Menu._iframeContentDocument(_301)["__parent__"]||(_301.name&&dojo.doc.frames[_301.name])||null;return win;},_iframeContentDocument:function(_303){var doc=_303.contentDocument||(_303.contentWindow&&_303.contentWindow.document)||(_303.name&&dojo.doc.frames[_303.name]&&dojo.doc.frames[_303.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var win=dijit.getDocumentWindow(node.ownerDocument);if(node.tagName.toLowerCase()=="iframe"){win=this._iframeContentWindow(node);node=dojo.withGlobal(win,dojo.body);}var cn=(node==dojo.body()?dojo.doc:node);node[this.id]=this._bindings.push([dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);},unBindDomNode:function(_308){var node=dojo.byId(_308);if(node){var bid=node[this.id]-1,b=this._bindings[bid];dojo.forEach(b,dojo.disconnect);delete this._bindings[bid];}},_contextKey:function(e){this._contextMenuWithMouse=false;if(e.keyCode==dojo.keys.F10){dojo.stopEvent(e);if(e.shiftKey&&e.type=="keydown"){var _e={target:e.target,pageX:e.pageX,pageY:e.pageY};_e.preventDefault=_e.stopPropagation=function(){};window.setTimeout(dojo.hitch(this,function(){this._openMyself(_e);}),1);}}},_contextMouse:function(e){this._contextMenuWithMouse=true;},_openMyself:function(e){if(this.leftClickToOpen&&e.button>0){return;}dojo.stopEvent(e);var x,y;if(dojo.isSafari||this._contextMenuWithMouse){x=e.pageX;y=e.pageY;}else{var _312=dojo.coords(e.target,true);x=_312.x+10;y=_312.y+10;}var self=this;var _314=dijit.getFocus(this);function closeAndRestoreFocus(){dijit.focus(_314);dijit.popup.close(self);};dijit.popup.open({popup:this,x:x,y:y,onExecute:closeAndRestoreFocus,onCancel:closeAndRestoreFocus,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},onOpen:function(e){this.isShowingNow=true;},onClose:function(){this._stopPopupTimer();this.parentMenu=null;this.isShowingNow=false;this.currentPopup=null;if(this.focusedChild){this._onChildBlur(this.focusedChild);this.focusedChild=null;}},_openPopup:function(){this._stopPopupTimer();var _316=this.focusedChild;var _317=_316.popup;if(_317.isShowingNow){return;}_317.parentMenu=this;var self=this;dijit.popup.open({parent:this,popup:_317,around:_316.domNode,orient:this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"},onCancel:function(){dijit.popup.close(_317);_316.focus();self.currentPopup=null;}});this.currentPopup=_317;if(_317.focus){_317.focus();}},uninitialize:function(){dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);this.inherited(arguments);}});dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"></div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",disabled:false,_fillContent:function(_319){if(_319&&!("label" in this.params)){this.attr("label",_319.innerHTML);}},postCreate:function(){dojo.setSelectable(this.domNode,false);dojo.attr(this.containerNode,"id",this.id+"_text");dijit.setWaiState(this.domNode,"labelledby",this.id+"_text");},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){dojo.addClass(this.domNode,"dijitMenuItemHover");try{dijit.focus(this.focusNode);}catch(e){}},_blur:function(){dojo.removeClass(this.domNode,"dijitMenuItemHover");},setLabel:function(_31c){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_31c);},setDisabled:function(_31d){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_31d);},_setDisabledAttr:function(_31e){this.disabled=_31e;dojo[_31e?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");dijit.setWaiState(this.focusNode,"disabled",_31e?"true":"false");}});dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _31f=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_31f[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.domNode.style.display="none";dojo.style(this.arrowWrapper,"display","");dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){this.popup.destroyRecursive();delete this.popup;}this.inherited(arguments);}});dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\"><td colspan=3>"+"<div class=\"dijitMenuSeparatorTop\"></div>"+"<div class=\"dijitMenuSeparatorBottom\"></div>"+"</td></tr>",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">"+"<div class=\"dijitCheckedMenuItemIconChar\">&#10003;</div>"+"</div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode,labelNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",checked:false,_setCheckedAttr:function(_321){dojo.toggleClass(this.iconNode,"dijitCheckedMenuItemIconChecked",_321);dijit.setWaiState(this.domNode,"checked",_321);this.checked=_321;},onChange:function(_322){},_onClick:function(e){if(!this.disabled){this.attr("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_324,_325,_326){_326=dojo.i18n.normalizeLocale(_326);var _327=_326.split("-");var _328=[_324,"nls",_325].join(".");var _329=dojo._loadedModules[_328];if(_329){var _32a;for(var i=_327.length;i>0;i--){var loc=_327.slice(0,i).join("_");if(_329[loc]){_32a=_329[loc];break;}}if(!_32a){_32a=_329.ROOT;}if(_32a){var _32d=function(){};_32d.prototype=_32a;return new _32d();}}throw new Error("Bundle not found: "+_325+" in "+_324+" , locale="+_326);};dojo.i18n.normalizeLocale=function(_32e){var _32f=_32e?_32e.toLowerCase():dojo.locale;if(_32f=="root"){_32f="ROOT";}return _32f;};dojo.i18n._requireLocalization=function(_330,_331,_332,_333){var _334=dojo.i18n.normalizeLocale(_332);var _335=[_330,"nls",_331].join(".");var _336="";if(_333){var _337=_333.split(",");for(var i=0;i<_337.length;i++){if(_334["indexOf"](_337[i])==0){if(_337[i].length>_336.length){_336=_337[i];}}}if(!_336){_336="ROOT";}}var _339=_333?_336:_334;var _33a=dojo._loadedModules[_335];var _33b=null;if(_33a){if(dojo.config.localizationComplete&&_33a._built){return;}var _33c=_339.replace(/-/g,"_");var _33d=_335+"."+_33c;_33b=dojo._loadedModules[_33d];}if(!_33b){_33a=dojo["provide"](_335);var syms=dojo._getModuleSymbols(_330);var _33f=syms.concat("nls").join("/");var _340;dojo.i18n._searchLocalePath(_339,_333,function(loc){var _342=loc.replace(/-/g,"_");var _343=_335+"."+_342;var _344=false;if(!dojo._loadedModules[_343]){dojo["provide"](_343);var _345=[_33f];if(loc!="ROOT"){_345.push(loc);}_345.push(_331);var _346=_345.join("/")+".js";_344=dojo._loadPath(_346,null,function(hash){var _348=function(){};_348.prototype=_340;_33a[_342]=new _348();for(var j in hash){_33a[_342][j]=hash[j];}});}else{_344=true;}if(_344&&_33a[_342]){_340=_33a[_342];}else{_33a[_342]=_340;}if(_333){return true;}});}if(_333&&_334!=_336){_33a[_334.replace(/-/g,"_")]=_33a[_336.replace(/-/g,"_")];}};(function(){var _34a=dojo.config.extraLocale;if(_34a){if(!_34a instanceof Array){_34a=[_34a];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_34e,_34f){req(m,b,_34e,_34f);if(_34e){return;}for(var i=0;i<_34a.length;i++){req(m,b,_34a[i],_34f);}};}})();dojo.i18n._searchLocalePath=function(_351,down,_353){_351=dojo.i18n.normalizeLocale(_351);var _354=_351.split("-");var _355=[];for(var i=_354.length;i>0;i--){_355.push(_354.slice(0,i).join("-"));}_355.push(false);if(down){_355.reverse();}for(var j=_355.length-1;j>=0;j--){var loc=_355[j]||"ROOT";var stop=_353(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_35a,_35b){function preload(_35c){_35c=dojo.i18n.normalizeLocale(_35c);dojo.i18n._searchLocalePath(_35c,true,function(loc){for(var i=0;i<_35b.length;i++){if(_35b[i]==loc){dojo["require"](_35a+"_"+loc);return true;}}return false;});};preload();var _35f=dojo.config.extraLocale||[];for(var i=0;i<_35f.length;i++){preload(_35f[i]);}};}if(!dojo._hasResource["dijit.layout.StackContainer"]){dojo._hasResource["dijit.layout.StackContainer"]=true;dojo.provide("dijit.layout.StackContainer");dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,baseClass:"dijitStackContainer",_started:false,postCreate:function(){this.inherited(arguments);dijit.setWaiRole(this.containerNode,"tabpanel");this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _361=this.getChildren();dojo.forEach(_361,this._setupChild,this);dojo.some(_361,function(_362){if(_362.selected){this.selectedChildWidget=_362;}return _362.selected;},this);var _363=this.selectedChildWidget;if(!_363&&_361[0]){_363=this.selectedChildWidget=_361[0];_363.selected=true;}if(_363){this._showChild(_363);}dojo.publish(this.id+"-startup",[{children:_361,selected:_363}]);this.inherited(arguments);},_setupChild:function(_364){this.inherited(arguments);_364.domNode.style.display="none";_364.domNode.style.position="relative";_364.domNode.title="";return _364;},addChild:function(_365,_366){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_365,_366]);this.layout();if(!this.selectedChildWidget){this.selectChild(_365);}}},removeChild:function(page){this.inherited(arguments);if(this._beingDestroyed){return;}if(this._started){dojo.publish(this.id+"-removeChild",[page]);this.layout();}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _368=this.getChildren();if(_368.length){this.selectChild(_368[0]);}}}},selectChild:function(page){page=dijit.byId(page);if(this.selectedChildWidget!=page){this._transition(page,this.selectedChildWidget);this.selectedChildWidget=page;dojo.publish(this.id+"-selectChild",[page]);}},_transition:function(_36a,_36b){if(_36b){this._hideChild(_36b);}this._showChild(_36a);if(this.doLayout&&_36a.resize){_36a.resize(this._containerContentBox||this._contentBox);}},_adjacent:function(_36c){var _36d=this.getChildren();var _36e=dojo.indexOf(_36d,this.selectedChildWidget);_36e+=_36c?1:_36d.length-1;return _36d[_36e%_36d.length];},forward:function(){this.selectChild(this._adjacent(true));},back:function(){this.selectChild(this._adjacent(false));},_onKeyPress:function(e){dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._contentBox);}},_showChild:function(page){var _371=this.getChildren();page.isFirstChild=(page==_371[0]);page.isLastChild=(page==_371[_371.length-1]);page.selected=true;page.domNode.style.display="";if(page._loadCheck){page._loadCheck();}if(page.onShow){page.onShow();}},_hideChild:function(page){page.selected=false;page.domNode.style.display="none";if(page.onHide){page.onHide();}},closeChild:function(page){var _374=page.onClose(this,page);if(_374){this.removeChild(page);page.destroyRecursive();}},destroy:function(){this._beingDestroyed=true;this.inherited(arguments);}});dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){dijit.setWaiRole(this.domNode,"tablist");this.pane2button={};this.pane2handles={};this.pane2menu={};this._subscriptions=[dojo.subscribe(this.containerId+"-startup",this,"onStartup"),dojo.subscribe(this.containerId+"-addChild",this,"onAddChild"),dojo.subscribe(this.containerId+"-removeChild",this,"onRemoveChild"),dojo.subscribe(this.containerId+"-selectChild",this,"onSelectChild"),dojo.subscribe(this.containerId+"-containerKeyPress",this,"onContainerKeyPress")];},onStartup:function(info){dojo.forEach(info.children,this.onAddChild,this);this.onSelectChild(info.selected);},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(pane);}dojo.forEach(this._subscriptions,dojo.unsubscribe);this.inherited(arguments);},onAddChild:function(page,_378){var _379=dojo.doc.createElement("span");this.domNode.appendChild(_379);var cls=dojo.getObject(this.buttonWidget);var _37b=new cls({label:page.title,closeButton:page.closable},_379);this.addChild(_37b,_378);this.pane2button[page]=_37b;page.controlButton=_37b;var _37c=[];_37c.push(dojo.connect(_37b,"onClick",dojo.hitch(this,"onButtonClick",page)));if(page.closable){_37c.push(dojo.connect(_37b,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page)));var _37d=dojo.i18n.getLocalization("dijit","common");var _37e=new dijit.Menu({targetNodeIds:[_37b.id],id:_37b.id+"_Menu"});var _37f=new dijit.MenuItem({label:_37d.itemClose});_37c.push(dojo.connect(_37f,"onClick",dojo.hitch(this,"onCloseButtonClick",page)));_37e.addChild(_37f);this.pane2menu[page]=_37e;}this.pane2handles[page]=_37c;if(!this._currentChild){_37b.focusNode.setAttribute("tabIndex","0");this._currentChild=page;}if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){this._rectifyRtlTabList();}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}dojo.forEach(this.pane2handles[page],dojo.disconnect);delete this.pane2handles[page];var menu=this.pane2menu[page];if(menu){menu.destroyRecursive();delete this.pane2menu[page];}var _382=this.pane2button[page];if(_382){_382.destroy();delete this.pane2button[page];}},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _384=this.pane2button[this._currentChild];_384.attr("checked",false);_384.focusNode.setAttribute("tabIndex","-1");}var _385=this.pane2button[page];_385.attr("checked",true);this._currentChild=page;_385.focusNode.setAttribute("tabIndex","0");var _386=dijit.byId(this.containerId);dijit.setWaiState(_386.containerNode,"labelledby",_385.id);},onButtonClick:function(page){var _388=dijit.byId(this.containerId);_388.selectChild(page);},onCloseButtonClick:function(page){var _38a=dijit.byId(this.containerId);_38a.closeChild(page);var b=this.pane2button[this._currentChild];if(b){dijit.focus(b.focusNode||b.domNode);}},adjacent:function(_38c){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_38c=!_38c;}var _38d=this.getChildren();var _38e=dojo.indexOf(_38d,this.pane2button[this._currentChild]);var _38f=_38c?1:_38d.length-1;return _38d[(_38e+_38f)%_38d.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _391=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_391=false;}break;case k.PAGE_UP:if(e.ctrlKey){_391=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_391=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_391=true;}break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.charOrCode===k.TAB){this.adjacent(!e.shiftKey).onClick();dojo.stopEvent(e);}else{if(e.charOrCode=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);}}}}if(_391!==null){this.adjacent(_391).onClick();dojo.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function(evt){dijit.setWaiRole((this.focusNode||this.domNode),"tab");this.inherited(arguments);},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});dojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){return true;}});}if(!dojo._hasResource["dijit.layout.TabContainer"]){dojo._hasResource["dijit.layout.TabContainer"]=true;dojo.provide("dijit.layout.TabContainer");dojo.declare("dijit.layout.TabContainer",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,templateString:null,templateString:"<div class=\"dijitTabContainer\">\r\n\t<div dojoAttachPoint=\"tablistNode\"></div>\r\n\t<div dojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\r\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" dojoAttachPoint=\"containerNode\"></div>\r\n</div>\r\n",_controllerWidget:"dijit.layout.TabController",postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.inherited(arguments);},postCreate:function(){this.inherited(arguments);var _397=dojo.getObject(this._controllerWidget);this.tablist=new _397({id:this.id+"_tablist",tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout")},this.tablistNode);if(this.tabStrip){dojo.addClass(this.tablist.domNode,this.baseClass+"Strip");}},_setupChild:function(tab){dojo.addClass(tab.domNode,"dijitTabPane");this.inherited(arguments);return tab;},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited(arguments);},layout:function(){if(!this.doLayout){return;}var _399=this.tabPosition.replace(/-h/,"");var _39a=[{domNode:this.tablist.domNode,layoutAlign:_399},{domNode:this.tablistSpacer,layoutAlign:_399},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_39a);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_39a[2]);if(this.selectedChildWidget){this._showChild(this.selectedChildWidget);if(this.doLayout&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox);}}},destroy:function(){if(this.tablist){this.tablist.destroy();}this.inherited(arguments);}});dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",doLayout:true,buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){if(0>=this.tabPosition.indexOf("-h")){return;}if(!this.pane2button){return;}var _39b=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_39b=Math.max(_39b,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_39b+"px";}}});dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",templateString:"<div waiRole=\"presentation\" dojoAttachEvent='onclick:onClick,onmouseenter:_onMouse,onmouseleave:_onMouse'>\r\n    <div waiRole=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\r\n        <div waiRole=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\r\n\t        <span dojoAttachPoint='containerNode,focusNode' class='tabLabel'>${!label}</span><img class =\"dijitTabButtonSpacer\" src=\"${_blankGif}\" />\r\n\t        <div class=\"dijitInline closeNode\" dojoAttachPoint='closeNode' dojoAttachEvent='onclick:onClickCloseButton'>\r\n\t        \t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint='closeButtonNode' class='closeImage' dojoAttachEvent='onmouseenter:_onMouse, onmouseleave:_onMouse' stateModifier='CloseButton' waiRole=\"presentation\"/>\r\n\t            <span dojoAttachPoint='closeText' class='closeText'>x</span>\r\n\t        </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n",_scroll:false,postCreate:function(){if(this.closeButton){dojo.addClass(this.innerDiv,"dijitClosable");var _39e=dojo.i18n.getLocalization("dijit","common");if(this.closeNode){dojo.attr(this.closeNode,"title",_39e.itemClose);dojo.attr(this.closeButtonNode,"title",_39e.itemClose);}}else{this.closeNode.style.display="none";}this.inherited(arguments);dojo.setSelectable(this.containerNode,false);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");(function(){var _39f={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _3a2=function(_3a3){this._index=-1;this._animations=_3a3||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;dojo.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};dojo.extend(_3a2,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){dojo.disconnect(this._onAnimateCtx);dojo.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_3a5,_3a6){if(!this._current){this._current=this._animations[this._index=0];}if(!_3a6&&this._current.status()=="playing"){return this;}var _3a7=dojo.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_3a8=dojo.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_3aa=dojo.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);dojo.disconnect(_3a7);dojo.disconnect(_3a8);dojo.disconnect(_3aa);});if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=dojo.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);dojo.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_3ae,_3af){this.pause();var _3b0=this.duration*_3ae;this._current=null;dojo.some(this._animations,function(a){if(a.duration<=_3b0){this._current=a;return true;}_3b0-=a.duration;return false;});if(this._current){this._current.gotoPercent(_3b0/this._current.duration,_3af);}return this;},stop:function(_3b2){if(this._current){if(_3b2){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=dojo.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);dojo.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}}});dojo.extend(_3a2,_39f);dojo.fx.chain=function(_3b5){return new _3a2(_3b5);};var _3b6=function(_3b7){this._animations=_3b7||[];this._connects=[];this._finished=0;this.duration=0;dojo.forEach(_3b7,function(a){var _3b9=a.duration;if(a.delay){_3b9+=a.delay;}if(this.duration<_3b9){this.duration=_3b9;}this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));},this);};dojo.extend(_3b6,{_doAction:function(_3bb,args){dojo.forEach(this._animations,function(a){a[_3bb].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_3be,args){var t=this._pseudoAnimation;t[_3be].apply(t,args);},play:function(_3c1,_3c2){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_3c3,_3c4){var ms=this.duration*_3c3;dojo.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_3c4);});this._call("gotoPercent",arguments);return this;},stop:function(_3c7){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);}});dojo.extend(_3b6,_39f);dojo.fx.combine=function(_3c8){return new _3b6(_3c8);};})();dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_3cb){return this.showAnim.play(_3cb||0);},hide:function(_3cc){return this.hideAnim.play(_3cc||0);}});dojo.fx.wipeIn=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style,o;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _3d2=dojo.style(node,"height");return Math.max(_3d2,1);}},end:function(){return node.scrollHeight;}}}},args));dojo.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=dojo.byId(args.node);var s=node.style;var o;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));dojo.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});dojo.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=(args.node=dojo.byId(args.node));var top=null;var left=null;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=dojo.animateProperty(dojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));dojo.connect(anim,"beforeBegin",anim,init);return anim;};}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _3e2=0;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=function(node){while(node.firstChild){dojo._destroyElement(node.firstChild);}};dojo.html._setNodeContent=function(node,cont,_3e7){if(_3e7){dojo.html._emptyNode(node);}if(typeof cont=="string"){var pre="",post="",walk=0,name=node.nodeName.toLowerCase();switch(name){case "tr":pre="<tr>";post="</tr>";walk+=1;case "tbody":case "thead":pre="<tbody>"+pre;post+="</tbody>";walk+=1;case "table":pre="<table>"+pre;post+="</table>";walk+=1;break;}if(walk){var n=node.ownerDocument.createElement("div");n.innerHTML=pre+cont+post;do{n=n.firstChild;}while(--walk);dojo.forEach(n.childNodes,function(n){node.appendChild(n.cloneNode(true));});}else{node.innerHTML=cont;}}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_3ef,node){dojo.mixin(this,_3ef||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_3e2++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_3f2){if(undefined!==cont){this.content=cont;}if(_3f2){this._mixin(_3f2);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){console.error("setContent given no node");}try{node=dojo.html._setNodeContent(node,this.content);}catch(e){var _3f4=this.onContentError(e);try{node.innerHTML=_3f4;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=node;},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(dojo.isString(cont)){if(this.cleanContent){cont=dojo.html._secureForInnerHtml(cont);}if(this.extractContent){var _3f7=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_3f7){cont=_3f7[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_3f9){var _3fa={},key;for(key in _3f9){if(key in _3fa){continue;}this[key]=_3f9[key];}},_parse:function(){var _3fc=this.node;try{this.parseResults=dojo.parser.parse(_3fc,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_3ff){var _400=this["on"+type+"Error"].call(this,err);if(_3ff){console.error(_3ff,err);}else{if(_400){dojo.html._setNodeContent(this.node,_400,true);}}}});dojo.html.set=function(node,cont,_403){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_403){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_403,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,_isRealContent:true,postMixInProperties:function(){this.inherited(arguments);var _405=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_405);this.errorMessage=dojo.string.substitute(this.errorMessage,_405);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},postCreate:function(){this.domNode.title="";if(!dijit.hasWaiRole(this.domNode)){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _406=dojo.query(">",this.containerNode),_407=_406.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_409=dojo.filter(_407.map(dijit.byNode),function(_40a){return _40a&&_40a.domNode&&_40a.resize;});if(_406.length==_407.length&&_409.length==1){this.isContainer=true;this._singleChild=_409[0];}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated.\tUse attr('href', ...) instead.","","2.0");return this.attr("href",href);},_setHrefAttr:function(href){this.href=href;if(this._created){return this._prepareLoad();}},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");this.attr("content",data);},_setContentAttr:function(data){if(!this._isDownloaded){this.href="";}this._setContent(data||"");this._isDownloaded=false;if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.startup();var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}}this._onLoadHandler(data);},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroyRecursive:function(_410){if(this._beingDestroyed){return;}this._beingDestroyed=true;this.inherited(arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode,mb=dojo.mixin(dojo.marginBox(node),size||{});var cb=this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize({w:cb.w,h:cb.h});}},_prepareLoad:function(_415){this.cancel();this.isLoaded=false;this._loadCheck(_415);},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden");}},_loadCheck:function(_417){var _418=this._isShown();if(this.href&&(_417||(this.preload&&!this.isLoaded&&!this._xhrDfd)||(this.refreshOnShow&&_418&&!this._xhrDfd)||(!this.isLoaded&&_418&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _41a={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_41a,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_41a);hand.addCallback(function(html){try{self._isDownloaded=true;self.attr("content",html);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.cancelled){self._onError("Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(data){this.isLoaded=true;try{this.onLoad(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},destroyDescendants:function(){if(this._isRealContent){this._onUnloadHandler();}var _41f=this._contentSetter;if(_41f){_41f.empty();}else{this.inherited(arguments);dojo.html._emptyNode(this.containerNode);}},_setContent:function(cont,_421){this.cancel();this.destroyDescendants();this._isRealContent=!_421;var _422=this._contentSetter;if(!(_422&&_422 instanceof dojo.html._ContentSetter)){_422=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _424=this.onContentError(e);try{this.containerNode.innerHTML=_424;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _425=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_422,_425);_422.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;},_onError:function(type,err,_428){var _429=this["on"+type+"Error"].call(this,err);if(_428){console.error(_428,err);}else{if(_429){this._setContent(_429,true);}}},_createSubWidgets:function(){try{dojo.parser.parse(this.containerNode,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_42b){},onDownloadError:function(_42c){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.TitlePane"]){dojo._hasResource["dijit.TitlePane"]=true;dojo.provide("dijit.TitlePane");dojo.declare("dijit.TitlePane",[dijit.layout.ContentPane,dijit._Templated],{title:"",open:true,duration:dijit.defaultDuration,baseClass:"dijitTitlePane",templateString:"<div class=\"${baseClass}\">\r\n\t<div dojoAttachEvent=\"onclick:toggle,onkeypress: _onTitleKey,onfocus:_handleFocus,onblur:_handleFocus\" tabindex=\"0\"\r\n\t\t\twaiRole=\"button\" class=\"dijitTitlePaneTitle\" dojoAttachPoint=\"titleBarNode,focusNode\">\r\n\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"arrowNode\" class=\"dijitArrowNode\" waiRole=\"presentation\"\r\n\t\t><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span\r\n\t\t><span dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></span>\r\n\t</div>\r\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\">\r\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\">\r\n\t\t\t<div class=\"dijitTitlePaneContentInner\" dojoAttachPoint=\"containerNode\" waiRole=\"region\" tabindex=\"-1\">\r\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n",attributeMap:dojo.mixin(dojo.clone(dijit.layout.ContentPane.prototype.attributeMap),{title:{node:"titleNode",type:"innerHTML"}}),postCreate:function(){if(!this.open){this.hideNode.style.display=this.wipeNode.style.display="none";}this._setCss();dojo.setSelectable(this.titleNode,false);dijit.setWaiState(this.containerNode,"labelledby",this.titleNode.id);dijit.setWaiState(this.focusNode,"haspopup","true");var _42d=this.hideNode,_42e=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_42d.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_42d.style.display="none";}});this.inherited(arguments);},_setOpenAttr:function(open){if(this.open!==open){this.toggle();}},_setContentAttr:function(_430){if(!this.open||!this._wipeOut||this._wipeOut.status()=="playing"){this.inherited(arguments);}else{if(this._wipeIn&&this._wipeIn.status()=="playing"){this._wipeIn.stop();}dojo.marginBox(this.wipeNode,{h:dojo.marginBox(this.wipeNode).h});this.inherited(arguments);if(this._wipeIn){this._wipeIn.play();}else{this.hideNode.style.display="";}}},toggle:function(){dojo.forEach([this._wipeIn,this._wipeOut],function(_431){if(_431&&_431.status()=="playing"){_431.stop();}});var anim=this[this.open?"_wipeOut":"_wipeIn"];if(anim){anim.play();}else{this._hideNode.style.display=this.open?"":"none";}this.open=!this.open;this._loadCheck();this._setCss();},_setCss:function(){var _433=["dijitClosed","dijitOpen"];var _434=this.open;var node=this.titleBarNode||this.focusNode;dojo.removeClass(node,_433[!_434+0]);node.className+=" "+_433[_434+0];this.arrowNodeInner.innerHTML=this.open?"-":"+";},_onTitleKey:function(e){if(e.charOrCode==dojo.keys.ENTER||e.charOrCode==" "){this.toggle();}else{if(e.charOrCode==dojo.keys.DOWN_ARROW&&this.open){this.containerNode.focus();e.preventDefault();}}},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,this.baseClass+"Focused");},setTitle:function(_438){dojo.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use attr('title', ...) instead.","","2.0");this.titleNode.innerHTML=_438;}});}if(!dojo._hasResource["freedom.client.SimpleAttribute"]){dojo._hasResource["freedom.client.SimpleAttribute"]=true;dojo.provide("freedom.client.SimpleAttribute");dojo.declare("freedom.client.SimpleAttribute",null,{defaultValue:"",_value:"",_settingValue:false,resetToDefault:function(){this.setValue(this.defaultValue);},getValue:function(){return this._value;},setValue:function(_439){if(this._settingValue){return;}this._settingValue=true;this._value=_439;this.onChange(_439);this._settingValue=false;},equals:function(_43a){return this._value==_43a;},fillFromItem:function(_43b){if(undefined!==_43b){this.setValue(_43b[0].value);}else{this.setValue(this.defaultValue);}},fillFromBusinessObject:function(_43c){this.setValue(_43c.getValue());},getJson:function(){return [{value:this.getValue()}];},constructor:function(_43d){if(undefined!==_43d){this.defaultValue=_43d;}},toString:function(){return this._value;},fixArrayLtGtAmpSigns:function(arr){var _43f=[];for(var i=0;i<arr.length;i++){_43f.push(this.fixLtGtAmpSigns(arr[i]));}return _43f;},fixLtGtAmpSigns:function(str){if(str===undefined||str==null){return str;}if(typeof (str)=="object"){return this.fixArrayLtGtAmpSigns(str);}if(typeof (str)!=="string"){return str;}var _442=str.replace(/&/g,"&amp;");_442=_442.replace(/</g,"&amp;lt;");_442=_442.replace(/>/g,"&amp;gt;");return _442;},compare:function(to){return (this._value>to._value?1:-1);},onChange:function(_444){}});}if(!dojo._hasResource["freedom.client.ComplexAttribute"]){dojo._hasResource["freedom.client.ComplexAttribute"]=true;dojo.provide("freedom.client.ComplexAttribute");dojo.declare("freedom.client.ComplexAttribute",freedom.client.SimpleAttribute,{_value:{},equals:function(_445){for(var i=0;i<this.statics.attributes.length;i++){var attr=this.statics.attributes[i];if(this._value[attr]!==_445[attr]){return false;}}return true;},compare:function(_448){for(var i=0;i<this.statics.attributes.length;i++){var attr=this.statics.attributes[i];if(this._value[attr]>_448._value[attr]){return 1;}if(this._value[attr]<_448._value[attr]){return -1;}}return 0;},fillFromItem:function(_44b){if(undefined!==_44b){var _44c={};for(var i=0;i<this.statics.attributes.length;i++){var _44e=_44b[0][this.statics.attributes[i]];if(_44e===undefined||_44e.length===0){_44c[this.statics.attributes[i]]="";}else{_44c[this.statics.attributes[i]]=_44e[0].value;}}this.setValue(_44c);}else{this.setValue(this.defaultValue);}},getJson:function(){var _44f=[{}];for(var i=0;i<this.statics.attributes.length;i++){if(this._value[this.statics.attributes[i]]){_44f[0][this.statics.attributes[i]]=[{value:this.fixLtGtAmpSigns(this._value[this.statics.attributes[i]])}];}}return _44f;},appendProperty:function(str,_452,_453){if(_452!==undefined&&_452!=""){if(str.length>0){str+=_453;}str+=_452;}return this.fixLtGtAmpStrings(str);},fixLtGtAmpStrings:function(str){if(str===undefined||str==null){return str;}if(typeof (str)=="object"){return this.fixArrayLtGtAmpStrings(str);}if(typeof (str)!=="string"){return str;}var _455=str.replace(/&amp;/g,"&");_455=_455.replace(/&amp;lt;/g,"<");_455=_455.replace(/&amp;gt;/g,">");return _455;},fixArrayLtGtAmpStrings:function(arr){var _457=[];for(var i=0;i<arr.length;i++){_457.push(this.fixLtGtAmpStrings(arr[i]));}return _457;}});}if(!dojo._hasResource["freedom.client.AddressAttribute"]){dojo._hasResource["freedom.client.AddressAttribute"]=true;dojo.provide("freedom.client.AddressAttribute");dojo.declare("freedom.client.AddressAttribute",freedom.client.ComplexAttribute,{statics:{attributes:["street","addressLine2","city","state","zipCode","country"]},toString:function(){var _459="";_459=this.appendProperty(_459,this._value.street);_459=this.appendProperty(_459,this._value.addressLine2,", ");_459=this.appendProperty(_459,this._value.city,", ");_459=this.appendProperty(_459,this._value.state,", ");_459=this.appendProperty(_459,this._value.zipCode," ");_459=this.appendProperty(_459,this._value.country,", ");if(_459!==undefined){if(_459.length>25){_459=_459.substr(0,22)+"...";}}else{_459="";}return _459;},constructor:function(){this._value={street:"",addressLine2:"",city:"",state:"",zipCode:"",country:""};this.defaultValue={street:"",addressLine2:"",city:"",state:"",zipCode:"",country:""};freedom.client.AddressAttribute.superclass.constructor.apply(this,arguments);}});}if(!dojo._hasResource["dojox.uuid.generateRandomUuid"]){dojo._hasResource["dojox.uuid.generateRandomUuid"]=true;dojo.provide("dojox.uuid.generateRandomUuid");dojox.uuid.generateRandomUuid=function(){var _45a=16;function _generateRandomEightCharacterHexString(){var _45b=Math.floor((Math.random()%1)*Math.pow(2,32));var _45c=_45b.toString(_45a);while(_45c.length<8){_45c="0"+_45c;}return _45c;};var _45d="-";var _45e="4";var _45f="8";var a=_generateRandomEightCharacterHexString();var b=_generateRandomEightCharacterHexString();b=b.substring(0,4)+_45d+_45e+b.substring(5,8);var c=_generateRandomEightCharacterHexString();c=_45f+c.substring(1,4)+_45d+c.substring(4,8);var d=_generateRandomEightCharacterHexString();var _464=a+_45d+b+_45d+c+d;_464=_464.toLowerCase();return _464;};}if(!dojo._hasResource["freedom.client.Aggregation"]){dojo._hasResource["freedom.client.Aggregation"]=true;dojo.provide("freedom.client.Aggregation");dojo.declare("freedom.client.Aggregation",null,{_settingValue:false,resetToDefault:function(){var _465;for(var i=0;i<this._eventHandles.length;i++){_465=this._eventHandles[i];for(var j=0,l=_465.length;j<l;j++){dojo.disconnect(_465[j]);}}this._eventHandles=[];this._aggregates=[];},getValue:function(){return this._aggregates;},setValue:function(_469){if(this._settingValue){return;}this._settingValue=true;this.resetToDefault();var data=_469;if(undefined==data.length){data=[data];}for(var i=0;i<data.length;i++){var _46c=this.createBusinessObject();_46c.fillFromBusinessObject(data[i]);this.addBusinessObject(_46c);}this.onChange(data);this._settingValue=false;},fillFromItem:function(_46d){this.resetToDefault();if(undefined!==_46d){var _46e=this._aggregateClass.getDataName();if(_46d[0][_46e]!==undefined){for(var i=0;i<_46d[0][_46e].length;i++){var _470=this.createBusinessObject();_470.fillFromItem(_46d[0][_46e][i]);this.addBusinessObject(_470);}}}},fillFromBusinessObject:function(_471){if(this._settingValue){return;}var _472=_471.getValue();if(undefined==_472.length){_472=[_472];}this._settingValue=true;this.resetToDefault();for(var i=0;i<_472.length;i++){var _474=this.createBusinessObject();_474.fillFromBusinessObject(_472[i]);this.addBusinessObject(_474);}this.onChange(_472);this._settingValue=false;},createBusinessObject:function(){var _475=new this._aggregateClass();_475.Id=dojox.uuid.generateRandomUuid();return _475;},addBusinessObject:function(_476){this._aggregates.push(_476);var _477=[];_477.push(dojo.connect(_476,"onChange",this,"_onAggregateChange"));_477.push(dojo.connect(_476,"onChange",this,function(){_476._inFillFromBO||this.onEdit(_476);}));this._eventHandles.push(_477);this.onChange(this._aggregates);},removeBusinessObject:function(_478){var _479=null;for(var i=0;i<this._aggregates.length;i++){if(_478.Id==this._aggregates[i].Id){_479=this._eventHandles[i];for(var j=0,l=_479.length;j<l;j++){dojo.disconnect(_479[j]);}this._eventHandles.splice(i,1);this._aggregates.splice(i,1);break;}}this.onChange(this._aggregates);},getJson:function(){var _47d=[{}];_47d[0][this._aggregateClass.getDataName()]=[];for(var i=0;i<this._aggregates.length;i++){_47d[0][this._aggregateClass.getDataName()][i]=this._aggregates[i].getJson();}return _47d;},_onAggregateChange:function(){this.onChange(this.getValue());},constructor:function(_47f){this._aggregateClass=_47f;this._aggregates=[];this._eventHandles=[];},onChange:function(_480){},onEdit:function(_481){}});}if(!dojo._hasResource["freedom.utilities"]){dojo._hasResource["freedom.utilities"]=true;dojo.provide("freedom.utilities");freedom.utilities.ATOM_NS="a";freedom.utilities.xmlToJson=function(_482,_483){var _484={};var _485=[];var node=_482.documentElement;var _487=_484;var _488=_483;var _489=/\S/;var _48a=false;while(node.nodeType!=9){var _48b=false;if(node.nodeType==8){_48a=node.nodeValue;}if(node.nodeType==1){var _48c=node.nodeName.indexOf(":");var name=false;var ns=false;if(-1!=_48c){name=node.nodeName.substr(_48c+1);ns=node.nodeName.substr(0,_48c);}else{name=node.nodeName;}var _48f;var _490;if(_491&&typeof (_491)=="string"){if(!_487[_491]){_487[_491]=[];}_490=_487[_491].length;_487[_491][_490]={};_48f=_487[_491][_490];}else{_48f=_487;}if(!_48f[name]){_48f[name]=[];}_490=_48f[name].length;_48f[name][_490]={};_48f=_48f[name][_490];_48f["#ns"]=ns;if(_48a){_48f["#comment"]=_48a;_48a=false;}if(node.attributes!==undefined&&node.attributes.length>0){for(attrIdx=0;attrIdx<node.attributes.length;attrIdx++){var _492=node.attributes.item(attrIdx);_48f["@"+_492.name]=_492.value;}}if(node.firstChild){var _493=node.firstChild;var _494=true;var _495="";while(_493&&_494){if(_493.nodeType!=3&&_493.nodeType!=4){_494=false;}else{if(_489.test(_493.nodeValue)){_495+=_493.nodeValue;}_493=_493.nextSibling;}}if(_494){if(_495.length!=0){_48f.value=_495;}}else{var _496={curParent:_487,parentConfig:_488,curConfig:_491};_485.push(_496);_487=_48f;var _491=(_488&&typeof (_488)!="string")?_488[name]:null;_488=_491?_491:_483;node=node.firstChild;_48b=true;}}else{_48f.value="";}}if(!_48b){while(!node.nextSibling&&node.nodeType!=9){node=node.parentNode;_496=_485.pop();if(_496){_487=_496.curParent;_488=_496.parentConfig;_491=_496.curConfig;}else{_487=_484;_488=_483;}}if(node.nextSibling){var _497=node;node=node.nextSibling;}}}return _484;};freedom.utilities.jsonToXmlString=function(_498,_499){var _49a="<?xml version='1.0' encoding='UTF-8'?>\n";var _49b=[];var _49c=_498;var _49d=[];var _49e=_499;var _49f="";for(mainTag in _498){_49d.push(mainTag);}var _4a0=0;while(_49b.length!==0||_49d.length!==0){var tag=_49d[0];var _4a2=_49c[tag];var _4a3=(_49e&&typeof (_49e)!="string")?_49e[tag]:_49e;var _4a4=!(_4a3&&typeof (_4a3)=="string"&&_4a3==tag);var _4a5=false;while((undefined!==_4a2)&&(undefined!==_4a2.length)&&_4a0<_4a2.length){var elem=_4a2[_4a0];if(elem["#ns"]){fullTagName=elem["#ns"]+":"+tag;}else{fullTagName=tag;}if(_4a4){if(elem["#comment"]){_49a+=_49f+"<!-- "+elem["#comment"]+" -->\n";}_49a+=_49f+"<"+fullTagName;for(attr in elem){if(attr.substr(0,1)=="@"){_49a+=" "+attr.substr(1)+"=\""+elem[attr]+"\"";}}_49a+=">";}if(elem.value!==undefined){if(_4a4){if(elem.value.length!=0){_49a+="<![CDATA["+elem.value+"]]>";}_49a+="</"+fullTagName+">\n";}}else{var _4a7=[];for(subTag in elem){if(subTag!="#ns"&&subTag!="#comment"&&subTag.substr(0,1)!="@"){_4a7.push(subTag);}}if(_4a7.length!==0){if(_4a4){_49a+="\n";}_49b.push({parentObj:_49c,curSubTags:_49d,curIndex:_4a0+1,fullTagName:fullTagName,parentConfig:_49e,curConfig:_4a3});_49c=elem;_49d=_4a7;_4a0=0;_49e=_4a3?_4a3:_499;if(_4a4){_49f+="  ";}_4a5=true;break;}else{if(_4a4){_49a+="</"+fullTagName+">\n";}}}_4a0++;}if(!_4a5){_49d.shift();_4a0=0;if(_49d.length===0&&_49b.length!==0){var _4a8=_49b.pop();_49c=_4a8.parentObj;_49d=_4a8.curSubTags;_4a0=_4a8.curIndex;_49e=_4a8.parentConfig;_4a3=_4a8.curConfig;if(!(_4a3&&typeof (_4a3)=="string"&&_4a3==_49d[0])){_49f=_49f.substr(2);_49a+=_49f+"</"+_4a8.fullTagName+">\n";}}}}return _49a;};freedom.utilities.getCurrentDate=function(){var now=new Date();var str=now.getUTCFullYear()+"-";str+=freedom.utilities.getNumberForDate(now.getMonth()+1);str+="-";str+=freedom.utilities.getNumberForDate(now.getDate());str+="T";str+=freedom.utilities.getNumberForDate(now.getHours());str+=":";str+=freedom.utilities.getNumberForDate(now.getMinutes());str+=":";str+=freedom.utilities.getNumberForDate(now.getSeconds());str+="Z";return str;};freedom.utilities.getNumberForDate=function(_4ab){if(_4ab<10){return "0"+_4ab;}return (""+_4ab);};freedom.utilities.getNumberFromDateStr=function(pStr){pStr=pStr.replace(/^[0]+/g,"");return (pStr=="")?0:parseInt(pStr);},freedom.utilities.dateToyyyy_MM_ddString=function(_4ad){if(_4ad&&_4ad.getFullYear){var _4ae=freedom.utilities.getNumberForDate(_4ad.getMonth()+1);var _4af=freedom.utilities.getNumberForDate(_4ad.getDate());return _4ad.getFullYear()+"-"+_4ae+"-"+_4af;}return "";};freedom.utilities.yyyy_MM_ddStringToDate=function(pStr){if(pStr&&pStr!=""){var _4b1=pStr.split("-");if(_4b1.length==3){var _4b2=new Date();var year=freedom.utilities.getNumberFromDateStr(_4b1[0]),_4b4=freedom.utilities.getNumberFromDateStr(_4b1[1])-1,day=freedom.utilities.getNumberFromDateStr(_4b1[2]);if(year>0&&_4b4>=0&&_4b4<12&&day>0&&day<32){_4b2.setFullYear(year,_4b4,day);return _4b2;}}}console.log("freedom.utilities.yyyy_MM_ddStringToDate: invalid input "+pStr);return null;};freedom.utilities.dateToTimeString=function(_4b6){if(_4b6&&_4b6.getFullYear){var _4b7=freedom.utilities.getNumberForDate(_4b6.getHours());var _4b8=freedom.utilities.getNumberForDate(_4b6.getMinutes());var _4b9=freedom.utilities.getNumberForDate(_4b6.getSeconds());return _4b7+":"+_4b8+":"+_4b9;}return "";};freedom.utilities.timeStringToDate=function(_4ba){if(_4ba&&_4ba!=""){var _4bb=_4ba.split(":");if(_4bb.length==2||_4bb.length==3){var _4bc=new Date();var _4bd=freedom.utilities.getNumberFromDateStr(_4bb[0]),_4be=freedom.utilities.getNumberFromDateStr(_4bb[1]),_4bf=(_4bb.length==3)?freedom.utilities.getNumberFromDateStr(_4bb[2]):0;if(_4bd>=0&&_4bd<24&&_4be>=0&&_4be<60&&_4bf>=0&&_4bf<60){_4bc.setHours(_4bd,_4be,_4bf);return _4bc;}}}console.log("freedom.utilities.timeStringToDate: invalid input "+_4ba);return null;};freedom.utilities.dateToString=function(_4c0){if(_4c0&&_4c0.getFullYear&&_4c0.getFullYear()!=0){return freedom.utilities.dateToyyyy_MM_ddString(_4c0)+" "+freedom.utilities.dateToTimeString(_4c0);}return "";};freedom.utilities.stringToDate=function(_4c1){if(_4c1&&_4c1!=""){var _4c2=_4c1.split(" ");if(_4c2.length==1||_4c2.length==2){var _4c3=freedom.utilities.yyyy_MM_ddStringToDate(_4c2[0]);if(_4c3!=null){if(_4c2.length==2){var _4c4=freedom.utilities.timeStringToDate(_4c2[1]);if(_4c4!=null){_4c3.setHours(_4c4.getHours(),_4c4.getMinutes(),_4c4.getSeconds());return _4c3;}}else{_4c3.setHour(0,0,0);return _4c3;}}}}console.log("freedom.utilities.stringToDate: invlid input "+_4c1);return null;};freedom.utilities.dateClientToServerFormat=function(_4c5){var d=dojo.date.locale.parse(_4c5,DATE_FORMAT_OPTIONS);var _4c7=freedom.utilities.getNumberForDate(d.getMonth()+1);var _4c8=freedom.utilities.getNumberForDate(d.getDate());return d.getFullYear()+"-"+_4c7+"-"+_4c8;};freedom.utilities.dateServerToClientFormat=function(_4c9){if(_4c9===undefined||_4c9===""){return "";}var _4ca=_4c9.split("-");if(_4ca.length!=3){console.log("invalid date format for "+_4c9);return "";}var d=new Date(_4ca[0],_4ca[1]-1,_4ca[2]);return dojo.date.locale.format(d,DATE_FORMAT_OPTIONS);};freedom.utilities.createAtomJson=function(_4cc,uid,_4ce,_4cf){if(uid===undefined){uid="";}if(_4ce===undefined){_4ce="";}if(_4cf===undefined){_4cf="";}var _4d0={"entry":[{}]};_4d0.entry[0]["#ns"]=freedom.utilities.ATOM_NS;_4d0.entry[0]["@xmlns:a"]="http://www.w3.org/2005/Atom";_4d0.entry[0].title=[{}];_4d0.entry[0].title[0]["#ns"]=freedom.utilities.ATOM_NS;_4d0.entry[0].title[0].value=_4ce;_4d0.entry[0].id=[{}];_4d0.entry[0].id[0]["#ns"]=freedom.utilities.ATOM_NS;_4d0.entry[0].id[0].value=uid;_4d0.entry[0].updated=[{}];_4d0.entry[0].updated[0]["#ns"]=freedom.utilities.ATOM_NS;_4d0.entry[0].updated[0].value=freedom.utilities.getCurrentDate();_4d0.entry[0].author=[{}];_4d0.entry[0].author[0]["#ns"]=freedom.utilities.ATOM_NS;_4d0.entry[0].author[0].name=[{}];_4d0.entry[0].author[0].name[0]["#ns"]=freedom.utilities.ATOM_NS;_4d0.entry[0].author[0].name[0].value=_4cf;_4d0.entry[0].content=[_4cc];_4d0.entry[0].content[0]["@type"]="application/xml";_4d0.entry[0].content[0]["#ns"]=freedom.utilities.ATOM_NS;return _4d0;};freedom.utilities.createAtomXml=function(_4d1,uid,_4d3,_4d4,_4d5){var _4d6=freedom.utilities.createAtomJson(_4d1,uid,_4d3,_4d4);var _4d7=freedom.utilities.jsonToXmlString(_4d6,_4d5);return _4d7;};freedom.utilities.getReportRelativeUrl=function(_4d8){return "WebViewerExample/frameset?__report=report"+_4d8+".rptdesign";};freedom.utilities.getReportPreviewRelativeUrl=function(_4d9){return "WebViewerExample/preview?__report=preview"+_4d9+".rptdesign";};}if(!dojo._hasResource["dojox.data.dom"]){dojo._hasResource["dojox.data.dom"]=true;dojo.provide("dojox.data.dom");dojo.experimental("dojox.data.dom");dojox.data.dom.createDocument=function(str,_4db){var _4dc=dojo.doc;if(!_4db){_4db="text/xml";}if(str&&dojo.trim(str)!==""&&(typeof dojo.global["DOMParser"])!=="undefined"){var _4dd=new DOMParser();return _4dd.parseFromString(str,_4db);}else{if((typeof dojo.global["ActiveXObject"])!=="undefined"){var _4de=["MSXML2","Microsoft","MSXML","MSXML3"];for(var i=0;i<_4de.length;i++){try{var doc=new ActiveXObject(_4de[i]+".XMLDOM");if(str){if(doc){doc.async=false;doc.loadXML(str);return doc;}else{console.log("loadXML didn't work?");}}else{if(doc){return doc;}}}catch(e){}}}else{if((_4dc.implementation)&&(_4dc.implementation.createDocument)){if(str&&dojo.trim(str)!==""){if(_4dc.createElement){var tmp=_4dc.createElement("xml");tmp.innerHTML=str;var _4e2=_4dc.implementation.createDocument("foo","",null);for(var i=0;i<tmp.childNodes.length;i++){_4e2.importNode(tmp.childNodes.item(i),true);}return _4e2;}}else{return _4dc.implementation.createDocument("","",null);}}}}return null;};dojox.data.dom.textContent=function(node,text){if(arguments.length>1){var _4e5=node.ownerDocument||dojo.doc;dojox.data.dom.replaceChildren(node,_4e5.createTextNode(text));return text;}else{if(node.textContent!==undefined){return node.textContent;}var _4e6="";if(node==null){return _4e6;}for(var i=0;i<node.childNodes.length;i++){switch(node.childNodes[i].nodeType){case 1:case 5:_4e6+=dojox.data.dom.textContent(node.childNodes[i]);break;case 3:case 2:case 4:_4e6+=node.childNodes[i].nodeValue;break;default:break;}}return _4e6;}};dojox.data.dom.replaceChildren=function(node,_4e9){var _4ea=[];if(dojo.isIE){for(var i=0;i<node.childNodes.length;i++){_4ea.push(node.childNodes[i]);}}dojox.data.dom.removeChildren(node);for(var i=0;i<_4ea.length;i++){dojo._destroyElement(_4ea[i]);}if(!dojo.isArray(_4e9)){node.appendChild(_4e9);}else{for(var i=0;i<_4e9.length;i++){node.appendChild(_4e9[i]);}}};dojox.data.dom.removeChildren=function(node){var _4ed=node.childNodes.length;while(node.hasChildNodes()){node.removeChild(node.firstChild);}return _4ed;};dojox.data.dom.innerXML=function(node){if(node.innerXML){return node.innerXML;}else{if(node.xml){return node.xml;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(node);}}}};}if(!dojo._hasResource["freedom.comm.communications-requests"]){dojo._hasResource["freedom.comm.communications-requests"]=true;dojo.provide("freedom.comm.communications-requests");dojo.declare("freedom.comm.CommunicationsRequests",null,{constructor:function(_4ef,_4f0,pURL,_4f2,_4f3){this.mHandler=_4ef;this.mOperation=_4f0;this.mURL=pURL;this.mRequestId=_4f2;this.mRetrying=false;this.mReason=false;if(_4f3===undefined){this.mRetriable=true;}else{this.mRetriable=_4f3;}},callbackTryCatch:function(_4f4){try{this[_4f4]();}catch(error){this.fireEvent(freedom.comm.CommunicationsEvent.FAILED,null,false);}},doItCreate:function(){this.mXmlHttpReq.onreadystatechange=dojo.hitch(this,this.callbackTryCatch,"doItCreateCallback");this.mXmlHttpReq.open("POST",this.mURL,true);this.mXmlHttpReq.setRequestHeader("Content-Type","text/plain;charset=UTF-8");this.mXmlHttpReq.setRequestHeader("Accept","text/*, application/xml, "+"application/atom+xml;charset=UTF-8");this.mXmlHttpReq.send(this.mParameters);},doItCreateCallback:function(){if(this.mXmlHttpReq.readyState==4){var _4f5=this.getHttpStatus();var data=null;var _4f7=false;if(freedom.comm.CommunicationsEvent.OK==_4f5){if(this.mXmlHttpReq.responseText){contentLength=this.mXmlHttpReq.getResponseHeader("Content-Length");data=this.mXmlHttpReq.responseText.substr(0,contentLength);_4f7=freedom.comm.CommunicationsEvent.TYPE_BODY;}else{data=this.mXmlHttpReq.getResponseHeader("location");_4f7=freedom.comm.CommunicationsEvent.TYPE_HEADER;}}this.fireEvent(_4f5,data,_4f7);}},doItLogout:function(){this.mXmlHttpReq.onreadystatechange=dojo.hitch(this,this.callbackTryCatch,"doItLogoutCallback");this.mXmlHttpReq.open("POST",this.mURL,true);this.mXmlHttpReq.setRequestHeader("Content-Type","text/plain;charset=UTF-8");this.mXmlHttpReq.setRequestHeader("Accept","text/*, application/xml, "+"application/atom+xml;charset=UTF-8");this.mXmlHttpReq.send("");},doItLogoutCallback:function(){if(this.mXmlHttpReq.readyState==4){var _4f8=this.getHttpStatus();if(freedom.comm.CommunicationsEvent.OK==_4f8){this.mHandler.clearUserInformation();}this.fireEvent(_4f8);}},doItRemove:function(){this.mXmlHttpReq.onreadystatechange=dojo.hitch(this,this.callbackTryCatch,"doItRemoveCallback");this.mXmlHttpReq.open("DELETE",this.mURL,true);this.mXmlHttpReq.setRequestHeader("Content-Type","text/plain;charset=UTF-8");this.mXmlHttpReq.setRequestHeader("Accept","text/*, application/xml, "+"application/atom+xml;charset=UTF-8");this.mXmlHttpReq.send("");},doItRemoveCallback:function(){if(this.mXmlHttpReq.readyState==4){this.fireEvent(this.getHttpStatus());}},doItRetrieve:function(){this.mXmlHttpReq.onreadystatechange=dojo.hitch(this,this.callbackTryCatch,"doItRetrieveCallback");this.mXmlHttpReq.open("GET",this.mURL,true);this.mXmlHttpReq.setRequestHeader("Content-Type","text/plain;charset=UTF-8");this.mXmlHttpReq.setRequestHeader("Accept","text/*, application/xml, "+"application/atom+xmll;charset=UTF-8");this.mXmlHttpReq.send("");},doItRetrieveCallback:function(){if(this.mXmlHttpReq.readyState==4){var _4f9=this.getHttpStatus();var data=null;if(freedom.comm.CommunicationsEvent.OK==_4f9&&this.mXmlHttpReq.responseText){contentLength=this.mXmlHttpReq.getResponseHeader("Content-Length");if(null==contentLength){contentLength=this.mXmlHttpReq.responseText.length;}data=this.mXmlHttpReq.responseText.substr(0,contentLength);}this.fireEvent(_4f9,data);}},doItUpdate:function(){this.mXmlHttpReq.onreadystatechange=dojo.hitch(this,this.callbackTryCatch,"doItUpdateCallback");this.mXmlHttpReq.open("PUT",this.mURL,true);this.mXmlHttpReq.setRequestHeader("Content-Type","text/plain;charset=UTF-8");this.mXmlHttpReq.setRequestHeader("Accept","text/*, application/xml, "+"application/atom+xml;charset=UTF-8");this.mXmlHttpReq.send(this.mParameters);},doItUpdateCallback:function(){if(this.mXmlHttpReq.readyState==4){var _4fb=this.getHttpStatus();var data=null;var _4fd=false;if(freedom.comm.CommunicationsEvent.OK==_4fb&&this.mXmlHttpReq.responseText){contentLength=this.mXmlHttpReq.getResponseHeader("Content-Length");data=this.mXmlHttpReq.responseText.substr(0,contentLength);_4fd=freedom.comm.CommunicationsEvent.TYPE_BODY;}this.fireEvent(_4fb,data,_4fd);}},doItUserInfo:function(){this.mXmlHttpReq.onreadystatechange=dojo.hitch(this,this.callbackTryCatch,"doItUserInfoCallback");this.mXmlHttpReq.open("GET",this.mURL,true);this.mXmlHttpReq.setRequestHeader("Content-Type","text/plain;charset=UTF-8");this.mXmlHttpReq.setRequestHeader("Accept","text/*, application/atom+xml;charset=UTF-8");this.mXmlHttpReq.send("");},doItUserInfoCallback:function(){if(this.mXmlHttpReq.readyState==4){var _4fe=this.getHttpStatus();var data=null;if(freedom.comm.CommunicationsEvent.OK==_4fe&&this.mXmlHttpReq.responseText){contentLength=this.mXmlHttpReq.getResponseHeader("Content-Length");data=this.mXmlHttpReq.responseText.substr(0,contentLength);this.mHandler.setUserInformation(data);}this.fireEvent(_4fe,data);}},doIt:function(){try{this.mXmlHttpReq=this.getXmlHttpRequest();if(this.mXmlHttpReq){switch(this.mOperation){case freedom.comm.CommunicationsHandler.OPERATION_CREATE:this.doItCreate();break;case freedom.comm.CommunicationsHandler.OPERATION_LOGOUT:this.doItLogout();break;case freedom.comm.CommunicationsHandler.OPERATION_REMOVE:this.doItRemove();break;case freedom.comm.CommunicationsHandler.OPERATION_RETRIEVE:this.doItRetrieve();break;case freedom.comm.CommunicationsHandler.OPERATION_UPDATE:this.doItUpdate();break;case freedom.comm.CommunicationsHandler.OPERATION_USER_INFO:this.doItUserInfo();break;default:alert("HELP!");}}else{this.fireEvent(freedom.comm.CommunicationsEvent.FAILED);}}catch(e){this.fireEvent(freedom.comm.CommunicationsEvent.FAILED);}},fireEvent:function(_500,_501,_502){var _503=new freedom.comm.CommunicationsEvent(_500,this.mOperation,this.mRequestId);if(_501!==undefined){_503.setResult(_501,_502!==undefined?_502:freedom.comm.CommunicationsEvent.TYPE_BODY);}_503.setReason(this.mReason);this.mHandler.fireEvent(_503,this);},getHttpStatus:function(){var _504=freedom.comm.CommunicationsEvent.FAILED;try{var _505=this.mXmlHttpReq.status;if(200<=_505&&_505<=299){_504=freedom.comm.CommunicationsEvent.OK;}else{if(this.mRetriable&&503==_505){_504=freedom.comm.CommunicationsEvent.RETRYING;}switch(_505){case 409:this.mReason=freedom.comm.CommunicationsEvent.REASON_CONFLICT;break;default:if(this.mXmlHttpReq.responseText&&"<?xml"==this.mXmlHttpReq.responseText.substr(0,5)){var _506=dojox.data.dom.createDocument(this.mXmlHttpReq.responseText);var _507=freedom.utilities.xmlToJson(_506);if(_507.error&&_507.error[0].message){var _508=[];var _509=_507.error[0].message[0].value;if(_509){for(var i=0,vl=_509.length;i<vl;i++){_508.push(_509[i].value);}}this.mReason={message:FREEDOM.nls.getString(_507.error[0].message[0]["@key"],_508)};if(_507.error[0].action){_508=[];_509=_507.error[0].action[0].value;if(_509){for(var i=0,vl=_509.length;i<vl;i++){_508.push(_509[i].value);}}this.mReason.action=FREEDOM.nls.getString(_507.error[0].action[0]["@key"],_508);}}}}}}catch(e){}return _504;},setParameters:function(_50c){this.mParameters=_50c;},setRetrying:function(_50d){this.mRetrying=_50d;},getXmlHttpRequest:function(){var _50e=false;try{_50e=new XMLHttpRequest();}catch(trymicrosoft){try{_50e=new ActiveXObject("Msxml2.XMLHTTP");}catch(othermicrosoft){try{_50e=new ActiveXObject("Microsoft.XMLHTTP");}catch(failed){_50e=false;}}}if(_50e){try{_50e.overrideMimeType("text");}catch(e){}}return _50e;}});}if(!dojo._hasResource["freedom.freedom_statics"]){dojo._hasResource["freedom.freedom_statics"]=true;dojo.provide("freedom.freedom_statics");FREEDOM.MAX_INT=Math.pow(2,31)-1;FREEDOM_DND_ELEMENT="freedomDndElement";DEFAULT_HINT_VALUE="Click to edit hint...";ACTIVITY_SEARCH_URL=dojo.moduleUrl("freedom","../run/service/ActivitySearchService").toString();APPLICATION_LIST_URL=dojo.moduleUrl("freedom","../run/service/ApplicationListService").toString();APPLICATION_STATUS_URL=dojo.moduleUrl("freedom","../run/service/ApplicationStatusService").toString();CURRENT_AUTHENTICATED_USER=dojo.moduleUrl("freedom","../run/service/CurrentAuthenticatedUser").toString();DATA_ACCESS_ROOT_URL=dojo.moduleUrl("freedom","../run/service/DataAccessService/").toString();RESOURCE_ACCESS_ROOT_URL=dojo.moduleUrl("freedom","../resources/").toString();DERIVED_APPLICATION_URL=dojo.moduleUrl("freedom","../run/service/DerivedApplicationResourceService").toString();EXCEL_RESOURCE_URL=dojo.moduleUrl("freedom","../run/service/ExcelTableResourceService/").toString();IMPORT_VALUES_URL=dojo.moduleUrl("freedom","../run/service/ImportValuesService").toString();LOGOUT_URL=dojo.moduleUrl("freedom","../run/service/logout").toString();PUBLISHER_URL=dojo.moduleUrl("freedom","../run/service/ApplicationPublisherService/").toString();STATISTICS_ROOT_URL=dojo.moduleUrl("freedom","../run/service/DataStatisticsService/").toString();SUGGESTED_APPLICATION_URL=dojo.moduleUrl("freedom","../run/service/ExcelAnalysisResourceService/").toString();TEMPORARY_STORAGE_URL=dojo.moduleUrl("freedom","../run/service/TemporaryStorageService").toString();TEMPORARY_STORAGE_DOWNLOAD_URL=dojo.moduleUrl("freedom","../freedom09/tempUploadFolder/").toString();REPORT_SERVICE_URL=dojo.moduleUrl("freedom","../run/service/ReportService").toString();REPORT_DATA_SOURCE_SERVICE_URL=dojo.moduleUrl("freedom","../run/service/ReportDataSourceService").toString();REPORT_LIST_URL=dojo.moduleUrl("freedom","../run/service/ReportListService").toString();REPORT_STATUS_URL=dojo.moduleUrl("freedom","../run/service/ReportStatusService").toString();STORAGE_SERVICE_URL=dojo.moduleUrl("freedom","../run/service/StorageService").toString();TAG_DISCOVERY_URL=dojo.moduleUrl("freedom","../run/service/TagDiscoveryService").toString();BLANK_PAGE_LOCATION=dojo.moduleUrl("freedom","ide/blank.html").toString();ADD_ICON_LOCATION=dojo.moduleUrl("freedom","images/add.gif").toString();DELETE_ICON_LOCATION=dojo.moduleUrl("freedom","images/bpm0/icons/elcl16/deletee.gif").toString();AGGREGATE_LIST_ICON_LOCATION=dojo.moduleUrl("freedom","images/aggregate-list.gif").toString();AGGREGATE_ICON_LOCATION=dojo.moduleUrl("freedom","images/aggregate.gif").toString();DOWNLOAD_ICON_LOCATION=dojo.moduleUrl("freedom","images/download.gif").toString();COLLAPSE_ICON_LOCATION=dojo.moduleUrl("freedom","images/collapse-section.gif").toString();EXPAND_ICON_LOCATION=dojo.moduleUrl("freedom","images/expand-section.gif").toString();OPTIONS_ICON_LOCATION=dojo.moduleUrl("freedom","images/bpm0/icons/elcl16/custom.gif").toString();DUPLICATE_ICON_LOCATION=dojo.moduleUrl("freedom","images/bpm0/icons/elcl16/duplicate.gif").toString();DRUGNDROP_ICON_LOCATION=dojo.moduleUrl("freedom","images/bpm0/icons/elcl16/move.gif").toString();FORM_REF_LIST_ICON_LOCATION=dojo.moduleUrl("freedom","images/form-reference-list.gif").toString();SAVE_ICON_LOCATION=dojo.moduleUrl("freedom","images/save.gif").toString();CANCEL_ICON_LOCATION=dojo.moduleUrl("freedom","images/cancel.gif").toString();INNER_FORM_ICON_LOCATION=dojo.moduleUrl("freedom","images/inner-form.gif").toString();MAIN_FORM_ICON_LOCATION=dojo.moduleUrl("freedom","images/main-form.gif").toString();EVENT_NOT_USED_ICON_LOCATION=dojo.moduleUrl("freedom","images/not-used-event.gif").toString();EVENT_USED_ICON_LOCATION=dojo.moduleUrl("freedom","images/used-event.gif").toString();EDIT_SMALL_ICON_LOCATION=dojo.moduleUrl("freedom","images/edit_small.gif").toString();EDIT_ICON_LOCATION=dojo.moduleUrl("freedom","images/bpm0/edit.gif").toString();PARSING_MODE_FULL="full";PARSING_MODE_CHART_ONLY="chart_only";REPORT_TARGET_RUN="run";REPORT_TARGET_PREVIEW="preview";MAX_ID_LENGTH=26;FREEDOM_BASE_PROPERTIES="baseProperties";FREEDOM_ADVANCED_PROPERTIES="advancedProperties";FREEDOM_EXTENDED_PROPERTIES="extendedProperties";FREEDOM_EVENTS_PROPERTIES="eventsProperties";FREEDOM_WORKFLOW_PROPERTIES="workflowProperties";FREEDOM_ACTIVITY_PARAMETER_PROPERTIES="activityParameterProperties";DEFAULT_PROPERTIES_PACKAGE="freedom.widget.ide.form.properties.";FREEDOM_PROPERTY_SHORT_NAME=DEFAULT_PROPERTIES_PACKAGE+"FieldShortNameProperty";FREEDOM_PROPERTY_FORM_SHORT_NAME=DEFAULT_PROPERTIES_PACKAGE+"FormShortNameProperty";FREEDOM_PROPERTY_TITLE=DEFAULT_PROPERTIES_PACKAGE+"TitleProperty";FREEDOM_PROPERTY_REQUIRED=DEFAULT_PROPERTIES_PACKAGE+"RequiredProperty";FREEDOM_PROPERTY_UNIQUE=DEFAULT_PROPERTIES_PACKAGE+"UniqueProperty";FREEDOM_PROPERTY_PRESENTED_IN_OVERVIEW=DEFAULT_PROPERTIES_PACKAGE+"PresentedInOverviewProperty";FREEDOM_PROPERTY_ADDITIONAL_INFORMATION=DEFAULT_PROPERTIES_PACKAGE+"AdditionalInformationProperty";FREEDOM_PROPERTY_LENGTH=DEFAULT_PROPERTIES_PACKAGE+"LengthProperty";FREEDOM_PROPERTY_NUMBER_OF_CHARACTERS=DEFAULT_PROPERTIES_PACKAGE+"NumOfCharsProperty";FREEDOM_PROPERTY_NUMBER_OF_LINES=DEFAULT_PROPERTIES_PACKAGE+"NumOfLinesProperty";FREEDOM_PROPERTY_NUMBER_TYPE=DEFAULT_PROPERTIES_PACKAGE+"NumberTypeProperty";FREEDOM_PROPERTY_NUMBER_RANGE=DEFAULT_PROPERTIES_PACKAGE+"NumberRangeProperty";FREEDOM_PROPERTY_SHOW_WITH_TAX=DEFAULT_PROPERTIES_PACKAGE+"ShowWithTaxProperty";FREEDOM_PROPERTY_CURRENCY_RANGE=DEFAULT_PROPERTIES_PACKAGE+"CurrencyRangeProperty";FREEDOM_PROPERTY_TIME_RANGE=DEFAULT_PROPERTIES_PACKAGE+"TimeRangeProperty";FREEDOM_PROPERTY_DATE_RANGE=DEFAULT_PROPERTIES_PACKAGE+"DateRangeProperty";FREEDOM_PROPERTY_COMBO_OPTIONS=DEFAULT_PROPERTIES_PACKAGE+"ComboOptionsProperty";FREEDOM_PROPERTY_SELECTION_GROUP_OPTIONS=DEFAULT_PROPERTIES_PACKAGE+"SelectionGroupOptionsProperty";FREEDOM_PROPERTY_USE_BACKGROUND_PROPERTY=DEFAULT_PROPERTIES_PACKAGE+"UseBackgroundProperty";FREEDOM_PROPERTY_USE_BORDER_PROPERTY=DEFAULT_PROPERTIES_PACKAGE+"UseBorderProperty";FREEDOM_PROPERTY_ONE_ITEM_PER_USER=DEFAULT_PROPERTIES_PACKAGE+"OneItemPerUserProperty";FREEDOM_PROPERTY_USE_COMMENTS=DEFAULT_PROPERTIES_PACKAGE+"UseCommentsProperty";FREEDOM_PROPERTY_USE_CONFIRM_PASSWORD=DEFAULT_PROPERTIES_PACKAGE+"UseConfirmPasswordProperty";FREEDOM_PROPERTY_USE_TAGS=DEFAULT_PROPERTIES_PACKAGE+"UseTagsProperty";FREEDOM_PROPERTY_CONFIRMATION_TITLE=DEFAULT_PROPERTIES_PACKAGE+"ConfirmationTitleProperty";FREEDOM_PROPERTY_ICON=DEFAULT_PROPERTIES_PACKAGE+"IconProperty";FREEDOM_PROPERTY_SELECTION_RANGE=DEFAULT_PROPERTIES_PACKAGE+"MultiSelectionRangeProperty";FREEDOM_PROPERTY_FORM_REFERENCE_TYPE=DEFAULT_PROPERTIES_PACKAGE+"FormReferenceTypeProperty";FREEDOM_PROPERTY_INNER_FORM_TYPE=DEFAULT_PROPERTIES_PACKAGE+"InnerFormTypeProperty";FREEDOM_PROPERTY_HINT=DEFAULT_PROPERTIES_PACKAGE+"HintProperty";FREEDOM_PROPERTY_EVENT_HANDLER=DEFAULT_PROPERTIES_PACKAGE+"EventHandlerProperty";FREEDOM_PROPERTY_DESCRIPTION=DEFAULT_PROPERTIES_PACKAGE+"DescriptionProperty";FREEDOM_PROPERTY_POST_SUBMIT_ACTIVITY=DEFAULT_PROPERTIES_PACKAGE+"PostSubmitActivityProperty";FREEDOM_PROPERTY_LABEL_PLACEMENT=DEFAULT_PROPERTIES_PACKAGE+"LabelPlacementProperty";FREEDOM_PROPERTY_NAME=DEFAULT_PROPERTIES_PACKAGE+"NameProperty";FREEDOM_PROPERTY_LABEL=DEFAULT_PROPERTIES_PACKAGE+"LabelProperty";FREEDOM_PROPERTY_MAX_LENGTH=DEFAULT_PROPERTIES_PACKAGE+"MaxLengthProperty";FREEDOM_PROPERTY_STRING_FORMAT=DEFAULT_PROPERTIES_PACKAGE+"StringFormatProperty";FREEDOM_PROPERTY_READONLY=DEFAULT_PROPERTIES_PACKAGE+"ReadOnlyProperty";FREEDOM_PROPERTY_PRIMARY_KEY=DEFAULT_PROPERTIES_PACKAGE+"PrimaryKeyProperty";FREEDOM_PROPERTY_AUTO_CREATE=DEFAULT_PROPERTIES_PACKAGE+"AutoCreateProperty";FREEDOM_PROPERTY_AUTO_UPDATE=DEFAULT_PROPERTIES_PACKAGE+"AutoUpdateProperty";FREEDOM_PROPERTY_MAX_DIGITS=DEFAULT_PROPERTIES_PACKAGE+"MaxDigitsProperty";FREEDOM_PROPERTY_DECIMAL_PLACES=DEFAULT_PROPERTIES_PACKAGE+"DecimalPlacesProperty";FREEDOM_PROPERTY_TAB_LIST=DEFAULT_PROPERTIES_PACKAGE+"TabListProperty";FREEDOM_PROPERTY_DIRECTION=DEFAULT_PROPERTIES_PACKAGE+"DirectionProperty";FREEDOM_PROPERTY_FORM_LAYOUT=DEFAULT_PROPERTIES_PACKAGE+"FormLayoutProperty";FREEDOM_PROPERTY_FIELD_LAYOUT=DEFAULT_PROPERTIES_PACKAGE+"FieldLayoutProperty";FREEDOM_PROPERTY_IMAGE=DEFAULT_PROPERTIES_PACKAGE+"ImageProperty";FREEDOM_PROPERTY_IMAGE_SIZE=DEFAULT_PROPERTIES_PACKAGE+"ImageSizeProperty";FREEDOM_PROPERTY_SHOWN=DEFAULT_PROPERTIES_PACKAGE+"ShownProperty";FREEDOM_PROPERTY_EDITABLE=DEFAULT_PROPERTIES_PACKAGE+"EditableProperty";FREEDOM_PROPERTY_ACTIVITY_PARAMETER=DEFAULT_PROPERTIES_PACKAGE+"ActivityParameterProperty";CONFIRMATION_TITLE="confirmationTitle";BOOLEAN_VALUE="booleanValue";LENGTH_PROPERTY_SHORT="short";LENGTH_PROPERTY_MEDIUM="medium";LENGTH_PROPERTY_LONG="long";LENGTH_PROPERTY="LengthPropertyKey";FREEDOM.DIRECTION_PROPERTY_VERTICAL="vertical";FREEDOM.DIRECTION_PROPERTY_HORIZONTAL="horizontal";FREEDOM.DIRECTION_PROPERTY="DirectionPropertyKey";FREEDOM.LAYOUT_TYPE_PROPERTY="LayoutTypePropertyKey";FREEDOM.LAYOUT_PROPERTY_COLUMNS="columns";FREEDOM.LAYOUT_PROPERTY_I="I";FREEDOM.LAYOUT_PROPERTY_ONE_COLUMN="oneColumn";FREEDOM.LAYOUT_PROPERTY_REVERSE_T="reverseT";FREEDOM.LAYOUT_PROPERTY_T="T";FREEDOM.IMAGE_WIDTH_KEY="ImageWidthKey";FREEDOM.IMAGE_HEIGHT_KEY="ImageHeightKey";FREEDOM.IMAGE_URL_KEY="ImageUrlKey";TYPE_PROPERTY_TABLE="table";TYPE_PROPERTY_SINGLE_ENTRY="single entry";INNER_FORM_TYPE_PROPERTY="InnerFormTypePropertyKey";FORM_REFERENCE_TYPE_PROPERTY="FormReferenceTypePropertyKey";POST_SUBMIT_ACTIVITY_TYPE_PROPERTY="PostSubmitTypePropertyKey";POST_SUBMIT_ACTIVITY_KEEP="keep";POST_SUBMIT_ACTIVITY_CLEAR="clear";LABEL_PLACEMENT_TYPE_PROPERTY="LabelPlacementTypePropertyKey";LABEL_PLACEMENT_TOP="top";LABEL_PLACEMENT_LEFT="left";LABEL_PLACEMENT_RIGHT="right";TYPE_PROPERTY_INTEGER="integer";TYPE_PROPERTY_DECIMAL="decimal";NUMER_TYPE_PROPERTY="NumberTypePropertyKey";NUMBER_INPUT_PROPERTY="NumberInputPropertyKey";ICON_TYPES_LOCATIONS={exclamation:dojo.moduleUrl("freedom","images/exclamation.png"),infoGreen:dojo.moduleUrl("freedom","images/green-icon-info-32x32.gif"),infoPink:dojo.moduleUrl("freedom","images/human-icon-info-32x32.gif"),infoBlue:dojo.moduleUrl("freedom","images/icon-info-32x32.gif"),warning:dojo.moduleUrl("freedom","images/alert-32x32.gif"),questionBrown:dojo.moduleUrl("freedom","images/question-brown-32x32.gif"),questionBlue:dojo.moduleUrl("freedom","images/icon-help-32x32.gif")};ICON_PROPERTY="icon";ICON_TYPE_EXCLAMATION="exclamation";ICON_TYPE_INFO_GREEN="infoGreen";ICON_TYPE_INFO_PINK="infoPink";ICON_TYPE_INFO_BLUE="infoBlue";ICON_TYPE_WARNING="warning";ICON_TYPE_QUESTION_BROWN="questionBrown";ICON_TYPE_QUESTION_BROWN="questionBlue";COUNTRIES_LIST="countries.js";US_STATES_LIST="usStates.js";MONTHS_LIST="months.js";SERVICE_URL="_url_";SINGLE_SELECTION_DEFAULT_VALUE="defaults";PREDEFINED_LIST="predefinedList";FORM_REFERENCE="formReference";FORM_FIELD="formField";COMBO_OPTIONS_TYPE_USER_DEFINED="user_defined";COMBO_OPTIONS_TYPE_PREDEFINED="predefined";COMBO_OPTIONS_TYPE_SERVICE="service";COMBO_OPTIONS_TYPE_FORM_REFERENCE="form_reference";RANGE_PROPERTY_MAX="max";RANGE_PROPERTY_MIN="min";UNBOUNDED_LABEL="Unbounded";USING_TAX="usingTax";USING_TAX_TRUE="usingTaxTrue";USING_TAX_FALSE="usingTaxFalse";TAXING_POLICY="policy";TAX_VALUE="taxValue";ADD_PERCENTAGE_POLICY="Add percentage";DEDUCT_PERCENTAGE_POLICY="Deduct percentage";ADD_FIXED_VALUE_POLICY="Add fixed value";DEDUCT_FIXED_VALUE_POLICY="Deduct fixed value";SINGLE_SELECTION="single";MULTI_SELECTION="multi";SUBMIT_ACTION_TYPE="Submit";CANCEL_ACTION_TYPE="Cancel";DBLCLICK_LIMIT=300;BO_MENU_CATEGORY="Business Objects";FORMS_MENU_CATEGORY="Forms";VIEWS_MENU_CATEGORY="Views";WORKFLOW_NOTIFICATION_TARGET_FIXED="fixed";WORKFLOW_NOTIFICATION_TARGET_FIELD="field";WORKFLOW_NOTIFICATION_TARGET_FIELD_PREFIX="field.";FREEDOM.DS_FILTER_NAME="DS_FILTER";FREEDOM.COMBO_FILTER_NAME="COMBO_FILTER";FREEDOM.REF_LIST_FILTER_NAME="REF_LIST_FILTER";_ON_SHOW_DESCRIPTION="This event is invoked after the field is presented (either with the entire form or just this field)";_ON_HIDE_DESCRIPTION="This event is invoked after the field is hidden (either with the entire form or just this field)";_ON_CLICK_DESCRIPTION="This event is invoked whenever the user clicks on the field";_ON_MOUSE_OVER_DESCRIPTION="This event is invoked whenever the pointer is over the field";_ON_MOUSE_OUT_DESCRIPTION="This event is invoked whenever the pointer leaves the field's area";_ON_CHANGE_DESCRIPTION="This event is invoked when the value of the field gets changed, either programmatically (e.g, after loading) or manually by the user";_ON_APP_START_DESCRIPTION="This event is invoked when the application is started";UI_CLIENT_SIDE_EVENTS={onClick:_ON_CLICK_DESCRIPTION,onMouseOver:_ON_MOUSE_OVER_DESCRIPTION,onMouseOut:_ON_MOUSE_OUT_DESCRIPTION,onShow:_ON_SHOW_DESCRIPTION,onHide:_ON_HIDE_DESCRIPTION};BASE_CLIENT_SIDE_FIELD_EVENTS=dojo.delegate(UI_CLIENT_SIDE_EVENTS);BASE_CLIENT_SIDE_FIELD_EVENTS.onChange=_ON_CHANGE_DESCRIPTION;COMPLETE_CLIENT_SIDE_FIELD_EVENTS=dojo.delegate(BASE_CLIENT_SIDE_FIELD_EVENTS);COMPLETE_CLIENT_SIDE_FIELD_EVENTS.onValid="This event is invoked when the field's value becomes valid after it was invalid";COMPLETE_CLIENT_SIDE_FIELD_EVENTS.onInvalid="This event is invoked when the field's value becomes invalid after it was valid";BASE_FIELD_EVENTS={categories:[{name:"CLIENT_SIDE",events:BASE_CLIENT_SIDE_FIELD_EVENTS}]};FIELD_EVENTS={categories:[{name:"CLIENT_SIDE",events:COMPLETE_CLIENT_SIDE_FIELD_EVENTS}]};SECTION_CLIENT_SIDE_EVENTS=dojo.delegate(UI_CLIENT_SIDE_EVENTS);SECTION_CLIENT_SIDE_EVENTS.onExpand="This event is invoked when the section expands";SECTION_CLIENT_SIDE_EVENTS.onCollapse="This event is invoked when the section collapses";SECTION_EVENTS={categories:[{name:"CLIENT_SIDE",events:SECTION_CLIENT_SIDE_EVENTS}]};TAB_FOLDER_CLIENT_SIDE_EVENTS=dojo.delegate(UI_CLIENT_SIDE_EVENTS);TAB_FOLDER_CLIENT_SIDE_EVENTS.onTabSelected="This event is invoked when a tab is selected";TAB_FOLDER_EVENTS={categories:[{name:"CLIENT_SIDE",events:TAB_FOLDER_CLIENT_SIDE_EVENTS}]};CUSTOM_TYPE_CLIENT_SIDE_EVENTS=dojo.delegate(BASE_CLIENT_SIDE_FIELD_EVENTS);CUSTOM_TYPE_CLIENT_SIDE_EVENTS.onAdd="This event is invoked after an entry is added to the custom type's instance";CUSTOM_TYPE_CLIENT_SIDE_EVENTS.onRemove="This event is invoked after an entry is removed from the custom type's instance";CUSTOM_TYPE_CLIENT_SIDE_EVENTS.onEdit="This event is invoked after an entry is edited in the custom type's instance";CUSTOM_TYPE_EVENTS={categories:[{name:"CLIENT_SIDE",events:CUSTOM_TYPE_CLIENT_SIDE_EVENTS}]};FORM_CLIENT_SIDE_EVENTS_CATEGORY={name:"CLIENT_SIDE",events:{onCreate:"This event is invoked after the form's widgets are created, and before any data is loaded onto the form",onLoad:"This event is invoked after the form's data is loaded onto the form, and before it is presented",onShow:"This event is invoked after the form is presented",onHide:"This event is invoked after the form becomes hidden",beforeSave:"This event is invoked before the form is saved",afterSave:"This event is invoked after the form is saved",validateButtonPressed:"This event is invoked when a button is pressed, gets as parameter the button's title and returns true to proceed with the button's action",onDestruct:"This event is invoked after the form's data is unloaded, after it became hidden"}};TOP_LEVEL_FORM_SERVER_SIDE_EVENTS_CATEGORY={name:"SERVER_SIDE",events:{requestBegin:"This event is invoked when the request begins to be processed",secure:"This event is invoked after the security check is completed",log:"This event is invoked upon writing to the log",requestEnd:"This event is invoked when the request processing ends"}};BASE_FORM_EVENTS={categories:[FORM_CLIENT_SIDE_EVENTS_CATEGORY]};FORM_EVENTS={categories:[FORM_CLIENT_SIDE_EVENTS_CATEGORY,TOP_LEVEL_FORM_SERVER_SIDE_EVENTS_CATEGORY]};BASE_CLIENT_SIDE_FIELD_EVENTS={onClick:_ON_CLICK_DESCRIPTION,onMouseOver:_ON_MOUSE_OVER_DESCRIPTION,onMouseOut:_ON_MOUSE_OUT_DESCRIPTION,onChange:_ON_CHANGE_DESCRIPTION,onShow:_ON_SHOW_DESCRIPTION,onHide:_ON_HIDE_DESCRIPTION};FORM_REFERENCE_CLIENT_SIDE_FIELD_EVENTS=dojo.delegate(COMPLETE_CLIENT_SIDE_FIELD_EVENTS);FORM_REFERENCE_CLIENT_SIDE_FIELD_EVENTS.onAdd="This event is invoked when a new reference is added to the form reference list";FORM_REFERENCE_CLIENT_SIDE_FIELD_EVENTS.onRemove="This event is invoked when a new reference is removed from the form reference list";FORM_REFERENCE_FIELD_EVENTS={categories:[{name:"CLIENT_SIDE",events:FORM_REFERENCE_CLIENT_SIDE_FIELD_EVENTS}]};DROP_DOWM_FIELD_CLIENT_SIDE_EVENTS=dojo.delegate(COMPLETE_CLIENT_SIDE_FIELD_EVENTS);DROP_DOWM_FIELD_CLIENT_SIDE_EVENTS.beforeOptionsUpdate="This function is invoked before a drop down widget is filled with form references. Input parameter pBOArray is an array of Business Objects, the array could be reordered or filtered, new elements are not allowed";DROP_DOWM_FIELD_EVENTS={categories:[{name:"CLIENT_SIDE",events:DROP_DOWM_FIELD_CLIENT_SIDE_EVENTS}]};QBE_NO_ROWS=-1;QBE_FIELD_UNIQUEID_ID="id";QBE_FIELD_TYPE_ID="type";QBE_FIELD_SHORT_NAME="shortName";QBE_FIELD_NAME_ROW=0;QBE_FIELD_NAME_ROW_ID="fieldName";QBE_FIELD_NAME_ROW_DEFAULT="";QBE_FIELD_NAME_ROW_TITLE="Field Name";QBE_FIELD_NAME_ROW_EDITOR="freedom.widget.ide.report.TextCellEditor";QBE_FIELD_NAME_ROW_EDITOR_WITH_OPERATIONS="freedom.widget.ide.report.FieldCellEditor";QBE_SHOW_ROW=1;QBE_SHOW_ROW_ID="presented";QBE_SHOW_ROW_DEFAULT=true;QBE_SHOW_ROW_TITLE="Show";QBE_SHOW_ROW_EDITOR="freedom.widget.ide.report.CheckBoxCellEditor";QBE_TITLE_ROW=2;QBE_TITLE_ROW_ID="title";QBE_TITLE_ROW_DEFAULT="";QBE_TITLE_ROW_TITLE="Title";QBE_TITLE_ROW_EDITOR="freedom.widget.ide.report.FieldTitleCellEditor";QBE_FILTER_ROW=3;QBE_FILTER_ROW_ID="filter";QBE_FILTER_ROW_DEFAULT=undefined;QBE_FILTER_ROW_TITLE="Filtering";QBE_FILTER_ROW_EDITOR_MAP={};QBE_SORT_ROW=4;QBE_SORT_ROW_ID="sorting";QBE_SORT_NONE_IMG=dojo.moduleUrl("freedom","images/nosorting.gif");QBE_SORT_DESC_IMG=dojo.moduleUrl("freedom","images/descending.gif");QBE_SORT_ASC_IMG=dojo.moduleUrl("freedom","images/ascending.gif");QBE_SORT_NONE_XML="none";QBE_SORT_DESC_XML="descending";QBE_SORT_ASC_XML="ascending";QBE_SORT_ROW_DEFAULT=QBE_SORT_NONE_XML;QBE_SORT_ROW_TITLE="Sort by";QBE_SORT_ROW_EDITOR="freedom.widget.ide.report.SortingCellEditor";SORT_TO_STRING_KEY={};SORT_NEXT_STATE={};QBE_GROUP_ROW=5;QBE_GROUP_ROW_ID="grouping";QBE_NO_GROUPING=1;QBE_GROUPBY=2;QBE_GROUP_FUNC=3;QBE_GROUP_ROW_DEFAULT={groupby:QBE_NO_GROUPING,grpFunc:""};QBE_GROUP_ROW_WITH_GROUPING_DEFAULT={groupby:QBE_GROUP_FUNC,grpFunc:""};QBE_GROUP_ROW_DEFAULT_F=function(_50f){return (_50f.hasGrouping())?QBE_GROUP_ROW_WITH_GROUPING_DEFAULT:QBE_GROUP_ROW_DEFAULT;};QBE_GROUP_ROW_TITLE="Group by";QBE_GROUP_ROW_EDITOR="freedom.widget.ide.report.GroupingCellEditor";GROUPING_CELL_SQL_MODE="sql";GROUPING_CELL_RPT_MODE="rpt";QBE_HAVING_ROW=6;QBE_HAVING_ROW_ID="having";QBE_HAVING_ROW_DEFAULT="";QBE_HAVING_ROW_TITLE="Having";QBE_HAVING_ROW_EDITOR="freedom.widget.ide.report.TextBoxCellEditor";QBE_ROW_IDS=[QBE_FIELD_NAME_ROW_ID,QBE_SHOW_ROW_ID,QBE_TITLE_ROW_ID,QBE_FILTER_ROW_ID,QBE_SORT_ROW_ID,QBE_GROUP_ROW_ID,QBE_HAVING_ROW_ID];QBE_ROW_DEFAULTS=[QBE_FIELD_NAME_ROW_DEFAULT,QBE_SHOW_ROW_DEFAULT,QBE_TITLE_ROW_DEFAULT,QBE_FILTER_ROW_DEFAULT,QBE_SORT_ROW_DEFAULT,QBE_GROUP_ROW_DEFAULT_F,QBE_HAVING_ROW_DEFAULT];LAYOUT_SIMPLE_REPORT="simple";LAYOUT_GROUPED_REPORT="grouped";LAYOUT_SUMMARIZED_REPORT="summarized";SIMPLE_REPORT_DESCRIPTION="Report with flat table of values, with support for selection criteria and values sorting";GROUPED_REPORT_DESCRIPTION="Report where values are grouped according to a column, with support for selection criteria and values sorting";SUMMARIZED_REPORT_DESCRIPTION="Report with table of summarized values where values are grouped according to a column(s), with support for selection criteria and values sorting";SIMPLE_REPORT_IMG=dojo.moduleUrl("freedom","images/simple_report.gif");GROUPED_REPORT_IMG=dojo.moduleUrl("freedom","images/grouped_report.gif");SUMMARIZED_REPORT_IMG=dojo.moduleUrl("freedom","images/summarized_report.gif");REPORT_FIELD_TYPE_TO_PALETTE_IMG={};REPORT_CHART_BARS="bars";REPORT_CHART_PIE="pie";REPORT_CHART_DEFAULT=REPORT_CHART_BARS;QBE_COLUMN_DELETE_EVENT="qbeTableDeleteColumn";REPORT_REQ_ID_PREFIX="report-";REPORT_PREVIEW_REQ_ID_PREFIX="abc-preview-";REPORT_DS_REQ_ID_PREFIX="abc-ds-";FILTER_EQUALS_QUERY="=";FILTER_NEQ_QUERY="!=";FILTER_GT_QUERY=">";FILTER_LT_QUERY="<";FILTER_STARTSW_QUERY="StartsWith";FILTER_ENDSW_QUERY="EndsWith";FILTER_CONTAINS_QUERY="Contains";NUMERIC_FILTER_FUNC=[FILTER_EQUALS_QUERY,FILTER_NEQ_QUERY,FILTER_GT_QUERY,FILTER_LT_QUERY];STRING_FILTER_FUNC=[FILTER_EQUALS_QUERY,FILTER_LT_QUERY,FILTER_GT_QUERY,FILTER_STARTSW_QUERY,FILTER_CONTAINS_QUERY,FILTER_ENDSW_QUERY];DATE_FILTER_FUNC=[FILTER_EQUALS_QUERY,FILTER_NEQ_QUERY,FILTER_GT_QUERY,FILTER_LT_QUERY];FILTER_FUNC_PER_TYPE={};STRING_FILTER_FUNC_TO_STRING_KEY={};NUMERIC_FILTER_FUNC_TO_STRING_KEY={};DATE_FILTER_FUNC_TO_STRING_KEY={};DATE_FORMAT_OPTIONS={"selector":"date","formatLength":"short"};GROUPING_AVG_XML="Average";GROUPING_MIN_XML="Minimum";GROUPING_MAX_XML="Maximum";GROUPING_SUM_XML="Sum";GROUPING_FIRST_XML="First";GROUPING_LAST_XML="Last";GROUPING_COUNT_XML="Count";GROUPING_AVG_TEXT="Average";GROUPING_MIN_TEXT="Minimum";GROUPING_MAX_TEXT="Maximum";GROUPING_SUM_TEXT="Sum";GROUPING_FIRST_TEXT="First";GROUPING_LAST_TEXT="Last";GROUPING_COUNT_TEXT="Count";REPORT_GROUPING_FUNCTIONS={};SQL_NUMBER_GROUPING_FUNCTIONS={};SQL_STRING_GROUPING_FUNCTIONS={};SQL_DATE_GROUPING_FUNCTIONS={};TYPE_INTEGER="integer";TYPE_STRING="string";TYPE_DATE="date";NUMERIC_TYPES=[TYPE_INTEGER];CALC_FIELD_TYPE="calc_field";dojo.provide("freedom.widget.solution.environment.search.advanced_search_statics");SEARCH_EQUALS_QUERY="equals";SEARCH_NEQ_QUERY="notequals";SEARCH_GT_QUERY="gt";SEARCH_GTE_QUERY="gte";SEARCH_LT_QUERY="lt";SEARCH_LTE_QUERY="lte";SEARCH_STARTSW_QUERY="startswith";SEARCH_ENDSW_QUERY="endswith";SEARCH_CONTAINS_QUERY="contains";SEARCH_YEAR_EQUAL="year";SEARCH_MONTH_EQUAL="month";SEARCH_DAY_EQUAL="day";SEARCH_AFTER="after";SEARCH_BEFORE="before";SEARCH_BETWEEN="between";SEARCH_TYPE_ADDRESS="Address";SEARCH_TYPE_AGGREGATION="Aggregation";SEARCH_TYPE_AGGREGATION_LIST="AggregationList";SEARCH_TYPE_BOOLEAN="Boolean";SEARCH_TYPE_CALCULATED="Calculated";SEARCH_TYPE_CURRENCY="Currency";SEARCH_TYPE_DATE="FreedomDate";SEARCH_TYPE_EMAIL_ADDRESS="EmailAddress";SEARCH_TYPE_ENUM="Enum";SEARCH_TYPE_NUMBER="FreedomNumber";SEARCH_TYPE_PASSWORD="Password";SEARCH_TYPE_PERSON_NAME="PersonName";SEARCH_TYPE_PHONE_NUMBER="PhoneNumber";SEARCH_TYPE_PROCESSING_INSTRUCTION="ProcessingInstruction";SEARCH_TYPE_SELECT_ONE="SelectOne";SEARCH_TYPE_SELECT_MANY="SelectMany";SEARCH_TYPE_TEXT="FreedomTextArea";SEARCH_TYPE_TEXT_FIELD="FreedomText";SEARCH_TYPE_TIME="FreedomTime";SEARCH_TYPE_WEBLINK="WebLink";NUMERIC_SEARCH_FUNC=[SEARCH_EQUALS_QUERY,SEARCH_NEQ_QUERY,SEARCH_GT_QUERY,SEARCH_LT_QUERY,SEARCH_GTE_QUERY,SEARCH_LTE_QUERY];STRING_SEARCH_FUNC=[SEARCH_EQUALS_QUERY,SEARCH_STARTSW_QUERY,SEARCH_CONTAINS_QUERY,SEARCH_ENDSW_QUERY];DATE_SEARCH_FUNC=[SEARCH_YEAR_EQUAL,SEARCH_MONTH_EQUAL,SEARCH_DAY_EQUAL,SEARCH_AFTER,SEARCH_BEFORE,SEARCH_BETWEEN];TIME_SEARCH_FUNC=[SEARCH_AFTER,SEARCH_BEFORE,SEARCH_BETWEEN];SEARCH_FUNC_PER_TYPE={};SEARCH_FUNC_PER_TYPE[SEARCH_TYPE_NUMBER]=NUMERIC_SEARCH_FUNC;SEARCH_FUNC_PER_TYPE[SEARCH_TYPE_TEXT_FIELD]=STRING_SEARCH_FUNC;SEARCH_FUNC_PER_TYPE[SEARCH_TYPE_TEXT]=STRING_SEARCH_FUNC;SEARCH_FUNC_PER_TYPE[SEARCH_TYPE_DATE]=DATE_SEARCH_FUNC;SEARCH_FUNC_PER_TYPE[SEARCH_TYPE_TIME]=TIME_SEARCH_FUNC;STRING_SEARCH_FUNC_TO_STRING_KEY={};NUMERIC_SEARCH_FUNC_TO_STRING_KEY={};DATE_SEARCH_FUNC_TO_STRING_KEY={};TIME_SEARCH_FUNC_TO_STRING_KEY={};STRING_SEARCH_FUNC_TO_STRING_KEY[SEARCH_EQUALS_QUERY]="SEARCH_EQUALS";STRING_SEARCH_FUNC_TO_STRING_KEY[SEARCH_LT_QUERY]="SEARCH_BEFORE";STRING_SEARCH_FUNC_TO_STRING_KEY[SEARCH_GT_QUERY]="SEARCH_AFTER";STRING_SEARCH_FUNC_TO_STRING_KEY[SEARCH_STARTSW_QUERY]="SEARCH_STARTSW";STRING_SEARCH_FUNC_TO_STRING_KEY[SEARCH_CONTAINS_QUERY]="SEARCH_CONTAINS";STRING_SEARCH_FUNC_TO_STRING_KEY[SEARCH_ENDSW_QUERY]="SEARCH_ENDSW";NUMERIC_SEARCH_FUNC_TO_STRING_KEY[SEARCH_EQUALS_QUERY]="SEARCH_EQUALS";NUMERIC_SEARCH_FUNC_TO_STRING_KEY[SEARCH_NEQ_QUERY]="SEARCH_NEQ";NUMERIC_SEARCH_FUNC_TO_STRING_KEY[SEARCH_GT_QUERY]="SEARCH_GT";NUMERIC_SEARCH_FUNC_TO_STRING_KEY[SEARCH_LT_QUERY]="SEARCH_LT";NUMERIC_SEARCH_FUNC_TO_STRING_KEY[SEARCH_GTE_QUERY]="SEARCH_GTE";NUMERIC_SEARCH_FUNC_TO_STRING_KEY[SEARCH_LTE_QUERY]="SEARCH_LTE";DATE_SEARCH_FUNC_TO_STRING_KEY[SEARCH_YEAR_EQUAL]="SEARCH_YEAR_EQUAL";DATE_SEARCH_FUNC_TO_STRING_KEY[SEARCH_MONTH_EQUAL]="SEARCH_MONTH_EQUAL";DATE_SEARCH_FUNC_TO_STRING_KEY[SEARCH_DAY_EQUAL]="SEARCH_DAY_EQUAL";DATE_SEARCH_FUNC_TO_STRING_KEY[SEARCH_AFTER]="SEARCH_AFTER";DATE_SEARCH_FUNC_TO_STRING_KEY[SEARCH_BEFORE]="SEARCH_BEFORE";DATE_SEARCH_FUNC_TO_STRING_KEY[SEARCH_BETWEEN]="SEARCH_BETWEEN";TIME_SEARCH_FUNC_TO_STRING_KEY[SEARCH_AFTER]="SEARCH_AFTER";TIME_SEARCH_FUNC_TO_STRING_KEY[SEARCH_BEFORE]="SEARCH_BEFORE";TIME_SEARCH_FUNC_TO_STRING_KEY[SEARCH_BETWEEN]="SEARCH_BETWEEN";SEARCH_FUNC_DISPLAY_PER_TYPE={};SEARCH_FUNC_DISPLAY_PER_TYPE[SEARCH_TYPE_NUMBER]=NUMERIC_SEARCH_FUNC_TO_STRING_KEY;SEARCH_FUNC_DISPLAY_PER_TYPE[SEARCH_TYPE_TEXT_FIELD]=STRING_SEARCH_FUNC_TO_STRING_KEY;SEARCH_FUNC_DISPLAY_PER_TYPE[SEARCH_TYPE_TEXT]=STRING_SEARCH_FUNC_TO_STRING_KEY;SEARCH_FUNC_DISPLAY_PER_TYPE[SEARCH_TYPE_DATE]=DATE_SEARCH_FUNC_TO_STRING_KEY;SEARCH_FUNC_DISPLAY_PER_TYPE[SEARCH_TYPE_TIME]=TIME_SEARCH_FUNC_TO_STRING_KEY;}if(!dojo._hasResource["freedom.comm.communications-handler"]){dojo._hasResource["freedom.comm.communications-handler"]=true;dojo.provide("freedom.comm.communications-handler");dojo.declare("freedom.comm.CommunicationsHandler",null,{mTimerActive:false,constructor:function(){this.mRequests=[];this.mToBeRetried=[];this.mUserInformation=false;},onEvent:function(_510){},fireEvent:function(_511,_512){if(_512.mRetrying){if(freedom.comm.CommunicationsEvent.RETRYING!=_511.mStatus){index=dojo.indexOf(this.mToBeRetried,_512);this.mToBeRetried.splice(index,1);}}else{index=dojo.indexOf(this.mRequests,_512);this.mRequests.splice(index,1);}if(freedom.comm.CommunicationsEvent.RETRYING!=_511.mStatus||!_512.mRetrying){this.onEvent(_511);}if(freedom.comm.CommunicationsEvent.RETRYING==_511.mStatus){if(!_512.mRetrying){_512.setRetrying(true);this.mToBeRetried.push(_512);}if(0!=this.mToBeRetried.length&&!this.mTimerActive&&0==dojo.indexOf(this.mToBeRetried,_512)){}}else{if(0!=this.mToBeRetried.length&&!this.mTimerActive){this.mToBeRetried[0].doIt();}}},commonProcessing:function(_513){if(0!=this.mToBeRetried.length){_513.fireEvent(freedom.comm.CommunicationsEvent.RETRYING);}else{this.mRequests.push(_513);_513.doIt();}},create:function(pURL,_515,_516,_517){var url=this.addSecurityToUrl(pURL);var _519=new freedom.comm.CommunicationsRequests(this,freedom.comm.CommunicationsHandler.OPERATION_CREATE,url,_516,_517);_519.setParameters(_515);this.commonProcessing(_519);},logout:function(_51a){var _51b=new freedom.comm.CommunicationsRequests(this,freedom.comm.CommunicationsHandler.OPERATION_LOGOUT,freedom.comm.CommunicationsHandler.LOGOUT_URL,_51a,false);this.commonProcessing(_51b);},setLogoutUrl:function(pUrl){freedom.comm.CommunicationsHandler.LOGOUT_URL=pUrl;},remove:function(pURL,_51e,_51f){var url=this.addSecurityToUrl(pURL);var _521=new freedom.comm.CommunicationsRequests(this,freedom.comm.CommunicationsHandler.OPERATION_REMOVE,url,_51e,_51f);this.commonProcessing(_521);},retrieve:function(pURL,_523){var url=this.addSecurityToUrl(pURL);var _525=new freedom.comm.CommunicationsRequests(this,freedom.comm.CommunicationsHandler.OPERATION_RETRIEVE,url,_523,false);this.commonProcessing(_525);},update:function(pURL,_527,_528,_529){var url=this.addSecurityToUrl(pURL);var _52b=new freedom.comm.CommunicationsRequests(this,freedom.comm.CommunicationsHandler.OPERATION_UPDATE,url,_528,_529);_52b.setParameters(_527);this.commonProcessing(_52b);},setUserInformation:function(_52c){if(undefined==_52c){var _52d=new freedom.comm.CommunicationsRequests(this,freedom.comm.CommunicationsHandler.OPERATION_USER_INFO,CURRENT_AUTHENTICATED_USER,"",false);this.commonProcessing(_52d);}else{this.mUserInformation=new freedom.comm.CommunicationsUserInformation();var _52e=_52c.split("/");this.mUserInformation.mUserid=_52e[0];this.mUserInformation.mOrganizationId=_52e[1];}},clearUserInformation:function(){this.mUserInformation=false;},getSecurityCookie:function(){result=false;var _52f=document.cookie.split(";");for(var i=0;i<_52f.length;i++){var _531=_52f[i].split("=");var j;for(j=0;j<_531[0].length&&_531[0].charAt(j)===" ";j++){}if(_531[0].substr(j)==freedom.comm.CommunicationsHandler.COOKIE){result=unescape(_531[1]);break;}}return result;},addSecurityToUrl:function(pURL){var url=pURL;var _535=freedom.comm.CommunicationsHandler.prototype.getSecurityCookie();if(_535){if(-1!=url.indexOf("?")){url=url+"&";}else{url=url+"?";}url=url+freedom.comm.CommunicationsHandler.FREEDOM_TOKEN_PARAM_NAME+"="+escape(_535);}return url;}});freedom.comm.CommunicationsHandler.OPERATION_CREATE="create";freedom.comm.CommunicationsHandler.OPERATION_LOGOUT="logout";freedom.comm.CommunicationsHandler.OPERATION_REMOVE="remove";freedom.comm.CommunicationsHandler.OPERATION_RETRIEVE="retrieve";freedom.comm.CommunicationsHandler.OPERATION_UPDATE="update";freedom.comm.CommunicationsHandler.OPERATION_USER_INFO="user-information";freedom.comm.CommunicationsHandler.FREEDOM_TOKEN_PARAM_NAME="freedomToken";freedom.comm.CommunicationsHandler.COOKIE="FREEDOM_AUTH_TOKEN";freedom.comm.CommunicationsHandler.LOGOUT_URL="/devengage/run/service/logout";dojo.declare("freedom.comm.CommunicationsEvent",null,{mResult:"",mResultType:"",mReason:false,constructor:function(_536,_537,_538){this.mStatus=_536;this.mOperation=_537;this.mRequestId=_538;},setResult:function(_539,_53a){this.mResult=_539;this.mResultType=_53a;},setReason:function(_53b){this.mReason=_53b;}});freedom.comm.CommunicationsEvent.OK="OK";freedom.comm.CommunicationsEvent.RETRYING="retrying";freedom.comm.CommunicationsEvent.FAILED="failed";freedom.comm.CommunicationsEvent.TYPE_BODY="body";freedom.comm.CommunicationsEvent.TYPE_HEADER="header";freedom.comm.CommunicationsEvent.REASON_CONFLICT="conflict";dojo.declare("freedom.comm.CommunicationsUserInformation",null,{constructor:function(){this.mFullName="";this.mLastName="";this.mFirstName="";this.mUserid="";this.mEmail="";this.mToken="";this.mOrganizationId="";}});}if(!dojo._hasResource["freedom.client.DataStore"]){dojo._hasResource["freedom.client.DataStore"]=true;dojo.provide("freedom.client.DataStore");dojo.declare("freedom.client.DataStore",null,{_busObjClass:null,_busObjQueue:{},_data:[],_handler:null,_lastFilter:"",_additionalFilters:null,_storeId:null,_tableName:"ITEMS",_baseServiceURL:DATA_ACCESS_ROOT_URL,_requestCounter:0,_pageSize:-1,_pageStartId:-1,_pageEndId:-1,_pageIndex:-1,_forceUpdate:true,_dsCopies:null,statics:{RETRIEVE_ALL_ITEMS:"-retrieve-all-entities",RETRIEVE_ONE_ITEM:"-retrieve-one-entity",RETRIEVE_DIRECTION_PREV:"prev",RETRIEVE_DIRECTION_NEXT:"next",URL_PARAM_DIRECTION:"_direction",URL_PARAM_SIZE:"_size",URL_PARAM_ID:"id"},create:function(){var _53c=new this._busObjClass();_53c.Id=dojox.uuid.generateRandomUuid();return _53c;},retrieveFirstPage:function(){this._forceUpdate=true;return this._retrieve(this._lastFilter,this.statics.RETRIEVE_DIRECTION_NEXT,-1);},retrieveLastPage:function(){this._forceUpdate=true;return this._retrieve(this._lastFilter,this.statics.RETRIEVE_DIRECTION_PREV,-1);},retrieveNextPage:function(){this._forceUpdate=false;return this._retrieve(this._lastFilter,this.statics.RETRIEVE_DIRECTION_NEXT,this._pageEndId);},retrievePrevPage:function(){this._forceUpdate=false;return this._retrieve(this._lastFilter,this.statics.RETRIEVE_DIRECTION_PREV,this._pageStartId);},retrieve:function(_53d,_53e){if(!_53e&&(_53d==this._lastFilter)){this.onReadAfter(freedom.client.DataStore.OK,this);return;}this._forceUpdate=true;this._lastFilter=_53d;return this._retrieve(this._lastFilter,this.statics.RETRIEVE_DIRECTION_NEXT,-1);},_getRequestIdPrefix:function(){return this._storeId+this._busObjClass.getDataName();},_retrieve:function(_53f,_540,_541){var url=this.getRetrieveUrl(_53f,null,this._pageSize,_540,_541);var _543=this._getRequestIdPrefix()+this.statics.RETRIEVE_ALL_ITEMS+"-"+this._requestCounter;this._requestCounter++;this._handler.retrieve(url,_543);return _543;},retrieveByUid:function(pUid){var _545=this._getRequestIdPrefix()+this.statics.RETRIEVE_ONE_ITEM+"-"+this._requestCounter;this._requestCounter++;this._handler.retrieve(this._baseServiceURL+this._tableName+"/"+pUid,this._getRequestIdPrefix()+this.statics.RETRIEVE_ONE_ITEM);return _545;},retrieveByUser:function(_546){var _547=this._getRequestIdPrefix()+this.statics.RETRIEVE_ALL_ITEMS+"-"+this._requestCounter;this._requestCounter++;this._handler.retrieve(this._baseServiceURL+this._tableName+"?author_name="+_546,_547);},refresh:function(){this.retrieve(this._lastFilter,true);},remove:function(_548){var _549=this._getRequestIdPrefix()+"-"+_548.Id+"-"+this._requestCounter;this._requestCounter++;this._busObjQueue[_549]=_548;this._handler.remove(_548.editLink,_549,false);return _549;},save:function(_54a){var _54b=_54a.getJson(true);var _54c=freedom.utilities.createAtomXml(_54b,_54a.Id,_54a._class.getDataName(),this._handler.mUserInformation.mUserid,this.getJsonToXmlConfig());var _54d=this._getRequestIdPrefix()+"-"+_54a.Id+"-"+this._requestCounter;this._requestCounter++;this._busObjQueue[_54d]=_54a;if(_54a.isSaved()){this._handler.update(_54a.editLink,_54c,_54d,false);}else{this._handler.create(this._baseServiceURL+this._tableName,_54c,_54d,false);}return _54d;},getAllData:function(){return this._data;},get:function(_54e){if(_54e>=0&&_54e<this._data.length){return this._data[_54e];}else{return null;}},getById:function(pId){for(var i=0;i<this._data.length;i++){if(pId==this._data[i].Id){return this._data[i];}}return null;},getByDbId:function(_551){for(var i=0;i<this._data.length;i++){if(_551==this._data[i].dbId){return this._data[i];}}return null;},getCurrentUser:function(){return this._handler.mUserInformation.mUserid;},getByCurrentUser:function(){for(var i=0;i<this._data.length;i++){if(this._handler.mUserInformation.mUserid==this._data[i].itemAuthor){return this._data[i];}}return null;},getName:function(){return this._storeId;},getBusinessObjectClass:function(){return this._busObjClass;},getRetrieveUrl:function(_554,_555,_556,_557,_558){var url=this._baseServiceURL+this._tableName;var _55a="";if(_554!==undefined&&_554.length!==0){_55a=_554;}if(_555){_55a+=_555;}if(_556&&_556>0){if(_55a.length>0){_55a+="&";}_55a+=this.statics.URL_PARAM_SIZE+"="+_556;}if(_557===this.statics.RETRIEVE_DIRECTION_PREV){if(_55a.length>0){_55a+="&";}_55a+=this.statics.URL_PARAM_DIRECTION+"="+this.statics.RETRIEVE_DIRECTION_PREV;if(_558&&_558!=-1){_55a+="&"+this.statics.URL_PARAM_ID+"="+_558;}}else{if(_55a.length>0){_55a+="&";}_55a+=this.statics.URL_PARAM_DIRECTION+"="+this.statics.RETRIEVE_DIRECTION_NEXT;if(_558&&_558!=-1){_55a+="&"+this.statics.URL_PARAM_ID+"="+_558;}}for(var _55b in this._additionalFilters){var _55c=encodeURIComponent(this._additionalFilters[_55b]);if(_55a.length>0){_55a+="&";}_55a+="searchFilter="+_55c;}if(_55a){url+="?"+_55a;}return url;},getLatestRetrieveUrl:function(_55d,_55e){var _55f=(_55e)?-1:this._pageSize;return this.getRetrieveUrl(this._lastFilter,_55d,_55f);},setHandler:function(_560){this._handler=_560;dojo.connect(this._handler,"onEvent",this,"_commHandler");},setTableName:function(_561){this._tableName=_561;},setBaseServiceURL:function(_562){this._baseServiceURL=_562;},setPageSize:function(_563){this._pageSize=_563;},setAdditionalFilter:function(_564,_565){if(_565){this._additionalFilters[_564]=_565;}else{delete this._additionalFilters[_564];}for(var i=0,sz=this._dsCopies.length;i<sz;i++){this._dsCopies[i].setAdditionalFilter(_564,_565);}},clearAdditionalFilters:function(_568,_569){this._additionalFilters={};},_commHandler:function(_56a){if(0==_56a.mRequestId.indexOf(this._getRequestIdPrefix()+"-")){if(_56a.mOperation==freedom.comm.CommunicationsHandler.OPERATION_RETRIEVE){if(_56a.mStatus==freedom.comm.CommunicationsEvent.OK){if(0==_56a.mRequestId.indexOf(this._getRequestIdPrefix()+this.statics.RETRIEVE_ALL_ITEMS+"-")){this._createBusObjs(_56a.mResult);this.onReadAfter(freedom.client.DataStore.OK,this,null,_56a.mRequestId);}else{this._finishRetrieveByUid(_56a.mResult,_56a.mRequestId);}}else{this.onReadAfter(freedom.client.DataStore.FAILED,this,_56a.mReason,_56a.mRequestId);}}else{if(_56a.mOperation==freedom.comm.CommunicationsHandler.OPERATION_CREATE){this._createFinished(_56a);}else{if(_56a.mOperation==freedom.comm.CommunicationsHandler.OPERATION_REMOVE){this._removeFinished(_56a);}else{if(_56a.mOperation==freedom.comm.CommunicationsHandler.OPERATION_UPDATE){this._updateFinished(_56a);}}}}}},_createBusObjs:function(_56b){var _56c=dojox.data.dom.createDocument(_56b);var _56d=this.getJsonToXmlConfig();var _56e=freedom.utilities.xmlToJson(_56c,_56d);var _56f=_56e.feed[0].entry;if(_56f!==undefined&&_56f.length>0){this._data=[];for(entryIndex=0;entryIndex<_56f.length;entryIndex++){var _570=_56f[entryIndex];var _571=_570.content[0][this._busObjClass.getDataName()];if(_571===undefined){}else{var item=_571[0];var _573=_570.link[0];var _574=new this._busObjClass();_574.fillFromItem(item,_573["@href"]);if(_570.author[0]==undefined||_570.author[0].name==undefined){_574.itemAuthor="";}else{_574.itemAuthor=_570.author[0].name[0].value;}if(_570.updated&&_570.updated[0]){_574.lastUpdated=_570.updated[0].value.replace(/-/g,"/");_574.lastUpdated=_574.lastUpdated.replace(/T/," ").replace(/\.\d\d\dZ*$/,"");}else{_574.lastUpdated="";}this._data.push(_574);}}}else{if(this._forceUpdate){this._data=[];}}if(this._data.length==0){this._pageStartId=-1;this._pageEndId=-1;}else{this._pageStartId=this._data[0].dbId;this._pageEndId=this._data[this._data.length-1].dbId;}},_finishRetrieveByUid:function(_575,_576){this._data=[];var item,_578;var _579=dojox.data.dom.createDocument(_575);var _57a=this.getJsonToXmlConfig();var _57b=freedom.utilities.xmlToJson(_579,_57a);_578=_57b.entry[0].link[0];item=_57b.entry[0].content[0][this._busObjClass.getDataName()];if(undefined!==item&&1===item.length&&item[0]["@application_uid"]===this._busObjClass.getApplicationUid()){var _57c=new this._busObjClass();_57c.fillFromItem(item[0],_578["@href"]);if(_57b.entry[0].author[0]==undefined||_57b.entry[0].author[0].name==undefined){_57c.itemAuthor="";}else{_57c.itemAuthor=_57b.entry[0].author[0].name[0].value;}if(_57b.entry[0].updated&&_57b.entry[0].updated[0]){_57c.lastUpdated=_57b.entry[0].updated[0].value.replace(/-/g,"/");_57c.lastUpdated=_57c.lastUpdated.replace(/T/," ").replace(/\.\d\d\dZ*$/,"");}else{_57c.lastUpdated="";}this._data.push(_57c);this.onReadAfter(freedom.client.DataStore.OK,this,null,_576);}else{this.onReadAfter(freedom.client.DataStore.FAILED,this,null,_576);}},_createFinished:function(_57d){var _57e=this._busObjQueue[_57d.mRequestId];delete this._busObjQueue[_57d.mRequestId];if(_57d.mStatus==freedom.comm.CommunicationsEvent.OK){var _57f=dojox.data.dom.createDocument(_57d.mResult);var _580=this.getJsonToXmlConfig();var _581=freedom.utilities.xmlToJson(_57f,_580);var _582=_581.entry[0];_57e.editLink=_582.link[0]["@href"];if(_582.author[0]==undefined||_582.author[0].name==undefined){_57e.itemAuthor="";}else{_57e.itemAuthor=_582.author[0].name[0].value;}if(_582.updated&&_582.updated[0]){_57e.lastUpdated=_582.updated[0].value.replace(/-/g,"/");_57e.lastUpdated=_57e.lastUpdated.replace(/T/," ").replace(/\.\d\d\dZ*$/,"");}else{_57e.lastUpdated="";}_57e.changed=false;var item=_582.content[0][this._busObjClass.getDataName()][0];_57e.fillFromItem(item,_57e.editLink);this._data.push(_57e);this.onCreateAfter(freedom.client.DataStore.OK,_57e,null,_57d.mRequestId);}else{this.onCreateAfter(freedom.client.DataStore.FAILED,_57e,_57d.mReason,_57d.mRequestId);}},_removeFinished:function(_584){var _585=this._busObjQueue[_584.mRequestId];delete this._busObjQueue[_584.mRequestId];if(_584.mStatus==freedom.comm.CommunicationsEvent.OK){for(var i=0;i<this._data.length;i++){if(_585.Id==this._data[i].Id){this._data.splice(i,1);break;}}this.onRemoveAfter(freedom.client.DataStore.OK,_585,null,_584.mRequestId);}else{this.onRemoveAfter(freedom.client.DataStore.FAILED,_585,_584.mReason,_584.mRequestId);}},_updateFinished:function(_587){var _588=this._busObjQueue[_587.mRequestId];delete this._busObjQueue[_587.mRequestId];if(_587.mStatus==freedom.comm.CommunicationsEvent.OK){_588.changed=false;for(var i=0;i<this._data.length;i++){if(_588.Id==this._data[i].Id){var _58a=dojox.data.dom.createDocument(_587.mResult);var _58b=this.getJsonToXmlConfig();var _58c=freedom.utilities.xmlToJson(_58a,_58b);var _58d=_58c.entry[0];if(_58d.updated&&_58d.updated[0]){this._data[i].lastUpdated=_58d.updated[0].value.replace(/-/g,"/");this._data[i].lastUpdated=this._data[i].lastUpdated.replace(/T/," ").replace(/\.\d\d\dZ*$/,"");}else{this._data[i].lastUpdated="";}var item=_58d.content[0][this._busObjClass.getDataName()][0];this._data[i].fillFromItem(item,_588.editLink);_588=this._data[i];break;}}this.onUpdateAfter(freedom.client.DataStore.OK,_588,null,_587.mRequestId);}else{this.onUpdateAfter(freedom.client.DataStore.FAILED,_588,_587.mReason,_587.mRequestId);}},_updatePageIndex:function(_58f,_590){if(this._pageSize>0){if(_58f===this.statics.RETRIEVE_DIRECTION_PREV){if(_590!==-1&&this._pageIndex>0){this._pageIndex--;}else{this._pageIndex=-1;}}else{if(_590===-1){this._pageIndex=0;}else{if(this._pageIndex!=-1){this._pageIndex++;}}}}else{this._pageIndex=-1;}},getJsonToXmlConfig:function(){return false;},constructor:function(_591,_592,_593){this._storeId=_591;this._busObjClass=_592;this._pageSize=(_593!=undefined&&_593>0)?_593:-1;this._additionalFilters={};this._dsCopies=[];},clone:function(_594,_595,_596){var _597=new freedom.client.DataStore(_594,this._busObjClass);_597.setHandler(this._handler);_597.setTableName(this._tableName);_597.setBaseServiceURL(this._baseServiceURL);_597.setPageSize(this._pageSize);for(var _598 in this._additionalFilters){_597.setAdditionalFilter(_598,this._additionalFilters[_598]);}if(_595){_597.copyData(this);}if(!_596){this._dsCopies.push(_597);}return _597;},copyData:function(_599){var data=_599.getAllData();var _59b;this._data=[];for(var i=0,sz=data.length;i<sz;i++){this._data.push(data[i].clone());}},onCreateAfter:function(_59e,_59f,_5a0,_5a1){},onReadAfter:function(_5a2,_5a3,_5a4,_5a5){},onRemoveAfter:function(_5a6,_5a7,_5a8,_5a9){},onUpdateAfter:function(_5aa,_5ab,_5ac,_5ad){}});freedom.client.DataStore.FAILED="failed";freedom.client.DataStore.OK="ok";}if(!dojo._hasResource["freedom.client.BaseController"]){dojo._hasResource["freedom.client.BaseController"]=true;dojo.provide("freedom.client.BaseController");dojo.declare("freedom.client.BaseController",null,{_dataStore:null,_masterController:null,save:function(_5ae){if(undefined!==_5ae.editLink&&""!==_5ae.editLink){this.onUpdateBefore(_5ae);showProgressDlg("Searching, please wait...");}else{this.onCreateBefore(_5ae);showProgressDlg("Searching, please wait...");}this._dataStore.save(_5ae);},remove:function(_5af){this.onRemoveBefore(_5af);showProgressDlg("Removing a form, please wait...");this._dataStore.remove(_5af);},showStatusDialog:function(_5b0,_5b1,_5b2,_5b3,_5b4){if(undefined!==_5b4){FREEDOM.statusDialog.setCallback(this,_5b4);}FREEDOM.statusDialog.showDialog(_5b0,_5b1,_5b2,_5b3);},setDataStore:function(_5b5){this._dataStore=_5b5;this._commHandler&&this._dataStore.setHandler(this._commHandler);dojo.connect(this._dataStore,"onCreateAfter",this,"_createFinished");if(this._masterController===null){dojo.connect(this._dataStore,"onReadAfter",this,"_readFinished");}dojo.connect(this._dataStore,"onRemoveAfter",this,"_removeFinished");dojo.connect(this._dataStore,"onUpdateAfter",this,"_updateFinished");},getDataStore:function(){return this._dataStore;},setCommHandler:function(_5b6){this._commHandler=_5b6;this._dataStore&&this._dataStore.setHandler(_5b6);},setMasterController:function(_5b7){this._masterController=_5b7;},getMasterController:function(){return this._masterController;},performPostActionActivities:function(_5b8,_5b9){if(!_5b8){return;}this.performUponLeaving(_5b8.uponLeaving);},performUponLeaving:function(_5ba){if(!_5ba){return;}this._savedUponLeavingData=_5ba;if(_5ba.type=="message"&&_5ba.content&&_5ba.content!==""){this.showStatusDialog("WorkFlow Action Succesfull","",_5ba.content.replace(/\n/g,"<br>"),0,"completePerformUponLeaving");}else{this.completePerformUponLeaving();}},completePerformUponLeaving:function(){if(this._savedUponLeavingData.type=="url"){location.href=this._savedUponLeavingData.content;}},setErrorMessageDialog:function(_5bb){this._errorMessageDialog=_5bb;},setMessages:function(_5bc){this._errorMessageDialog.setIssues(_5bc);if(0!==_5bc.length){this._errorMessageDialog.showDialog();}},_createFinished:function(_5bd,_5be){},_removeFinished:function(_5bf,_5c0){},_readFinished:function(_5c1,_5c2){},_updateFinished:function(_5c3,_5c4){},onCreateAfter:function(_5c5,_5c6){},onCreateBefore:function(_5c7){},onReadAfter:function(_5c8,_5c9){},onReadBefore:function(){},onRemoveAfter:function(_5ca,_5cb){},onRemoveBefore:function(_5cc){},onUpdateAfter:function(_5cd,_5ce){},onUpdateBefore:function(_5cf){}});freedom.client.BaseController.FAILED="failed";freedom.client.BaseController.OK="ok";}if(!dojo._hasResource["freedom.client.BooleanAttribute"]){dojo._hasResource["freedom.client.BooleanAttribute"]=true;dojo.provide("freedom.client.BooleanAttribute");dojo.declare("freedom.client.BooleanAttribute",freedom.client.SimpleAttribute,{defaultValue:false,_value:false,fillFromItem:function(_5d0){if(undefined!==_5d0&&""!==_5d0[0].value){this.setValue(_5d0[0].value=="true"||_5d0[0].value=="on");}else{this.setValue(this.defaultValue);}},getJson:function(){return [{value:this.toString()}];},toString:function(){return ""+this.getValue();}});}if(!dojo._hasResource["freedom.client.BusinessObject"]){dojo._hasResource["freedom.client.BusinessObject"]=true;dojo.provide("freedom.client.BusinessObject");dojo.declare("freedom.client.BusinessObject",null,{comments:[],changed:false,editLink:"",Id:null,tags:[],resetToDefault:function(){var _5d1=this.getAttributeNames();for(var i=0;i<_5d1.length;i++){this[_5d1[i]].resetToDefault();}this.comments=[];this.tags=[];this.changed=false;},fillFromItem:function(_5d3,_5d4){if(undefined!=_5d4){this.fillCommentsFromItem(_5d3);this.editLink=_5d4;this.flowState=_5d3["@flowState"];this.fillTagsFromItem(_5d3);}if(_5d3["@uid"]){this.Id=_5d3["@uid"];}this.dbId=_5d3["@id"];var _5d5=this.getAttributeNames();for(var i=0;i<_5d5.length;i++){this[_5d5[i]].fillFromItem(_5d3[_5d5[i]]);}this.changed=false;},fillFromBusinessObject:function(_5d7){this._inFillFromBO=true;this.comments=_5d7.comments;this.dbId=_5d7.dbId;this.editLink=_5d7.editLink;this.flowState=_5d7.flowState;this.Id=_5d7.Id;this.itemAuthor=_5d7.itemAuthor;this.lastUpdated=_5d7.lastUpdated;this.tags=_5d7.tags;var _5d8=this.getAttributeNames();for(var i=0;i<_5d8.length;i++){this[_5d8[i]].fillFromBusinessObject(_5d7[_5d8[i]]);}this.changed=false;this._inFillFromBO=false;},clone:function(){var _5da=new this._class();_5da.fillFromBusinessObject(this);return _5da;},duplicate:function(){var _5db=new this._class();_5db.fillFromBusinessObject(this);_5db.Id=dojox.uuid.generateRandomUuid();delete _5db.dbId;delete _5db.editLink;_5db.flowState="Start";return _5db;},getJson:function(_5dc){var _5dd={};var _5de;if(_5dc!==undefined){_5dd[this._class.getDataName()]=[{}];_5de=_5dd[this._class.getDataName()][0];}else{_5de=_5dd;}var _5df=this.getAttributeNames();for(var i=0;i<_5df.length;i++){_5de[_5df[i]]=this[_5df[i]].getJson();}if(_5dc!==undefined){if(this.flowState){_5de["@flowState"]=this.flowState;}if(this.pressedButton){_5de["@pressedButton"]=this.pressedButton;}_5de["@uid"]=this.Id;_5de["@id"]=this.dbId;_5de["@application_uid"]=this._class.getApplicationUid();if(this.tags.length>0){_5de.tags=[{tag:[]}];for(var i=0;i<this.tags.length;i++){var _5e1={"value":this.tags[i]};_5de.tags[0].tag.push(_5e1);}}if(this.comments.length>0){_5de.comments=[{comment:[]}];for(var i=0;i<this.comments.length;i++){var _5e2={"value":this.comments[i]};_5de.comments[0].comment.push(_5e2);}}}else{_5de["@id"]=this.dbId;}return _5dd;},getAttributeNames:function(){return this._class._attributeNames;},addAttribute:function(_5e3,_5e4){this[_5e3]=_5e4;if(undefined===this._class._attributeMap[_5e3]){this._class._attributeMap[_5e3]=true;this._class._attributeNames.push(_5e3);}dojo.connect(_5e4,"onChange",this,"_attributeChanged");},isChanged:function(){return this.changed;},_attributeChanged:function(){this.changed=true;this.onChange();},isSaved:function(){return undefined!==this.editLink&&""!==this.editLink;},fillTagsFromItem:function(item){this.tags=[];if(item.tags!==undefined&&item.tags.length!==0&&item.tags[0].tag!==undefined){var _5e6=item.tags[0].tag;for(var i=0;i<_5e6.length;i++){this.tags.push(_5e6[i].value);}}},fillCommentsFromItem:function(item){this.comments=[];if(item.comments!==undefined&&item.comments.length!==0&&item.comments[0].comment!==undefined){var _5e9=item.comments[0].comment;for(var i=0;i<_5e9.length;i++){this.comments.push(_5e9[i].value);}}},onChange:function(){}});}if(!dojo._hasResource["freedom.client.CurrencyAttribute"]){dojo._hasResource["freedom.client.CurrencyAttribute"]=true;dojo.provide("freedom.client.CurrencyAttribute");dojo.declare("freedom.client.CurrencyAttribute",freedom.client.SimpleAttribute,{_value:"",fillFromItem:function(_5eb){if(undefined!==_5eb){var _5ec=parseFloat(_5eb[0].value);this.setValue(_5ec);}else{this.setValue(this.defaultValue);}},getJson:function(){return [{value:""+this.getValue()}];},toString:function(){var val=this.getValue();return isNaN(val)?"":val;}});}if(!dojo._hasResource["freedom.client.DataStoreProxy"]){dojo._hasResource["freedom.client.DataStoreProxy"]=true;dojo.provide("freedom.client.DataStoreProxy");dojo.declare("freedom.client.DataStoreProxy",null,{_ds:null,_handlers:null,_callbacks:null,getCachedContent:null,constructor:function(_5ee){this._handlers={};this._callbacks={};this._ds=_5ee;if(_5ee){this.getCachedContent=dojo.hitch(_5ee,_5ee.getAllData);this.createBusinessObject=dojo.hitch(_5ee,_5ee.create);}},create:function(pBO,_5f0){var _5f1=dojo.connect(this._ds,"onCreateAfter",this,this._crudOperationFinished);var _5f2=this._ds.save(pBO);this._handlers[_5f2]=_5f1;this._callbacks[_5f2]=_5f0;},update:function(pBO,_5f4){var _5f5=dojo.connect(this._ds,"onUpdateAfter",this,this._crudOperationFinished);var _5f6=this._ds.save(pBO);this._handlers[_5f6]=_5f5;this._callbacks[_5f6]=_5f4;},remove:function(pBO,_5f8){var _5f9=dojo.connect(this._ds,"onRemoveAfter",this,this._crudOperationFinished);var _5fa=this._ds.remove(pBO);this._handlers[_5fa]=_5f9;this._callbacks[_5fa]=_5f8;},retrieve:function(_5fb,_5fc){var _5fd=dojo.connect(this._ds,"onReadAfter",this,this._readOperationFinished);var _5fe=this._ds.retrieve(_5fb,true);this._handlers[_5fe]=_5fd;this._callbacks[_5fe]=_5fc;},setFilter:function(_5ff){this._ds.setAdditionalFilter(FREEDOM.DS_FILTER_NAME,_5ff);},_crudOperationFinished:function(_600,_601,_602,_603){dojo.disconnect(this._handlers[_603]);delete this._handlers[_603];var _604=this._callbacks[_603];delete this._callbacks[_603];if(_604&&typeof (_604)=="function"){_604(_600,_601,_602);}},_readOperationFinished:function(_605,_606,_607,_608){dojo.disconnect(this._handlers[_608]);delete this._handlers[_608];var _609=this._callbacks[_608];delete this._callbacks[_608];if(_609&&typeof (_609)=="function"){_609(_605,_607);}}});dojo.declare("freedom.client.PrimaryDataStoreProxy",freedom.client.DataStoreProxy,{getDisconnectedDataStore:function(){if(this._ds){var _60a=this._ds.clone(dojox.uuid.generateRandomUuid(),true,true);return new freedom.client.DataStoreProxy(_60a);}return null;}});}if(!dojo._hasResource["freedom.client.DateAttribute"]){dojo._hasResource["freedom.client.DateAttribute"]=true;dojo.provide("freedom.client.DateAttribute");dojo.declare("freedom.client.DateAttribute",freedom.client.SimpleAttribute,{setValue:function(_60b){if(typeof (_60b)=="string"&&_60b!==""){_60b=this.getDateFromString(_60b);}freedom.client.DateAttribute.superclass.setValue.apply(this,[_60b]);},fillFromItem:function(_60c){if(undefined!==_60c){var _60d=this.getDateFromString(_60c[0].value);this.setValue(_60d);}else{this.setValue(this.defaultValue);}},getJson:function(){return [{value:this.toString()}];},constructor:function(_60e){if(undefined!==_60e&&null!==_60e&&""!==_60e){this.defaultValue=this.getDateFromString(_60e);}else{this.defaultValue="";}},toString:function(){if(!this._value||isNaN(this._value.getDate())){return "";}var _60f=""+(this._value.getMonth()+1);if(_60f.length==1){_60f="0"+_60f;}var day=""+this._value.getDate();if(day.length==1){day="0"+day;}return this._value.getFullYear()+"-"+_60f+"-"+day;},getDateFromString:function(_611){if(_611.indexOf("-")<0){return _611;}var _612=new Date();var _613=_611.split("-");_612.setFullYear(parseInt(_613[0],10),parseInt(_613[1],10)-1,parseInt(_613[2],10));return _612;}});}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isSafari||dojo.isOpera){rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _62b=n.scrollLeft,_62c=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_62b!=n.scrollLeft||_62c!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(node,e,host){this.node=dojo.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=host,d=node.ownerDocument,_632=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_632];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isSafari&&dojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left));t=Math.round(parseFloat(s.top));break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this);}dojo.disconnect(this.events.pop());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(node,_641){this.node=dojo.byId(node);if(!_641){_641={};}this.handle=_641.handle?dojo.byId(_641.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_641.delay>0?_641.delay:0;this.skip=_641.skip;this.mover=_641.mover?_641.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_642,node){return new dojo.dnd.Moveable(node,_642);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_64a){dojo.publish("/dnd/move/start",[_64a]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_64b){dojo.publish("/dnd/move/stop",[_64b]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_64c){},onMove:function(_64d,_64e){this.onMoving(_64d,_64e);var s=_64d.node.style;s.left=_64e.l+"px";s.top=_64e.t+"px";this.onMoved(_64d,_64e);},onMoving:function(_650,_651){},onMoved:function(_652,_653){}});}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_654,node){return new dojo.dnd.move.constrainedMoveable(node,_654);},constructor:function(node,_657){if(!_657){_657={};}this.constraints=_657.constraints;this.within=_657.within;},onFirstMove:function(_658){var c=this.constraintBox=this.constraints.call(this,_658);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_658.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_65b,_65c){var c=this.constraintBox,s=_65b.node.style;s.left=(_65c.l<c.l?c.l:c.r<_65c.l?c.r:_65c.l)+"px";s.top=(_65c.t<c.t?c.t:c.b<_65c.t?c.b:_65c.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_65f,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_65f);},constructor:function(node,_662){var box=_662&&_662.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_664,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_664);},constructor:function(node,_667){var area=_667&&_667.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.move.constrainedMover=function(fun,_66e){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _66f=function(node,e,_672){dojo.dnd.Mover.call(this,node,e,_672);};dojo.extend(_66f,dojo.dnd.Mover.prototype);dojo.extend(_66f,{onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;l=l<c.l?c.l:c.r<l?c.r:l;t=t<c.t?c.t:c.b<t?c.b:t;this.host.onMove(this,{l:l,t:t});},onFirstMove:function(){dojo.dnd.Mover.prototype.onFirstMove.call(this);var c=this.constraintBox=fun.call(this);c.r=c.l+c.w;c.b=c.t+c.h;if(_66e){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _66f;};dojo.dnd.move.boxConstrainedMover=function(box,_67b){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_67b);};dojo.dnd.move.parentConstrainedMover=function(area,_67d){dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};return dojo.dnd.move.constrainedMover(fun,_67d);};dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _683=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_685){if(!_685){_685={};}if(_685.timeout&&typeof _685.timeout=="number"&&_685.timeout>=0){this.timeout=_685.timeout;}},markupFactory:function(_686,node){return new dojo.dnd.TimedMoveable(node,_686);},onMoveStop:function(_688){if(_688._timer){clearTimeout(_688._timer);_683.call(this,_688,_688._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_689,_68a){_689._leftTop=_68a;if(!_689._timer){var _t=this;_689._timer=setTimeout(function(){_689._timer=null;_683.call(_t,_689,_689._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dijit.form.Form"]){dojo._hasResource["dijit.form.Form"]=true;dojo.provide("dijit.form.Form");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_68c){if(_68c.reset){_68c.reset();}});},validate:function(){var _68d=false;return dojo.every(dojo.map(this.getDescendants(),function(_68e){_68e._hasBeenBlurred=true;var _68f=_68e.disabled||!_68e.validate||_68e.validate();if(!_68f&&!_68d){dijit.scrollIntoView(_68e.containerNode||_68e.domNode);_68e.focus();_68d=true;}return _68f;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_694){if(!_694.name){return;}var _695=map[_694.name]||(map[_694.name]=[]);_695.push(_694);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _697=map[name],_698=dojo.getObject(name,false,obj);if(_698===undefined){continue;}if(!dojo.isArray(_698)){_698=[_698];}if(typeof _697[0].checked=="boolean"){dojo.forEach(_697,function(w,i){w.attr("value",dojo.indexOf(_698,w.value)!=-1);});}else{if(_697[0]._multiValue){_697[0].attr("value",_698);}else{dojo.forEach(_697,function(w,i){w.attr("value",_698[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_69e){var name=_69e.name;if(!name||_69e.disabled){return;}var _6a0=_69e.attr("value");if(typeof _69e.checked=="boolean"){if(/Radio/.test(_69e.declaredClass)){if(_6a0!==false){dojo.setObject(name,_6a0,obj);}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_6a0!==false){ary.push(_6a0);}}}else{dojo.setObject(name,_6a0,obj);}});return obj;},isValid:function(){this._invalidWidgets=[];return dojo.every(this.getDescendants(),function(_6a2){var _6a3=_6a2.disabled||!_6a2.isValid||_6a2.isValid();if(!_6a3){this._invalidWidgets.push(_6a2);}return _6a3;},this);},onValidStateChange:function(_6a4){},_widgetChange:function(_6a5){var _6a6=this._lastValidState;if(!_6a5||this._lastValidState===undefined){_6a6=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_6a6;}}else{if(_6a5.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_6a5);},this);if(!_6a5.isValid()&&!_6a5.attr("disabled")){this._invalidWidgets.push(_6a5);}_6a6=(this._invalidWidgets.length===0);}}if(_6a6!==this._lastValidState){this._lastValidState=_6a6;this.onValidStateChange(_6a6);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _6a8=this;var _6a9=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_6ab){_6a9.push(_6a8.connect(_6ab,"validate",dojo.hitch(_6a8,"_widgetChange",_6ab)));_6a9.push(_6a8.connect(_6ab,"_setDisabledAttr",dojo.hitch(_6a8,"_widgetChange",_6ab)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' name='${name}'></form>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),execute:function(_6ac){},onExecute:function(){},_setEncTypeAttr:function(_6ad){this.encType=_6ad;dojo.attr(this.domNode,"encType",_6ad);if(dojo.isIE){this.domNode.encoding=_6ad;}},postCreate:function(){if(dojo.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var item=this.srcNodeRef.attributes.getNamedItem("encType");if(item&&!item.specified&&(typeof item.value=="string")){this.attr("encType",item.value);}}this.inherited(arguments);},onReset:function(e){return true;},_onReset:function(e){var faux={returnValue:true,preventDefault:function(){this.returnValue=false;},stopPropagation:function(){},currentTarget:e.currentTarget,target:e.target};if(!(this.onReset(faux)===false)&&faux.returnValue){this.reset();}dojo.stopEvent(e);return false;},_onSubmit:function(e){var fp=dijit.form.Form.prototype;if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){dojo.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues());}if(this.onSubmit(e)===false){dojo.stopEvent(e);}},onSubmit:function(e){return this.isValid();},submit:function(){if(!(this.onSubmit()===false)){this.containerNode.submit();}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper' id='${id}_wrapper'><div class='dijitDialogUnderlay ${class}' id='${id}' dojoAttachPoint='node'></div></div>",attributeMap:{},postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var _6b5=dijit.getViewport();var is=this.node.style,os=this.domNode.style;os.top=_6b5.t+"px";os.left=_6b5.l+"px";is.width=_6b5.w+"px";is.height=_6b5.h+"px";var _6b8=dijit.getViewport();if(_6b5.w!=_6b8.w){is.width=_6b8.w+"px";}if(_6b5.h!=_6b8.h){is.height=_6b8.h+"px";}},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}},hide:function(){this.domNode.style.display="none";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_6b9){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_6ba){var _6bb=dijit._getTabNavigable(dojo.byId(_6ba));this._firstFocusItem=_6bb.lowest||_6bb.first||_6ba;this._lastFocusItem=_6bb.last||_6bb.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_6ba,"tabindex","0");this._firstFocusItem=_6ba;}}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\r\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\r\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\r\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel\" title=\"${buttonCancel}\">\r\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\r\n\t</span>\r\n\t</div>\r\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\r\n</div>\r\n",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}]}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,postMixInProperties:function(){var _6bc=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_6bc);this.inherited(arguments);},postCreate:function(){var s=this.domNode.style;s.visibility="hidden";s.position="absolute";s.display="";s.top="-9999px";dojo.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){var vp=dijit.getViewport();var p=e._leftTop||dojo.coords(e.node,true);this._relativePosition={t:p.t-vp.t,l:p.l-vp.l};}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});dojo.subscribe("/dnd/move/stop",this,"_endDrag");}else{dojo.addClass(node,"dijitDialogFixed");}this._underlay=new dijit.DialogUnderlay({id:this.id+"_underlay","class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")});var _6c3=this._underlay;this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,onBegin:dojo.hitch(_6c3,"show")});this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.visibility="hidden";node.style.top="-9999px";_6c3.hide();}});},uninitialize:function(){if(this._fadeIn&&this._fadeIn.status()=="playing"){this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){this._fadeOut.stop();}if(this._underlay){this._underlay.destroy();}if(this._moveable){this._moveable.destroy();}},_size:function(){var mb=dojo.marginBox(this.domNode);var _6c5=dijit.getViewport();if(mb.w>=_6c5.w||mb.h>=_6c5.h){dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_6c5.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_6c5.h*0.75))+"px",overflow:"auto",position:"relative"});}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode;var _6c7=dijit.getViewport();var p=this._relativePosition;var mb=p?null:dojo.marginBox(node);dojo.style(node,{left:Math.floor(_6c7.l+(p?p.l:(_6c7.w-mb.w)/2))+"px",top:Math.floor(_6c7.t+(p?p.t:(_6c7.h-mb.h)/2))+"px"});}},_onKey:function(evt){if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _6cd=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_6cd){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_6cd){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!==dk.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOut.status()=="playing"){this._fadeOut.stop();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,"layout"));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,visibility:""});this.open=true;this._loadCheck();this._size();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);if(this.autofocus){this._getFocusItems(this.domNode);setTimeout(dojo.hitch(dijit,"focus",this._firstFocusItem),50);}},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this.refocus){this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));}if(this._relativePosition){delete this._relativePosition;}this.open=false;},layout:function(){if(this.domNode.style.visibility!="hidden"){this._underlay.layout();this._position();}},destroy:function(){dojo.forEach(this._modalconnects,dojo.disconnect);if(this.refocus&&this.open){setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);}this.inherited(arguments);}});dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,"class":"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div waiRole=\"presentation\">\r\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\r\n\t</div>\r\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\r\n</div>\r\n",postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_6cf,_6d0){this.domNode.className=this["class"]+" dijitTooltipAB"+(_6d0.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_6d0.charAt(0)=="T"?"Below":"Above");},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._loadCheck();if(this.autofocus){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);}},_onKey:function(evt){var node=evt.target;var dk=dojo.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _6d5=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){this.onCancel();dojo.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_6d5){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_6d5){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["freedom.widget.solution.environment.ConfirmSaveDialog"]){dojo._hasResource["freedom.widget.solution.environment.ConfirmSaveDialog"]=true;dojo.provide("freedom.widget.solution.environment.ConfirmSaveDialog");dojo.declare("freedom.widget.solution.environment.ConfirmSaveDialog",[dijit._Widget,dijit._Templated],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/solution/environment/templates/confirm-save-dialog.html"),_uid:"",showDialog:function(){this.theDialog.show();},hideDialog:function(){this.theDialog.hide();},onDiscard:function(){this.hideDialog();this.onSelection(freedom.widget.solution.environment.ConfirmSaveDialog.DISCARD);},onCancel:function(){this.hideDialog();},postMixInProperties:function(){freedom.widget.solution.environment.ConfirmSaveDialog.superclass.postMixInProperties.apply(this,arguments);this._uid=dojox.uuid.generateRandomUuid();},startup:function(){freedom.widget.solution.environment.ConfirmSaveDialog.superclass.startup.apply(this,arguments);this.theDialog.titleBar.style.display="none";this.theDialog.domNode.parentNode.removeChild(this.theDialog.domNode);dojo.body().appendChild(this.theDialog.domNode);},onSelection:function(_6d6){},theDialog:null});freedom.widget.solution.environment.ConfirmSaveDialog.DISCARD="discard";}if(!dojo._hasResource["freedom.widget.solution.environment.ExportDialog"]){dojo._hasResource["freedom.widget.solution.environment.ExportDialog"]=true;dojo.provide("freedom.widget.solution.environment.ExportDialog");dojo.declare("freedom.widget.solution.environment.ExportDialog",[dijit._Widget,dijit._Templated],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/solution/environment/templates/export-dialog.html"),_uid:"",showDialog:function(){this.theDialog.show();},hideDialog:function(){this.theDialog.hide();},onExportXml:function(){this.hideDialog();this.onSelection(freedom.widget.solution.environment.ExportDialog.EXPORT_XML);},onExportExcel:function(){this.hideDialog();this.onSelection(freedom.widget.solution.environment.ExportDialog.EXPORT_EXCEL);},onCancel:function(){this.hideDialog();},postMixInProperties:function(){freedom.widget.solution.environment.ExportDialog.superclass.postMixInProperties.apply(this,arguments);this._uid=dojox.uuid.generateRandomUuid();},startup:function(){freedom.widget.solution.environment.ExportDialog.superclass.startup.apply(this,arguments);this.theDialog.titleBar.style.display="none";this.theDialog.domNode.parentNode.removeChild(this.theDialog.domNode);dojo.body().appendChild(this.theDialog.domNode);},onSelection:function(_6d7){},theDialog:null});freedom.widget.solution.environment.ExportDialog.EXPORT_EXCEL="excel";freedom.widget.solution.environment.ExportDialog.EXPORT_XML="xml";}if(!dojo._hasResource["freedom.client.LinkedViewController"]){dojo._hasResource["freedom.client.LinkedViewController"]=true;dojo.provide("freedom.client.LinkedViewController");dojo.declare("freedom.client.LinkedViewController",freedom.client.BaseController,{_confirmSaveDialog:null,_exportDialog:null,_toBeSelected:null,_advancedSearchBoxDialog:null,_advancedSearchBoxDialogClicked:false,_primaryView:null,_localRefresh:false,_updateReferencesHandler:null,_isOneItemPerUser:false,_currItemView:null,_currBusObj:null,addLinkedViews:function(_6d8,_6d9){this._primaryView=_6d8;this._linkedViews[_6d8]=_6d9;this._linkedViews[_6d9]=_6d8;dojo.connect(_6d8,"onBusinessObjectSelected",this,"onBusinessObjectSelected");dojo.connect(_6d9,"onHiliteOverviewClicked",this,"hiliteOverview");dojo.connect(_6d9,"onAddFormClicked",this,"addFormClickedInItemView");_6d8.setController(this);_6d9.setController(this);},setIsOneItemPerUser:function(_6da){this._isOneItemPerUser=_6da;},getIsOneItemPerUser:function(){return this._isOneItemPerUser;},getPrimaryView:function(){return this._primaryView;},getSecondaryView:function(){return this._linkedViews[this._primaryView];},isModifiedState:function(){return this._isModifiedState(this.getSecondaryView())||this._isModifiedState(this.getPrimaryView());},_isModifiedState:function(_6db){if(_6db&&_6db.isEntityChanged&&(_6db.isEntityChanged()||_6db.getIsDirty())){return true;}return false;},retrieveFirstPage:function(){this._retrieveCommon();this._dataStore.retrieveFirstPage();},retrieveLastPage:function(){this._retrieveCommon();this._dataStore.retrieveLastPage();},retrieveNextPage:function(){this._retrieveCommon();this._dataStore.retrieveNextPage();},retrievePrevPage:function(){this._retrieveCommon();this._dataStore.retrievePrevPage();},getCurrentDataPage:function(){return this._dataStore.getPageIndex();},retrieve:function(_6dc,_6dd){this._retrieveCommon();this._dataStore.retrieve(_6dc,_6dd);},refresh:function(_6de){if(_6de){this._localRefresh=true;showProgressDlg("Loading recent entries, please wait");}this._retrieveCommon();this._dataStore.refresh();},addFormClickedInItemView:function(_6df){this.onBusinessObjectSelected(null,this._linkedViews[_6df]);},onBusinessObjectSelected:function(_6e0,_6e1,_6e2){var _6e3=this._linkedViews[_6e1];if(_6e3.isEntityChanged()){this._toBeSelected={busObj:_6e0,view:_6e1,duplicate:_6e2};this._confirmSaveDialog.showDialog();}else{this.editBusinessObject(_6e0,_6e1,_6e2);}},editBusinessObject:function(_6e4,_6e5,_6e6){this._currItemView=this._linkedViews[_6e5];if(_6e6){this._currBusObj=_6e4.duplicate();}else{this._currBusObj=_6e4;}this._toBeSelected=null;_6e5.selectBusinessObject(_6e6?null:_6e4);var _6e7=this._dataStore.create();var _6e8=null;if(null!==this._currBusObj){_6e7.fillFromBusinessObject(this._currBusObj);_6e8=_6e7.flowState;}else{_6e7.resetToDefault();_6e8="Start";}this._currItemView.setBusinessObject(_6e7);this._currItemView.resetButtons(_6e8);this._currItemView.setEditMode(this._currBusObj&&this._currBusObj.isSaved());if(_6e6){this._currItemView.setIsDirty(true);}this._updateReferencesHandler=dojo.connect(this._currItemView,"updateReferencesFinished",this,"updateReferenceFinished");this._currItemView.updateReferences();},updateReferenceFinished:function(){dojo.disconnect(this._updateReferencesHandler);this._updateReferencesHandler=null;this._currItemView.showDataPane();this._currItemView.shown();},cancelEdit:function(_6e9){_6e9.setBusinessObject(null);_6e9.hideDataPane();this._linkedViews[_6e9].selectBusinessObject(null);},exportClicked:function(){if(this._masterController){this._masterController.exportClicked();}else{this._exportDialog.showDialog();}},advancedSearchBoxDialogClicked:function(_6ea,_6eb){if(null==this._advancedSearchBoxDialog){var _6ec=this._linkedViews[_6eb];var _6ed=_6ec.theForm.getAttributeNames();var _6ee=_6ec.theForm;this._advancedSearchBoxDialog=getWidgetFactory().createWidget("freedom.widget.solution.environment.search.AdvancedSearchDialog",{itemView:_6ec,attrNames:_6ed,theForm:_6ee});dojo.connect(this._advancedSearchBoxDialog,"onSearchNotify",this,"advancedSearchExcute");}var self=this;dijit.popup.open({parent:this._primaryView,popup:this._advancedSearchBoxDialog,around:_6ea});dijit.focus(this._advancedSearchBoxDialog.domNode);},freeTextSearch:function(_6f0,_6f1){var anum=/(^\d+$)|(^\d+\.\d+$)/;var _6f3=anum.test(_6f0);var _6f4=this._linkedViews[_6f1];var _6f5="";var _6f6=_6f4.theForm.getAttributeNames();var _6f7=_6f4.theForm;var _6f8=false;var _6f9=0;if(_6f0!=""){for(var j=0;j<_6f6.length;j++){var _6fb=_6f7[_6f6[j]];var _6fc=_6fb.declaredClass.split(".");var _6fd=_6fc[_6fc.length-1];if(_6fd=="FreedomNumber"&&!_6f3){continue;}if(_6f8){_6f5+="&";}else{_6f8=true;}if((_6fd=="FreedomDate")){if(_6f3){_6f5+=_6f6[j]+"__year="+_6f0;_6f5+="&"+_6f6[j]+"__month="+_6f0;_6f5+="&"+_6f6[j]+"__day="+_6f0;_6f9+=3;}continue;}if(_6fd=="FreedomTime"){continue;}if(_6fd=="FreedomNumber"){var _6fe="equals";}else{var _6fe="contains";}_6f5+=_6f6[j]+"__"+_6fe+"="+_6f0;_6f9++;}if(_6f4.useComments){_6f5+="&searchComments=true";}if(_6f4.useTags){_6f5+="&searchTags=true";}}if(_6f9>=2){_6f5+="&searchOperator=OR";}this.retrieve(_6f5,false);},advancedSearchExcute:function(_6ff){this.retrieve(_6ff,false);},_retrieveCommon:function(){this.onReadBefore();if(this._masterController===null){showProgressDlg("Loading forms, please wait");}},_readFinished:function(_700,_701){if(this._masterController===null||this._localRefresh){hideProgressDlg();this._localRefresh=false;}if(_700===freedom.client.DataStore.OK){this.onReadAfter(freedom.client.BaseController.OK,_701.getAllData());}else{this.showStatusDialog("Error","","Failed to fetch the forms",0,"_completeReadFinished");}},getOneItemPerUserBusinessObject:function(){if(!this._isOneItemPerUser){return null;}return this._dataStore.getByCurrentUser();},_completeReadFinished:function(){this.onReadAfter(freedom.client.BaseController.FAILED);},_createFinished:function(_702,_703){hideProgressDlg();if(freedom.client.DataStore.OK===_702){this.onCreateAfter(freedom.client.BaseController.OK,_703);if(null!==this._toBeSelected){this.editBusinessObject(this._toBeSelected.busObj,this._toBeSelected.view,this._toBeSelected.duplicate);}}else{this._callbackBusObj=_703;this.showStatusDialog("Error","","Failed to create a new form",0,"_completeCreateFinished");}},_completeCreateFinished:function(){this.onCreateAfter(freedom.client.BaseController.FAILED,this._callbackBusObj);},_removeFinished:function(_704,_705){hideProgressDlg();if(freedom.client.DataStore.OK===_704){this.onRemoveAfter(freedom.client.BaseController.OK,_705);}else{this._callbackBusObj=_705;this.showStatusDialog("Error","","Failed to remove the form",0,"_completeRemoveFinished");}},_completeRemoveFinished:function(){this.onRemoveAfter(freedom.client.BaseController.FAILED,this._callbackBusObj);},_updateFinished:function(_706,_707){hideProgressDlg();if(freedom.client.DataStore.OK===_706){this.onUpdateAfter(freedom.client.BaseController.OK,_707);if(null!==this._toBeSelected){this.editBusinessObject(this._toBeSelected.busObj,this._toBeSelected.view,this._toBeSelected.duplicate);}}else{this._callbackBusObj=_707;this.showStatusDialog("Error","","Failed to update the form",0,"_completeUpdateFinished");}},_completeUpdateFinished:function(){this.onUpdateAfter(freedom.client.BaseController.FAILED,this._callbackBusObj);},_handleUnsavedData:function(_708){if(_708==freedom.widget.solution.environment.ConfirmSaveDialog.DISCARD){if(null!==this._toBeSelected){this.editBusinessObject(this._toBeSelected.busObj,this._toBeSelected.view,this._toBeSelected.duplicate);}}},saveFailed:function(){if(null!==this._toBeSelected){this._toBeSelected.view.selectBusinessObject(null);this._toBeSelected=null;}},_exportData:function(_709){var _70a="";var _70b="";switch(_709){case freedom.widget.solution.environment.ExportDialog.EXPORT_EXCEL:_70a="application/x-msexcel";_70b="xls";break;case freedom.widget.solution.environment.ExportDialog.EXPORT_XML:_70a="application/atom-xml";_70b="xml";break;}var _70c="&format="+escape(_70a)+"&filename="+this._dataStore.getBusinessObjectClass().getDataName()+"."+_70b;var _70d=null;var _70e=document.cookie.split(";");for(var i=0;i<_70e.length;i++){var _710=_70e[i].split("=");var j;for(j=0;j<_710[0].length&&_710[0].charAt(j)===" ";j++){}if(_710[0].substr(j)==freedom.comm.CommunicationsHandler.COOKIE){_70d=_710[1];break;}}if(null!==_70d){_70c+="&freedomToken="+_70d;}window.open(this._dataStore.getLatestRetrieveUrl(_70c,true));},hiliteOverview:function(_712){this._linkedViews[_712].hilite();},hiliteOverviewButtonBox:function(_713){this._linkedViews[_713].hiliteButtonBox();},setConfirmSaveDialog:function(_714){this._confirmSaveDialog=_714;dojo.connect(this._confirmSaveDialog,"onSelection",this,"_handleUnsavedData");},setExportDialog:function(_715){this._exportDialog=_715;dojo.connect(this._exportDialog,"onSelection",this,"_exportData");},constructor:function(){this._linkedViews={};}});}if(!dojo._hasResource["freedom.client.MasterDataStore"]){dojo._hasResource["freedom.client.MasterDataStore"]=true;dojo.provide("freedom.client.MasterDataStore");dojo.declare("freedom.client.MasterDataStore",null,{_storeId:null,registerDataStore:function(_716){this._dataStores.push(_716);},retrieveByUid:function(_717,pUid){for(var i=0;i<this._dataStores.length;i++){if(_717==this._dataStores[i].getName()){this._dataStores[i].retrieveByUid(pUid);}}},constructor:function(){this._dataStores=[];},onReadAfter:function(_71a,_71b){}});}if(!dojo._hasResource["freedom.client.MasterLinkedViewController"]){dojo._hasResource["freedom.client.MasterLinkedViewController"]=true;dojo.provide("freedom.client.MasterLinkedViewController");dojo.declare("freedom.client.MasterLinkedViewController",null,{_currentTabName:null,_exportDialog:null,_outstandingReads:0,_dataRetrieved:false,_updateRefHandler:null,warnBeforeLeaving:function(){for(var i=0;i<this._controllerList.length;i++){if(this._controllerList[i].isModifiedState()){return "Some of the forms may not be saved.\nPress Cancel to double check";}}},retrieve:function(_71d,_71e){showProgressDlg("Loading forms, please wait");this._outstandingReads=this._controllerList.length;this._readErrors=[];for(var i=0;i<this._outstandingReads;i++){this._controllerList[i].retrieve(_71d,_71e);}},refresh:function(){showProgressDlg("Loading forms, please wait");this._outstandingReads=this._controllerList.length;this._readErrors=[];for(var i=0;i<this._outstandingReads;i++){this._controllerList[i].refresh();}},registerController:function(_721,_722){this._dataStoreControllerMap[_722.getName()]=_721;this._controllerList.push(_721);_721.setCommHandler(this._handler);_721.setMasterController(this);dojo.connect(_722,"onReadAfter",this,"_readFinished");},exportClicked:function(){this._exportDialog.showDialog();},_exportData:function(_723){if(this._currentTabName){this._dataStoreControllerMap[this._currentTabName]._exportData(_723);}else{this._controllerList[0]._exportData(_723);}},setExportDialog:function(_724){this._exportDialog=_724;dojo.connect(this._exportDialog,"onSelection",this,"_exportData");},getDataStoreByFormName:function(_725){if(_725){for(var i=0;i<this._controllerList.length;i++){var _727=this._controllerList[i].getDataStore();if(_727&&(_727.getName()===_725)){return _727;}}}return null;},getViewByName:function(_728,_729){if(_728){for(var i=0;i<this._controllerList.length;i++){var _72b=this._controllerList[i].getDataStore();if(_72b&&(_72b.getName()===_728)){return (_729)?this._controllerList[i].getPrimaryView():this._controllerList[i].getSecondaryView();}}}return null;},tabShown:function(_72c){this._currentTabName=_72c;if(this._dataRetrieved){var view=this.getViewByName(this._currentTabName,false);if(view){showProgressDlg("Loading references, please wait");this._updateRefHandler=dojo.connect(view,"updateReferencesFinished",this,"_completeUpdateRef");view.updateReferences();}}},_readFinished:function(_72e,_72f){this._outstandingReads--;var _730=this._dataStoreControllerMap[_72f.getName()];if(_72e===freedom.client.DataStore.OK){_730._readFinished(_72e,_72f);}else{this._readErrors.push(_730);}if(this._outstandingReads==0){if(this._readErrors.length==0){var view=this.getViewByName(this._currentTabName,false);if(view){this._updateRefHandler=dojo.connect(view,"updateReferencesFinished",this,"_completeUpdateRefAfterRead");view.updateReferences();}else{this._completeUpdateRefAfterRead();}}else{hideProgressDlg();this._dataRetrieved=true;this.showStatusDialog("Error","","Failed to fetch forms",0,"_completeReadFinished");}}},_completeUpdateRef:function(){dojo.disconnect(this._updateRefHandler);this._updateRefHandler=null;hideProgressDlg();},_completeUpdateRefAfterRead:function(){this._dataRetrieved=true;this._completeUpdateRef();},_completeReadFinished:function(){for(var i=0;i<this._readErrors.length;i++){this._readErrors[i].onReadAfter(freedom.client.BaseController.FAILED);}this._readErrors=[];},showStatusDialog:function(_733,_734,_735,_736,_737){if(undefined!==_737){FREEDOM.statusDialog.setCallback(this,_737);}FREEDOM.statusDialog.showDialog(_733,_734,_735,_736);},setCommHandler:function(_738){this._handler=_738;},setErrorMessageDialog:function(_739){this._errorMessageDialog=_739;},setMessages:function(_73a){this._errorMessageDialog.setIssues(_73a);if(0!==_73a.length){this._errorMessageDialog.showDialog();}},constructor:function(){this._controllerList=[];this._dataStoreControllerMap={};this._readErrors=[];}});}if(!dojo._hasResource["freedom.client.MasterSimpleController"]){dojo._hasResource["freedom.client.MasterSimpleController"]=true;dojo.provide("freedom.client.MasterSimpleController");dojo.declare("freedom.client.MasterSimpleController",null,{open:function(_73b){if(_73b){var _73c=this._dataStoreControllerMap[_73b];if(_73c){_73c.open();}else{this.formDoesNotExist();}}else{for(var i=0;i<this._controllerList.length;i++){this._controllerList[i].open();}}},formDoesNotExist:function(){this._controllerList[0].open();this.showStatusDialog("Error","","The requested form does not exist");this.open();this._controllerList[0].onOpenAfter();},getDataStoreByFormName:function(_73e){if(_73e){for(var i=0;i<this._dataStores.length;i++){if(this._dataStores[i].getName()===_73e){return this._dataStores[i];}}}return null;},loadReferenceData:function(){if(0!==this._referencedDataStores.length){showProgressDlg("Loading the form, please wait");this._loadingReferenceData=0;this._referencedDataStores[0].retrieve("",true);}else{this.onReferenceDataLoaded();}},retrieve:function(_740,pUid){if(!this._dataStoreControllerMap[_740]){this.formDoesNotExist();return;}showProgressDlg("Loading the form, please wait");this.getDataStoreByFormName(_740).retrieveByUid(pUid);},retrieveByUser:function(_742,_743){if(!this._dataStoreControllerMap[_742]){this.formDoesNotExist();return;}showProgressDlg("Loading the form, please wait");this.getDataStoreByFormName(_742).retrieveByUser(_743);},registerController:function(_744,_745,_746){var _747=_745.getName();this._dataStoreControllerMap[_747]=_744;this._dataStores.push(_745);this._controllerList.push(_744);_744.setCommHandler(this._handler);_744.setDoneUrl(this._doneUrl);if(this._initialValues&&this._initialValues[_747]){_744.setExternalInitialValues(this._initialValues[_747]);}_744.setMasterController(this);dojo.connect(_745,"onReadAfter",this,"_readFinished");if(_746){this._referencedDataStores.push(_745);}},_readFinished:function(_748,_749){if(this._loadingReferenceData>=0){this._loadingReferenceData++;if(this._loadingReferenceData<this._referencedDataStores.length){this._referencedDataStores[this._loadingReferenceData].retrieve("",true);}else{this._loadingReferenceData=-1;this.onReferenceDataLoaded();hideProgressDlg();}}else{var _74a=this._dataStoreControllerMap[_749.getName()];hideProgressDlg();_74a._readFinished(_748,_749);}},showStatusDialog:function(_74b,_74c,_74d,_74e,_74f){if(undefined!==_74f){FREEDOM.statusDialog.setCallback(this,_74f);}FREEDOM.statusDialog.showDialog(_74b,_74c,_74d,_74e);},setCommHandler:function(_750){this._handler=_750;},setErrorMessageDialog:function(_751){this._errorMessageDialog=_751;},setMessages:function(_752){this._errorMessageDialog.setIssues(_752);if(0!==_752.length){this._errorMessageDialog.showDialog();}},setDoneUrl:function(_753){this._doneUrl=unescape(_753);},setExternalInitialValues:function(_754){eval("this._initialValues ="+unescape(_754.replace(/\+/g,"%20")));},setEmbeddedForm:function(_755){if(_755=="true"){dijit.byId("banner").domNode.style.display="none";}},warnBeforeLeaving:function(){for(var i=0;i<this._controllerList.length;i++){if(this._controllerList[i].isModifiedState()){return "Some of the forms may not be saved.\nPress Cancel to double check";}}},constructor:function(){this._controllerList=[];this._dataStoreControllerMap={};this._dataStores=[];this._referencedDataStores=[];this._loadingReferenceData=-1;},onReferenceDataLoaded:function(){}});}if(!dojo._hasResource["freedom.client.NumberAttribute"]){dojo._hasResource["freedom.client.NumberAttribute"]=true;dojo.provide("freedom.client.NumberAttribute");dojo.declare("freedom.client.NumberAttribute",freedom.client.SimpleAttribute,{_value:0,fillFromItem:function(_757){if(undefined!==_757){if(_757[0].value===""){this.setValue("");return;}if(-1==_757[0].value.indexOf(".")){this.setValue(parseInt(_757[0].value,10));}else{this.setValue(parseFloat(_757[0].value));}}else{this.setValue(this.defaultValue);}},getJson:function(){return [{value:this.toString()}];},toString:function(){return ""+this.getValue();}});}if(!dojo._hasResource["freedom.client.PersonNameAttribute"]){dojo._hasResource["freedom.client.PersonNameAttribute"]=true;dojo.provide("freedom.client.PersonNameAttribute");dojo.declare("freedom.client.PersonNameAttribute",freedom.client.ComplexAttribute,{statics:{attributes:["title","firstName","middleName","lastName","suffix"]},toString:function(){var _758="";_758=this.appendProperty(_758,this._value.title);_758=this.appendProperty(_758,this._value.firstName," ");_758=this.appendProperty(_758,this._value.middleName," ");_758=this.appendProperty(_758,this._value.lastName," ");_758=this.appendProperty(_758,this._value.suffix," ");if(_758!==undefined){if(_758.length>25){_758=_758.substr(0,22)+"...";}}else{_758="";}return _758;},constructor:function(){this._value={title:"",firstName:"",middleName:"",lastName:"",suffix:""};this.defaultValue={title:"",firstName:"",middleName:"",lastName:"",suffix:""};freedom.client.PersonNameAttribute.superclass.constructor.apply(this,arguments);}});}if(!dojo._hasResource["freedom.client.Reference"]){dojo._hasResource["freedom.client.Reference"]=true;dojo.provide("freedom.client.Reference");dojo.declare("freedom.client.Reference",null,{_settingValue:false,resetToDefault:function(){for(var i=0;i<this._eventHandles.length;i++){dojo.disconnect(this._eventHandles[i]);}this._eventHandles=[];this._references=[];this._idMap={};},getValue:function(){return this._references;},setValue:function(_75a){if(this._settingValue){return;}this._settingValue=true;this.resetToDefault();var data=_75a;if(data==null){data=[];}else{if(undefined==data.length){data=[data];}}for(var i=0;i<data.length;i++){var _75d=this.createBusinessObject();_75d.fillFromBusinessObject(data[i]);this.addBusinessObject(_75d);}this.onChange(data);this._settingValue=false;},fillFromItem:function(_75e){this.resetToDefault();if(undefined!==_75e){var _75f=this._referenceClass.getDataName();if(_75e[0][_75f]!==undefined){for(var i=0;i<_75e[0][_75f].length;i++){var _761=this.createBusinessObject();_761.fillFromItem(_75e[0][_75f][i]);this.addBusinessObject(_761,true,true);}}}},fillFromBusinessObject:function(_762){if(this._settingValue){return;}var _763=_762.getValue();if(undefined==_763.length){_763=[_763];}this._settingValue=true;this.resetToDefault();for(var i=0;i<_763.length;i++){var _765=this.createBusinessObject();_765.fillFromBusinessObject(_763[i]);this.addBusinessObject(_765,true,true);}this.onChange(_763);this._settingValue=false;},createBusinessObject:function(){var _766=new this._referenceClass();_766.Id=dojox.uuid.generateRandomUuid();return _766;},addBusinessObjects:function(_767){if(_767){if(_767.length){for(var i=0,sz=_767.length;i<sz;i++){this.addBusinessObject(_767[i],false,true);}if(_767.length>0){this.onChange(this._references);}}else{this.addBusinessObject(_767);}}},addBusinessObject:function(_76a,_76b,_76c){this._references.push(_76a);this._eventHandles.push(dojo.connect(_76a,"onChange",this,"_onReferenceChange"));this._idMap[_76a.Id]=_76a;if(_76b!==true){this.onAddReference(_76a);}if(_76c!==true){this.onChange(this._references);}},removeBusinessObject:function(_76d){for(var i=0;i<this._references.length;i++){if(_76d.Id==this._references[i].Id){dojo.disconnect(this._eventHandles[i]);this._eventHandles.splice(i,1);this._references.splice(i,1);this._idMap[_76d.Id]=false;break;}}this.onRemoveReference(_76d);this.onChange(this._references);},getBusinessObjectById:function(pId){return this._idMap[pId];},getJson:function(){var _770=[{}];_770[0][this._referenceClass.getDataName()]=[];for(var i=0;i<this._references.length;i++){_770[0][this._referenceClass.getDataName()][i]=this._references[i].getJson();}return _770;},_onReferenceChange:function(){this.onChange(this.getValue());},constructor:function(_772){this._referenceClass=_772;this._references=[];this._eventHandles=[];},onAddReference:function(_773){},onRemoveReference:function(_774){},onChange:function(_775){}});}if(!dojo._hasResource["freedom.client.SimpleController"]){dojo._hasResource["freedom.client.SimpleController"]=true;dojo.provide("freedom.client.SimpleController");dojo.declare("freedom.client.SimpleController",freedom.client.BaseController,{_businessObject:null,_postSubmit:"clear",_doneUrl:false,_initialValues:null,addView:function(_776){this._views.push(_776);_776.setController(this);_776.showDataPane();},isModifiedState:function(){for(var i=0;i<this._views.length;i++){if(this._views[i]&&this._views[i].isEntityChanged&&(this._views[i].isEntityChanged()||this._views[i].getIsDirty())){return true;}}return false;},open:function(){this.editBusinessObject(null);},onOpenAfter:function(_778){},retrieve:function(pUid){showProgressDlg("Loading the form, please wait");this._dataStore.retrieveByUid(pUid);},cancelEdit:function(_77a){this.editBusinessObject(this._businessObject);},editBusinessObject:function(_77b){this._businessObject=_77b;this._updateReferencesHandlers=[];this._updateReferenceCounter=this._views.length;var _77c=this._dataStore.create();var _77d;if(null!==this._businessObject){_77c.fillFromBusinessObject(this._businessObject);_77d=_77c.flowState;}else{_77c.resetToDefault();_77d="Start";if(this._initialValues){for(field in this._initialValues){_77c[field].setValue(this._initialValues[field]);}}}for(var i=0;i<this._views.length;i++){this._views[i].setBusinessObject(_77c);this._views[i].resetButtons(_77d);this._views[i].setEditMode(null!==this._businessObject);}for(var i=0;i<this._views.length;i++){this._updateReferencesHandlers.push(dojo.connect(this._views[i],"updateReferencesFinished",this,"_updateReferenceFinished"));this._views[i].updateReferences();}},_updateReferenceFinished:function(){this._updateReferenceCounter--;if(this._updateReferenceCounter==0){for(var i=0,ul=this._updateReferencesHandlers.length;i<ul;i++){dojo.disconnect(this._updateReferencesHandlers[i]);}this._updateReferencesHandlers=[];for(var i=0;i<this._views.length;i++){this._views[i].shown();}}},_createFinished:function(_781,_782){hideProgressDlg();this._callbackStatus=_781;this._callbackBusObj=_782;var _783;var _784;var _785;if(freedom.client.DataStore.OK===_781){this._completeCreateFinished();return;}else{_783="Error";_784="Failed to create the form";_785=0;}this.showStatusDialog(_783,"",_784,_785,"_completeCreateFinished");},_completeCreateFinished:function(){if(freedom.client.DataStore.OK===this._callbackStatus){this.onCreateAfter(freedom.client.BaseController.OK,this._callbackBusObj);if(this._doneUrl&&this.isFinalStateReached(this._callbackBusObj.flowState)){this._redirectToDoneUrl(this._callbackBusObj);}else{if(this._postSubmit==POST_SUBMIT_ACTIVITY_CLEAR){this.editBusinessObject(null);}}}else{this.onCreateAfter(freedom.client.BaseController.FAILED,this._callbackBusObj);}},_readFinished:function(_786,_787){hideProgressDlg();if(_786===freedom.client.DataStore.OK){var _788=_787.getAllData();if(_788.length>0){this.editBusinessObject(_788[0]);}else{this.editBusinessObject(null);}}else{this.showStatusDialog("Error","","Failed to fetch form(s).<br>Either an error occurred on the server<br>or the selected form is not of the correct<br/>type for this application");this.editBusinessObject(null);}this.onOpenAfter(_787.getName());},_updateFinished:function(_789,_78a){hideProgressDlg();this._callbackStatus=_789;this._callbackBusObj=_78a;var _78b;var _78c;var _78d;if(freedom.client.DataStore.OK===_789){this._completeUpdateFinished();return;}else{_78b="Error";_78c="Failed to update the form";_78d=0;}this.showStatusDialog(_78b,"",_78c,_78d,"_completeUpdateFinished");},_completeUpdateFinished:function(){if(freedom.client.DataStore.OK===this._callbackStatus){this.onUpdateAfter(freedom.client.BaseController.OK,this._callbackBusObj);if(this._doneUrl&&this.isFinalStateReached(this._callbackBusObj.flowState)){this._redirectToDoneUrl(this._callbackBusObj);}}else{this.onUpdateAfter(freedom.client.BaseController.FAILED,this._callbackBusObj);}},isFinalStateReached:function(_78e){var _78f=false;for(var i=0;i<this._views.length&&!_78f;i++){_78f=this._views[i].isFinalState(_78e);}return _78f;},setPostSubmit:function(_791){this._postSubmit=_791;},setDoneUrl:function(_792){this._doneUrl=_792;},_redirectToDoneUrl:function(_793){var _794=location.protocol+"//"+location.host+_793.editLink;var _795=_793.editLink.substring(_793.editLink.lastIndexOf("/")+1);var _796=location.protocol+"//"+location.host+location.pathname+"?form="+this._dataStore.getName()+"&uid="+_795;var url=this._doneUrl+(-1==this._doneUrl.indexOf("?")?"?":"&");location.href=url+"dataUrl="+escape(_794)+"&viewUrl="+escape(_796);},setExternalInitialValues:function(_798){this._initialValues=_798;},constructor:function(){this._views=[];}});}if(!dojo._hasResource["freedom.client.TimeAttribute"]){dojo._hasResource["freedom.client.TimeAttribute"]=true;dojo.provide("freedom.client.TimeAttribute");dojo.declare("freedom.client.TimeAttribute",freedom.client.SimpleAttribute,{setValue:function(_799){if(typeof (_799)=="string"&&_799!==""){_799=this.getTimeFromString(_799);}freedom.client.TimeAttribute.superclass.setValue.apply(this,[_799]);},fillFromItem:function(_79a){if(undefined!==_79a){var _79b=this.getTimeFromString(_79a[0].value);this.setValue(_79b);}else{this.setValue(this.defaultValue);}},getJson:function(){return [{value:this.toString()}];},constructor:function(_79c){if(undefined!==_79c&&null!==_79c&&""!==_79c){this.defaultValue=this.getTimeFromString(_79c);}else{this.defaultValue="";}},toString:function(){if(!this._value||isNaN(this._value.getHours())){return "";}var _79d=""+(this._value.getHours());if(_79d.length==1){_79d="0"+_79d;}var _79e=""+this._value.getMinutes();if(_79e.length==1){_79e="0"+_79e;}return _79d+":"+_79e;},getTimeFromString:function(_79f){if(_79f.indexOf(":")<0){return _79f;}var _7a0=_79f.split(":");var _7a1=new Date();_7a1.setHours(parseInt(_7a0[0],10));_7a1.setMinutes(parseInt(_7a0[1],10));return _7a1;}});}if(!dojo._hasResource["freedom.widget.common.environment.FreedomNlsMixin"]){dojo._hasResource["freedom.widget.common.environment.FreedomNlsMixin"]=true;dojo.provide("freedom.widget.common.environment.FreedomNlsMixin");dojo.declare("freedom.widget.common.environment.FreedomNlsMixin",null,{data:{__initialized:false},constructor:function(){if(!this.data.__initialized){this.data.nlsStrings=dojo.i18n.getLocalization("freedom","freedom_g11n");this.data.__initialized=true;}},getString:function(key,_7a3){var str=this.data.nlsStrings[key];return (_7a3)?dojo.string.substitute(str,_7a3):str;}});}if(!dojo._hasResource["freedom.widget.common.environment.FreedomBaseMixin"]){dojo._hasResource["freedom.widget.common.environment.FreedomBaseMixin"]=true;dojo.provide("freedom.widget.common.environment.FreedomBaseMixin");dojo.declare("freedom.widget.common.environment.FreedomBaseMixin",freedom.widget.common.environment.FreedomNlsMixin,{_uid:"",constructor:function(){freedom.widget.common.environment.FreedomBaseMixin.superclass.constructor.apply(this,arguments);this._uid=dojox.uuid.generateRandomUuid();},getUid:function(){return this._uid;}});}if(!dojo._hasResource["freedom.widget.common.environment.ChoiceDialog"]){dojo._hasResource["freedom.widget.common.environment.ChoiceDialog"]=true;dojo.provide("freedom.widget.common.environment.ChoiceDialog");dojo.declare("freedom.widget.common.environment.ChoiceDialog",[dijit._Widget,dijit._Templated,freedom.widget.common.environment.FreedomBaseMixin],{widgetsInTemplate:true,templateString:["<div>","<div dojoType=\"dijit.Dialog\" dojoAttachPoint=\"dialog\"","duration=\"1\" style=\"margin: 0px;\">","<div class=\"freedom-form-box\">","<div class=\"freedom-form\">","<ul class=\"freedom-form-list\">","<li style=\"padding-bottom: 5px; margin-left: 0.5em;\">","<label for=\"${_uid}-msg\" style=\"display: block;\"","dojoAttachPoint=\"subTitle\">","</label>","<div id=\"${_uid}-msg\" dojoAttachPoint=\"message\">","</div>","</li>","<li style=\"padding-top: 3px; margin-left: 0.5em;\">","<table>","<tbody>","<tr>","<td align=\"center\">","<button dojoType=\"dijit.form.Button\" type=\"submit\"","dojoAttachEvent=\"onClick:okClicked\">","<b>${ok}</b>","</button>","</td>","<td align=\"center\">","<button dojoType=\"dijit.form.Button\" type=\"submit\"","dojoAttachEvent=\"onClick:cancelClicked\">","<b>${cancel}</b>","</button>","</td>","</tr>","</tbody>","</table>","</li>","</ul>","</div>","</div>","</div>","</div>",].join(" "),_context:null,_callback:null,mode:null,constructor:function(){},showDialog:function(_7a5,_7a6,_7a7,_7a8,_7a9){this.dialog.titleNode.innerHTML=_7a5;this.subTitle.innerHTML=_7a6;this.message.innerHTML=_7a7;this._callback=_7a8;this._context=_7a9;this.dialog.show();},hideDialog:function(){this.dialog.hide();},okClicked:function(){this.closeDlg(true);},cancelClicked:function(){this.closeDlg(false);},closeDlg:function(pOk){this.hideDialog();var _7ab=this._context;this._context=null;if(null!=_7ab){dojo.hitch(_7ab,this._callback)(pOk);}},initializeStrings:function(){if(this.mode==freedom.widget.common.environment.ChoiceDialog.YES_NO){this.ok=this.getString("YES");this.cancel=this.getString("NO");}else{this.ok=this.getString("OK");this.cancel=this.getString("CANCEL");}},postCreate:function(){freedom.widget.common.environment.ChoiceDialog.superclass.postCreate.apply(this,arguments);this.dialog.closeButtonNode.style.display="none";if(this.dlgClassName){this.dialog.setAttribute("class",this.dlgClassName);}},postMixInProperties:function(){freedom.widget.common.environment.ChoiceDialog.superclass.postMixInProperties.apply(this,arguments);this.initializeStrings();}});freedom.widget.common.environment.ChoiceDialog.OK_CANCEL=1;freedom.widget.common.environment.ChoiceDialog.YES_NO=2;}if(!dojo._hasResource["freedom.widget.common.environment.ConfirmationWithDetailsDialog"]){dojo._hasResource["freedom.widget.common.environment.ConfirmationWithDetailsDialog"]=true;dojo.provide("freedom.widget.common.environment.ConfirmationWithDetailsDialog");dojo.declare("freedom.widget.common.environment.ConfirmationWithDetailsDialog",[dijit._Widget,dijit._Templated,freedom.widget.common.environment.FreedomBaseMixin],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/common/environment/templates/confirmation-with-details-dialog.html"),_context:null,_function:null,_expanded:false,expandIcon:EXPAND_ICON_LOCATION,showDialog:function(_7ac){this.dialog.titleNode.innerHTML=_7ac.title;this.message.innerHTML=_7ac.message;if(_7ac.details){this.detailsView.innerHTML=_7ac.details;}else{this.detailsHeader.style.display="none";this.detailsView.style.display="none";}this.question.innerHTML=(_7ac.question)?_7ac.question:this.defaultQuestion;this._context=_7ac.callbackContext;this._function=_7ac.callback;this.yesButton.setLabel((_7ac.yesLabel)?_7ac.yesLabel:this.yes);this.noButton.setLabel((_7ac.noLabel)?_7ac.noLabel:this.no);this.dialog.show();if(_7ac.aroundLocation){this._placeAroundNode(_7ac.aroundLocation);}},closeDialog:function(_7ad){this.dialog.hide();var _7ae=this._context;var _7af=this._function;this._context=null;this._function=null;if(null!=_7ae&&null!=_7af){dojo.hitch(_7ae,_7af)(_7ad);}},yesClicked:function(){this.closeDialog(true);},noClicked:function(){this.closeDialog(false);},expandCollapse:function(){this._expanded=!this._expanded;if(this._expanded){this.detailsView.style.display="block";this.expandCollapseButtonImage.src=COLLAPSE_ICON_LOCATION;this.expandCollapseButtonImage.style.verticalAlign="sub";}else{this.detailsView.style.display="none";this.expandCollapseButtonImage.src=EXPAND_ICON_LOCATION;this.expandCollapseButtonImage.style.verticalAlign="text-top";}},postCreate:function(){freedom.widget.common.environment.ConfirmationWithDetailsDialog.superclass.postCreate.apply(this,arguments);this.dialog.closeButtonNode.style.display="none";dojo.connect(this.dialog,"onCancel",this,"noClicked");},initializeStrings:function(){this.yes=this.getString("YES");this.no=this.getString("NO");this.detailsTitleStr=this.getString("MORE_DETAILS");this.defaultQuestion=this.getString("ARE_YOU_SURE");},postMixInProperties:function(){freedom.widget.common.environment.ConfirmationWithDetailsDialog.superclass.postMixInProperties.apply(this,arguments);this.initializeStrings();},_placeAroundNode:function(_7b0){dijit.placeOnScreen(this.dialog.domNode,{x:_7b0.x,y:_7b0.y},["TL","TR","BL","BR"]);}});}if(!dojo._hasResource["freedom.widget.common.environment.ErrorMessageDropdown"]){dojo._hasResource["freedom.widget.common.environment.ErrorMessageDropdown"]=true;dojo.provide("freedom.widget.common.environment.ErrorMessageDropdown");dojo.declare("freedom.widget.common.environment.ErrorMessageDropdown",[dijit._Widget,dijit._Templated,freedom.widget.common.environment.FreedomNlsMixin],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/common/environment/templates/error-message-dropdown.html"),dropdownLabel:"",tooltipTitle:"",listTitle:"Validation Errors",description:"",setMessages:function(_7b1){while(this.rootNode.hasChildNodes()){this.rootNode.removeChild(this.rootNode.lastChild);}if(_7b1.length>0){this.theDropdown.setLabel(_7b1.length==1?this.getString("ONE_ERROR"):this.getString("MANY_ERRORS",[_7b1.length]));this.theDropdown.setDisabled(false);dojo.removeClass(this.theDropdown.iconNode,"okIcon");dojo.addClass(this.theDropdown.iconNode,"errorIcon");this.messageBuilder.setIssues(_7b1);if(this.messageBuilder.rootNode.parentNode){this.messageBuilder.rootNode.parentNode.removeChild(this.messageBuilder.rootNode);}this.rootNode.appendChild(this.messageBuilder.rootNode);}else{this.theDropdown.setLabel(this.getString("NO_ERRORS"));this.theDropdown.setDisabled(true);dojo.removeClass(this.theDropdown.iconNode,"errorIcon");dojo.addClass(this.theDropdown.iconNode,"okIcon");}},initializeStrings:function(){this.dropdownLabel=this.getString("NO_ERRORS");},postMixInProperties:function(){freedom.widget.common.environment.ErrorMessageDropdown.superclass.postMixInProperties.apply(this,arguments);this.initializeStrings();},startup:function(){freedom.widget.common.environment.ErrorMessageDropdown.superclass.startup.apply(this,arguments);this._dropdownTitleColor=this.theDropdown.titleNode.style.color;this.theDropdown.setDisabled(true);},messageBuilder:null,theDropdown:null,theTooltipDB:null,rootNode:null});}if(!dojo._hasResource["freedom.widget.common.util.Store"]){dojo._hasResource["freedom.widget.common.util.Store"]=true;dojo.provide("freedom.widget.common.util.Store");freedom.widget.common.util.Store=function(_7b2){var data=[];var _7b4={};this.keyField="Id";this.get=function(){return data;};this.getByKey=function(key){return _7b4[key];};this.getByIndex=function(idx){return data[idx];};this.getIndexOf=function(key){for(var i=0;i<data.length;i++){if(data[i].key==key){return i;}}return -1;};this.getData=function(){var arr=[];for(var i=0;i<data.length;i++){arr.push(data[i].src);}return arr;};this.getDataByKey=function(key){if(_7b4[key]!=null){return _7b4[key].src;}return null;};this.getIndexOfData=function(obj){for(var i=0;i<data.length;i++){if(data[i].src==obj){return i;}}return -1;};this.getDataByIndex=function(idx){if(data[idx]){return data[idx].src;}return null;};this.update=function(obj,_7c0,val,_7c2){var _7c3=_7c0.split("."),i=0,o=obj,_7c6;if(_7c3.length>1){_7c6=_7c3.pop();do{if(_7c3[i].indexOf("()")>-1){var temp=_7c3[i++].split("()")[0];if(!o[temp]){dojo.raise("dojo.collections.Store.getField(obj, '"+_7c6+"'): '"+temp+"' is not a property of the passed object.");}else{o=o[temp]();}}else{o=o[_7c3[i++]];}}while(i<_7c3.length&&o!=null);}else{_7c6=_7c3[0];}obj[_7c6]=val;if(!_7c2){this.onUpdateField(obj,_7c0,val);}};this.forEach=function(fn){if(Array.forEach){Array.forEach(data,fn,this);}else{for(var i=0;i<data.length;i++){fn.call(this,data[i]);}}};this.forEachData=function(fn){if(Array.forEach){Array.forEach(this.getData(),fn,this);}else{var a=this.getData();for(var i=0;i<a.length;i++){fn.call(this,a[i]);}}};this.setData=function(arr,_7ce){data=[];_7b4={};for(var i=0;i<arr.length;i++){var o={key:arr[i][this.keyField],src:arr[i]};data.push(o);_7b4[o.key]=o;}if(!_7ce){this.onSetData();}};this.clearData=function(_7d1){data=[];_7b4={};if(!_7d1){this.onClearData();}};this.addData=function(obj,key,_7d4){var k=key||obj[this.keyField];if(_7b4[k]!=null){var o=_7b4[k];o.src=obj;}else{var o={key:k,src:obj};data.push(o);_7b4[o.key]=o;}if(!_7d4){this.onAddData(o);}};this.addDataRange=function(arr,_7d8){var _7d9=[];for(var i=0;i<arr.length;i++){var k=arr[i][this.keyField];if(_7b4[k]!=null){var o=_7b4[k];o.src=arr[i];}else{var o={key:k,src:arr[i]};data.push(o);_7b4[k]=o;}_7d9.push(o);}if(!_7d8){this.onAddDataRange(_7d9);}};this.addDataByIndex=function(obj,idx,key,_7e0){var k=key||obj[this.keyField];if(_7b4[k]!=null){var i=this.getIndexOf(k);var o=data.splice(i,1);o.src=obj;}else{var o={key:k,src:obj};_7b4[k]=o;}data.splice(idx,0,o);if(!_7e0){this.onAddData(o);}};this.addDataRangeByIndex=function(arr,idx,_7e6){var _7e7=[];for(var i=0;i<arr.length;i++){var k=arr[i][this.keyField];if(_7b4[k]!=null){var j=this.getIndexOf(k);var o=data.splice(j,1);o.src=arr[i];}else{var o={key:k,src:arr[i]};_7b4[k]=o;}_7e7.push(o);}data.splice(idx,0,_7e7);if(!_7e6){this.onAddDataRange(_7e7);}};this.removeData=function(obj,_7ed){var idx=-1;var o=null;for(var i=0;i<data.length;i++){if(data[i].src==obj){idx=i;o=data[i];break;}}if(!_7ed){this.onRemoveData(o);}if(idx>-1){data.splice(idx,1);delete _7b4[o.key];}};this.removeDataRange=function(idx,_7f2,_7f3){var ret=data.splice(idx,_7f2);for(var i=0;i<ret.length;i++){delete _7b4[ret[i].key];}if(!_7f3){this.onRemoveDataRange(ret);}return ret;};this.removeDataByKey=function(key,_7f7){this.removeData(this.getDataByKey(key),_7f7);};this.removeDataByIndex=function(idx,_7f9){this.removeData(this.getDataByIndex(idx),_7f9);};if(_7b2&&_7b2.length&&_7b2[0]){this.setData(_7b2,true);}};dojo.extend(freedom.widget.common.util.Store,{getField:function(obj,_7fb){var _7fc=_7fb.split("."),i=0,o=obj;do{if(_7fc[i].indexOf("()")>-1){var temp=_7fc[i++].split("()")[0];if(!o[temp]){dojo.raise("dojo.collections.Store.getField(obj, '"+_7fb+"'): '"+temp+"' is not a property of the passed object.");}else{o=o[temp]();}}else{o=o[_7fc[i++]];}}while(i<_7fc.length&&o!=null);if(i<_7fc.length){dojo.raise("dojo.collections.Store.getField(obj, '"+_7fb+"'): '"+_7fb+"' is not a property of the passed object.");}return o;},getFromHtml:function(meta,body,_802){var rows=body.rows;var ctor=function(row){var obj={};for(var i=0;i<meta.length;i++){var o=obj;var data=row.cells[i].innerHTML;var p=meta[i].getField();if(p.indexOf(".")>-1){p=p.split(".");while(p.length>1){var pr=p.shift();o[pr]={};o=o[pr];}p=p[0];}var type=meta[i].getType();if(type==String){o[p]=data;}else{if(data){o[p]=new type(data);}else{o[p]=new type();}}}return obj;};var arr=[];for(var i=0;i<rows.length;i++){var o=ctor(rows[i]);if(_802){_802(o,rows[i]);}arr.push(o);}return arr;},onSetData:function(){},onClearData:function(){},onAddData:function(obj){},onAddDataRange:function(arr){},onRemoveData:function(obj){},onRemoveDataRange:function(arr){},onUpdateField:function(obj,_815,val){}});}if(!dojo._hasResource["freedom.widget.common.environment.FilteringTable"]){dojo._hasResource["freedom.widget.common.environment.FilteringTable"]=true;dojo.provide("freedom.widget.common.environment.FilteringTable");dojo.declare("freedom.widget.common.environment.FilteringTable",dijit._Widget,{alternateRows:false,valueField:"Id",multiple:false,maxSelect:0,maxSortable:1,minRows:0,defaultDateFormat:"%D",headClass:"",tbodyClass:"",headerClass:"",headerUpClass:"selectedUp",headerDownClass:"selectedDown",rowClass:"",rowAlternateClass:"alt",rowSelectedClass:"selected",columnSelected:"sorted-column",isContainer:false,startupFuncHasBeenCalled:false,constructor:function(){this.store=new freedom.widget.common.util.Store();this.isInitialized=false;this.columns=[];this.sortInformation=[{index:0,direction:0}];this.initialize();},getTypeFromString:function(s){var _818=s.split("."),i=0,obj=dojo.global;do{obj=obj[_818[i++]];}while(i<_818.length&&obj);return (obj!=dojo.global)?obj:null;},getByRow:function(row){return this.store.getByKey(row.getAttribute("value"));},getDataByRow:function(row){return this.store.getDataByKey(row.getAttribute("value"));},getRow:function(obj){var rows=this.domNode.tBodies[0].rows;for(var i=0;i<rows.length;i++){if(this.store.getDataByKey(rows[i].getAttribute("value"))==obj){return rows[i];}}return null;},getColumnIndex:function(_820){for(var i=0;i<this.columns.length;i++){if(this.columns[i].getField()==_820){return i;}}return -1;},getSelectedData:function(){var data=this.store.get();var a=[];for(var i=0;i<data.length;i++){if(data[i].isSelected){a.push(data[i].src);}}if(this.multiple){return a;}else{return a[0];}},isSelected:function(obj){var data=this.store.get();for(var i=0;i<data.length;i++){if(data[i].src==obj){return true;}}return false;},isValueSelected:function(val){var v=this.store.getByKey(val);if(v){return v.isSelected;}return false;},isIndexSelected:function(idx){var v=this.store.getByIndex(idx);if(v){return v.isSelected;}return false;},isRowSelected:function(row){var v=this.getByRow(row);if(v){return v.isSelected;}return false;},reset:function(){this.store.clearData();this.columns=[];this.sortInformation=[{index:0,direction:0}];this.resetSelections();this.isInitialized=false;this.onReset();},resetSelections:function(){this.store.forEach(function(_82e){_82e.isSelected=false;});},onReset:function(){},select:function(obj){var data=this.store.get();for(var i=0;i<data.length;i++){if(data[i].src==obj){data[i].isSelected=true;break;}}this.renderSelections();this.onDataSelect(obj);},selectByValue:function(val){this.select(this.store.getDataByKey(val));},selectByIndex:function(idx){this.select(this.store.getDataByIndex(idx));},selectByRow:function(row){this.select(this.getDataByRow(row));},selectAll:function(){this.store.forEach(function(_835){_835.isSelected=true;});this.renderSelections();},onDataSelect:function(obj){},toggleSelection:function(obj){var data=this.store.get();for(var i=0;i<data.length;i++){if(data[i].src==obj){data[i].isSelected=!data[i].isSelected;break;}}this.renderSelections();this.onDataToggle(obj);},toggleSelectionByValue:function(val){this.toggleSelection(this.store.getDataByKey(val));},toggleSelectionByIndex:function(idx){this.toggleSelection(this.store.getDataByIndex(idx));},toggleSelectionByRow:function(row){this.toggleSelection(this.getDataByRow(row));},toggleAll:function(){this.store.forEach(function(_83d){_83d.isSelected=!_83d.isSelected;});this.renderSelections();},onDataToggle:function(obj){},_meta:{field:null,format:null,filterer:null,noSort:false,sortType:"String",dataType:String,sortFunction:null,filterFunction:null,label:null,align:"left",valign:"middle",getField:function(){return this.field||this.label;},getType:function(){return this.dataType;}},createMetaData:function(obj){for(var p in this._meta){if(!obj[p]){obj[p]=this._meta[p];}}if(!obj.label){obj.label=obj.field;}if(!obj.filterFunction){obj.filterFunction=this._defaultFilter;}return obj;},parseMetadata:function(head){this.columns=[];this.sortInformation=[];var row=head.getElementsByTagName("tr")[0];var _843=row.getElementsByTagName("td");if(_843.length==0){_843=row.getElementsByTagName("th");}for(var i=0;i<_843.length;i++){var o=this.createMetaData({});if(_843[i].getAttribute("align")){o.align=_843[i].getAttribute("align");}if(_843[i].getAttribute("valign")){o.valign=_843[i].getAttribute("valign");}if(_843[i].getAttribute("nosort")){o.noSort=(_843[i].getAttribute("nosort")=="true");}if(_843[i].getAttribute("sortusing")){var _846=_843[i].getAttribute("sortusing");var f=this.getTypeFromString(_846);if(f!=null&&f!=window&&typeof (f)=="function"){o.sortFunction=f;}}o.label=this.renderedTextContent(_843[i]);if(_843[i].getAttribute("field")){o.field=_843[i].getAttribute("field");}else{if(o.label.length>0){o.field=o.label;}else{o.field="field"+i;}}if(_843[i].getAttribute("format")){o.format=_843[i].getAttribute("format");}if(_843[i].getAttribute("dataType")){var _848=_843[i].getAttribute("dataType");if(_848.toLowerCase()=="html"||_848.toLowerCase()=="markup"){o.sortType="__markup__";}else{var type=this.getTypeFromString(_848);if(type){o.sortType=_848;o.dataType=type;}}}if(_843[i].getAttribute("filterusing")){var _846=_843[i].getAttribute("filterusing");var f=this.getTypeFromString(_846);if(f!=null&&f!=window&&typeof (f)=="function"){o.filterFunction=f;}}this.columns.push(o);if(_843[i].getAttribute("sort")){var info={index:i,direction:0};var dir=_843[i].getAttribute("sort");if(!isNaN(parseInt(dir))){dir=parseInt(dir);info.direction=(dir!=0)?1:0;}else{info.direction=(dir.toLowerCase()=="desc")?1:0;}this.sortInformation.push(info);}}if(this.sortInformation.length==0){this.sortInformation.push({index:0,direction:0});}else{if(this.sortInformation.length>this.maxSortable){this.sortInformation.length=this.maxSortable;}}},parseData:function(body){if(body.rows.length==0&&this.columns.length==0){return;}var self=this;this["__selected__"]=[];var arr=this.store.getFromHtml(this.columns,body,function(obj,row){if(typeof (obj[self.valueField])=="undefined"||obj[self.valueField]==null){obj[self.valueField]=row.getAttribute("value");}if(row.getAttribute("selected")=="true"){self["__selected__"].push(obj);}});this.store.setData(arr,true);this.render();for(var i=0;i<this["__selected__"].length;i++){this.select(this["__selected__"][i]);}this.renderSelections();delete this["__selected__"];this.isInitialized=true;},onSelect:function(e){var row=this.getParentByType(e.target,"tr");if(row.getAttribute("emptyRow")){return;}var body=this.getParentByType(row,"tbody");if(this.multiple){if(e.shiftKey){var _855;var rows=body.rows;for(var i=0;i<rows.length;i++){if(rows[i]==row){break;}if(this.isRowSelected(rows[i])){_855=rows[i];}}if(!_855){_855=row;for(;i<rows.length;i++){if(this.isRowSelected(rows[i])){row=rows[i];break;}}}this.resetSelections();if(_855==row){this.toggleSelectionByRow(row);}else{var _858=false;for(var i=0;i<rows.length;i++){if(rows[i]==_855){_858=true;}if(_858){this.selectByRow(rows[i]);}if(rows[i]==row){_858=false;}}}}else{this.toggleSelectionByRow(row);}}else{this.resetSelections();this.toggleSelectionByRow(row);}this.renderSelections();},onSort:function(e){var _85a=this.sortIndex;var _85b=this.sortDirection;var _85c=e.target;var row=this.getParentByType(_85c,"tr");var _85e="td";if(row.getElementsByTagName(_85e).length==0){_85e="th";}var _85f=row.getElementsByTagName(_85e);var _860=this.getParentByType(_85c,_85e);for(var i=0;i<_85f.length;i++){dojo.removeClass(_85f[i],this.headerUpClass);dojo.removeClass(_85f[i],this.headerDownClass);if(_85f[i]==_860){if(this.sortInformation[0].index!=i){this.sortInformation.unshift({index:i,direction:0});}else{this.sortInformation[0]={index:i,direction:(~this.sortInformation[0].direction)&1};}}}this.sortInformation.length=Math.min(this.sortInformation.length,this.maxSortable);for(var i=0;i<this.sortInformation.length;i++){var idx=this.sortInformation[i].index;var dir=this.sortInformation[i].direction;dojo.addClass(_85f[idx],dir==0?this.headerUpClass:this.headerDownClass);}this.render();},onFilter:function(){},_defaultFilter:function(obj){return true;},setFilter:function(_865,fn){for(var i=0;i<this.columns.length;i++){if(this.columns[i].getField()==_865){this.columns[i].filterFunction=fn;break;}}this.applyFilters();},setFilterByIndex:function(idx,fn){this.columns[idx].filterFunction=fn;this.applyFilters();},clearFilter:function(_86a){for(var i=0;i<this.columns.length;i++){if(this.columns[i].getField()==_86a){this.columns[i].filterFunction=this._defaultFilter;break;}}this.applyFilters();},clearFilterByIndex:function(idx){this.columns[idx].filterFunction=this._defaultFilter;this.applyFilters();},clearFilters:function(){for(var i=0;i<this.columns.length;i++){this.columns[i].filterFunction=this._defaultFilter;}var rows=this.domNode.tBodies[0].rows;for(var i=0;i<rows.length;i++){rows[i].style.display="";if(this.alternateRows){dojo[((i%2==1)?"addClass":"removeClass")](rows[i],this.rowAlternateClass);}}this.onFilter();},applyFilters:function(){var alt=0;var rows=this.domNode.tBodies[0].rows;for(var i=0;i<rows.length;i++){var b=true;var row=rows[i];for(var j=0;j<this.columns.length;j++){var _875=this.store.getField(this.getDataByRow(row),this.columns[j].getField());if(this.columns[j].getType()==Date&&_875!=null&&!_875.getYear){_875=new Date(_875);}if(!this.columns[j].filterFunction(_875)){b=false;break;}}row.style.display=(b?"":"none");if(b&&this.alternateRows){dojo[((alt++%2==1)?"addClass":"removeClass")](row,this.rowAlternateClass);}}this.onFilter();},createSorter:function(info){var self=this;var _878=[];function createSortFunction(_879,dir){var meta=self.columns[_879];var _87c=meta.getField();return function(rowA,rowB){if(rowA.getAttribute("emptyRow")){return 1;}if(rowB.getAttribute("emptyRow")){return -1;}var a=self.store.getField(self.getDataByRow(rowA),_87c);var b=self.store.getField(self.getDataByRow(rowB),_87c);var ret=0;if(undefined!=a&&undefined!=b){if(undefined!=a.compare&&undefined!=b.compare){ret=a.compare(b);}else{if(a>b){ret=1;}if(a<b){ret=-1;}}}return dir*ret;};};var _882=0;var max=Math.min(info.length,this.maxSortable,this.columns.length);while(_882<max){var _884=(info[_882].direction==0)?1:-1;_878.push(createSortFunction(info[_882].index,_884));_882++;}return function(rowA,rowB){var idx=0;while(idx<_878.length){var ret=_878[idx++](rowA,rowB);if(ret!=0){return ret;}}return 0;};},createRow:function(obj){var row=document.createElement("tr");this.disableSelection(row);if(obj.key!=null){row.setAttribute("value",obj.key);}for(var j=0;j<this.columns.length;j++){var cell=document.createElement("td");cell.setAttribute("align",this.columns[j].align);cell.setAttribute("valign",this.columns[j].valign);this.disableSelection(cell);var val=this.store.getField(obj.src,this.columns[j].getField());if(typeof (val)=="undefined"){val="";}this.fillCell(cell,this.columns[j],val);this.onCellFilled(cell,j);row.appendChild(cell);}return row;},fillCell:function(cell,meta,val){if(meta.sortType=="__markup__"){cell.innerHTML=val;}else{if(meta.getType()==Date){val=new Date(val);if(!isNaN(val)){var _891=this.defaultDateFormat;if(meta.format){_891=meta.format;}cell.innerHTML=dojo.date.strftime(val,_891);}else{cell.innerHTML=val;}}else{if("Number number int Integer float Float".indexOf(meta.getType())>-1){if(val.length==0){val="0";}var n=parseFloat(val,10)+"";if(n.indexOf(".")>-1){n=dojo.math.round(parseFloat(val,10),2);}cell.innerHTML=n;}else{cell.innerHTML=val;}}}},onCellFilled:function(cell,_894){},prefill:function(){this.isInitialized=false;var body=this.domNode.tBodies[0];while(body.childNodes.length>0){body.removeChild(body.childNodes[0]);}if(this.minRows>0){for(var i=0;i<this.minRows;i++){var row=document.createElement("tr");if(this.alternateRows){dojo[((i%2==1)?"addClass":"removeClass")](row,this.rowAlternateClass);}row.setAttribute("emptyRow","true");for(var j=0;j<this.columns.length;j++){var cell=document.createElement("td");cell.innerHTML="&nbsp;";row.appendChild(cell);}body.appendChild(row);}}},init:function(){this.isInitialized=false;var head=this.domNode.getElementsByTagName("thead")[0];if(head.getElementsByTagName("tr").length==0){var row=document.createElement("tr");for(var i=0;i<this.columns.length;i++){var cell=document.createElement("td");cell.setAttribute("align",this.columns[i].align);cell.setAttribute("valign",this.columns[i].valign);this.disableSelection(cell);cell.innerHTML=this.columns[i].label;row.appendChild(cell);if(!this.columns[i].noSort){dojo.connect(cell,"onclick",this,"onSort");}}this.prependChild(row,head);}if(this.store.get().length==0){return false;}var idx=this.domNode.tBodies[0].rows.length;if(!idx||idx==0||this.domNode.tBodies[0].rows[0].getAttribute("emptyRow")=="true"){idx=0;var body=this.domNode.tBodies[0];while(body.childNodes.length>0){body.removeChild(body.childNodes[0]);}var data=this.store.get();for(var i=0;i<data.length;i++){var row=this.createRow(data[i]);body.appendChild(row);idx++;}}if(this.minRows>0&&idx<this.minRows){idx=this.minRows-idx;for(var i=0;i<idx;i++){row=document.createElement("tr");row.setAttribute("emptyRow","true");for(var j=0;j<this.columns.length;j++){cell=document.createElement("td");cell.innerHTML="&nbsp;";row.appendChild(cell);}body.appendChild(row);}}var row=this.domNode.getElementsByTagName("thead")[0].rows[0];var _8a2="td";if(row.getElementsByTagName(_8a2).length==0){_8a2="th";}var _8a3=row.getElementsByTagName(_8a2);for(var i=0;i<_8a3.length;i++){dojo.addClass(_8a3[i],this.headerClass);}for(var i=0;i<this.sortInformation.length;i++){var idx=this.sortInformation[i].index;var dir=(~this.sortInformation[i].direction)&1;dojo.addClass(_8a3[idx],dir==0?this.headerDownClass:this.headerUpClass);}this.isInitialized=true;return this.isInitialized;},render:function(){if(!this.isInitialized){var b=this.init();if(!b){this.prefill();return;}}var rows=[];var body=this.domNode.tBodies[0];var _8a8=-1;for(var i=0;i<body.rows.length;i++){rows.push(body.rows[i]);}for(var i=rows.length-1;i>=0;i--){body.removeChild(rows[i]);}var _8aa=this.createSorter(this.sortInformation);if(_8aa){rows.sort(_8aa);}for(var i=0;i<rows.length;i++){if(this.alternateRows){dojo[((i%2==1)?"addClass":"removeClass")](rows[i],this.rowAlternateClass);}dojo[(this.isRowSelected(rows[i])?"addClass":"removeClass")](rows[i],this.rowSelectedClass);body.appendChild(rows[i]);}},renderSelections:function(){var body=this.domNode.tBodies[0];for(var i=0;i<body.rows.length;i++){dojo[(this.isRowSelected(body.rows[i])?"addClass":"removeClass")](body.rows[i],this.rowSelectedClass);}},initialize:function(){var self=this;dojo.connect(this.store,"onSetData",function(){self.store.forEach(function(_8ae){_8ae.isSelected=false;});self.isInitialized=false;var body=self.domNode.tBodies[0];if(body){while(body.childNodes.length>0){body.removeChild(body.childNodes[0]);}}self.render();});dojo.connect(this.store,"onClearData",function(){self.isInitialized=false;self.render();});dojo.connect(this.store,"onAddData",function(_8b0){var row=self.createRow(_8b0);self.domNode.tBodies[0].appendChild(row);self.render();});dojo.connect(this.store,"onAddDataRange",function(arr){for(var i=0;i<arr.length;i++){arr[i].isSelected=false;var row=self.createRow(arr[i]);self.domNode.tBodies[0].appendChild(row);}self.render();});dojo.connect(this.store,"onRemoveData",function(_8b5){var rows=self.domNode.tBodies[0].rows;for(var i=0;i<rows.length;i++){if(self.getDataByRow(rows[i])==_8b5.src){rows[i].parentNode.removeChild(rows[i]);break;}}self.render();});dojo.connect(this.store,"onUpdateField",function(obj,_8b9,val){var row=self.getRow(obj);var idx=self.getColumnIndex(_8b9);if(row&&row.cells[idx]&&self.columns[idx]){self.fillCell(row.cells[idx],self.columns[idx],val);self.onCellFilled(row.cells[idx],idx);}});},getParentByType:function(node,type){var _8bf=dojo.doc;var _8c0=dojo.byId(node);type=type.toLowerCase();while((_8c0)&&(_8c0.nodeName.toLowerCase()!=type)){if(_8c0==(_8bf["body"]||_8bf["documentElement"])){return null;}_8c0=_8c0.parentNode;}return _8c0;},disableSelection:function(_8c1){_8c1=dojo.byId(_8c1);if(dojo.isMozilla){_8c1.style.MozUserSelect="none";}else{if(dojo.isSafari){_8c1.style.KhtmlUserSelect="none";}else{if(dojo.isIE){_8c1.unselectable="on";}else{return false;}}}return true;},prependChild:function(node,_8c3){if(_8c3.firstChild){_8c3.insertBefore(node,_8c3.firstChild);}else{_8c3.appendChild(node);}return true;},renderedTextContent:function(node){node=dojo.byId(node);var _8c5="";if(node==null){return _8c5;}for(var i=0;i<node.childNodes.length;i++){switch(node.childNodes[i].nodeType){case 1:case 5:var _8c7="unknown";try{_8c7=dojo.style(node.childNodes[i],"display");}catch(E){}switch(_8c7){case "block":case "list-item":case "run-in":case "table":case "table-row-group":case "table-header-group":case "table-footer-group":case "table-row":case "table-column-group":case "table-column":case "table-cell":case "table-caption":_8c5+="\n";_8c5+=this.renderedTextContent(node.childNodes[i]);_8c5+="\n";break;case "none":break;default:if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){_8c5+="\n";}else{_8c5+=this.renderedTextContent(node.childNodes[i]);}break;}break;case 3:case 2:case 4:var text=node.childNodes[i].nodeValue;var _8c9="unknown";try{_8c9=dojo.style(node,"text-transform");}catch(E){}switch(_8c9){case "capitalize":var _8ca=text.split(" ");for(var i=0;i<_8ca.length;i++){_8ca[i]=_8ca[i].charAt(0).toUpperCase()+_8ca[i].substring(1);}text=_8ca.join(" ");break;case "uppercase":text=text.toUpperCase();break;case "lowercase":text=text.toLowerCase();break;default:break;}switch(_8c9){case "nowrap":break;case "pre-wrap":break;case "pre-line":break;case "pre":break;default:text=text.replace(/\s+/," ");if(/\s$/.test(_8c5)){text.replace(/^\s/,"");}break;}_8c5+=text;break;default:break;}}return _8c5;},startup:function(){if(this.startupFuncHasBeenCalled==true){return;}this.startupFuncHasBeenCalled=true;this.store.keyField=this.valueField;if(this.domNode){if(this.domNode.nodeName.toLowerCase()!="table"){}if(this.domNode.getElementsByTagName("thead")[0]){var head=this.domNode.getElementsByTagName("thead")[0];if(this.headClass.length>0){head.className=this.headClass;}this.disableSelection(this.domNode);this.parseMetadata(head);var _8cc="td";if(head.getElementsByTagName(_8cc).length==0){_8cc="th";}var _8cd=head.getElementsByTagName(_8cc);for(var i=0;i<_8cd.length;i++){if(!this.columns[i].noSort){dojo.connect(_8cd[i],"onclick",this,"onSort");}}}else{this.domNode.appendChild(document.createElement("thead"));}if(this.domNode.tBodies.length<1){var body=document.createElement("tbody");this.domNode.appendChild(body);}else{var body=this.domNode.tBodies[0];}if(this.tbodyClass.length>0){body.className=this.tbodyClass;}dojo.connect(body,"onclick",this,"onSelect");this.parseData(body);}}});}if(!dojo._hasResource["freedom.widget.common.environment.FreedomLabel"]){dojo._hasResource["freedom.widget.common.environment.FreedomLabel"]=true;dojo.provide("freedom.widget.common.environment.FreedomLabel");dojo.declare("freedom.widget.common.environment.FreedomLabel",[dijit._Widget,dijit._Templated],{templatePath:dojo.moduleUrl("freedom","widget/common/environment/templates/freedom-label.html"),setValue:function(_8d0){this.containerNode.innerHTML=_8d0;}});}if(!dojo._hasResource["freedom.widget.common.environment.FreedomLinkedContainer"]){dojo._hasResource["freedom.widget.common.environment.FreedomLinkedContainer"]=true;dojo.provide("freedom.widget.common.environment.FreedomLinkedContainer");dojo.declare("freedom.widget.common.environment.FreedomLinkedContainer",[dijit._Widget,dijit._Container,dijit._Templated],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/common/environment/templates/freedom-linked-container.html"),_linkClicked:function(_8d1){var page=this._linkInteractionMap[_8d1];this.interactionArea.selectChild(page);if(undefined!=page.onDisplay&&typeof (page.onDisplay)=="function"){page.onDisplay();}},startup:function(){freedom.widget.common.environment.FreedomLinkedContainer.superclass.startup.apply(this,arguments);this._linkInteractionMap={};var _8d3=this.getChildren();for(var i=0;i<_8d3.length;i++){_8d3[i].domNode.parentNode.removeChild(_8d3[i].domNode);if(undefined!=_8d3[i].createLink&&typeof (_8d3[i].createLink)=="function"){dojo.connect(_8d3[i],"onLinkClicked",this,"_linkClicked");var _8d5=_8d3[i].getChildren();if(0!=_8d5.length){for(var j=0;j<_8d5.length;j++){_8d5[j].domNode.parentNode.removeChild(_8d5[j].domNode);this.interactionArea.addChild(_8d5[j]);var link=_8d3[i].createLink(_8d5[j].title);this._linkInteractionMap[link]=_8d5[j];this._linkInteractionMap[_8d5[j]]=link;}_8d3[i].containerNode.style.display="none";}if(0!=i){_8d3[i].domNode.style.marginTop="1em";}this.commandArea.appendChild(_8d3[i].domNode);}else{this.instructionsArea.appendChild(_8d3[i].domNode);}}this.interactionArea.resize();},commandArea:null,interactionArea:null,instructionsArea:null,layoutContainer:null,linkArea:null});dojo.declare("freedom.widget.common.environment.FreedomLinkedContainerLinkGroup",[dijit._Widget,dijit._Container,dijit._Templated],{widgetsInTemplate:true,templateString:["<fieldset>","<legend>${legend}</legend>","<ul class=\"list\" dojoAttachPoint=\"linkArea\">","</ul>","<div dojoAttachPoint=\"containerNode\" style=\"padding: 0px;\">","</div>","</fieldset>"].join(" "),legend:"",_links:0,createLink:function(_8d8){var div=document.createElement("div");var link=new freedom.widget.common.environment.FreedomLinkedContainerLink({text:_8d8},div);link.startup();dojo.connect(link,"onLinkClicked",this,"_linkClicked");if(this._links==0){link.hilite(true);this._selectedLink=link;}this.linkArea.appendChild(link.domNode);this._links++;return link;},_linkClicked:function(_8db){this._selectedLink.hilite(false);this._selectedLink=_8db;this.onLinkClicked(_8db);},linkArea:null,onLinkClicked:function(_8dc){}});dojo.declare("freedom.widget.common.environment.FreedomLinkedContainerLink",[dijit._Widget,dijit._Templated],{widgetsInTemplate:true,templateString:["<li>","<a href=\"javascript:void(0)\" class=\"command-link\"","dojoAttachPoint=\"theLink\"","dojoAttachEvent=\"onclick:linkClicked\">","${text}","</a>","</li>"].join(" "),linkClicked:function(e){this.onLinkClicked(this);this.hilite(true);},hilite:function(_8de){this.theLink.className=_8de?"selected-link command-link":"command-link";},theLink:null,onLinkClicked:function(_8df){}});}if(!dojo._hasResource["freedom.widget.common.environment.FreedomSlideInPane"]){dojo._hasResource["freedom.widget.common.environment.FreedomSlideInPane"]=true;dojo.provide("freedom.widget.common.environment.FreedomSlideInPane");dojo.declare("freedom.widget.common.environment.FreedomSlideInPane",[dijit._Widget,dijit._Templated],{templatePath:dojo.moduleUrl("freedom","widget/common/environment/templates/freedom-slide-in-pane.html"),open:false,childrenIds:"",childrenActionFunctions:"",openChildrenIds:null,allChildren:null,childrenOpenStatus:null,uid:-1,changeWidth:function(_8e0){var dur=250;var _8e2=dojo._getContentBox(this.containerNode).w;var _8e3=_8e2+_8e0;return dojo.animateProperty({node:this.containerNode,duration:dur,properties:{width:{start:_8e2,end:_8e3}}});},listenToChildrenActionFunctions:function(){this.allChildren=this.parseString(this.childrenIds);var _8e4=this.parseString(this.childrenActionFunctions);var _8e5;for(var i=0;i<_8e4.length;i++){_8e5=dijit.byId(this.allChildren[i]);dojo.connect(_8e5,_8e4[i],this,"childPressed");}},handleOpen:function(){this.changeWidth(167).play();this.open=true;},handleClose:function(){var _8e7;for(var i=0;i<this.allChildren.length;i++){_8e7=dijit.byId(this.allChildren[i]);if(_8e7.open){return;}}this.changeWidth(-167).play();this.open=false;},childPressed:function(){(this.open)?this.handleClose():this.handleOpen();},parseString:function(_8e9){var _8ea;var _8eb=_8e9;var _8ec=0;var _8ed;var _8ee=[];while(true){_8ed=_8eb.indexOf(";");if(_8ed<0){_8ea=_8eb;}else{_8ea=_8eb.substring(0,_8ed);}_8ee[_8ee.length]=_8ea;if(_8ed<0){break;}_8eb=_8eb.substring(_8ed+1);}return _8ee;},startup:function(){freedom.widget.common.environment.FreedomSlideInPane.superclass.startup.apply(this,arguments);if(navigator.appVersion.indexOf("MSIE")!=-1){this.domNode.style.paddingRight="0px";}this.allChildren=[];this.childrenOpenStatus=[];this.uid=dojox.uuid.generateRandomUuid();this.listenToChildrenActionFunctions();}});}if(!dojo._hasResource["dijit.form.TextBox"]){dojo._hasResource["dijit.form.TextBox"]=true;dojo.provide("dijit.form.TextBox");dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",templateString:"<input class=\"dijit dijitReset dijitLeft\" dojoAttachPoint='textbox,focusNode' name=\"${name}\"\r\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse,onfocus:_onMouse,onblur:_onMouse,onkeypress:_onKeyPress'\r\n\tautocomplete=\"off\" type=\"${type}\"\r\n\t/>\r\n",baseClass:"dijitTextBox",attributeMap:dojo.mixin(dojo.clone(dijit.form._FormValueWidget.prototype.attributeMap),{maxLength:"focusNode"}),_getValueAttr:function(){return this.parse(this.attr("displayedValue"),this.constraints);},_setValueAttr:function(_8ef,_8f0,_8f1){var _8f2;if(_8ef!==undefined){_8f2=this.filter(_8ef);if(_8f2!==null&&((typeof _8f2!="number")||!isNaN(_8f2))){if(typeof _8f1!="string"){_8f1=this.format(_8f2,this.constraints);}}else{_8f1="";}}if(_8f1!=null&&_8f1!=undefined){this.textbox.value=_8f1;}dijit.form.TextBox.superclass._setValueAttr.call(this,_8f2,_8f0);},displayedValue:"",getDisplayedValue:function(){dojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use attr('displayedValue') instead.","","2.0");return this.attr("displayedValue");},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},setDisplayedValue:function(_8f3){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");this.attr("displayedValue",_8f3);},_setDisplayedValueAttr:function(_8f4){this.textbox.value=_8f4;this._setValueAttr(this.attr("value"));},format:function(_8f5,_8f6){return ((_8f5==null||_8f5==undefined)?"":(_8f5.toString?_8f5.toString():_8f5));},parse:function(_8f7,_8f8){return _8f7;},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);this._layoutHack();},filter:function(val){if(typeof val!="string"){return val;}if(this.trim){val=dojo.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.attr("value"),(this.isValid?this.isValid():true));},_onBlur:function(){this._setBlurValue();this.inherited(arguments);}});dijit.selectInputText=function(_8fb,_8fc,stop){var _8fe=dojo.global;var _8ff=dojo.doc;_8fb=dojo.byId(_8fb);if(isNaN(_8fc)){_8fc=0;}if(isNaN(stop)){stop=_8fb.value?_8fb.value.length:0;}_8fb.focus();if(_8ff["selection"]&&dojo.body()["createTextRange"]){if(_8fb.createTextRange){var _900=_8fb.createTextRange();with(_900){collapse(true);moveStart("character",_8fc);moveEnd("character",stop);select();}}}else{if(_8fe["getSelection"]){var _901=_8fe.getSelection();if(_8fb.setSelectionRange){_8fb.setSelectionRange(_8fc,stop);}}}};}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\r\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\r\n\t<div class=\"dijitTooltipConnector\"></div>\r\n</div>\r\n",postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_902,_903,_904){if(this.aroundNode&&this.aroundNode===_903){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_902;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var _905={};var ltr=this.isLeftToRight();dojo.forEach((_904&&_904.length)?_904:dijit.Tooltip.defaultPosition,function(pos){switch(pos){case "after":_905[ltr?"BR":"BL"]=ltr?"BL":"BR";break;case "before":_905[ltr?"BL":"BR"]=ltr?"BR":"BL";break;case "below":_905[ltr?"BL":"BR"]=ltr?"TL":"TR";_905[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above":default:_905[ltr?"TL":"TR"]=ltr?"BL":"BR";_905[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});var pos=dijit.placeOnScreenAroundElement(this.domNode,_903,_905,dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_903;},orient:function(node,_90a,_90b){node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_90a+"-"+_90b];},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_90c){if(this._onDeck&&this._onDeck[1]==_90c){this._onDeck=null;}else{if(this.aroundNode===_90c){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_90d,_90e,_90f){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_90d,_90e,_90f);};dijit.hideTooltip=function(_910){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_910);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],postCreate:function(){dojo.addClass(this.domNode,"dijitTooltipData");this._connectNodes=[];dojo.forEach(this.connectId,function(id){var node=dojo.byId(id);if(node){this._connectNodes.push(node);dojo.forEach(["onMouseEnter","onMouseLeave","onFocus","onBlur"],function(_913){this.connect(node,_913.toLowerCase(),"_"+_913);},this);if(dojo.isIE){node.style.zoom=1;}}},this);},_onMouseEnter:function(e){this._onHover(e);},_onMouseLeave:function(e){this._onUnHover(e);},_onFocus:function(e){this._focus=true;this._onHover(e);this.inherited(arguments);},_onBlur:function(e){this._focus=false;this._onUnHover(e);this.inherited(arguments);},_onHover:function(e){if(!this._showTimer){var _919=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_919);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_91b){_91b=_91b||this._connectNodes[0];if(!_91b){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_91b,this.position);this._connectNode=_91b;},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},uninitialize:function(){this.close();}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dijit.form.ValidationTextBox"]){dojo._hasResource["dijit.form.ValidationTextBox"]=true;dojo.provide("dijit.form.ValidationTextBox");dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\r\n\tid=\"widget_${id}\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\r\n\t><div style=\"overflow:hidden;\"\r\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\r\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\r\n\t\t><div class=\"dijitReset dijitInputField\"\r\n\t\t\t><input class=\"dijitReset\" dojoAttachPoint='textbox,focusNode' dojoAttachEvent='onfocus:_update,onkeyup:_update,onblur:_onMouse,onkeypress:_onKeyPress' autocomplete=\"off\"\r\n\t\t\ttype='${type}' name='${name}'\r\n\t\t/></div\r\n\t></div\r\n></div>\r\n",baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_91c){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_91d,_91e){return (new RegExp("^(?:"+this.regExpGen(_91e)+")"+(this.required?"":"?")+"$")).test(_91d)&&(!this.required||!this._isEmpty(_91d))&&(this._isEmpty(_91d)||this.parse(_91d,_91e)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_91f){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_920){return /^\s*$/.test(_920);},getErrorMessage:function(_921){return this.invalidMessage;},getPromptMessage:function(_922){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_923){var _924="";var _925=this.disabled||this.isValid(_923);if(_925){this._maskValidSubsetError=true;}var _926=!_925&&_923&&this._isValidSubset();var _927=this._isEmpty(this.textbox.value);this.state=(_925||(!this._hasBeenBlurred&&_927)||_926)?"":"Error";if(this.state=="Error"){this._maskValidSubsetError=false;}this._setStateClass();dijit.setWaiState(this.focusNode,"invalid",_925?"false":"true");if(_923){if(_927){_924=this.getPromptMessage(true);}if(!_924&&(this.state=="Error"||(_926&&!this._maskValidSubsetError))){_924=this.getErrorMessage(true);}}this.displayMessage(_924);return _925;},_message:"",displayMessage:function(_928){if(this._message==_928){return;}this._message=_928;dijit.hideTooltip(this.domNode);if(_928){dijit.showTooltip(_928,this.domNode,this.tooltipPosition);}},_refreshState:function(){this.validate(this._focused);},_update:function(e){this._refreshState();this._onMouse(e);},constructor:function(){this.constraints={};},postMixInProperties:function(){this.inherited(arguments);this.constraints.locale=this.lang;this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$"){this.invalidMessage=this.messages.invalidMessage;}var p=this.regExpGen(this.constraints);this.regExp=p;var _92b="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_92b+=re;break;case ")":_92b+="|$)";break;default:_92b+="(?:"+re+"|$)";break;}});}try{"".search(_92b);}catch(e){_92b=this.regExp;console.debug("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_92b+")$";},_setDisabledAttr:function(_92d){this.inherited(arguments);if(this.valueNode){this.valueNode.disabled=_92d;}this._refreshState();},_setRequiredAttr:function(_92e){this.required=_92e;dijit.setWaiState(this.focusNode,"required",_92e);this._refreshState();},postCreate:function(){if(dojo.isIE){var s=dojo.getComputedStyle(this.focusNode);if(s){var ff=s.fontFamily;if(ff){this.focusNode.style.fontFamily=ff;}}}this.inherited(arguments);}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{serialize:function(val,_932){return val.toString?val.toString():"";},toString:function(){var val=this.filter(this.attr("value"));return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);var _934=this.textbox;var _935=(this.valueNode=dojo.doc.createElement("input"));_935.setAttribute("type",_934.type);dojo.style(_935,"display","none");this.valueNode.name=this.textbox.name;dojo.place(_935,_934,"after");this.textbox.name=this.textbox.name+"_displayed_";this.textbox.removeAttribute("name");},_setDisabledAttr:function(_936){this.inherited(arguments);dojo.attr(this.valueNode,"disabled",_936);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_937,_938){var _939="min" in _938;var _93a="max" in _938;if(_939||_93a){return (!_939||this.compare(_937,_938.min)>=0)&&(!_93a||this.compare(_937,_938.max)<=0);}return true;},isInRange:function(_93b){return this.rangeCheck(this.attr("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.attr("value");var _93d=false;var _93e=false;if("min" in this.constraints){var min=this.constraints.min;val=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_93d=(typeof val=="number")&&val<0;}if("max" in this.constraints){var max=this.constraints.max;val=this.compare(val,((typeof max!="number")||max>0)?max:0);_93e=(typeof val=="number")&&val>0;}return _93d||_93e;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_941){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_941));},getErrorMessage:function(_942){if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_942)){return this.rangeMessage;}return this.inherited(arguments);},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage;}},postCreate:function(){this.inherited(arguments);if(this.constraints.min!==undefined){dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);}if(this.constraints.max!==undefined){dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);}},_setValueAttr:function(_943,_944){dijit.setWaiState(this.focusNode,"valuenow",_943);this.inherited(arguments);}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomFieldShowHideMixin"]){dojo._hasResource["freedom.widget.solution.form.FreedomFieldShowHideMixin"]=true;dojo.provide("freedom.widget.solution.form.FreedomFieldShowHideMixin");dojo.declare("freedom.widget.solution.form.FreedomFieldShowHideMixin",null,{_isShownInDom:true,_isShownInForm:false,_showHideTitleSeparately:true,sideLabel:false,_isHighLight:true,_handlingEvent:false,setDisplayed:function(_945){this.showInForm(_945);},showInForm:function(_946){if(_946==this._isShownInDom&&_946==this._isShownInForm){if(!this._handlingEvent){this.onShowHide(_946);}return;}if(_946){dojo.connect(this,"_onFocus",this,"onHilight");dojo.connect(this,"_onBlur",this,"onRestore");}this._tagWalk(function(node){node.style.display=(_946?"":"none");});var _948=_946!=this._isShownInForm;this._isShownInDom=_946;this._isShownInForm=_946;this.onShowHide(_946);},onHilight:function(){if(this._isHighLight){this._tagWalk(function(node){node.className="highlight-row";});}},onRestore:function(){if(this._isHighLight){this._tagWalk(function(node){node.className="none";});}},_tagWalk:function(oper){var node=this.domNode;while(node&&node.nodeName!="TD"){node=node.parentNode;}if(node){oper(node);if(this._showHideTitleSeparately&&this.sideLabel){node=node.previousSibling;while(node&&node.nodeName!="TD"){node=node.previousSibling;}node&&oper(node);}}},onShowHide:function(_94d){this._handlingEvent=true;if(_94d){this.onShow();}else{this.onHide();}this._handlingEvent=false;},onShow:function(){},onHide:function(){}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomSolutionWidgetBaseMixin"]){dojo._hasResource["freedom.widget.solution.form.FreedomSolutionWidgetBaseMixin"]=true;dojo.provide("freedom.widget.solution.form.FreedomSolutionWidgetBaseMixin");dojo.declare("freedom.widget.solution.form.FreedomSolutionWidgetBaseMixin",[freedom.widget.common.environment.FreedomBaseMixin],{handlers:null,helptitle:"",startup:function(){this.buildHandlers();},buildHandlers:function(){this.handlers=this.getHandlers();for(var i=0;i<this.handlers.length;i++){this.handlers[i].setWidget(this);}},getHandlers:function(){return [];},updateHandlers:function(){if(!this.handlers){return;}for(var i=0;i<this.handlers.length;i++){this.handlers[i].update();}},onMouseOut:function(){},onShow:function(){},onHide:function(){},onChange:function(){},onMouseOver:function(){},onClick:function(){}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomDataWidgetBaseMixin"]){dojo._hasResource["freedom.widget.solution.form.FreedomDataWidgetBaseMixin"]=true;dojo.provide("freedom.widget.solution.form.FreedomDataWidgetBaseMixin");dojo.declare("freedom.widget.solution.form.FreedomDataWidgetBaseMixin",[freedom.widget.solution.form.FreedomSolutionWidgetBaseMixin,freedom.widget.solution.form.FreedomFieldShowHideMixin],{_eventHandle:null,_busObjAttribute:null,_firingOnChange:false,isFormAttribute:function(){return true;},setBusinessObjectAttribute:function(_950){if(_950&&this._busObjAttribute==_950){return;}if(null!==this._eventHandle){dojo.disconnect(this._eventHandle);this._busObjAttribute=null;}if(null!==_950){this.setValue(_950.getValue());this._eventHandle=dojo.connect(_950,"onChange",this,"onAttributeChange");}else{this._eventHandle=null;}this._busObjAttribute=_950;},getBusinessObjectAttribute:function(){return this._busObjAttribute;},onAttributeChange:function(_951){if(!this._firingOnChange){this.setValue(_951);}},isReallyModified:function(){if(null!==this._busObjAttribute){var _952=this._busObjAttribute.getValue();if(_952!==this.getValue()){return true;}}return false;},onChange:function(){if(null!==this._busObjAttribute){this._firingOnChange=true;if(this.isReallyModified()){this._busObjAttribute.setValue(this.getValue());}this._firingOnChange=false;}}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomBaseValidationMixin"]){dojo._hasResource["freedom.widget.solution.form.FreedomBaseValidationMixin"]=true;dojo.provide("freedom.widget.solution.form.FreedomBaseValidationMixin");dojo.declare("freedom.widget.solution.form.FreedomBaseValidationMixin",freedom.widget.solution.form.FreedomDataWidgetBaseMixin,{invalidContentMessage:"",invalidMessage:"",requiredMessage:"",invalidClass:"freedomInvalid",isValueOK:true,baseClass:"freedom-base-mixin-css",validate:function(){if(this.disabled){this.setErrorMessage(null);return;}if(this.isMissing()){this.invalidMessage=this.requiredMessage||(this.requiredMessage=this.getString("REQUIRED_MESSAGE"));}else{var _953=this.isContentValid()&&this.isValid();if(!_953){this.invalidMessage=this.invalidContentMessage||(this.invalidContentMessage=this.getString("INVALID_ENTERED_VALUE"));}else{this.invalidMessage=null;}}this.setErrorMessage(this.invalidMessage);return this.invalidMessage;},isMissing:function(){return (this.required&&(this.getValue()===null||this.getValue()===undefined||this.getValue()===""));},isContentValid:function(){return true;},isValid:function(_954){return this.validator(this.getValue(),this.constraints);},isValidValue:function(){var _955=[];if(!this.isValueOK){_955[0]=this.invalidSpan.innerHTML;}return _955;},setErrorMessage:function(_956,_957){if(!_956){if(this.invalidSpan.style.display!=="none"){this.invalidSpan.style.display="none";this.isValueOK=true;this.onValid();}}else{this.invalidSpan.innerHTML=this.getString("INVALID_MESSAGE_DISPLAY",{singleSpace:"&nbsp;",message:_956});this.invalidSpan.style.display="";this.isValueOK=false;this.onInvalid();}},select:function(){this.textbox.select();},setDisabled:function(_958){this.disabled=_958;this.textbox.disabled=_958;this.setErrorMessage(null);},onValid:function(){},onInvalid:function(){}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomTextValidationMixin"]){dojo._hasResource["freedom.widget.solution.form.FreedomTextValidationMixin"]=true;dojo.provide("freedom.widget.solution.form.FreedomTextValidationMixin");dojo.declare("freedom.widget.solution.form.FreedomTextValidationMixin",freedom.widget.solution.form.FreedomBaseValidationMixin,{templateString:null,templatePath:dojo.moduleUrl("freedom","widget/solution/form/templates/freedom-text-validation-mixin.html"),alreadyFocused:false,inSetValue:false,setValue:function(_959,_95a){if(this.inSetValue){return;}this.inSetValue=true;this.textbox.value=_959;this.validate();if(_95a===undefined){this.isReallyModified()&&this.onChange();}this.inSetValue=false;},getValue:function(){return this.textbox.value;},onKeyUp:function(e){this.validate();this.handleOnKeyUp();this.isReallyModified()&&this.onChange();},handleOnKeyUp:function(){},startup:function(){freedom.widget.solution.form.FreedomTextValidationMixin.superclass.startup.apply(this,arguments);this.regExp=this.buildRegExp()||this.regExp;},buildRegExp:function(){return null;},onFocus:function(e){if(this.alreadyFocused){return;}else{this.alreadyFocused=true;}dojo.addClass(this.textbox,"freedomTextInFocus");},onBlur:function(e){this.alreadyFocused=false;dojo.removeClass(this.textbox,"freedomTextInFocus");},validate:function(){var _95e=null;try{_95e=this.textbox.selectionEnd;}catch(ex){}var msg=this.inherited("validate",arguments);if(this.alreadyFocused&&_95e&&msg){this.textbox.focus();this.textbox.selectionEnd=_95e;}}});}if(!dojo._hasResource["freedom.widget.solution.form.PropertyHandler"]){dojo._hasResource["freedom.widget.solution.form.PropertyHandler"]=true;dojo.provide("freedom.widget.solution.form.PropertyHandler");dojo.declare("freedom.widget.solution.form.PropertyHandler",null,{widget:null,setWidget:function(w){this.widget=w;this.update();},update:function(){}});}if(!dojo._hasResource["freedom.widget.solution.form.LengthPropertyMixin"]){dojo._hasResource["freedom.widget.solution.form.LengthPropertyMixin"]=true;dojo.provide("freedom.widget.solution.form.LengthPropertyMixin");dojo.declare("freedom.widget.solution.form.LengthPropertyMixin",freedom.widget.solution.form.PropertyHandler,{initialLength:null,update:function(){if(this.initialLength==null){if(undefined!=this.widget.clientWidth){this.initialLength=this.clientWidth;}else{this.initialLength=0;}}var _961=1;if(this.widget.lengthProperty==LENGTH_PROPERTY_LONG){_961=1.5;}else{if(this.widget.lengthProperty==LENGTH_PROPERTY_SHORT){_961=0.5;}}var _962=this.getNodesToResize();var _963=(this.initialLength<=0)?(15*_961)+"em":(this.initialLength*_961)+"px";for(var i=0;i<_962.length;i++){_962[i].style.width=_963;}},getNodesToResize:function(){return (this.widget.getNodesToResize&&this.widget.getNodesToResize())||[this.widget.textbox||this.widget.domNode];}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomInputBox"]){dojo._hasResource["freedom.widget.solution.form.FreedomInputBox"]=true;dojo.provide("freedom.widget.solution.form.FreedomInputBox");dojo.declare("freedom.widget.solution.form.FreedomInputBox",[dijit.form.ValidationTextBox,freedom.widget.solution.form.FreedomTextValidationMixin],{lengthProperty:"",getHandlers:function(){return [new freedom.widget.solution.form.LengthPropertyMixin()];}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomText"]){dojo._hasResource["freedom.widget.solution.form.FreedomText"]=true;dojo.provide("freedom.widget.solution.form.FreedomText");dojo.declare("freedom.widget.solution.form.FreedomText",[freedom.widget.solution.form.FreedomInputBox],{numOfChar:99999,invalidContentMessage:"The text is too long.",type:"text",isContentValid:function(){var _965=this.textbox.value.length;return (_965<=this.numOfChar);}});}if(!dojo._hasResource["dojo.io.iframe"]){dojo._hasResource["dojo.io.iframe"]=true;dojo.provide("dojo.io.iframe");dojo.io.iframe={create:function(_966,_967,uri){if(window[_966]){return window[_966];}if(window.frames[_966]){return window.frames[_966];}var _969=null;var turi=uri;if(!turi){if(dojo.config["useXDomain"]&&!dojo.config["dojoBlankHtmlUrl"]){console.warn("dojo.io.iframe.create: When using cross-domain Dojo builds,"+" please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl"+" to the path on your domain to blank.html");}turi=(dojo.config["dojoBlankHtmlUrl"]||dojo.moduleUrl("dojo","resources/blank.html"));}var _96b=dojo.isIE?"<iframe name=\""+_966+"\" src=\""+turi+"\" onload=\""+_967+"\">":"iframe";_969=dojo.doc.createElement(_96b);with(_969){name=_966;setAttribute("name",_966);id=_966;}dojo.body().appendChild(_969);window[_966]=_969;with(_969.style){if(dojo.isSafari<3){position="absolute";}left=top="1px";height=width="1px";visibility="hidden";}if(!dojo.isIE){this.setSrc(_969,turi,true);_969.onload=new Function(_967);}return _969;},setSrc:function(_96c,src,_96e){try{if(!_96e){if(dojo.isSafari){_96c.location=src;}else{frames[_96c.name].location=src;}}else{var idoc;if(dojo.isIE||dojo.isSafari>2){idoc=_96c.contentWindow.document;}else{if(dojo.isSafari){idoc=_96c.document;}else{idoc=_96c.contentWindow;}}if(!idoc){_96c.location=src;return;}else{idoc.location.replace(src);}}}catch(e){console.debug("dojo.io.iframe.setSrc: ",e);}},doc:function(_970){var doc=_970.contentDocument||(((_970.name)&&(_970.document)&&(document.getElementsByTagName("iframe")[_970.name].contentWindow)&&(document.getElementsByTagName("iframe")[_970.name].contentWindow.document)))||((_970.name)&&(document.frames[_970.name])&&(document.frames[_970.name].document))||null;return doc;},send:function(args){if(!this["_frame"]){this._frame=this.create(this._iframeName,dojo._scopeName+".io.iframe._iframeOnload();");}var dfd=dojo._ioSetArgs(args,function(dfd){dfd.canceled=true;dfd.ioArgs._callNext();},function(dfd){var _976=null;try{var _977=dfd.ioArgs;var dii=dojo.io.iframe;var ifd=dii.doc(dii._frame);var _97a=_977.handleAs;_976=ifd;if(_97a!="html"){if(_97a=="xml"){if(dojo.isIE){dojo.query("a",dii._frame.contentWindow.document.documentElement).orphan();var _97b=(dii._frame.contentWindow.document).documentElement.innerText;_97b=_97b.replace(/>\s+</g,"><");if(!this._ieXmlDom){for(var i=0,a=["MSXML2","Microsoft","MSXML","MSXML3"],l=a.length;i<l;i++){try{var test=new ActiveXObject(a[i]+".XmlDom");this._ieXmlDom=a[i]+".XmlDom";break;}catch(e){}}if(!this._ieXmlDom){throw new Error("dojo.io.iframe.send (return handler): your copy of Internet Explorer does not support XML documents.");}}var _xml=new ActiveXObject(this._ieXmlDom);_xml.async=false;_xml.loadXML(_97b);_976=_xml;}}else{_976=ifd.getElementsByTagName("textarea")[0].value;if(_97a=="json"){_976=dojo.fromJson(_976);}else{if(_97a=="javascript"){_976=dojo.eval(_976);}}}}}catch(e){_976=e;}finally{_977._callNext();}return _976;},function(_981,dfd){dfd.ioArgs._hasError=true;dfd.ioArgs._callNext();return _981;});dfd.ioArgs._callNext=function(){if(!this["_calledNext"]){this._calledNext=true;dojo.io.iframe._currentDfd=null;dojo.io.iframe._fireNextRequest();}};this._dfdQueue.push(dfd);this._fireNextRequest();dojo._ioWatch(dfd,function(dfd){return !dfd.ioArgs["_hasError"];},function(dfd){return (!!dfd.ioArgs["_finished"]);},function(dfd){if(dfd.ioArgs._finished){dfd.callback(dfd);}else{dfd.errback(new Error("Invalid dojo.io.iframe request state"));}});return dfd;},_currentDfd:null,_dfdQueue:[],_iframeName:dojo._scopeName+"IoIframe",_fireNextRequest:function(){try{if((this._currentDfd)||(this._dfdQueue.length==0)){return;}var dfd=this._currentDfd=this._dfdQueue.shift();var _987=dfd.ioArgs;var args=_987.args;_987._contentToClean=[];var fn=dojo.byId(args["form"]);var _98a=args["content"]||{};if(fn){if(_98a){var _98b=function(name,_98d){var tn;if(dojo.isIE){tn=dojo.doc.createElement("<input type='hidden' name='"+name+"'>");}else{tn=dojo.doc.createElement("input");tn.type="hidden";tn.name=name;}tn.value=_98d;fn.appendChild(tn);_987._contentToClean.push(name);};for(var x in _98a){var val=_98a[x];if(dojo.isArray(val)&&val.length>1){var i;for(i=0;i<val.length;i++){_98b(x,val[i]);}}else{if(!fn[x]){_98b(x,val);}else{fn[x].value=val;}}}}var _992=fn.getAttributeNode("action");var _993=fn.getAttributeNode("method");var _994=fn.getAttributeNode("target");if(args["url"]){_987._originalAction=_992?_992.value:null;if(_992){_992.value=args.url;}else{fn.setAttribute("action",args.url);}}if(!_993||!_993.value){if(_993){_993.value=(args["method"])?args["method"]:"post";}else{fn.setAttribute("method",(args["method"])?args["method"]:"post");}}_987._originalTarget=_994?_994.value:null;if(_994){_994.value=this._iframeName;}else{fn.setAttribute("target",this._iframeName);}fn.target=this._iframeName;fn.submit();}else{var _995=args.url+(args.url.indexOf("?")>-1?"&":"?")+_987.query;this.setSrc(this._frame,_995,true);}}catch(e){dfd.errback(e);}},_iframeOnload:function(){var dfd=this._currentDfd;if(!dfd){this._fireNextRequest();return;}var _997=dfd.ioArgs;var args=_997.args;var _999=dojo.byId(args.form);if(_999){var _99a=_997._contentToClean;for(var i=0;i<_99a.length;i++){var key=_99a[i];if(dojo.isSafari<3){for(var j=0;j<_999.childNodes.length;j++){var _99e=_999.childNodes[j];if(_99e.name==key){dojo._destroyElement(_99e);break;}}}else{dojo._destroyElement(_999[key]);_999[key]=null;}}if(_997["_originalAction"]){_999.setAttribute("action",_997._originalAction);}if(_997["_originalTarget"]){_999.setAttribute("target",_997._originalTarget);_999.target=_997._originalTarget;}}_997._finished=true;}};}if(!dojo._hasResource["freedom.widget.solution.form.FreedomAttachment"]){dojo._hasResource["freedom.widget.solution.form.FreedomAttachment"]=true;dojo.provide("freedom.widget.solution.form.FreedomAttachment");dojo.declare("freedom.widget.solution.form.FreedomAttachment",[dijit._Widget,dijit._Templated,freedom.widget.solution.form.FreedomDataWidgetBaseMixin],{templatePath:dojo.moduleUrl("freedom","widget/solution/form/templates/freedom-attachment.html"),widgetsInTemplate:true,required:"true",_showHideTitleSeparately:false,preloadFilelist:true,downloadIcon:DOWNLOAD_ICON_LOCATION,_labelPlacement:LABEL_PLACEMENT_LEFT,_waitingForOptions:false,_tempValue:null,setValue:function(_99f){if(this._waitingForOptions){this._tempValue=_99f;}var _9a0=this.getIndexOfOptionWithValue(_99f);if(_9a0>=0){this.existingFileNode.selectedIndex=_9a0;this.existingRadioNode.checked=true;this.onExsitingRadioSelected();}},getValue:function(){return this.getSelectedOption();},onUploadRadioSelected:function(){this.onChange();this.newFileNode.disabled=false;this.uploadButtonNode.disabled=false;this.existingFileNode.disabled=true;this.downloadLinkNode.style.display="none";},onExsitingRadioSelected:function(){this.onChange();this.newFileNode.disabled=true;this.uploadButtonNode.disabled=true;this.existingFileNode.disabled=false;if(this.existingFileNode.selectedIndex!=-1){this.downloadLinkNode.style.display="inline";this.downloadLinkNode.href=this.existingFileNode.options[this.existingFileNode.selectedIndex].value;}},onUpload:function(e){this.newFileNode.name=dojox.uuid.generateRandomUuid();e.cancelBubble=true;var uid=this.getUid();var self=this;dojo.io.iframe.send({url:STORAGE_SERVICE_URL+"?format=json-for-dojo-io",method:"POST",timeout:10000,handleAs:"json",form:dojo.byId(uid+"-form"),handle:dojo.hitch(this,function(data,_9a5){if(data!=undefined&&data.feed!=undefined&&data.feed.entries!=undefined){var _9a6=data.feed.entries;for(var i=0;i<_9a6.length;i++){var _9a8=this.existingFileNode.options[0];this.existingFileNode.options.add(new Option(_9a6[i].title,this.getLinkHrefByRel(_9a6[i].links,"enclosure")),0);}this.existingFileNode.selectedIndex=0;}this.existingRadioNode.checked=true;this.onExsitingRadioSelected();}),error:dojo.hitch(this,function(type,_9aa){})});},isUploadChecked:function(){return this.uploadRadioNode.checked;},getSelectedOption:function(){if(this.existingFileNode.selectedIndex<0){return null;}return this.existingFileNode.options[this.existingFileNode.selectedIndex].value;},getIndexOfOptionWithValue:function(_9ab){for(var i=0;i<this.existingFileNode.options.length;i++){if(this.existingFileNode.options[i].value===_9ab){return i;}}return -1;},setDisabled:function(_9ad){this.uploadRadioNode.disabled=_9ad;this.existingRadioNode.disabled=_9ad;this.newFileNode.disabled=_9ad;this.uploadButtonNode.disabled=_9ad;this.existingFileNode.disabled=_9ad;},isValidValue:function(){return [];},requestUpdateOptions:function(){this._waitingForOptions=true;this._tempValue=null;dojo.xhrGet({url:STORAGE_SERVICE_URL+"?format=json",load:dojo.hitch(this,function(_9ae,_9af){try{this.handleFilelistOptionsString(_9ae,_9af);}catch(error){FREEDOM.showExceptionError(error);}}),error:dojo.hitch(this,function(type,_9b1){this._waitingForOptions=false;this._tempValue=null;FREEDOM.statusDialog.showDialog(this.errorStr,"",this.getFileListError);}),handleAs:"json-comment-optional"});},getLinkHrefByRel:function(_9b2,_9b3){if((typeof _9b2)===undefined){return null;}for(var i=0;i<_9b2.length;i++){if(_9b2[i].rel==_9b3){return _9b2[i].href;}}return null;},appendFile:function(_9b5,_9b6){var file;for(var i=0;i<_9b6.length;i++){file=_9b6[i];_9b5.appendChild(new Option(file.title,this.getLinkHrefByRel(file.links,"enclosure")));}},appendGroup:function(_9b9,_9ba){var _9bb=document.createElement("optgroup");_9bb.label=_9ba.groupname;this.appendFile(_9bb,_9ba.files);_9b9.appendChild(_9bb);},handleFilelistOptionsString:function(data){this._waitingForOptions=false;if(data!=undefined&&data.feed!=undefined&&data.feed.entries!=undefined){this.appendFile(this.existingFileNode,data.feed.entries);}if(this._tempValue!=null){this.setValue(this._tempValue);this._tempValue=null;}},onSelectChange:function(){this.onChange();this.downloadLinkNode.href=this.existingFileNode.options[this.existingFileNode.selectedIndex].value;},setLabelPlacement:function(_9bd){if(_9bd==LABEL_PLACEMENT_RIGHT){_9bd=LABEL_PLACEMENT_LEFT;}if(_9bd==this._labelPlacement){return;}this.uploadImgTitleCell.parentNode.removeChild(this.uploadImgTitleCell);this.selectImgTitleCell.parentNode.removeChild(this.selectImgTitleCell);if(_9bd===LABEL_PLACEMENT_TOP){this.uploadImgTitleRow.appendChild(this.uploadImgTitleCell);this.selectImgTitleRow.appendChild(this.selectImgTitleCell);}else{this.uploadImgTitleRow.insertBefore(this.uploadImgTitleCell,this.uploadImgTitleRow.firstChild);this.selectImgTitleRow.insertBefore(this.selectImgTitleCell,this.selectImgTitleRow.firstChild);}},initializeStrings:function(){this.downloadLink=this.getString("DOWNLOAD_LINK");this.repositoryLabel=this.getString("REPOSITORY_LABEL");this.uploadLabel=this.getString("UPLOAD_LABEL");this.uploadButtonLabel=this.getString("UPLOAD_BUTTON_LABEL");this.errorStr=this.getString("ERROR");this.getFileListError=this.getString("REPOSITORY_FILE_LIST_GET_ERR_MSG");},postMixInProperties:function(){freedom.widget.solution.form.FreedomAttachment.superclass.postMixInProperties.apply(this,arguments);this.initializeStrings();},postCreate:function(){freedom.widget.solution.form.FreedomAttachment.superclass.postCreate.apply(this,arguments);this.onUploadRadioSelected();if(this.preloadFilelist){this.requestUpdateOptions();}}});}if(!dojo._hasResource["freedom.widget.common.environment.ImageSelection"]){dojo._hasResource["freedom.widget.common.environment.ImageSelection"]=true;dojo.provide("freedom.widget.common.environment.ImageSelection");dojo.declare("freedom.widget.common.environment.ImageSelection",[dijit._Widget,dijit._Templated,freedom.widget.common.environment.FreedomBaseMixin],{templatePath:dojo.moduleUrl("freedom","widget/common/environment/templates/image-selection.html"),widgetsInTemplate:true,showPreview:true,supportUploadFromURL:true,previewSize:25,previewBackground:"#bfbfbf",constructor:function(){this._selectedImageURL=arguments[0].selectedImageURL||"";this.attachmentLabel=this.getString("IMAGE_SELECTION_ATTACHMENT_LABEL")||"Upload an image/select one";this.urlInputLabel=this.getString("IMAGE_SELECTION_URL_LABEL")||"Or simply enter a URL to an image";this.attachmentTitle=this.getString("IMAGE_SELECTION_ATTACHMENT_TITLE")||"Upload an image or select existing";this.imageTextTitle=this.getString("IMAGE_SELECTION_TEXT_TITLE")||"Enter a URL pointing to the image";this.imagePreviewLabel=this.getString("IMAGE_SELECTION_PEREVIEW_LABEL")||"Preview";this.imagePreviewTitle=this.getString("IMAGE_SELECTION_PREVIEW_TITLE")||"Selected image preview";},postMixInProperties:function(){freedom.widget.common.environment.ImageSelection.superclass.postMixInProperties.apply(this,arguments);},postCreate:function(){freedom.widget.common.environment.ImageSelection.superclass.postCreate.apply(this,arguments);},setValue:function(pURL){this.imageAttachment.setValue(pURL);this.imageURLInput.setValue(pURL);this._imageURLInputChanged();},getValue:function(){return this.imageURLInput.getValue();},setDisabled:function(_9bf){this.imageAttachment.setDisabled(_9bf);this.imageURLInput.setDisabled(_9bf);},_attachmentChanged:function(){this.imageURLInput.setValue(this.imageAttachment.getValue());this._imageURLInputChanged();},_imageURLInputChanged:function(){if(this.showPreview){this.imagePreview.src=this.imageURLInput.getValue();this.imagePreviewArea.style.display="block";}this.onChange();},setLabelPlacement:function(_9c0){this.imageAttachment.setLabelPlacement(_9c0);},hidePreview:function(){this.previewContainer.style.display="none";},showPreview:function(){this.previewContainer.style.display="";},onChange:function(){}});}if(!dojo._hasResource["freedom.widget.common.environment.InfoBox"]){dojo._hasResource["freedom.widget.common.environment.InfoBox"]=true;dojo.provide("freedom.widget.common.environment.InfoBox");dojo.declare("freedom.widget.common.environment.InfoBox",[dijit._Widget,dijit._Templated],{frameClassName:"",contentClassName:"",smallBox:false,templatePath:dojo.moduleUrl("freedom","widget/common/environment/templates/info-box.html"),widgetsInTemplate:true,startup:function(){freedom.widget.common.environment.InfoBox.superclass.startup.apply(this,arguments);if(this.smallBox){dojo.addClass(this.containerNode,"info-box-small");}dojo.addClass(this.containerNode,this.contentClassName);dojo.addClass(this.frameNode,this.frameClassName);},postCreate:function(){freedom.widget.common.environment.InfoBox.superclass.postCreate.apply(this,arguments);if(this.domNode.className){this.contentClassName=this.domNode.className;}}});}if(!dojo._hasResource["freedom.widget.common.environment.IssuesDialog"]){dojo._hasResource["freedom.widget.common.environment.IssuesDialog"]=true;dojo.provide("freedom.widget.common.environment.IssuesDialog");dojo.declare("freedom.widget.common.environment.IssuesDialog",[dijit._Widget,dijit._Templated,freedom.widget.common.environment.FreedomNlsMixin],{templateString:"<ul style='list-style-position: inside; margin-top: 5px;' dojoAttachPoint='rootNode'></ul>",widgetsInTemplate:false,dialogTitle:"",description:"",listTitle:"Validation Errors",topWarning:null,_hasContent:false,issues:null,showDialog:function(_9c1){FREEDOM.statusDialog.setTooltipText(this.dialogTitle);FREEDOM.statusDialog.setContentNode(this.rootNode,true);FREEDOM.statusDialog.showDialog(this.dialogTitle,this.listTitle,this.description,0,_9c1);},setCallback:function(_9c2,_9c3){FREEDOM.statusDialog.setCallback(_9c2,_9c3);},clear:function(){for(var i=0;i<this.issues.length;i++){this.rootNode.removeChild(this.issues[i].domNode);}this.issues=[];},setIssues:function(_9c5){var _9c6;this.clear();for(var i=0;i<_9c5.length;i++){_9c6=_9c5[i];var msg;if(_9c6.messageKey){msg=this.getString(_9c6.messageKey,_9c6.substituteValues);}else{msg=_9c6.message;}this["add"+((_9c6.type=="error")?"Error":"Warning")](msg);}},addWarning:function(_9c9){var warn=this.createIssue("warning",_9c9);this.rootNode.appendChild(warn.domNode);this.topWarning||(this.topWarning=warn);this._hasContent=true;},addError:function(_9cb){var err=this.createIssue("error",_9cb);if(!this.topWarning){this.rootNode.appendChild(err.domNode);}else{this.rootNode.insertBefore(err.domNode,this.topWarning.domNode);}this._hasContent=true;},createIssue:function(type,msg){var _9cf=new freedom.widget.common.environment.IssuesDialogIssue({issue:msg,type:type});this.issues.push(_9cf);return _9cf;},hasContent:function(){return this._hasContent;},initializeStrings:function(){this.okButtonCaption=this.getString("OK");},postMixInProperties:function(){freedom.widget.common.environment.IssuesDialog.superclass.postMixInProperties.apply(this,arguments);this.issues=[];this.initializeStrings();}});dojo.declare("freedom.widget.common.environment.IssuesDialogIssue",[dijit._Widget,dijit._Templated,freedom.widget.common.environment.FreedomNlsMixin],{templateString:"<li dojoAttachPoint='rootNode' style='color:${color}'>${issue}</li>",type:"",issue:"",initializeStrings:function(){if(this.type=="error"){this.color=this.getString("G11N_ERROR_COLOR");}if(this.type=="warning"){this.color=this.getString("G11N_WARNING_COLOR");}},postMixInProperties:function(){freedom.widget.common.environment.IssuesDialogIssue.superclass.postMixInProperties.apply(this,arguments);this.initializeStrings();}});}if(!dojo._hasResource["dijit.Toolbar"]){dojo._hasResource["dijit.Toolbar"]=true;dojo.provide("dijit.Toolbar");dojo.declare("dijit.Toolbar",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{templateString:"<div class=\"dijit dijitToolbar\" waiRole=\"toolbar\" tabIndex=\"${tabIndex}\" dojoAttachPoint=\"containerNode\">"+"</div>",tabIndex:"0",postCreate:function(){this.connectKeyNavHandlers(this.isLeftToRight()?[dojo.keys.LEFT_ARROW]:[dojo.keys.RIGHT_ARROW],this.isLeftToRight()?[dojo.keys.RIGHT_ARROW]:[dojo.keys.LEFT_ARROW]);},startup:function(){if(this._started){return;}this.startupKeyNavChildren();this.inherited(arguments);}});dojo.declare("dijit.ToolbarSeparator",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitToolbarSeparator dijitInline\"></div>",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["freedom.widget.common.environment.PageBanner"]){dojo._hasResource["freedom.widget.common.environment.PageBanner"]=true;dojo.provide("freedom.widget.common.environment.PageBanner");dojo.declare("freedom.widget.common.environment.PageBanner",[dijit._Widget,dijit._Templated,freedom.widget.common.environment.FreedomNlsMixin],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/common/environment/templates/page-banner.html"),userNode:null,logoutLabel:"",welcome:null,imageSrc:"",contextMenu:"",firstStepsURL:"./first-steps.html",application:"",help:function(){},logout:function(){},setWelcome:function(_9d0){this.welcome=_9d0;this.logo.innerHTML=_9d0;},constructor:function(){freedom.widget.common.environment.PageBanner.superclass.constructor.apply(this,arguments);if(!dojo.isIE){this.help=null;this.logout=null;}},clearToolbar:function(){var _9d1=this.mainToolbar.getChildren();for(var i=_9d1.length-1;i>=0;i--){this.mainToolbar.removeChild(_9d1[i]);}},addToToolbar:function(_9d3){this.mainToolbar.domNode.style.display="block";this.mainToolbar.addChild(_9d3);},initializeStrings:function(){this.helpString=this.getString("HELP");this.logoutLabel=this.getString("SIGN_OUT");this.firstSteps=this.getString("FIRST_STEPS")||"First Steps";},postMixInProperties:function(){freedom.widget.common.environment.PageBanner.superclass.postMixInProperties.apply(this,arguments);this.initializeStrings();var _9d4=(this.application)||this.getString("FREEDOM");if(null===this.welcome){this.welcome=this.getString("WELCOME_TO_APP",{applicationName:_9d4});}},setUserName:function(_9d5){if(null!=_9d5){this.welcomeUser.innerHTML=this.getString("WELCOME_TO_USER",{userName:_9d5});this.welcomeUserSep.style.display="inline";}},startup:function(){freedom.widget.common.environment.PageBanner.superclass.startup.apply(this,arguments);if(null===this.logout){this.logoutSep.style.display="none";this.logoutLink.style.display="none";}if(null==this.firstStepsURL||""==this.firstStepsURL){this.firstSteps.style.display="none";this.firstStepsSep.style.display="none";}if(""!=this.imageSrc){this.imageHolder.style.display="block";this.imageHolder.src=this.imageSrc;}if(""!==this.contextMenu){dijit.byId(this.contextMenu).bindDomNode(this.domNode);}var _9d6=dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);if(0==_9d6.length){this.mainToolbar.domNode.style.display="none";}},onLogout:function(){this.logout&&this.logout();},onHelp:function(){this.help&&this.help();},welcomeUser:null,welcomeUserSep:null,firstSteps:null,firstStepsSep:null,imageHolder:null,logo:null,logoutLink:null,logoutSep:null,mainToolbar:null});}if(!dojo._hasResource["freedom.widget.common.environment.SectionPane"]){dojo._hasResource["freedom.widget.common.environment.SectionPane"]=true;dojo.provide("freedom.widget.common.environment.SectionPane");dojo.declare("freedom.widget.common.environment.SectionPane",[dijit._Widget,dijit._Templated,freedom.widget.common.environment.FreedomBaseMixin],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/common/environment/templates/section-pane.html"),expanded:false,expandCollapseButtonImage:null,collapsedViewNode:null,expandedViewNode:null,doExpandTitle:null,doCollapseTitle:null,doCollapseTooltip:null,doExpandTooltip:null,titleTooltip:null,initialState:"collapsed",setTitleTootip:function(_9d7,_9d8){_9d7=_9d7.replace(/\n/g,"<br/>");this.titleTooltip||(this.titleTooltip=new dijit.Tooltip({label:_9d7,connectId:[this.expandCollapseButtonImage.id,this.hintImageNode.id,this.titleNode.id]}));if(_9d8=="collapsed"||!_9d8){this.doExpandTooltip=_9d7;}if(_9d8=="expanded"||!_9d8){this.doCollapseTooltip=_9d7;}},expandCollapse:function(){this.expanded=!this.expanded;this.displayCollapsedOrExpanded();},expandCollapseFromTitle:function(){if(this.doExpandTitle!=null||this.doCollapseTitle!=null){this.expandCollapse();}},setExpanded:function(_9d9){this.expanded=_9d9;this.displayCollapsedOrExpanded();},getExpanded:function(){return this.expanded;},setTitleNodeText:function(txt){if(this.titleNode.innerText){this.titleNode.innerText=txt;}else{this.titleNode.innerHTML=txt;}},displayCollapsedOrExpanded:function(){if(this.expanded){this.sectionExpanded();this.collapsedView.style.display="none";this.expandedView.style.display="block";this.expandCollapseButtonImage.src=COLLAPSE_ICON_LOCATION;this.expandCollapseButtonImage.style.verticalAlign="middle";if(this.doCollapseTitle!=null){this.setTitleNodeText(this.doCollapseTitle);}this.refreshTitleTooltip(this.doCollapseTooltip);}else{this.sectionCollapsed();this.collapsedView.style.display="block";this.expandedView.style.display="none";this.expandCollapseButtonImage.src=EXPAND_ICON_LOCATION;this.expandCollapseButtonImage.style.verticalAlign="text-top";if(this.doExpandTitle!=null){this.setTitleNodeText(this.doExpandTitle);}this.refreshTitleTooltip(this.doExpandTooltip);}},refreshTitleTooltip:function(_9db){if(!this.titleTooltip){return;}this.titleTooltip.showDelay=(_9db)?400:Number.MAX_VALUE;this.titleTooltip.label=_9db;},startup:function(){freedom.widget.common.environment.SectionPane.superclass.startup.apply(this,arguments);if(this.containerNode!==undefined&&this.containerNode!==null){var _9dc=this.containerNode.getElementsByTagName("div");for(var i=0;i<_9dc.length;i++){var type=_9dc[i].getAttribute("sectionType");if(type==="collapsed"){this.collapsedViewNode=_9dc[i];this.collapsedViewNode.parentNode.removeChild(this.collapsedViewNode);i--;this.collapsedView.appendChild(this.collapsedViewNode);var _9df=this.collapsedViewNode.getAttribute("stateTitle");var _9e0=this.collapsedViewNode.getAttribute("stateHint");if(_9df&&_9df!==""){this.doExpandTitle=_9df;if(_9e0&&_9e0!==""){this.doExpandTitle+=" <span class=\"hint\">"+_9e0+"</span>";}}}else{if(type==="expanded"){this.expandedViewNode=_9dc[i];this.expandedViewNode.parentNode.removeChild(this.expandedViewNode);this.expandedView.appendChild(this.expandedViewNode);i--;var _9e1=this.expandedViewNode.getAttribute("stateTitle");var _9e2=this.expandedViewNode.getAttribute("stateHint");if(_9e1&&_9e1!==""){this.doCollapseTitle=_9e1;if(_9e2&&_9e2!==""){this.doCollapseTitle+=" <span class=\"hint\">"+_9e2+"</span>";}}}}}}if(this.doExpandTitle==null&&this.doCollapseTitle==null){this.titleContainer.removeChild(this.titleLink);this.collapsedView.parentNode.removeChild(this.collapsedView);this.titleContainer.appendChild(this.collapsedView);this.expandedView.parentNode.removeChild(this.expandedView);this.titleContainer.appendChild(this.expandedView);this.imageContainerNode.style.verticalAlign="top";dojo.removeClass(this.mainTable,"section-pane-title");dojo.addClass(this.imageContainerNode,"section-pane-title");}else{this.titleContainer.style.display="block";}this.expanded=(this.initialState==="expanded");this.displayCollapsedOrExpanded();},setTitleLinkIsVisited:function(_9e3){this.titleLink.style.color=document.body[(_9e3?"vL":"l")+"ink"];},setExpandedTitle:function(_9e4){this.doCollapseTitle=_9e4;if(this.expanded){this.setTitleNodeText(this.doCollapseTitle);}},setCollapsedTitle:function(_9e5){this.doExpandTitle=_9e5;if(!this.expanded){this.setTitleNodeText(this.doExpandTitle);}},setHintImage:function(_9e6){if(!_9e6){this.hintImageNode.style.display="none";this.imageContainerNode.style.width="12px";return;}this.hintImageNode.style.display="inline";this.imageContainerNode.style.width="40px";this.hintImageNode.src=_9e6;},setTitle:function(_9e7){this.setCollapsedTitle(_9e7);this.setExpandedTitle(_9e7);},sectionCollapsed:function(){},sectionExpanded:function(){},getCollapsedViewNode:function(){return this.collapsedViewNode;},getExpandedViewNode:function(){return this.expandedViewNode;}});}if(!dojo._hasResource["freedom.widget.common.environment.SelectorTabBar"]){dojo._hasResource["freedom.widget.common.environment.SelectorTabBar"]=true;dojo.provide("freedom.widget.common.environment.SelectorTabBar");dojo.declare("freedom.widget.common.environment.SelectorTabBar",[dijit._Widget,dijit._Templated],{templatePath:dojo.moduleUrl("freedom","widget/common/environment/templates/selector-tab-bar.html"),widgetsInTemplate:false,SELECTED_TAB_CSS:"selected-tab-element",DESELECTED_TAB_CSS:"not-selected-tab-element",SEPERATOR_CSS:"seperator-tab-element",constructor:function(){freedom.widget.common.environment.SelectorTabBar.superclass.constructor.apply(this,arguments);this._tabs={};this._selectedTab=null;},addSelectorTab:function(_9e8){var _9e9=new freedom.widget.common.environment.SelectorTab({name:_9e8},document.createElement("td"));dojo.connect(_9e9,"tabWasSelected",this,"_onTabSelected");this._tabs[_9e8]=_9e9;dojo.addClass(_9e9.domNode,this.DESELECTED_TAB_CSS);this.containerNode.appendChild(_9e9.domNode);var _9ea=document.createElement("td");dojo.addClass(_9ea,this.SEPERATOR_CSS);_9ea.innerHTML="<div style='width: 2px'></div>";this.containerNode.appendChild(_9ea);},selectTabByName:function(_9eb){if(null!=this._selectedTab){dojo.removeClass(this._selectedTab.domNode,this.SELECTED_TAB_CSS);dojo.addClass(this._selectedTab.domNode,this.DESELECTED_TAB_CSS);}this._selectedTab=this._tabs[_9eb];if(null!=this._selectedTab){dojo.addClass(this._selectedTab.domNode,this.SELECTED_TAB_CSS);}},_onTabSelected:function(_9ec){this.selectTabByName(_9ec);this.tabWasSelected(_9ec);},tabWasSelected:function(_9ed){},containerNode:null});dojo.declare("freedom.widget.common.environment.SelectorTab",[dijit._Widget,dijit._Templated],{templatePath:dojo.moduleUrl("freedom","widget/common/environment/templates/selector-tab.html"),widgetsInTemplate:false,name:null,_onSelected:function(){this.tabWasSelected(this.name);},tabWasSelected:function(_9ee){}});}if(!dojo._hasResource["freedom.widget.common.environment.SidePane"]){dojo._hasResource["freedom.widget.common.environment.SidePane"]=true;dojo.provide("freedom.widget.common.environment.SidePane");dojo.declare("freedom.widget.common.environment.SidePane",[dijit._Widget,dijit._Templated,freedom.widget.common.environment.FreedomBaseMixin],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/common/environment/templates/side-pane.html"),expanded:true,styleClass:"",cssWidth:"",cssHeight:"",expandCollapseButtonImage:null,expandCollapse:function(){this.expanded=!this.expanded;this.displayCollapsedOrExpanded();},setExpanded:function(_9ef){this.expanded=_9ef;this.displayCollapsedOrExpanded();},displayCollapsedOrExpanded:function(){if(this.expanded){this.sectionExpanded();this.containerNode.style.display="block";this.expandCollapseButtonImage.src=dojo.moduleUrl("freedom","images/collapse-side.gif");this.expandCollapseButtonImage.style.verticalAlign="sub";}else{this.sectionCollapsed();this.containerNode.style.display="none";this.expandCollapseButtonImage.src=dojo.moduleUrl("freedom","images/expand-side.gif");this.expandCollapseButtonImage.style.verticalAlign="text-top";}},hideChildDiv:function(){var _9f0=this.containerNode.getElementsByTagName("div");for(var i=0;i<_9f0.length;i++){}},startup:function(){freedom.widget.common.environment.SidePane.superclass.startup.apply(this,arguments);if(this.containerNode!==undefined&&this.containerNode!==null){dojo.addClass(this.containerNode,this.styleClass);if(this.cssWidth!=null&&this.cssWidth!=""){this.containerNode.style.width=this.cssWidth;}if(this.cssHeight!=null&&this.cssHeight!=""){this.containerNode.style.height=this.cssHeight;this.imageContainerNode.style.height=this.cssHeight;}}this.displayCollapsedOrExpanded();},postMixInProperties:function(){freedom.widget.common.environment.SidePane.superclass.postMixInProperties.apply(this,arguments);},sectionCollapsed:function(){},sectionExpanded:function(){}});}if(!dojo._hasResource["freedom.widget.common.environment.StatusDialog"]){dojo._hasResource["freedom.widget.common.environment.StatusDialog"]=true;dojo.provide("freedom.widget.common.environment.StatusDialog");dojo.declare("freedom.widget.common.environment.StatusDialog",[dijit._Widget,dijit._Templated,freedom.widget.common.environment.FreedomBaseMixin],{widgetsInTemplate:true,templateString:["<div>","<div dojoType=\"dijit.Dialog\" dojoAttachPoint=\"dialog\"","toggle=\"fade\" toggleDuration=\"250\" class=\"freedom-modal-dialog-box\"","duration=\"1\" style=\"margin: 0px;\">","<table  cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"450px\">","<tbody>","<tr>","<td style=\"padding: 25px 2px 25px 22px; vertical-align: top;\">","<img src=\"\" dojoAttachPoint=\"moodImage\"/>","</td>","<td style=\"padding: 25px 22px 25px 20px; vertical-align: top; width: 100%;\">","<ul class=\"freedom-form-list\" style=\"padding: 0px; margin: 0px;\">","<li style=\"padding-bottom: 5px; margin-left: 0.5em; font-size: 18px;\" dojoAttachPoint=\"subTitle\">","</li>","<li id=\"${_uid}-msg\" style=\"padding-bottom: 5px; margin-left: 0.5em;\" dojoAttachPoint=\"message\">","</li>","<li style=\"padding-bottom: 5px; margin-left: 0.5em;\" dojoAttachPoint=\"rootNode\">","</li>","</ul>","<div dojoType=\"freedom.widget.common.environment.SectionPane\"","dojoAttachPoint=\"detailsSection\">","<div sectionType=\"collapsed\" stateTitle=\"${moreDetails}\">","</div>","<div sectionType=\"expanded\" stateTitle=\"${moreDetails}\"","dojoAttachPoint=\"detailsExpanded\">","</div>","</div>","</td>","</tr>","<tr>","<td colspan=\"2\">","<table class=\"freedom-dialog-box-buttons\">","<tbody>","<tr align=\"right\">","<td width=\"100%\">","<button dojoType=\"dijit.form.Button\" type=\"submit\"","dojoAttachPoint=\"okButton\"","dojoAttachEvent=\"onClick:okClicked\">","${ok}","</button>","</td>","<td style=\"display:none\" dojoAttachPoint=\"cancelButtonContainer\">","<button dojoType=\"dijit.form.Button\" type=\"submit\"","dojoAttachPoint=\"cancelButton\"","dojoAttachEvent=\"onClick:cancelClicked\">","${cancel}","</button>","</td>","</tr>","</tbody>","</table>","</td>","</tr>","</tbody>","</table>","</div>","</div>",].join(" "),_context:null,_timeoutHandle:null,_moodIconLoc:dojo.moduleUrl("freedom","images/bpm0/icon_error.gif"),showDialog:function(_9f2,_9f3,_9f4,_9f5,_9f6){this.dialog.closeButtonNode.style.display="none";this.dialog.titleNode.innerHTML=_9f2;if(_9f3){this.subTitle.style.display="";this.subTitle.innerHTML=_9f3;}else{this.subTitle.style.display="none";}this.message.innerHTML=_9f4;this.moodImage.src=(_9f6&&_9f6.modeIconLoc)?_9f6.modeIconLoc:this._moodIconLoc;if(_9f6&&_9f6.okButtonTitle){this.okButton.setLabel(_9f6.okButtonTitle);}else{this.okButton.setLabel(this.ok);}if(_9f6&&_9f6.showCancelButton){this.cancelButtonContainer.style.display="";if(_9f6.cancelButtonTitle){this.cancelButton.setLabel(_9f6.cancelButtonTitle);}else{this.cancelButton.setLabel(this.cancel);}}else{this.cancelButtonContainer.style.display="none";}if(_9f6&&_9f6.action){this.message.innerHTML+="<br/><br/>"+_9f6.action;}if(_9f6&&_9f6.details){this.detailsExpanded.innerHTML=_9f6.details;this.detailsSection.domNode.style.display="";this.detailsSection.setExpanded(false);}else{this.detailsSection.domNode.style.display="none";}this.dialog.domNode.title="";if(typeof this._tooltipText!=undefined&&this._tooltipText!=null){this.dialog.domNode.title=this._tooltipText;}this._freeRootNode();if(typeof this._rootDomNode!=undefined&&this._rootDomNode!=null){this.rootNode.appendChild(this._rootDomNode);}this.dialog.show();if(_9f6&&_9f6.aroundLocation){dijit.placeOnScreen(this.dialog.domNode,{x:_9f6.aroundLocation.x,y:_9f6.aroundLocation.y},["TL","TR","BL","BR"]);}if(undefined!==_9f5&&0!=_9f5){this._timeoutHandle=setTimeout(this._timeoutCallback,_9f5*1000);}},hideDialog:function(){this.dialog.hide();this._tooltipText="";this._rootDomNode=null;this._freeRootNode();},setCallback:function(_9f7,_9f8){this._context=_9f7;this._function=_9f8;},okClicked:function(){this.closeDialog(true);},cancelClicked:function(){this.closeDialog(false);},closeDialog:function(_9f9){if(this._timeoutHandle!=null){clearTimeout(this._timeoutHandle);this._timeoutHandle=null;}this.hideDialog();var _9fa=this._context;this._context=null;if(null!=_9fa){setTimeout(dojo.hitch(_9fa,this._function,_9f9),20);}},initializeSrings:function(){this.ok=this.getString("OK");this.cancel=this.getString("CANCEL");this.moreDetails=this.getString("MORE_DETAILS");},postMixInProperties:function(){freedom.widget.common.environment.StatusDialog.superclass.postMixInProperties.apply(this,arguments);this.initializeSrings();this._timeoutCallback=dojo.hitch(this,this.okClicked);},setContentNode:function(_9fb,_9fc){this._rootDomNode=_9fb;if(_9fc&&this._rootDomNode.parentNode){this._rootDomNode.parentNode.removeChild(this._rootDomNode);}},setTooltipText:function(_9fd){this._tooltipText=_9fd;},_freeRootNode:function(){while(this.rootNode.firstChild){this.rootNode.removeChild(this.rootNode.firstChild);}},subTitle:null,rootNode:null,moodImage:null,dialog:null,message:null});}if(!dojo._hasResource["freedom.widget.common.environment.TooltipDialogBox"]){dojo._hasResource["freedom.widget.common.environment.TooltipDialogBox"]=true;dojo.provide("freedom.widget.common.environment.TooltipDialogBox");dojo.declare("freedom.widget.common.environment.TooltipDialogBox",[dijit._Widget,dijit._Templated],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/common/environment/templates/tooltip-dialog.html"),containerNode:null,closeTooltipDialog:function(){dijit.popup.close(this);this.popupClosed();},openTooltipDialog:function(_9fe){dijit.popup.open({popup:this,around:_9fe});},_onBlur:function(){this.closeTooltipDialog();},onCancel:function(){this.closeTooltipDialog();},onClose:function(){this.closeTooltipDialog();},popupClosed:function(){}});}if(!dojo._hasResource["dojo.data.util.filter"]){dojo._hasResource["dojo.data.util.filter"]=true;dojo.provide("dojo.data.util.filter");dojo.data.util.filter.patternToRegExp=function(_9ff,_a00){var rxp="^";var c=null;for(var i=0;i<_9ff.length;i++){c=_9ff.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_9ff.charAt(i);break;case "*":rxp+=".*";break;case "?":rxp+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":rxp+="\\";default:rxp+=c;}}rxp+="$";if(_a00){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.data.util.sorter.basicComparator=function(a,b){var ret=0;if(a>b||typeof a==="undefined"||a===null){ret=1;}else{if(a<b||typeof b==="undefined"||b===null){ret=-1;}}return ret;};dojo.data.util.sorter.createSortFunction=function(_a07,_a08){var _a09=[];function createSortFunction(attr,dir){return function(_a0c,_a0d){var a=_a08.getValue(_a0c,attr);var b=_a08.getValue(_a0d,attr);var _a10=null;if(_a08.comparatorMap){if(typeof attr!=="string"){attr=_a08.getIdentity(attr);}_a10=_a08.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;}_a10=_a10||dojo.data.util.sorter.basicComparator;return dir*_a10(a,b);};};var _a11;for(var i=0;i<_a07.length;i++){_a11=_a07[i];if(_a11.attribute){var _a13=(_a11.descending)?-1:1;_a09.push(createSortFunction(_a11.attribute,_a13));}}return function(rowA,rowB){var i=0;while(i<_a09.length){var ret=_a09[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dojo.data.util.simpleFetch"]){dojo._hasResource["dojo.data.util.simpleFetch"]=true;dojo.provide("dojo.data.util.simpleFetch");dojo.data.util.simpleFetch.fetch=function(_a18){_a18=_a18||{};if(!_a18.store){_a18.store=this;}var self=this;var _a1a=function(_a1b,_a1c){if(_a1c.onError){var _a1d=_a1c.scope||dojo.global;_a1c.onError.call(_a1d,_a1b,_a1c);}};var _a1e=function(_a1f,_a20){var _a21=_a20.abort||null;var _a22=false;var _a23=_a20.start?_a20.start:0;var _a24=(_a20.count&&(_a20.count!==Infinity))?(_a23+_a20.count):_a1f.length;_a20.abort=function(){_a22=true;if(_a21){_a21.call(_a20);}};var _a25=_a20.scope||dojo.global;if(!_a20.store){_a20.store=self;}if(_a20.onBegin){_a20.onBegin.call(_a25,_a1f.length,_a20);}if(_a20.sort){_a1f.sort(dojo.data.util.sorter.createSortFunction(_a20.sort,self));}if(_a20.onItem){for(var i=_a23;(i<_a1f.length)&&(i<_a24);++i){var item=_a1f[i];if(!_a22){_a20.onItem.call(_a25,item,_a20);}}}if(_a20.onComplete&&!_a22){var _a28=null;if(!_a20.onItem){_a28=_a1f.slice(_a23,_a24);}_a20.onComplete.call(_a25,_a28,_a20);}};this._fetchItems(_a18,_a1e,_a1a);return _a18;};}if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){dojo._hasResource["dojo.data.ItemFileReadStore"]=true;dojo.provide("dojo.data.ItemFileReadStore");dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function(_a29){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_a29.url;this._jsonData=_a29.data;this._datatypeMap=_a29.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_a2a){return dojo.date.stamp.fromISOString(_a2a);}};}this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=false;this._queuedFetches=[];if(_a29.urlPreventCache!==undefined){this.urlPreventCache=_a29.urlPreventCache?true:false;}if(_a29.clearOnClose){this.clearOnClose=true;}},url:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,_assertIsItem:function(item){if(!this.isItem(item)){throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");}},_assertIsAttribute:function(_a2c){if(typeof _a2c!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(item,_a2e,_a2f){var _a30=this.getValues(item,_a2e);return (_a30.length>0)?_a30[0]:_a2f;},getValues:function(item,_a32){this._assertIsItem(item);this._assertIsAttribute(_a32);return item[_a32]||[];},getAttributes:function(item){this._assertIsItem(item);var _a34=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_a34.push(key);}}return _a34;},hasAttribute:function(item,_a37){return this.getValues(item,_a37).length>0;},containsValue:function(item,_a39,_a3a){var _a3b=undefined;if(typeof _a3a==="string"){_a3b=dojo.data.util.filter.patternToRegExp(_a3a,false);}return this._containsValue(item,_a39,_a3a,_a3b);},_containsValue:function(item,_a3d,_a3e,_a3f){return dojo.some(this.getValues(item,_a3d),function(_a40){if(_a40!==null&&!dojo.isObject(_a40)&&_a3f){if(_a40.toString().match(_a3f)){return true;}}else{if(_a3e===_a40){return true;}}});},isItem:function(_a41){if(_a41&&_a41[this._storeRefPropName]===this){if(this._arrayOfAllItems[_a41[this._itemNumPropName]]===_a41){return true;}}return false;},isItemLoaded:function(_a42){return this.isItem(_a42);},loadItem:function(_a43){this._assertIsItem(_a43.item);},getFeatures:function(){return this._features;},getLabel:function(item){if(this._labelAttr&&this.isItem(item)){return this.getValue(item,this._labelAttr);}return undefined;},getLabelAttributes:function(item){if(this._labelAttr){return [this._labelAttr];}return null;},_fetchItems:function(_a46,_a47,_a48){var self=this;var _a4a=function(_a4b,_a4c){var _a4d=[];if(_a4b.query){var _a4e=_a4b.queryOptions?_a4b.queryOptions.ignoreCase:false;var _a4f={};for(var key in _a4b.query){var _a51=_a4b.query[key];if(typeof _a51==="string"){_a4f[key]=dojo.data.util.filter.patternToRegExp(_a51,_a4e);}}for(var i=0;i<_a4c.length;++i){var _a53=true;var _a54=_a4c[i];if(_a54===null){_a53=false;}else{for(var key in _a4b.query){var _a51=_a4b.query[key];if(!self._containsValue(_a54,key,_a51,_a4f[key])){_a53=false;}}}if(_a53){_a4d.push(_a54);}}_a47(_a4d,_a4b);}else{for(var i=0;i<_a4c.length;++i){var item=_a4c[i];if(item!==null){_a4d.push(item);}}_a47(_a4d,_a4b);}};if(this._loadFinished){_a4a(_a46,this._getItemsArray(_a46.queryOptions));}else{if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_a46,filter:_a4a});}else{this._loadInProgress=true;var _a56={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache};var _a57=dojo.xhrGet(_a56);_a57.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;_a4a(_a46,self._getItemsArray(_a46.queryOptions));self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_a48(e,_a46);}});_a57.addErrback(function(_a59){self._loadInProgress=false;_a48(_a59,_a46);});}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_a4a(_a46,this._getItemsArray(_a46.queryOptions));}catch(e){_a48(e,_a46);}}else{_a48(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_a46);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _a5b=this._queuedFetches[i];var _a5c=_a5b.args;var _a5d=_a5b.filter;if(_a5d){_a5d(_a5c,this._getItemsArray(_a5c.queryOptions));}else{this.fetchItemByIdentity(_a5c);}}this._queuedFetches=[];}},_getItemsArray:function(_a5e){if(_a5e&&_a5e.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_a5f){if(this.clearOnClose&&(this._jsonFileUrl!=="")){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[];}},_getItemsFromLoadedData:function(_a60){var _a61=false;function valueIsAnItem(_a62){var _a63=((_a62!=null)&&(typeof _a62=="object")&&(!dojo.isArray(_a62)||_a61)&&(!dojo.isFunction(_a62))&&(_a62.constructor==Object||dojo.isArray(_a62))&&(typeof _a62._reference=="undefined")&&(typeof _a62._type=="undefined")&&(typeof _a62._value=="undefined"));return _a63;};var self=this;function addItemAndSubItemsToArrayOfAllItems(_a65){self._arrayOfAllItems.push(_a65);for(var _a66 in _a65){var _a67=_a65[_a66];if(_a67){if(dojo.isArray(_a67)){var _a68=_a67;for(var k=0;k<_a68.length;++k){var _a6a=_a68[k];if(valueIsAnItem(_a6a)){addItemAndSubItemsToArrayOfAllItems(_a6a);}}}else{if(valueIsAnItem(_a67)){addItemAndSubItemsToArrayOfAllItems(_a67);}}}}};this._labelAttr=_a60.label;var i;var item;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_a60.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){item=this._arrayOfTopLevelItems[i];if(dojo.isArray(item)){_a61=true;}addItemAndSubItemsToArrayOfAllItems(item);item[this._rootItemPropName]=true;}var _a6d={};var key;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){if(key!==this._rootItemPropName){var _a6f=item[key];if(_a6f!==null){if(!dojo.isArray(_a6f)){item[key]=[_a6f];}}else{item[key]=[null];}}_a6d[key]=key;}}while(_a6d[this._storeRefPropName]){this._storeRefPropName+="_";}while(_a6d[this._itemNumPropName]){this._itemNumPropName+="_";}while(_a6d[this._reverseRefMap]){this._reverseRefMap+="_";}var _a70;var _a71=_a60.identifier;if(_a71){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_a71;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];_a70=item[_a71];var _a72=_a70[0];if(!this._itemsByIdentity[_a72]){this._itemsByIdentity[_a72]=item;}else{if(this._jsonFileUrl){throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_a71+"].  Value collided: ["+_a72+"]");}else{if(this._jsonData){throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_a71+"].  Value collided: ["+_a72+"]");}}}}}else{this._features["dojo.data.api.Identity"]=Number;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];item[this._storeRefPropName]=this;item[this._itemNumPropName]=i;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){_a70=item[key];for(var j=0;j<_a70.length;++j){_a6f=_a70[j];if(_a6f!==null&&typeof _a6f=="object"){if(_a6f._type&&_a6f._value){var type=_a6f._type;var _a75=this._datatypeMap[type];if(!_a75){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");}else{if(dojo.isFunction(_a75)){_a70[j]=new _a75(_a6f._value);}else{if(dojo.isFunction(_a75.deserialize)){_a70[j]=_a75.deserialize(_a6f._value);}else{throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");}}}}if(_a6f._reference){var _a76=_a6f._reference;if(!dojo.isObject(_a76)){_a70[j]=this._itemsByIdentity[_a76];}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _a78=this._arrayOfAllItems[k];var _a79=true;for(var _a7a in _a76){if(_a78[_a7a]!=_a76[_a7a]){_a79=false;}}if(_a79){_a70[j]=_a78;}}}if(this.referenceIntegrity){var _a7b=_a70[j];if(this.isItem(_a7b)){this._addReferenceToMap(_a7b,item,key);}}}else{if(this.isItem(_a6f)){if(this.referenceIntegrity){this._addReferenceToMap(_a6f,item,key);}}}}}}}},_addReferenceToMap:function(_a7c,_a7d,_a7e){},getIdentity:function(item){var _a80=this._features["dojo.data.api.Identity"];if(_a80===Number){return item[this._itemNumPropName];}else{var _a81=item[_a80];if(_a81){return _a81[0];}}return null;},fetchItemByIdentity:function(_a82){if(!this._loadFinished){var self=this;if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_a82});}else{this._loadInProgress=true;var _a84={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache};var _a85=dojo.xhrGet(_a84);_a85.addCallback(function(data){var _a87=_a82.scope?_a82.scope:dojo.global;try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;var item=self._getItemByIdentity(_a82.identity);if(_a82.onItem){_a82.onItem.call(_a87,item);}self._handleQueuedFetches();}catch(error){self._loadInProgress=false;if(_a82.onError){_a82.onError.call(_a87,error);}}});_a85.addErrback(function(_a89){self._loadInProgress=false;if(_a82.onError){var _a8a=_a82.scope?_a82.scope:dojo.global;_a82.onError.call(_a8a,_a89);}});}}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;var item=self._getItemByIdentity(_a82.identity);if(_a82.onItem){var _a8c=_a82.scope?_a82.scope:dojo.global;_a82.onItem.call(_a8c,item);}}}}else{var item=this._getItemByIdentity(_a82.identity);if(_a82.onItem){var _a8c=_a82.scope?_a82.scope:dojo.global;_a82.onItem.call(_a8c,item);}}},_getItemByIdentity:function(_a8d){var item=null;if(this._itemsByIdentity){item=this._itemsByIdentity[_a8d];}else{item=this._arrayOfAllItems[_a8d];}if(item===undefined){item=null;}return item;},getIdentityAttributes:function(item){var _a90=this._features["dojo.data.api.Identity"];if(_a90===Number){return null;}else{return [_a90];}},_forceLoad:function(){var self=this;if(this._jsonFileUrl){var _a92={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,sync:true};var _a93=dojo.xhrGet(_a92);_a93.addCallback(function(data){try{if(self._loadInProgress!==true&&!self._loadFinished){self._getItemsFromLoadedData(data);self._loadFinished=true;}else{if(self._loadInProgress){throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}}}catch(e){console.log(e);throw e;}});_a93.addErrback(function(_a95){throw _a95;});}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;}}}});dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["freedom.widget.common.util.DataStores"]){dojo._hasResource["freedom.widget.common.util.DataStores"]=true;dojo.provide("freedom.widget.common.util.DataStores");dojo.declare("freedom.widget.common.util.DataStores",dijit._Widget,{countryStore:new dojo.data.ItemFileReadStore({url:dojo.moduleUrl("freedom","../freedom09/widget/solution/form/templates/countries.json")}),stateStore:new dojo.data.ItemFileReadStore({url:dojo.moduleUrl("freedom","../freedom09/widget/solution/form/templates/usStates.json")}),monthStore:new dojo.data.ItemFileReadStore({url:dojo.moduleUrl("freedom","../freedom09/widget/solution/form/templates/months.json")}),_countryOptions:null,_stateOPtions:null,_monthOptions:null,getOptions:function(type){if(type==COUNTRIES_LIST){return this._countryOptions;}if(type==US_STATES_LIST){return this._stateOptions;}if(type==MONTHS_LIST){return this._monthOptions;}return null;},postCreate:function(){freedom.widget.common.util.DataStores.superclass.postCreate.apply(this,arguments);this.countryStore.fetch({query:{name:"*"},onComplete:dojo.hitch(this,"createCountryOptions")});this.stateStore.fetch({query:{name:"*"},onComplete:dojo.hitch(this,"createStateOptions")});this.monthStore.fetch({query:{name:"*"},onComplete:dojo.hitch(this,"createMonthOptions")});},createCountryOptions:function(_a97){this._countryOptions=this.createOptionsFromItems(_a97);},createStateOptions:function(_a98){this._stateOptions=this.createOptionsFromItems(_a98);},createMonthOptions:function(_a99){this._monthOptions=this.createOptionsFromItems(_a99);},createOptionsFromItems:function(_a9a){var _a9b=[];for(var i=0;i<_a9a.length;i++){_a9b.push(_a9a[i].name);}return _a9b;}});}if(!dojo._hasResource["freedom.widget.common.util.FreedomWidgetFactory"]){dojo._hasResource["freedom.widget.common.util.FreedomWidgetFactory"]=true;dojo.provide("freedom.widget.common.util.FreedomWidgetFactory");freedom.widget.common.util.FreedomWidgetFactory=function(){this.createWidget=function(_a9d,_a9e,_a9f,_aa0){var _aa1=dojo.getObject(_a9d);var _aa2=new _aa1(_a9e);if(_a9f){var _aa3;if(_aa0){var _aa3=_a9f.parentNode;if(_aa0=="before"){_aa3.insertBefore(_aa2.domNode,_a9f);}else{if(_aa0=="after"){var _aa4=_a9f.nextSibling;if(_aa4){_aa3.insertBefore(_aa2.domNode,_aa4);}else{_aa3.appendChild(_aa2.domNode);}}}}else{_a9f.appendChild(_aa2.domNode);}}return _aa2;};};}if(!dojo._hasResource["freedom.gui_util"]){dojo._hasResource["freedom.gui_util"]=true;dojo.provide("freedom.gui_util");var highlightElementMutex={};var ANIMATION_PLAY_DELAY=500;var ANIMATION_PLAY_DURATION=1000;var ANIMATION_COLOR=[221,255,187];freedom.gui_util.highlightElement=function(_aa5,_aa6){if(highlightElementMutex[_aa5]){return;}var _aa7=_aa6||ANIMATION_PLAY_DELAY;highlightElementMutex[_aa5]=true;var _aa8=dojo.byId(_aa5);var _aa9=_aa8.style.background;var anim=dojo.animateProperty({node:_aa8,duration:ANIMATION_PLAY_DURATION,properties:{backgroundColor:{start:_aa9,end:ANIMATION_COLOR}},onEnd:function(){_aa8.style.background=_aa9;}});anim.play();setTimeout(function(){highlightElementMutex[_aa5]=false;},500+_aa7+ANIMATION_PLAY_DURATION);};freedom.gui_util.removeStyles=function(node,_aac){var _aad=dojo.html.getClasses(node);var i,j;if(_aac){for(i=0;i<_aad.length;i++){for(j=0;j<_aac.length;j++){if(_aad[i].substr(0,_aac[j].length)==_aac[j]){dojo.html.removeClass(node,_aad[i]);}}}}else{for(i=0;i<_aad.length;i++){dojo.html.removeClass(node,_aad[i]);}}};freedom.gui_util.fillValues=function(_ab0,_ab1){var _ab2=_ab0.replace(/(;)?\s*$/,"").split(";");for(var i=0;i<_ab2.length;i++){var _ab4=_ab2[i].split(":");var name=_ab4[0].replace(/\s*$/,"").replace(/^\s*/,"");var _ab6=_ab4[1].replace(/\s*$/,"").replace(/^\s*/,"");_ab1[name]=_ab6;}};freedom.gui_util.trimString=function(_ab7){_ab7=_ab7.replace(/^\s+/g,"");return _ab7.replace(/\s+$/g,"");};var widgetToOriginalLengthMap={};freedom.gui_util.handleLengthPropertyChanged=function(_ab8,_ab9,_aba){if(widgetToOriginalLengthMap[_ab8.widgetType]===undefined){widgetToOriginalLengthMap[_ab8.widgetType]=_ab9.clientWidth;}var _abb=widgetToOriginalLengthMap[_ab8.widgetType];var _abc=1;if(_aba[LENGTH_PROPERTY]==LENGTH_PROPERTY_LONG){_abc=1.5;}if(_aba[LENGTH_PROPERTY]==LENGTH_PROPERTY_SHORT){_abc=0.5;}if(_abb<=0){_ab9.style.width=(15*_abc)+"em";}else{_ab9.style.width=(_abb*_abc)+"px";}};}if(!dojo._hasResource["freedom.widget.solution.environment.ActionButtonsContainer"]){dojo._hasResource["freedom.widget.solution.environment.ActionButtonsContainer"]=true;dojo.provide("freedom.widget.solution.environment.ActionButtonsContainer");dojo.declare("freedom.widget.solution.environment.ActionButtonsContainer",[dijit._Widget,dijit._Templated],{isContainer:true,templatePath:dojo.moduleUrl("freedom","widget/solution/environment/templates/action-buttons-container.html"),buttons:null,onButtonPressed:function(_abd){if(_abd.isCancel){this.onCancel(_abd);}else{this.onSubmit(_abd);}},onSubmit:function(btn){},onCancel:function(btn){},postCreate:function(){freedom.widget.solution.environment.ActionButtonsContainer.superclass.postCreate.apply(this,arguments);this.buttons=[];},setSubmitButtonTitle:function(_ac0){if(this.buttons.length>0){this.buttons[0].setTitle(_ac0);}},setValue:function(_ac1,_ac2){var _ac3=_ac1.getPossibleActions(_ac2);if(!_ac3){return;}var uid,_ac5,type,_ac7;var _ac8;for(var b=0;b<this.buttons.length;b++){_ac8=this.buttons[b];_ac8.domNode.parentNode.removeChild(_ac8.domNode);}this.buttons=[];for(var i=0;i<_ac3.length;i++){uid=dojox.uuid.generateRandomUuid();_ac7=_ac3[i].description;_ac5=_ac3[i].title;isCancel=_ac3[i].isCancel;_ac8=getWidgetFactory().createWidget("freedom.widget.solution.environment.ActionButton",{uid:uid,title:_ac5,isCancel:isCancel,description:_ac7},this.containerNode);this.buttons.push(_ac8);dojo.connect(_ac8,"buttonPressed",this,"onButtonPressed");}}});dojo.declare("freedom.widget.solution.environment.ActionButton",[dijit._Widget,dijit._Templated],{widgetsInTemplate:true,title:"",isCancel:false,description:"",uid:"",templatePath:dojo.moduleUrl("freedom","widget/solution/environment/templates/action-button.html"),onClick:function(e){this.buttonPressed(this);},setTitle:function(_acc){this.title=_acc;this.buttonNode.attr("label",_acc);},postCreate:function(){freedom.widget.solution.environment.ActionButton.superclass.postCreate.apply(this,arguments);if(this.title){this.buttonNode.attr("label",this.title);}else{if(this.isCancel){this.buttonNode.attr("label","Cancel");}}},buttonPressed:function(btn){}});}if(!dojo._hasResource["freedom.widget.solution.environment.BaseView"]){dojo._hasResource["freedom.widget.solution.environment.BaseView"]=true;dojo.provide("freedom.widget.solution.environment.BaseView");dojo.declare("freedom.widget.solution.environment.BaseView",dijit._Widget,{formName:"",_uid:"",_controller:null,setController:function(_ace){this._controller=_ace;dojo.connect(this._controller,"onCreateAfter",this,"_onCreateAfter");dojo.connect(this._controller,"onReadAfter",this,"_onReadAfter");dojo.connect(this._controller,"onReadBefore",this,"_onReadBefore");dojo.connect(this._controller,"onRemoveAfter",this,"_onRemoveAfter");dojo.connect(this._controller,"onUpdateAfter",this,"_onUpdateAfter");},_onCreateAfter:function(_acf,_ad0){},_onReadAfter:function(_ad1,_ad2){},_onReadBefore:function(){},_onRemoveAfter:function(_ad3,_ad4){},_onUpdateAfter:function(_ad5,_ad6){},postMixInProperties:function(){freedom.widget.solution.environment.BaseView.superclass.postMixInProperties.apply(this,arguments);this._uid=dojox.uuid.generateRandomUuid();}});}if(!dojo._hasResource["freedom.widget.solution.environment.Comment"]){dojo._hasResource["freedom.widget.solution.environment.Comment"]=true;dojo.provide("freedom.widget.solution.environment.Comment");dojo.declare("freedom.widget.solution.environment.Comment",[dijit._Widget,dijit._Templated],{templateString:"<tr>\r\n        <!-- Copyright (c) 2007 by IBM Corporation -->\r\n        \r\n    <td dojoAttachPoint=\"containerNode\"\r\n\t    class=\"comments-input-td\">\r\n        <textarea rows=\"3\" \r\n\t\t          cols='20' \r\n\t\t\t\t  dojoAttachPoint=\"commentText\" \r\n                  dojoAttachEvent=\"onkeyup:valueChanged\" \t\t\t\t  \r\n\t\t\t\t  class=\"dijitTextBox\"\r\n\t\t\t\t  style=\"width: 15em;\">\r\n        </textarea>\r\n    </td>\r\n    <td>             \r\n\t    <img src=\"../../freedom09/images/add.gif\" \r\n             class=\"button-icon\"\r\n             dojoAttachPoint=\"addButton\" \r\n             dojoAttachEvent=\"onclick:addPressed\" \r\n             title=\"Add a new comment\">\r\n    </td>\r\n    <td>\r\n        <img src=\"../../freedom09/images/delete.gif\"\r\n             class=\"button-icon\"\r\n             dojoAttachPoint=\"removeButton\" \r\n             dojoAttachEvent=\"onclick:removePressed\" \r\n             title=\"Remove this comment\">\r\n    </td>\r\n</tr>\r\n",getValue:function(){return this.commentText.value;},setValue:function(_ad7){this.commentText.value=_ad7;},valueChanged:function(evt){this.onValueChanged(this.getValue());},addPressed:function(){this.onAddPressed(this);},removePressed:function(){this.onRemovePressed(this);},onAddPressed:function(_ad9){},onRemovePressed:function(_ada){},onValueChanged:function(_adb){}});}if(!dojo._hasResource["freedom.widget.solution.environment.Comments"]){dojo._hasResource["freedom.widget.solution.environment.Comments"]=true;dojo.provide("freedom.widget.solution.environment.Comments");dojo.declare("freedom.widget.solution.environment.Comments",[dijit._Widget,dijit._Templated],{isContainer:true,widgetsInTemplate:true,templateString:"<div>\r\n        <!-- Copyright (c) 2007 by IBM Corporation -->\r\n        \r\n    <table class=\"container\" style=\"width: 100%; border:0px;\" cellspacing=\"1px\">\r\n        <tbody dojoAttachPoint=\"containerNode\">\r\n        </tbody>\r\n    </table>\r\n</div>\r\n",comments:[],defaultCommentText:"Type comment here...",postCreate:function(){freedom.widget.solution.environment.Comments.superclass.postCreate.apply(this,arguments);this.comments=[];this.addComment();},addPressed:function(evt){this.addComment(this.commentText.value);this.resetNewCommentText();},addComment:function(_add){var _ade;if(typeof _add=="string"){_ade=_add;_add=undefined;}var _adf=(this.comments.length===0);var _ae0=this.createElement(_add,_ade);if(_adf){this.containerNode.appendChild(_ae0.domNode);}return _ae0;},createElement:function(_ae1,_ae2){var _ae3;if(this.comments.length===0){_ae3=getWidgetFactory().createWidget(this.getType());this.comments[0]=_ae3;}else{if(_ae1===undefined){_ae1=this.comments[this.comments.length-1];}_ae3=getWidgetFactory().createWidget(this.getType(),{},_ae1.domNode,"after");var _ae4=this.indexOf(_ae1);this.comments.splice(_ae4+1,0,_ae3);}if(_ae2===undefined){_ae2="Type comment here...";}_ae3.setValue(_ae2);dojo.connect(_ae3,"onAddPressed",this,"addComment");dojo.connect(_ae3,"onRemovePressed",this,"removeComment");dojo.connect(_ae3,"onValueChanged",this,"commentChanged");this.onAdd(_ae3);return _ae3;},getType:function(){return "freedom.widget.solution.environment.Comment";},indexOf:function(_ae5){for(var i=0;i<this.comments.length;i++){if(this.comments[i]==_ae5){return i;}}return -1;},setValue:function(_ae7){this.removeAll();if(_ae7.length==0){this.addComment();}else{for(var i=0;i<_ae7.length;i++){this.addComment(_ae7[i]);}}},removeAll:function(){for(var i=0;i<this.comments.length;i++){var _aea=this.comments[i];this.containerNode.removeChild(_aea.domNode);_aea.destroy();}this.comments=[];},getValue:function(){var _aeb=[];var _aec;for(var i=0;i<this.comments.length;i++){_aec=freedom.gui_util.trimString(this.comments[i].getValue());if(_aec.length>0&&_aec!==this.defaultCommentText){_aeb.push(_aec);}}return _aeb;},resetToDefault:function(){this.removeAll();this.addComment();},removeComment:function(_aee){if(this.comments.length===1){return;}var _aef=this.indexOf(_aee);this.comments.splice(_aef,1);this.onRemove(_aee);_aee.destroy();},resetNewCommentText:function(){this.commentText.value=this.defaultCommentText;},onAdd:function(_af0){},onRemove:function(_af1){},commentChanged:function(_af2){}});}if(!dojo._hasResource["freedom.widget.solution.environment.CommentsDialog"]){dojo._hasResource["freedom.widget.solution.environment.CommentsDialog"]=true;dojo.provide("freedom.widget.solution.environment.CommentsDialog");dojo.declare("freedom.widget.solution.environment.CommentsDialog",[dijit._Widget,dijit._Templated],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/solution/environment/templates/comments-dialog.html"),commentsContainer:null,closeTooltipDialog:function(){dijit.popup.close(this);},openTooltipDialog:function(){dijit.popup.open({popup:this,around:this.domNode});},_onBlur:function(){this.closeTooltipDialog();},onCancel:function(){this.closeTooltipDialog();},onClose:function(){this.closeTooltipDialog();}});}if(!dojo._hasResource["freedom.widget.solution.environment.Tag"]){dojo._hasResource["freedom.widget.solution.environment.Tag"]=true;dojo.provide("freedom.widget.solution.environment.Tag");dojo.declare("freedom.widget.solution.environment.Tag",[dijit._Widget,dijit._Templated],{value:"",widgetsInTemplate:true,tagsContainer:null,imageContainer:null,templateString:"<tr>\r\n        <!-- Copyright (c) 2007 by IBM Corporation -->\r\n        \r\n    <td dojoAttachPoint=\"containerNode\" class=\"tag-input-td\">\r\n        <input dojoAttachPoint=\"valueNode\" \r\n               dojoAttachEvent=\"onkeyup:valueChanged\" \r\n               value=\"\"\r\n               class=\"dijitTextBox\" \r\n               style=\"width: 15em;\">\r\n    </td>\r\n    <td dojoAttachPoint=\"addButton\" \r\n        dojoAttachEvent=\"onclick:addPressed\" \r\n        title=\"Add a new tag\">\r\n        <img src=\"../../freedom09/images/add.gif\" \r\n             class=\"button-icon\">\r\n    </td>\r\n    <td dojoAttachPoint=\"removeButton\" \r\n        dojoAttachEvent=\"onclick:removePressed\" \r\n        title=\"Remove this tag\">\r\n        <img src=\"../../freedom09/images/delete.gif\" \r\n             class=\"button-icon\">\r\n    </td>\r\n</tr>\r\n",addPressed:function(evt){return this.tagsContainer.addTag(this,null,true);},removePressed:function(evt){this.tagsContainer.removeTag1(this);},getValue:function(){return this.valueNode.value;},setValue:function(_af5){this.valueNode.value=_af5;this.onValueChanged(this.getValue());},valueChanged:function(evt){this.onValueChanged(this.getValue());},setTagsContainer:function(_af7){this.tagsContainer=_af7;},getTagElement:function(){return this.tagElement;},onAddPressed:function(tag){},onRemovePressed:function(tag){},onValueChanged:function(_afa){}});}if(!dojo._hasResource["freedom.widget.solution.environment.Tags"]){dojo._hasResource["freedom.widget.solution.environment.Tags"]=true;dojo.provide("freedom.widget.solution.environment.Tags");dojo.declare("freedom.widget.solution.environment.Tags",[dijit._Widget,dijit._Templated],{widgetsInTemplate:true,templateString:"<table class=\"container\" \r\n       style=\"width: 18em; border:0px\" \r\n       cellspacing=\"1px\">\r\n\r\n        <!-- Copyright (c) 2007 by IBM Corporation -->\r\n        \r\n    <tbody dojoAttachPoint=\"containerNode\" >\r\n    </tbody>\r\n</table>\r\n",tags:[],addTag:function(_afb,_afc,_afd){var _afe=(this.tags.length===0);var tag=this.createElement(_afb,_afc);if(_afe){this.containerNode.appendChild(tag.domNode);}if(_afd){tag.valueNode.focus();}return tag;},createElement:function(_b00,_b01){var tag;if(this.tags.length===0){tag=getWidgetFactory().createWidget(this.getType());this.tags[0]=tag;}else{if(_b00===null||_b00===undefined){_b00=this.tags[this.tags.length-1];}tag=getWidgetFactory().createWidget(this.getType(),{},_b00.domNode,"after");var _b03=this.indexOf(_b00);if(_b03==-1){_b03=this.tags.length-1;}this.tags.splice(_b03+1,0,tag);}if(_b01!==null&&_b01!==undefined){tag.setValue(_b01);}tag.setTagsContainer(this);dojo.connect(tag,"onAddPressed",this,"addTag");dojo.connect(tag,"onRemovePressed",this,"removeTag1");dojo.connect(tag,"onValueChanged",this,"tagChanged");this.onAdd(tag);return tag;},getType:function(){return "freedom.widget.solution.environment.Tag";},removeTag1:function(tag){if(this.tags.length>1){this.forceRemoveTag(tag);}},forceRemoveTag:function(tag){var _b06=this.indexOf(tag);if(_b06!=-1){this.tags.splice(_b06,1);if(tag.domNode.parentNode==this.containerNode){this.containerNode.removeChild(tag.domNode);}tag.destroy();this.onRemove(tag);}},init:function(){this.addTag();},tagChanged:function(_b07){this.onChangeTag(_b07);},onAdd:function(tag){},onRemove:function(tag){},onChangeTag:function(_b0a){},indexOf:function(tag){for(var i=0;i<this.tags.length;i++){if(this.tags[i]==tag){return i;}}return -1;},removeAll:function(){for(var i=this.tags.length-1;i>=0;i--){this.forceRemoveTag(this.tags[i]);}},setValue:function(_b0e){this.removeAll();if(_b0e.length===0){this.addTag();}else{for(var i=0;i<_b0e.length;i++){this.addTag(null,_b0e[i]);}}},getValue:function(){var _b10=[];var _b11;for(var i=0;i<this.tags.length;i++){_b11=freedom.gui_util.trimString(this.tags[i].getValue());if(_b11.length>0){_b10.push(_b11);}}return _b10;},resetToDefault:function(){this.removeAll();this.addTag(null,null,false);}});}if(!dojo._hasResource["freedom.widget.solution.environment.TagsDialog"]){dojo._hasResource["freedom.widget.solution.environment.TagsDialog"]=true;dojo.provide("freedom.widget.solution.environment.TagsDialog");dojo.declare("freedom.widget.solution.environment.TagsDialog",[dijit._Widget,dijit._Templated],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/solution/environment/templates/tags-dialog.html"),tagsContainer:null,closeTooltipDialog:function(){dijit.popup.close(this);},openTooltipDialog:function(){dijit.popup.open({popup:this,around:this.domNode});},_onBlur:function(){this.closeTooltipDialog();},onCancel:function(){this.closeTooltipDialog();},onClose:function(){this.closeTooltipDialog();}});}if(!dojo._hasResource["freedom.widget.solution.environment.CurrentItemView"]){dojo._hasResource["freedom.widget.solution.environment.CurrentItemView"]=true;dojo.provide("freedom.widget.solution.environment.CurrentItemView");dojo.declare("freedom.widget.solution.environment.CurrentItemView",[freedom.widget.solution.environment.BaseView,dijit._Templated],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/solution/environment/templates/current-item-view.html"),fullName:"",_postActionData:null,useComments:true,useTags:true,isDirty:false,setBusinessObject:function(_b13){this.isDirty=false;this._disconnectChangedNotifications();this.theForm.setBusinessObject(_b13);if(null!==_b13){this.commentsDialog.commentsContainer.setValue(_b13.comments);this.tagsDialog.tagsContainer.setValue(_b13.tags);this.theForm.resetDisplay();this.theForm.validate();}this._connectValueChangedNotifications();},isEntityChanged:function(){var _b14=this.theForm.getBusinessObject();if(null!==_b14){if(this.theForm.isEntityChanged()){return true;}if(!this.isArraysEqual(_b14.tags,this.tagsDialog.tagsContainer.getValue())){return true;}if(!this.isArraysEqual(_b14.comments,this.commentsDialog.commentsContainer.getValue())){return true;}}return false;},isDataPaneVisible:function(){return this.dataPane.style.display=="block";},showDataPane:function(){this.dataPane.style.display="block";this.notePane.domNode.style.display="none";},hideDataPane:function(){this.dataPane.style.display="none";this.notePane.domNode.style.display="block";},setEditMode:function(_b15){if(!FREEDOM.mIsWorkflow[this.theForm.getFormName()]){this.buttonsContainer.setSubmitButtonTitle(_b15?" Save":" Create");}this._baseTitle=this.fullName;this._printTitle();if(!_b15){this.forwardIcon.style.display="none";this.printIcon.style.display="none";this.forwardIconSep.style.display="none";this.printIconSep.style.display="none";}else{this.forwardIcon.style.display="inline";this.printIcon.style.display="inline";this.forwardIconSep.style.display="inline";this.printIconSep.style.display="inline";}if(FREEDOM.mIsWorkflow[this.theForm.getFormName()]){var _b16=this.theForm.getBusinessObject();if(null!==_b16&&undefined!==_b16.flowState){this.formTitle.innerHTML=this.formTitle.innerHTML+" - "+_b16.flowState;}}},save:function(_b17){if(!this.theForm.validateButtonPressed(dojo.trim(_b17.title))){return;}var _b18=this.theForm.isValidValue();if(_b18.length==0){this.theForm.beforeSave();var _b19=this.theForm.getBusinessObject();_b19.comments=this.commentsDialog.commentsContainer.getValue();_b19.tags=this.tagsDialog.tagsContainer.getValue();if(FREEDOM.mIsWorkflow[this.theForm.getFormName()]){var _b1a=_b19.flowState;if(undefined==_b1a){_b1a="Start";}this._postActionData=this.theForm.getPostActionData(_b1a,_b17.title);}_b19.pressedButton=_b17.title;this._controller.save(_b19);}else{for(var i=0;i<_b18.length;i++){_b18[i]={type:"error",message:_b18[i]};}}this._controller.setMessages(_b18);},cancel:function(_b1c){if(!this.theForm.validateButtonPressed(dojo.trim(_b1c.title))){return;}this.theForm.resetDisplay();this._controller.cancelEdit(this);this._clearFormChanged();},hiliteOverview:function(){this.onHiliteOverviewClicked(this);},printClicked:function(){var _b1d=this.theForm.getBusinessObject();window.open(location.protocol+"//"+location.host+_b1d.editLink+"?format="+escape("text/html"),"Printing Form: "+this.fullName,"location=1,status=1,scrollbars=1");},forwardClicked:function(){var _b1e=this.theForm.getBusinessObject();var _b1f=_b1e.editLink.substring(_b1e.editLink.lastIndexOf("/")+1);var _b20=location.pathname;_b20=_b20.substr(0,_b20.lastIndexOf("/"));_b20=location.protocol+"//"+location.host+_b20+"/freedom-application-form.html?"+"form="+this.theForm.getFormName()+"&"+"uid="+_b1f;var _b21=escape("Forwarded Form: "+this.fullName);var _b22=escape("Please access this form: \n")+escape(_b20)+escape("\n\n");var href="mailto:?"+"subject="+_b21+"&body="+_b22;location.href=href;},commentsClicked:function(){this._openDialog(this.commentsDialog);},tagsClicked:function(){this._openDialog(this.tagsDialog);},_openDialog:function(_b24){dijit.popup.open({popup:_b24,orient:{"BR":"TR","TL":"BR"},around:this.moreActionsDropDown.domNode});dijit.focus(_b24.domNode);},addFormClicked:function(){this.onAddFormClicked(this);},resetButtons:function(_b25){if(!FREEDOM.mIsWorkflow[this.theForm.getFormName()]){_b25=undefined;}this.buttonsContainer.setValue(this.theForm,_b25);},isFinalState:function(_b26){var _b27=true;if(FREEDOM.mIsWorkflow[this.theForm.getFormName()]){var _b28=this.theForm.getPossibleActions(_b26);if(_b28){for(var i=0;i<_b28.length;i++){if(!_b28[i].isCancel){_b27=false;break;}}}}return _b27;},isArraysEqual:function(arr1,arr2){if(arr1.length!=arr2.length){return false;}for(var i=0;i<arr1.length;i++){if(arr1[i]!=arr2[i]){return false;}}return true;},_onCreateAfter:function(_b2d,_b2e){if(freedom.client.BaseController.OK==_b2d){if(FREEDOM.mIsWorkflow[this.theForm.getFormName()]){this._controller.performPostActionActivities(this._postActionData,_b2e);}this.setEditMode(true);this.setBusinessObject(_b2e);this.theForm.shown();if(FREEDOM.mIsWorkflow[this.theForm.getFormName()]){this.resetButtons(_b2e.flowState);}this.theForm.afterSave();}},_onReadBefore:function(){this.hideDataPane();},_onRemoveAfter:function(_b2f,_b30){if(freedom.client.BaseController.OK==_b2f){this.setBusinessObject(null);this.hideDataPane();}},_onUpdateAfter:function(_b31,_b32){if(freedom.client.BaseController.OK==_b31){if(FREEDOM.mIsWorkflow[this.theForm.getFormName()]){this._controller.performPostActionActivities(this._postActionData,_b32);}this.setEditMode(true);this.setBusinessObject(_b32);this.theForm.shown();if(FREEDOM.mIsWorkflow[this.theForm.getFormName()]){this.resetButtons(_b32.flowState);}this.theForm.afterSave();}},shown:function(){this.theForm.shown();},updateReferences:function(){this.theForm.updateReferences(this._controller.getMasterController());},updateReferencesFinished:function(){},startup:function(){freedom.widget.solution.environment.CurrentItemView.superclass.startup.apply(this,arguments);if(!this.useComments){}if(!this.useTags){}dojo.connect(this.theForm,"afterUpdateReferences",this,"updateReferencesFinished");this._dojoConnectRCs={"change":null,"save":null,"commentAdd":null,"tagAdd":null,"commentRemove":null,"tagRemove":null,"commentChanged":null,"tagChanged":null};},getIsDirty:function(){return this.isDirty;},setIsDirty:function(_b33){this.isDirty=_b33;this._printTitle();},_noteFormChanged:function(){this.isDirty=true;this._printTitle();},_clearFormChanged:function(){this.isDirty=false;this._printTitle();},_printTitle:function(){if(this.isDirty){this.formTitle.innerHTML=this._baseTitle+" *";}else{this.formTitle.innerHTML=this._baseTitle;}},_connectValueChangedNotifications:function(){this._dojoConnectRCs["change"]=dojo.connect(this.theForm.getBusinessObject(),"onChange",this,"_noteFormChanged");this._dojoConnectRCs["save"]=dojo.connect(this.theForm,"afterSave",this,"_clearFormChanged");this._dojoConnectRCs["commentAdd"]=dojo.connect(this.commentsDialog.commentsContainer,"onAdd",this,"_noteFormChanged");this._dojoConnectRCs["commentRemove"]=dojo.connect(this.commentsDialog.commentsContainer,"onRemove",this,"_noteFormChanged");this._dojoConnectRCs["commentChanged"]=dojo.connect(this.commentsDialog.commentsContainer,"commentChanged",this,"_noteFormChanged");this._dojoConnectRCs["tagAdd"]=dojo.connect(this.tagsDialog.tagsContainer,"onAdd",this,"_noteFormChanged");this._dojoConnectRCs["tagRemove"]=dojo.connect(this.tagsDialog.tagsContainer,"onRemove",this,"_noteFormChanged");this._dojoConnectRCs["tagChanged"]=dojo.connect(this.tagsDialog.tagsContainer,"tagChanged",this,"_noteFormChanged");},_disconnectChangedNotifications:function(){this._dojoConnectRCs["change"]&&dojo.disconnect(this._dojoConnectRCs["change"]);this._dojoConnectRCs["save"]&&dojo.disconnect(this._dojoConnectRCs["save"]);this._dojoConnectRCs["commentAdd"]&&dojo.disconnect(this._dojoConnectRCs["commentAdd"]);this._dojoConnectRCs["commentRemove"]&&dojo.disconnect(this._dojoConnectRCs["commentRemove"]);this._dojoConnectRCs["commentChanged"]&&dojo.disconnect(this._dojoConnectRCs["commentChanged"]);this._dojoConnectRCs["tagAdd"]&&dojo.disconnect(this._dojoConnectRCs["tagAdd"]);this._dojoConnectRCs["tagRemove"]&&dojo.disconnect(this._dojoConnectRCs["tagRemove"]);this._dojoConnectRCs["tagChanged"]&&dojo.disconnect(this._dojoConnectRCs["tagChanged"]);},getForm:function(){return this.theForm;},buttonsContainer:null,commentsDialog:null,dataPane:null,formTitle:null,notePane:null,tagsDialog:null,theForm:null,modifiedSign:null,onAddFormClicked:function(_b34){},onHiliteOverviewClicked:function(_b35){}});}if(!dojo._hasResource["dijit.form.CheckBox"]){dojo._hasResource["dijit.form.CheckBox"]=true;dojo.provide("dijit.form.CheckBox");dojo.declare("dijit.form.CheckBox",dijit.form.ToggleButton,{templateString:"<div class=\"dijitReset dijitInline\" waiRole=\"presentation\"\r\n\t><input\r\n\t \ttype=\"${type}\" name=\"${name}\"\r\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\r\n\t\tdojoAttachPoint=\"focusNode\"\r\n\t \tdojoAttachEvent=\"onmouseover:_onMouse,onmouseout:_onMouse,onclick:_onClick\"\r\n/></div>\r\n",baseClass:"dijitCheckBox",type:"checkbox",value:"on",_setValueAttr:function(_b36){if(typeof _b36=="string"){this.value=_b36;dojo.attr(this.focusNode,"value",_b36);_b36=true;}if(this._created){this.attr("checked",_b36);}},_getValueAttr:function(){return (this.checked?this.value:false);},postMixInProperties:function(){if(this.value==""){this.value="on";}this.inherited(arguments);},_fillContent:function(_b37){},reset:function(){this._hasBeenBlurred=false;this.attr("checked",this.params.checked||false);this.value=this.params.value||"on";dojo.attr(this.focusNode,"value",this.value);},_onFocus:function(){if(this.id){dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}},_onBlur:function(){if(this.id){dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}}});dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(_b38){this.inherited(arguments);if(!this._created){return;}if(_b38){var _b39=this;dojo.query("INPUT[type=radio][name="+this.name+"]",this.focusNode.form||dojo.doc).forEach(function(_b3a){if(_b3a!=_b39.focusNode&&_b3a.form==_b39.focusNode.form){var _b3b=dijit.getEnclosingWidget(_b3a);if(_b3b&&_b3b.checked){_b3b.attr("checked",false);}}});}},_clicked:function(e){if(!this.checked){this.attr("checked",true);}}});}if(!dojo._hasResource["freedom.widget.solution.environment.FreedomBaseOverview"]){dojo._hasResource["freedom.widget.solution.environment.FreedomBaseOverview"]=true;dojo.provide("freedom.widget.solution.environment.FreedomBaseOverview");dojo.declare("freedom.widget.solution.environment.FreedomBaseOverview",dijit._Widget,{addIsSaved:"false",addIsSelected:"false",addCreatedByCurrentUser:"false",theTable:null,tableClass:"overview",_isSaved:"",_isSelected:"",_isCreatedByCurrentUser:"",addWfState:"false",_wfState:"",_uid:"",_itemClass:null,_selectedRow:null,_currentUser:"",onSelect:function(){},getData:function(){var _b3d=[];var data=this.theTable.store.getData();for(var i=0;i<data.length;i++){_b3d.push(data._busObj);}return _b3d;},getDataByKey:function(pKey){return this.theTable.store.getDataByKey(pKey)._busObj;},addData:function(_b41){var item=new this._itemClass(_b41);this.updateSpecialProps(item);this.theTable.store.addData(item);this.theTable.render();var row=this.theTable.getRow(item);if(row){dijit.scrollIntoView(row);}},setUserInfo:function(_b44){this._currentUser=_b44;},setData:function(_b45){this._clearCheckboxes();var data=[];for(var i=0;i<_b45.length;i++){var item=new this._itemClass(_b45[i]);this.updateSpecialProps(item);data.push(item);}this.theTable.store.setData(data);},updateSpecialProps:function(_b49){if("true"===this.addIsSelected){_b49._isSelected="<div></div>";}if("true"===this.addCreatedByCurrentUser){if(_b49._busObj.itemAuthor===this._currentUser){_b49._isCreatedByCurrentUser="<div class=\"current-user-icon\">&nbsp;</div>";}else{_b49._isCreatedByCurrentUser="<div></div>";}}},updateDataItem:function(_b4a){var data=this.theTable.store.getDataByKey(_b4a.Id);if(data){if("true"===this.addWfState){data.flowState=_b4a.flowState;}}},clearData:function(){this.theTable.store.clearData();},removeDataByKey:function(pKey){this.theTable.store.removeDataByKey(pKey);if(this._selectedRow&&pKey==this._selectedRow.Id){this._selectedRow=null;}},onSetData:function(){this.theTable.store.onSetData();},getCheckedRows:function(){var _b4d=[];for(var i=0;i<this._checkboxes.length;i++){if(this._checkboxes[i].getValue()){var row=this._checkboxes[i].domNode.parentNode.parentNode;_b4d.push(this.theTable.getDataByRow(row)._busObj);}}return _b4d;},selectByKey:function(pKey){this.theTable.selectByValue(pKey);this._selectedRow=this.getDataByKey(pKey);},resetSelections:function(){this._selectedRow=null;this.theTable.resetSelections();this.theTable.render();},renderSelections:function(){this.theTable.renderSelections();var rows=this.theTable.domNode.getElementsByTagName("tr");for(var i=0;i<rows.length;i++){if(this.theTable.isRowSelected(rows[i])){dijit.scrollIntoView(rows[i]);}}},_addCheckbox:function(_b53,_b54){if(_b54==0){var _b55=new dijit.form.CheckBox({},_b53.firstChild);this._checkboxes.push(_b55);}},_clearCheckboxes:function(){for(var i=0;i<this._checkboxes.length;i++){this._checkboxes[i].destroyRecursive();}this._checkboxes=[];},_onDblClick:function(_b57){this.onRowDblClick(this._selectedRow);},_onSelection:function(_b58){this._selectedRow=getTableSelectionByWidget(this.theTable);if(this._selectedRow){this._selectedRow=this._selectedRow._busObj;}this.onRowSelected(this._selectedRow);},postMixInProperties:function(){freedom.widget.solution.environment.FreedomBaseOverview.superclass.postMixInProperties.apply(this,arguments);if("true"===this.addIsSaved){this._isSaved="<th field='isSaved' dataType='String' width='15px'></th>";}if("true"===this.addIsSelected){this._isSelected="<th field='_isSelected' dataType='html'></th>";}if("true"===this.addCreatedByCurrentUser){this._isCreatedByCurrentUser="<th field='_isCreatedByCurrentUser' dataType='html' width='16px'></th>";}if("true"===this.addWfState){this._wfState="<th field=flowState dataType=String>Phase</th>";}this._uid=dojox.uuid.generateRandomUuid();},startup:function(){freedom.widget.solution.environment.FreedomBaseOverview.superclass.startup.apply(this,arguments);dojo.connect(this.theTable.domNode,"onclick",this,"_onSelection");dojo.connect(this.theTable.domNode,"ondblclick",this,"_onDblClick");if("true"===this.addIsSelected){dojo.connect(this.theTable,"onCellFilled",this,"_addCheckbox");}this._checkboxes=[];},onRowDblClick:function(_b59){},onRowSelected:function(_b5a){}});dojo.declare("freedom.widget.solution.environment.FreedomBaseOverviewSimpleAttribute",null,{constructor:function(_b5b){this._attribute=_b5b;},toString:function(){return this._attribute.toString();}});dojo.declare("freedom.widget.solution.environment.FreedomOverviewURLAttribute",null,{constructor:function(_b5c,_b5d,_b5e){this._attribute=_b5c;this._title=_b5d||"follow this URL";this._extraURLPrefix=_b5e||"";},toString:function(){var url=this._attribute.toString();var _b60=url;if(_b60.length>20){_b60=_b60.substring(0,17)+"...";}return "<a href=\""+this._extraURLPrefix+url+"\" title=\""+this._title+"\">"+_b60+"</a>";}});dojo.declare("freedom.widget.solution.environment.FreedomBaseOverviewReferenceAttribute",null,{constructor:function(_b61,_b62){this._attribute=_b61;this._fields=_b62.split(" ");},toString:function(){var _b63="";var _b64=this._attribute.getValue();if(_b64.length==1){for(var i=0;i<this._fields.length;i++){if(i){_b63+=" ";}_b63+=_b64[0][this._fields[i]].toString();}}return _b63;}});}if(!dojo._hasResource["dojox.html._base"]){dojo._hasResource["dojox.html._base"]=true;dojo.provide("dojox.html._base");(function(){if(dojo.isIE){var _b66=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;}var _b67=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;var _b68=dojox.html._adjustCssPaths=function(_b69,_b6a){if(!_b6a||!_b69){return;}if(_b66){_b6a=_b6a.replace(_b66,function(_b6b,pre,_b6d,url,post){return pre+(new dojo._Url(_b69,"./"+url).toString())+post;});}return _b6a.replace(_b67,function(_b70,_b71,_b72,_b73,_b74,_b75){if(_b72){return "@import \""+(new dojo._Url(_b69,"./"+_b72).toString())+"\""+_b75;}else{return "url("+(new dojo._Url(_b69,"./"+_b74).toString())+")"+_b75;}});};var _b76=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;var _b77=dojox.html._adjustHtmlPaths=function(_b78,cont){var url=_b78||"./";return cont.replace(_b76,function(tag,_b7c,name,_b7e,_b7f,_b80,_b81,end){return _b7c+(name?(name+"="+_b7e+(new dojo._Url(url,_b7f).toString())+_b7e):("style="+_b80+_b68(url,_b81)+_b80))+end;});};var _b83=dojox.html._snarfStyles=function(_b84,cont,_b86){_b86.attributes=[];return cont.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_b87,_b88,_b89,_b8a,_b8b,href){var i,attr=(_b88||_b8a||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");if(_b89){i=_b86.push(_b84?_b68(_b84,_b89):_b89);}else{i=_b86.push("@import \""+href+"\";");attr=attr.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"");}if(attr){attr=attr.split(/\s+/);var _b8f={},tmp;for(var j=0,e=attr.length;j<e;j++){tmp=attr[j].split("=");_b8f[tmp[0]]=tmp[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");}_b86.attributes[i-1]=_b8f;}return "";});};var _b93=dojox.html._snarfScripts=function(cont,_b95){_b95.code="";function download(src){if(_b95.downloadRemote){dojo.xhrGet({url:src,sync:true,load:function(code){_b95.code+=code+";";},error:_b95.errBack});}};return cont.replace(/<script\s*(?![^>]*type=['"]?dojo)(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_b98,_b99,src,code){if(src){download(src);}else{_b95.code+=code;}return "";});};var _b9c=dojox.html.evalInGlobal=function(code,_b9e){_b9e=_b9e||dojo.doc.body;var n=_b9e.ownerDocument.createElement("script");n.type="text/javascript";_b9e.appendChild(n);n.text=code;};dojo.declare("dojox.html._ContentSetter",[dojo.html._ContentSetter],{adjustPaths:false,referencePath:".",renderStyles:false,executeScripts:false,scriptHasHooks:false,scriptHookReplacement:null,_renderStyles:function(_ba0){this._styleNodes=[];var st,att,_ba3,doc=this.node.ownerDocument;var head=doc.getElementsByTagName("head")[0];for(var i=0,e=_ba0.length;i<e;i++){_ba3=_ba0[i];att=_ba0.attributes[i];st=doc.createElement("style");st.setAttribute("type","text/css");for(var x in att){st.setAttribute(x,att[x]);}this._styleNodes.push(st);head.appendChild(st);if(st.styleSheet){st.styleSheet.cssText=_ba3;}else{st.appendChild(doc.createTextNode(_ba3));}}},empty:function(){this.inherited("empty",arguments);this._styles=[];},onBegin:function(){this.inherited("onBegin",arguments);var cont=this.content,node=this.node;var _bab=this._styles;if(dojo.isString(cont)){if(this.adjustPaths&&this.referencePath){cont=_b77(this.referencePath,cont);}if(this.renderStyles||this.cleanContent){cont=_b83(this.referencePath,cont,_bab);}if(this.executeScripts){var _t=this;var _bad={downloadRemote:true,errBack:function(e){_t._onError.call(_t,"Exec","Error downloading remote script in \""+_t.id+"\"",e);}};cont=_b93(cont,_bad);this._code=_bad.code;}}this.content=cont;},onEnd:function(){var code=this._code,_bb0=this._styles;if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo._destroyElement(this._styleNodes.pop());}}if(this.renderStyles&&_bb0&&_bb0.length){this._renderStyles(_bb0);}if(this.executeScripts&&code){if(this.cleanContent){code=code.replace(/(<!--|(?:\/\/)?-->|<!\[CDATA\[|\]\]>)/g,"");}if(this.scriptHasHooks){code=code.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement);}try{_b9c(code,this.node);}catch(e){this._onError("Exec","Error eval script in "+this.id+", "+e.message,e);}}this.inherited("onEnd",arguments);},tearDown:function(){this.inherited(arguments);delete this._styles;if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo._destroyElement(this._styleNodes.pop());}}delete this._styleNodes;dojo.mixin(this,dojo.getObject(this.declaredClass).prototype);}});dojox.html.set=function(node,cont,_bb3){if(!_bb3){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojox.html._ContentSetter(dojo.mixin(_bb3,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dojox.layout.ContentPane"]){dojo._hasResource["dojox.layout.ContentPane"]=true;dojo.provide("dojox.layout.ContentPane");(function(){dojo.declare("dojox.layout.ContentPane",dijit.layout.ContentPane,{adjustPaths:false,cleanContent:false,renderStyles:false,executeScripts:true,scriptHasHooks:false,constructor:function(){this.ioArgs={};this.ioMethod=dojo.xhrGet;this.onLoadDeferred=new dojo.Deferred();this.onUnloadDeferred=new dojo.Deferred();},postCreate:function(){this._setUpDeferreds();dijit.layout.ContentPane.prototype.postCreate.apply(this,arguments);},onExecError:function(e){},_setContentAttr:function(data){if(!this._isDownloaded){var _bb7=this._setUpDeferreds();}this.inherited(arguments);return _bb7;},cancel:function(){if(this._xhrDfd&&this._xhrDfd.fired==-1){this.onUnloadDeferred=null;}dijit.layout.ContentPane.prototype.cancel.apply(this,arguments);},_setUpDeferreds:function(){var _t=this,_bb9=function(){_t.cancel();};var _bba=(_t.onLoadDeferred=new dojo.Deferred());var _bbb=(_t._nextUnloadDeferred=new dojo.Deferred());return {cancel:_bb9,addOnLoad:function(func){_bba.addCallback(func);},addOnUnload:function(func){_bbb.addCallback(func);}};},_onLoadHandler:function(){dijit.layout.ContentPane.prototype._onLoadHandler.apply(this,arguments);if(this.onLoadDeferred){this.onLoadDeferred.callback(true);}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();if(this.onUnloadDeferred){this.onUnloadDeferred.callback(true);}dijit.layout.ContentPane.prototype._onUnloadHandler.apply(this,arguments);if(this._nextUnloadDeferred){this.onUnloadDeferred=this._nextUnloadDeferred;}},_onError:function(type,err){dijit.layout.ContentPane.prototype._onError.apply(this,arguments);if(this.onLoadDeferred){this.onLoadDeferred.errback(err);}},_prepareLoad:function(_bc0){var _bc1=this._setUpDeferreds();dijit.layout.ContentPane.prototype._prepareLoad.apply(this,arguments);return _bc1;},_setContent:function(cont){var _bc3=this._contentSetter;if(!(_bc3&&_bc3 instanceof dojox.html._ContentSetter)){_bc3=this._contentSetter=new dojox.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _bc5=this.onContentError(e);try{this.containerNode.innerHTML=_bc5;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}this._contentSetterParams={adjustPaths:Boolean(this.adjustPaths&&this.href),referencePath:this.href,renderStyles:this.renderStyles,executeScripts:this.executeScripts,scriptHasHooks:this.scriptHasHooks,scriptHookReplacement:"dijit.byId('"+this.id+"')"};this.inherited("_setContent",arguments);}});})();}if(!dojo._hasResource["dojox.layout.ResizeHandle"]){dojo._hasResource["dojox.layout.ResizeHandle"]=true;dojo.provide("dojox.layout.ResizeHandle");dojo.experimental("dojox.layout.ResizeHandle");dojo.declare("dojox.layout.ResizeHandle",[dijit._Widget,dijit._Templated],{targetId:"",targetContainer:null,resizeAxis:"xy",activeResize:false,activeResizeClass:"dojoxResizeHandleClone",animateSizing:true,animateMethod:"chain",animateDuration:225,minHeight:100,minWidth:100,templateString:"<div dojoAttachPoint=\"resizeHandle\" class=\"dojoxResizeHandle\"><div></div></div>",postCreate:function(){this.connect(this.resizeHandle,"onmousedown","_beginSizing");if(!this.activeResize){this._resizeHelper=dijit.byId("dojoxGlobalResizeHelper");if(!this._resizeHelper){var _bc6=document.createElement("div");_bc6.style.display="none";dojo.body().appendChild(_bc6);dojo.addClass(_bc6,this.activeResizeClass);this._resizeHelper=new dojox.layout._ResizeHelper({id:"dojoxGlobalResizeHelper"},_bc6);this._resizeHelper.startup();}}else{this.animateSizing=false;}if(!this.minSize){this.minSize={w:this.minWidth,h:this.minHeight};}this._resizeX=this._resizeY=false;switch(this.resizeAxis.toLowerCase()){case "xy":this._resizeX=this._resizeY=true;dojo.addClass(this.resizeHandle,"dojoxResizeNW");break;case "x":this._resizeX=true;dojo.addClass(this.resizeHandle,"dojoxResizeW");break;case "y":this._resizeY=true;dojo.addClass(this.resizeHandle,"dojoxResizeN");break;}},_beginSizing:function(e){if(this._isSizing){return false;}this.targetWidget=dijit.byId(this.targetId);this.targetDomNode=this.targetWidget?this.targetWidget.domNode:dojo.byId(this.targetId);if(this.targetContainer){this.targetDomNode=this.targetContainer;}if(!this.targetDomNode){return false;}if(!this.activeResize){var c=dojo.coords(this.targetDomNode,true);this._resizeHelper.resize({l:c.x,t:c.y,w:c.w,h:c.h});this._resizeHelper.show();}this._isSizing=true;this.startPoint={"x":e.clientX,"y":e.clientY};var mb=(this.targetWidget)?dojo.marginBox(this.targetDomNode):dojo.contentBox(this.targetDomNode);this.startSize={"w":mb.w,"h":mb.h};this._pconnects=[];this._pconnects.push(dojo.connect(document,"onmousemove",this,"_updateSizing"));this._pconnects.push(dojo.connect(document,"onmouseup",this,"_endSizing"));e.preventDefault();},_updateSizing:function(e){if(this.activeResize){this._changeSizing(e);}else{var tmp=this._getNewCoords(e);if(tmp===false){return;}this._resizeHelper.resize(tmp);}e.preventDefault();},_getNewCoords:function(e){try{if(!e.clientX||!e.clientY){return false;}}catch(e){return false;}this._activeResizeLastEvent=e;var dx=this.startPoint.x-e.clientX;var dy=this.startPoint.y-e.clientY;var newW=(this._resizeX)?this.startSize.w-dx:this.startSize.w;var newH=(this._resizeY)?this.startSize.h-dy:this.startSize.h;if(this.minSize){if(newW<this.minSize.w){newW=this.minSize.w;}if(newH<this.minSize.h){newH=this.minSize.h;}}return {w:newW,h:newH};},_changeSizing:function(e){var tmp=this._getNewCoords(e);if(tmp===false){return;}if(this.targetWidget&&typeof this.targetWidget.resize=="function"){this.targetWidget.resize(tmp);}else{if(this.animateSizing){var anim=dojo.fx[this.animateMethod]([dojo.animateProperty({node:this.targetDomNode,properties:{width:{start:this.startSize.w,end:tmp.w,unit:"px"}},duration:this.animateDuration}),dojo.animateProperty({node:this.targetDomNode,properties:{height:{start:this.startSize.h,end:tmp.h,unit:"px"}},duration:this.animateDuration})]);anim.play();}else{dojo.style(this.targetDomNode,"width",tmp.w+"px");dojo.style(this.targetDomNode,"height",tmp.h+"px");}}},_endSizing:function(e){dojo.forEach(this._pconnects,dojo.disconnect);if(!this.activeResize){this._resizeHelper.hide();this._changeSizing(e);}this._isSizing=false;this.onResize(e);},onResize:function(e){}});dojo.declare("dojox.layout._ResizeHelper",dijit._Widget,{startup:function(){if(this._started){return;}this.inherited(arguments);},show:function(){dojo.fadeIn({node:this.domNode,duration:120,beforeBegin:dojo.hitch(this,function(){this.domNode.style.display="";})}).play();},hide:function(){dojo.fadeOut({node:this.domNode,duration:250,onEnd:dojo.hitch(this,function(){this.domNode.style.display="none";})}).play();},resize:function(dim){dojo.marginBox(this.domNode,dim);}});}if(!dojo._hasResource["dojox.layout.FloatingPane"]){dojo._hasResource["dojox.layout.FloatingPane"]=true;dojo.provide("dojox.layout.FloatingPane");dojo.experimental("dojox.layout.FloatingPane");dojo.declare("dojox.layout.FloatingPane",[dojox.layout.ContentPane,dijit._Templated],{closable:true,dockable:true,resizable:false,maxable:false,resizeAxis:"xy",title:"",dockTo:"",duration:400,contentClass:"dojoxFloatingPaneContent",_showAnim:null,_hideAnim:null,_dockNode:null,_restoreState:{},_allFPs:[],_startZ:100,templateString:null,templateString:"<div class=\"dojoxFloatingPane\" id=\"${id}\">\r\n\t<div tabindex=\"0\" waiRole=\"button\" class=\"dojoxFloatingPaneTitle\" dojoAttachPoint=\"focusNode\">\r\n\t\t<span dojoAttachPoint=\"closeNode\" dojoAttachEvent=\"onclick: close\" class=\"dojoxFloatingCloseIcon\"></span>\r\n\t\t<span dojoAttachPoint=\"maxNode\" dojoAttachEvent=\"onclick: maximize\" class=\"dojoxFloatingMaximizeIcon\">&thinsp;</span>\r\n\t\t<span dojoAttachPoint=\"restoreNode\" dojoAttachEvent=\"onclick: _restore\" class=\"dojoxFloatingRestoreIcon\">&thinsp;</span>\t\r\n\t\t<span dojoAttachPoint=\"dockNode\" dojoAttachEvent=\"onclick: minimize\" class=\"dojoxFloatingMinimizeIcon\">&thinsp;</span>\r\n\t\t<span dojoAttachPoint=\"titleNode\" class=\"dijitInline dijitTitleNode\"></span>\r\n\t</div>\r\n\t<div dojoAttachPoint=\"canvas\" class=\"dojoxFloatingPaneCanvas\">\r\n\t\t<div dojoAttachPoint=\"containerNode\" waiRole=\"region\" tabindex=\"-1\" class=\"${contentClass}\">\r\n\t\t</div>\r\n\t\t<span dojoAttachPoint=\"resizeHandle\" class=\"dojoxFloatingResizeHandle\"></span>\r\n\t</div>\r\n</div>\r\n",postCreate:function(){this.setTitle(this.title);this.inherited(arguments);var move=new dojo.dnd.Moveable(this.domNode,{handle:this.focusNode});if(!this.dockable){this.dockNode.style.display="none";}if(!this.closable){this.closeNode.style.display="none";}if(!this.maxable){this.maxNode.style.display="none";this.restoreNode.style.display="none";}if(!this.resizable){this.resizeHandle.style.display="none";}else{var foo=dojo.marginBox(this.domNode);this.domNode.style.width=foo.w+"px";}this._allFPs.push(this);this.domNode.style.position="absolute";},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.resizable){if(dojo.isIE){this.canvas.style.overflow="auto";}else{this.containerNode.style.overflow="auto";}this._resizeHandle=new dojox.layout.ResizeHandle({targetId:this.id,resizeAxis:this.resizeAxis},this.resizeHandle);}if(this.dockable){var _bd9=this.dockTo;if(this.dockTo){this.dockTo=dijit.byId(this.dockTo);}else{this.dockTo=dijit.byId("dojoxGlobalFloatingDock");}if(!this.dockTo){var _bda;var _bdb;if(_bd9){_bda=_bd9;_bdb=dojo.byId(_bd9);}else{_bdb=document.createElement("div");dojo.body().appendChild(_bdb);dojo.addClass(_bdb,"dojoxFloatingDockDefault");_bda="dojoxGlobalFloatingDock";}this.dockTo=new dojox.layout.Dock({id:_bda,autoPosition:"south"},_bdb);this.dockTo.startup();}if((this.domNode.style.display=="none")||(this.domNode.style.visibility=="hidden")){this.minimize();}}this.connect(this.focusNode,"onmousedown","bringToTop");this.connect(this.domNode,"onmousedown","bringToTop");this.resize(dojo.coords(this.domNode));this._started=true;},setTitle:function(_bdc){this.titleNode.innerHTML=_bdc;this.title=_bdc;},close:function(){if(!this.closable){return;}dojo.unsubscribe(this._listener);this.hide(dojo.hitch(this,function(){this.destroyRecursive();}));},hide:function(_bdd){dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,function(){this.domNode.style.display="none";this.domNode.style.visibility="hidden";if(this.dockTo&&this.dockable){this.dockTo._positionDock(null);}if(_bdd){_bdd();}})}).play();},show:function(_bde){var anim=dojo.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:dojo.hitch(this,function(){this.domNode.style.display="";this.domNode.style.visibility="visible";if(this.dockTo&&this.dockable){this.dockTo._positionDock(null);}if(typeof _bde=="function"){_bde();}this._isDocked=false;if(this._dockNode){this._dockNode.destroy();this._dockNode=null;}})}).play();this.resize(dojo.coords(this.domNode));},minimize:function(){if(!this._isDocked){this.hide(dojo.hitch(this,"_dock"));}},maximize:function(){if(this._maximized){return;}this._naturalState=dojo.coords(this.domNode);if(this._isDocked){this.show();setTimeout(dojo.hitch(this,"maximize"),this.duration);}dojo.addClass(this.focusNode,"floatingPaneMaximized");this.resize(dijit.getViewport());this._maximized=true;},_restore:function(){if(this._maximized){this.resize(this._naturalState);dojo.removeClass(this.focusNode,"floatingPaneMaximized");this._maximized=false;}},_dock:function(){if(!this._isDocked&&this.dockable){this._dockNode=this.dockTo.addNode(this);this._isDocked=true;}},resize:function(dim){this._currentState=dim;var dns=this.domNode.style;if(dim.t){dns.top=dim.t+"px";}if(dim.l){dns.left=dim.l+"px";}dns.width=dim.w+"px";dns.height=dim.h+"px";var _be2={l:0,t:0,w:dim.w,h:(dim.h-this.focusNode.offsetHeight)};dojo.marginBox(this.canvas,_be2);this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(_be2);}},bringToTop:function(){var _be3=dojo.filter(this._allFPs,function(i){return i!==this;},this);_be3.sort(function(a,b){return a.domNode.style.zIndex-b.domNode.style.zIndex;});_be3.push(this);dojo.forEach(_be3,function(w,x){w.domNode.style.zIndex=this._startZ+(x*2);dojo.removeClass(w.domNode,"dojoxFloatingPaneFg");},this);dojo.addClass(this.domNode,"dojoxFloatingPaneFg");},destroy:function(){this._allFPs.splice(dojo.indexOf(this._allFPs,this),1);if(this._resizeHandle){this._resizeHandle.destroy();}this.inherited(arguments);}});dojo.declare("dojox.layout.Dock",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dojoxDock\"><ul dojoAttachPoint=\"containerNode\" class=\"dojoxDockList\"></ul></div>",_docked:[],_inPositioning:false,autoPosition:false,addNode:function(_be9){var div=document.createElement("li");this.containerNode.appendChild(div);var node=new dojox.layout._DockNode({title:_be9.title,paneRef:_be9},div);node.startup();return node;},startup:function(){if(this.id=="dojoxGlobalFloatingDock"||this.isFixedDock){dojo.connect(window,"onresize",this,"_positionDock");dojo.connect(window,"onscroll",this,"_positionDock");if(dojo.isIE){this.connect(this.domNode,"onresize","_positionDock");}}this._positionDock(null);this.inherited(arguments);},_positionDock:function(e){if(!this._inPositioning){if(this.autoPosition=="south"){setTimeout(dojo.hitch(this,function(){this._inPositiononing=true;var _bed=dijit.getViewport();var s=this.domNode.style;s.left=_bed.l+"px";s.width=(_bed.w-2)+"px";s.top=(_bed.h+_bed.t)-this.domNode.offsetHeight+"px";this._inPositioning=false;}),125);}}}});dojo.declare("dojox.layout._DockNode",[dijit._Widget,dijit._Templated],{title:"",paneRef:null,templateString:"<li dojoAttachEvent=\"onclick: restore\" class=\"dojoxDockNode\">"+"<span dojoAttachPoint=\"restoreNode\" class=\"dojoxDockRestoreButton\" dojoAttachEvent=\"onclick: restore\"></span>"+"<span class=\"dojoxDockTitleNode\" dojoAttachPoint=\"titleNode\">${title}</span>"+"</li>",restore:function(){this.paneRef.show();this.paneRef.bringToTop();this.destroy();}});}if(!dojo._hasResource["freedom.widget.solution.environment.FreedomHelpContainer"]){dojo._hasResource["freedom.widget.solution.environment.FreedomHelpContainer"]=true;dojo.provide("freedom.widget.solution.environment.FreedomHelpContainer");dojo.declare("freedom.widget.solution.environment.FreedomHelpContainer",dojox.layout.FloatingPane,{title:"Help",closeable:true,resizable:true,dockable:false,shouldPopUp:true,iconSrc:dojo.moduleUrl("freedom","images/help.png"),close:function(evt){this.domNode.style.visibility="hidden";},slideIn:function(){if(this.shouldPopUp){var _bf0=dijit.getViewport();var mb=dojo.marginBox(this.domNode);this.resize(mb);var x=_bf0.l+(_bf0.w-mb.w)/2;var y=_bf0.t+(_bf0.h-mb.h)/2;if(y<10){y=10;}this.domNode.style.position="absolute";this.domNode.style.left=x+"px";this.domNode.style.top=y+"px";this.shouldPopUp=false;}this.domNode.style.visibility="";},postCreate:function(){freedom.widget.solution.environment.FreedomHelpContainer.superclass.postCreate.apply(this,arguments);this.resizable=true;}});}if(!dojo._hasResource["freedom.widget.solution.environment.LoginContent"]){dojo._hasResource["freedom.widget.solution.environment.LoginContent"]=true;dojo.provide("freedom.widget.solution.environment.LoginContent");dojo.declare("freedom.widget.solution.environment.LoginContent",[dijit._Widget,dijit._Templated],{AUTOMATIC_LOGON:"automatic-logon",LOGIN_WAIT_MSG:"Logging in, please wait...",LOGIN_MSG:"Enter your user ID and password",ERROR_DATA_MSG:"Invalid user id or password, please try again",mLoginHandler:undefined,mLoginHandlerConnectHandle:false,isContainer:false,widgetsInTemplate:true,dojoRoot:"",theDialog:null,titleSection:null,buttonWrapper:null,userNameWrapper:null,passwordWrapper:null,templatePath:dojo.moduleUrl("freedom","widget/solution/environment/templates/login-content.html"),onLoginFinished:function(_bf4){},start:function(_bf5){this.mLoginHandler=_bf5;this.mLoginHandlerConnectHandle=dojo.connect(this.mLoginHandler,"onEvent",this,"loginCommListener");this.theDialog.show();if(this.mLoginHandler.canAutoLogin()){this.titleSection.style.display="none";this.userNameWrapper.style.display="none";this.passwordWrapper.style.display="none";this.buttonWrapper.style.display="none";this.showLoginWaitImg();this.changeMsg(this.LOGIN_WAIT_MSG,"loginErrMsg","loginMsg");this.mLoginHandler.autoLogin(LOGIN_URL,this.AUTOMATIC_LOGON);}else{this.startLoginDialog();}},startLoginDialog:function(){this.titleSection.style.display="block";this.userNameWrapper.style.display="block";this.passwordWrapper.style.display="block";this.buttonWrapper.style.display="block";this.hideLoginWaitImg();this.changeMsg(this.LOGIN_MSG,"loginErrMsg","loginMsg");this.userName.focus();},mixInProperties:function(_bf6,frag){freedom.widget.solution.environment.LoginContent.superclass.mixInProperties.apply(this,arguments);this.dojoRoot=djConfig.baseUrl;},loginCommListener:function(_bf8){if(_bf8.mOperation==freedom.comm.CommunicationsHandler.OPERATION_LOGIN){this.loginFinished(_bf8);}else{if(_bf8.mOperation==freedom.comm.CommunicationsHandler.OPERATION_AUTO_LOGIN){if(_bf8.mStatus==freedom.comm.CommunicationsEvent.OK){this.loginFinished(_bf8);}else{this.startLoginDialog();}}}},login:function(){this.loginBtn.disabled="disabled";this.showLoginWaitImg();this.changeMsg(this.LOGIN_WAIT_MSG,"loginErrMsg","loginMsg");document.body.style.cursor="wait";this.mLoginHandler.login(LOGIN_URL,this.userName.value,this.password.value,"UNIQUE_ID");},_handleKeyEvents:function(evt){if(evt.keyCode==13){this.login();}},showLoginWaitImg:function(){this.loginImg.style.width="20px";this.loginImg.style.display="block";},hideLoginWaitImg:function(){this.loginImg.style.width="0px";this.loginImg.style.display="none";},loginFinished:function(_bfa){document.body.style.cursor="default";if(_bfa.mStatus==freedom.comm.CommunicationsEvent.OK){this.theDialog.hide();dojo.disconnect(this.mLoginHandlerConnectHandle);var _bfb=new freedom.widget.solution.environment.LoginEvent();this.onLoginFinished(_bfb);}else{this.loginBtn.disabled="";this.hideLoginWaitImg();this.changeMsg(this.ERROR_DATA_MSG,"loginMsg","loginErrMsg");}},changeMsg:function(msg,_bfd,_bfe){this.errorMsg.innerHTML=msg;dojo.removeClass(this.errorMsg,_bfd);dojo.addClass(this.errorMsg,_bfe);},startup:function(){freedom.widget.solution.environment.LoginContent.superclass.startup.apply(this,arguments);this.theDialog.titleBar.style.display="none";this.theDialog.domNode.parentNode.removeChild(this.theDialog.domNode);dojo.body().appendChild(this.theDialog.domNode);}});dojo.declare("freedom.widget.solution.environment.LoginEvent",null,{});}if(!dojo._hasResource["freedom.widget.solution.environment.OverviewView"]){dojo._hasResource["freedom.widget.solution.environment.OverviewView"]=true;dojo.provide("freedom.widget.solution.environment.OverviewView");dojo.declare("freedom.widget.solution.environment.OverviewView",[freedom.widget.solution.environment.BaseView,dijit._Templated],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/solution/environment/templates/overview-view.html"),overviewDescription:"",showPages:"",dataLocation:"",_isOneItemPerUser:false,setBusinessObjects:function(_bff){this.overviewWidget.setUserInfo(this._controller.getDataStore().getCurrentUser(),this._isOneItemPerUser);this.overviewWidget.setData(_bff);},selectBusinessObject:function(_c00){this.overviewWidget.resetSelections();if(null!==_c00){this.overviewWidget.selectByKey(_c00.Id);this._selectedBusObj=_c00;this.showSelectedBusinessObject();this.duplicateButton.attr("disabled",this._isOneItemPerUser);this.removeButton.attr("disabled",false);}else{this.duplicateButton.attr("disabled",true);this.removeButton.attr("disabled",true);}},showSelectedBusinessObject:function(){this.overviewWidget.renderSelections();},onSelect:function(_c01){this._selectedBusObj=_c01;if(_c01!==null){this.onBusinessObjectSelected(_c01,this);this.duplicateButton.attr("disabled",this._isOneItemPerUser);this.removeButton.attr("disabled",false);}else{this.duplicateButton.attr("disabled",true);this.removeButton.attr("disabled",true);}},exportClicked:function(){this._controller.exportClicked();},printClicked:function(){alert("Print does not work yet!!!!");},refreshClicked:function(){this._controller.refresh(true);},nextPageClicked:function(){this._controller.retrieveNextPage();},prevPageClicked:function(){this._controller.retrievePrevPage();},firstPageClicked:function(){this._controller.retrieveFirstPage();},lastPageClicked:function(){this._controller.retrieveLastPage();},onFilter:function(_c02){this._controller.freeTextSearch(_c02,this);},cancelSearchClicked:function(){this._controller.freeTextSearch("",this);},advancedSearchBoxDialogClicked:function(evt){this._controller.advancedSearchBoxDialogClicked(this.searchField.domNode,this);},onAdd:function(){this.onBusinessObjectSelected(null,this);},onDuplicate:function(){if(this._selectedBusObj!==null){this.onBusinessObjectSelected(this._selectedBusObj,this,true);}else{FREEDOM.statusDialog.showDialog("Error","","Please select a form first");}},onRemove:function(){if(this._selectedBusObj!==null){this._controller.remove(this._selectedBusObj);}else{FREEDOM.statusDialog.showDialog("Error","","Please select a form first");}},_onCreateAfter:function(_c04,_c05){if(freedom.client.BaseController.OK==_c04){this.overviewWidget.addData(_c05);this.selectBusinessObject(_c05);this._handleOneItemPerUser();}},_onReadAfter:function(_c06,_c07){if(freedom.client.BaseController.OK==_c06){this.setBusinessObjects(_c07);this.selectBusinessObject(null);this._handleOneItemPerUser();if(String(this.showPages)=="true"){this.pageIndexNode.innerHTML="???";}}},_handleOneItemPerUser:function(){var _c08=this._controller.getOneItemPerUserBusinessObject();this._isOneItemPerUser=(_c08!==null);if(this._isOneItemPerUser){this.addButton.attr("disabled",true);this.duplicateButton.attr("disabled",true);}else{this.addButton.attr("disabled",false);this.duplicateButton.attr("disabled",false);}},_onRemoveAfter:function(_c09,_c0a){if(freedom.client.BaseController.OK==_c09){this.overviewWidget.removeDataByKey(_c0a.Id);this.selectBusinessObject(null);this._handleOneItemPerUser();}},_onUpdateAfter:function(_c0b,_c0c){if(freedom.client.BaseController.OK==_c0b){this.overviewWidget.updateDataItem(_c0c);this.overviewWidget.onSetData();this.selectBusinessObject(_c0c);}},_onReadBefore:function(){this.overviewWidget.setData([]);},hilite:function(){freedom.gui_util.highlightElement(this.filterArea);},startup:function(){freedom.widget.solution.environment.OverviewView.superclass.startup.apply(this,arguments);if(this.overviewDescription===""){this.titleNode.style.display="none";}if(String(this.showPages)=="false"){this.pagingNode.style.display="none";}},setController:function(_c0d){freedom.widget.solution.environment.OverviewView.superclass.setController.apply(this,arguments);this.overviewWidget.addCreatedByCurrentUser=""+this._controller.getIsOneItemPerUser();},onBusinessObjectSelected:function(_c0e,_c0f){},filterArea:null,overviewWidget:null,removeButton:null,titleNode:null});}if(!dojo._hasResource["freedom.widget.solution.environment.SearchBox"]){dojo._hasResource["freedom.widget.solution.environment.SearchBox"]=true;dojo.provide("freedom.widget.solution.environment.SearchBox");dojo.declare("freedom.widget.solution.environment.SearchBox",[dijit._Widget,dijit._Templated],{idPrefix:"solution-filter-",searchTextPrompt:"Filter",widgetsInTemplate:false,templatePath:dojo.moduleUrl("freedom","widget/solution/environment/templates/search-box.html"),startup:function(){this.criteriaInput.id=this.idPrefix+this.criteriaInput.id;this.criteriaInput.value=this.searchTextPrompt;freedom.widget.solution.environment.SearchBox.superclass.startup.apply(this,arguments);},searchActivated:function(evt){dojo.addClass(this.contentNode,"filter-box-active");if(this.criteriaInput.value==this.searchTextPrompt){this.criteriaInput.value="";}else{this.criteriaInput.select();}},searchDeactivated:function(evt){dojo.removeClass(this.contentNode,"filter-box-active");if(this._searchText()==""){this.criteriaInput.value=this.searchTextPrompt;}},keyDown:function(evt){if(evt.keyCode==13){this.onSearchInitiated(this._searchText());}},executeSearch:function(evt){this.onSearchInitiated(this._searchText());},onSearchInitiated:function(_c14){},_searchText:function(){var _c15=this.criteriaInput.value.replace(/^\s+|\s+$/g,"");if(_c15==this.searchTextPrompt){return "";}return _c15;}});}if(!dojo._hasResource["freedom.widget.ide.environment.Wrapper"]){dojo._hasResource["freedom.widget.ide.environment.Wrapper"]=true;dojo.provide("freedom.widget.ide.environment.Wrapper");dojo.declare("freedom.widget.ide.environment.Wrapper",[dijit._Widget,freedom.widget.common.environment.FreedomNlsMixin],{widgetsInTemplate:true,internalWidgetType:"",internalWidgetId:"",id:null,_isSelected:false,_isHovered:false,type:null,actionButtons:null,disabled:false,isComplete:false,connects:null,wrapperContainer:null,propertiesIcon:OPTIONS_ICON_LOCATION,duplicateIcon:DUPLICATE_ICON_LOCATION,dragIcon:DRUGNDROP_ICON_LOCATION,deleteIcon:DELETE_ICON_LOCATION,onMouseOver:function(evt){this._isHovered=true;this._updateLookandFeel();this.handleMouseOver();},onMouseOut:function(evt){if(window.event){evt.cancelBubble=true;}this._isHovered=false;this._updateLookandFeel();},wrapperSelected:function(){if(this.disabled){return;}this._isSelected=true;this._updateLookandFeel();},wrapperDeselected:function(evt){this._isSelected=false;this._updateLookandFeel();this.handleRemoveFrame();},getType:function(){return this.type;},addElement:function(type,_c1a){this.internalWidgetId="_".concat(this.id);this.type=type;if(_c1a===null||_c1a===undefined){_c1a={};}_c1a["id"]=this.internalWidgetId;this.widget=getWidgetFactory().createWidget(type,_c1a);this.widget.startup();this.containerNode.appendChild(this.widget.domNode);this.internalWidgetType=type;},wrapperClicked:function(evt){this.onClick(this.id,evt);var _c1c=dijit.byId(evt.target.id)||evt.target;_c1c&&_c1c.declaredClass&&_c1c.focus&&_c1c.focus();},addPressed:function(evt){if(this.disabled){return;}this.cloneElement(this);},removePressed:function(evt){if(this.disabled){return;}var _c1f=this.canRemove();if(_c1f){_c1f.callback=this.removeDlgClosed;_c1f.callbackContext=this;FREEDOM.removeDialog&&FREEDOM.removeDialog.showDialog(_c1f);}else{this.removeWrapper();}},removeWrapper:function(){this.onRemovePressed(this);this.mainContainer.style.display="none";this.finishRemove();this.removeFinished(this);this.destroyRecursive();},getWidget:function(){return this.widget;},getType:function(){return this.internalWidgetType;},getUid:function(){return this.id;},setUid:function(_c20){this.id=_c20;},clonePrperties:function(_c21){},postMixInProperties:function(){freedom.widget.ide.environment.Wrapper.superclass.postMixInProperties.apply(this,arguments);if(null===this.id){this.setUid(dojox.uuid.generateRandomUuid());}this.connects=[];},setWrapperContainer:function(_c22){if(this.wrapperContainer===_c22){return;}for(var i=0,l=this.connects.length;i<l;i++){dojo.disconnect(this.connects[i]);}this.connects=[];this.connects.push(dojo.connect(this,"onClick",_c22,"wrapperSelected"));this.connects.push(dojo.connect(this,"cloneElement",_c22,"cloneWrapper"));this.connects.push(dojo.connect(this,"onRemovePressed",_c22,"removePressed"));this.connects.push(dojo.connect(this,"removeFinished",_c22,"removeFinished"));this.wrapperContainer&&this.wrapperContainer.decreaseWrapperCount();this.wrapperContainer=_c22;this.wrapperContainer.increaseWrapperCount();},postCreate:function(){freedom.widget.ide.environment.Wrapper.superclass.postCreate.apply(this,arguments);this.actionButtons=[];if(this.addButton!==undefined){this.actionButtons.push(this.addButton);}if(this.removeButton!==undefined){this.actionButtons.push(this.removeButton);}},removeDlgClosed:function(pYes){if(pYes){this.removeWrapper();}},setDisabled:function(_c26){this.disabled=_c26;this._updateLookandFeel();},_updateLookandFeel:function(){if(this._isSelected&&!this.disabled){dojo.removeClass(this.mainContainer,"framed-wrapper-container");dojo.removeClass(this.mainContainer,"hovered-wrapper-container");dojo.addClass(this.mainContainer,"selected-wrapper-container");this._toggleButtonsDisplay(true);return;}dojo.removeClass(this.mainContainer,"selected-wrapper-container");if(this._isHovered&&!this.disabled){dojo.removeClass(this.mainContainer,"framed-wrapper-container");dojo.addClass(this.mainContainer,"hovered-wrapper-container");this._toggleButtonsDisplay(true);return;}this._toggleButtonsDisplay(false);dojo.removeClass(this.mainContainer,"hovered-wrapper-container");dojo.addClass(this.mainContainer,"framed-wrapper-container");this.handleRemoveFrame();},_toggleButtonsDisplay:function(_c27){var btn;var _c29=dojo[((_c27)?"remove":"add")+"Class"];for(var i=0;(btn=this.actionButtons[i]);i++){_c29(btn,"semi-transparent");}},getTitle:function(){return "";},setTitle:function(_c2b){},handleMouseOver:function(){},handleRemoveFrame:function(){},finishRemove:function(){},canRemove:function(){return null;},onClick:function(id){},onRemovePressed:function(_c2d){},removeFinished:function(_c2e){},cloneElement:function(_c2f){}});}if(!dojo._hasResource["freedom.widget.solution.environment.search.AdvancedSearchConditionsWrapper"]){dojo._hasResource["freedom.widget.solution.environment.search.AdvancedSearchConditionsWrapper"]=true;dojo.provide("freedom.widget.solution.environment.search.AdvancedSearchConditionsWrapper");dojo.declare("freedom.widget.solution.environment.search.AdvancedSearchConditionsWrapper",[freedom.widget.ide.environment.Wrapper,dijit._Templated],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/solution/environment/search/templates/advanced-search-condtions-wrapper.html"),attrNames:null,theForm:null,conditionWidget:null,postCreate:function(){freedom.widget.solution.environment.search.AdvancedSearchConditionsWrapper.superclass.postCreate.apply(this,arguments);this.conditionWidget=getWidgetFactory().createWidget("freedom.widget.solution.environment.search.AdvancedSearchConditionWidget",{attrNames:this.attrNames,theForm:this.theForm},this.conditionWidgetParent,"after");},constructor:function(_c30){this.attrNames=_c30.args.attrNames;this.theForm=_c30.args.theForm;},textChanged:function(){this.onWrapperChanged(this);},getConditionString:function(){return this.conditionWidget.getConditionString();},conditionWidgetParent:null,onWrapperChanged:function(_c31){}});}if(!dojo._hasResource["freedom.widget.ide.environment.WrapperContainer"]){dojo._hasResource["freedom.widget.ide.environment.WrapperContainer"]=true;dojo.provide("freedom.widget.ide.environment.WrapperContainer");dojo.declare("freedom.widget.ide.environment.WrapperContainer",dijit._Widget,{widgetsInTemplate:true,selectedWrapper:null,numberOfFields:0,uid:null,messageWrapperType:"messageWrapper",createElement:function(type,_c33,_c34,pUid,_c36){var _c37=this.createWrapper(type,pUid,_c34,_c36);this.wireWrapper(_c37,type,_c33,_c34,_c36);this.onSuccessfullCreation(_c37);_c37.startup();return _c37;},createWrapper:function(type,pUid,_c3a,_c3b){var _c3c=this.instantiateWrapper(type,pUid,_c3a,_c3b);if(!_c3a){this.containerNode.appendChild(_c3c.domNode);}return _c3c;},instantiateWrapper:function(type,pUid,_c3f,_c40){if(!pUid){pUid=dojox.uuid.generateRandomUuid();}var _c41=this.getWrapperType(type);var _c42={id:pUid,args:_c40};var _c43=getWidgetFactory().createWidget(_c41,_c42,_c3f&&_c3f.domNode,"after");var _c44=_c43.getUid();_c43.domNode.id="tr_"+_c44;return _c43;},wireWrapper:function(_c45,type,_c47,_c48,_c49){var _c4a=(typeof _c47==="string")?_c47:_c47.getTitle();_c4a=freedom.gui_util.trimString(_c4a);this.finalizeWrapperCreation(_c45,type,_c4a,_c48,_c49);_c45.setWrapperContainer(this);if(_c49&&_c49.creationType!=="initial"){this.handleChangeInWrapper("wiring");}return _c45;},increaseWrapperCount:function(){if(this.numberOfFields==0){this.handleEmptyContainer(false);}this.numberOfFields=this.numberOfFields+1;},wrapperSelected:function(id,evt){if(this.disabled){return;}if(typeof (id)!="string"){return;}var _c4d=dijit.byId(id);if(this.selectedWrapper!=null&&this.selectedWrapper.id!=_c4d.id){this.selectedWrapper.wrapperDeselected(evt);}_c4d.wrapperSelected();this.selectedWrapper=_c4d;this.onSelection(_c4d);},getWrappers:function(){var _c4e=[];var _c4f=this.containerNode.childNodes;for(var i=0;i<_c4f.length;i++){if(_c4f[i].id!=null&&_c4f[i].id.indexOf("tr_")==0){_c4e.push(_c4f[i].id.substring(3));}}var _c51=[];var _c52;for(var j=0;j<_c4e.length;j++){_c52=dijit.byId(_c4e[j]);if(_c52.declaredClass==="freedom.widget.ide.environment.MessageWrapper"){continue;}_c51.push(_c52);}return _c51;},getUid:function(){if(this.uid==null){this.uid=dojox.uuid.generateRandomUuid();}return this.uid;},setUid:function(_c54){this.uid=_c54;},removeAll:function(){var _c55=this.getWrappers();for(var i=0,sz=_c55.length;i<sz;i++){_c55[i].removeWrapper();}},decreaseWrapperCount:function(){this.numberOfFields=this.numberOfFields-1;if(this.numberOfFields==0){this.handleEmptyContainer(true);}},removePressed:function(_c58){this.decreaseWrapperCount();this.onRemovePressed(_c58);this.handleChangeInWrapper("delete");},cloneWrapper:function(_c59){return this.createElement(_c59.internalWidgetType,_c59.getTitle(),_c59,null,{creationType:"clone"});},cloneContainer:function(_c5a){var _c5b=_c5a.getWrappers();for(var i=0;i<_c5b.length;i++){var _c5d=this.createElement(_c5b[i].internalWidgetType,_c5b[i].getTitle(),null,null,{creationType:"clone"});_c5d.clonePrperties(_c5b[i]);}},postMixInProperties:function(){freedom.widget.ide.environment.WrapperContainer.superclass.postMixInProperties.apply(this,arguments);this.setUid(dojox.uuid.generateRandomUuid());},setDisabled:function(_c5e){var _c5f=this.getWrappers();for(var i=0;i<_c5f.length;i++){_c5f[i].setDisabled(_c5e);}},getWrapperType:function(type){if(type===this.messageWrapperType){return "freedom.widget.ide.environment.MessageWrapper";}},handleChangeInWrapper:function(){},handleEmptyContainer:function(_c62){},finalizeWrapperCreation:function(_c63,type,_c65,_c66,_c67){},onSuccessfullCreation:function(_c68){},onSelection:function(_c69){},onRemovePressed:function(_c6a){},onAddFieldClicked:function(_c6b){},removeFinished:function(){}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomRangePropertyHandlerMixin"]){dojo._hasResource["freedom.widget.solution.form.FreedomRangePropertyHandlerMixin"]=true;dojo.provide("freedom.widget.solution.form.FreedomRangePropertyHandlerMixin");dojo.declare("freedom.widget.solution.form.FreedomRangePropertyHandlerMixin",freedom.widget.solution.form.PropertyHandler,{update:function(){if(!this.widget.constraints){this.widget.constraints={};}this.setMax(this.parseConstraintValue(this.widget.maxValue,true));this.setMin(this.parseConstraintValue(this.widget.minValue));this.widget.validate();},setMax:function(_c6c){this.widget.constraints.max=_c6c;},setMin:function(_c6d){this.widget.constraints.min=_c6d;},parseConstraintValue:function(_c6e,_c6f){var _c70;if(this.widget.numberType){if(null==_c6e||undefined==_c6e||""==_c6e||UNBOUNDED_LABEL==_c6e){if(_c6f){_c70=FREEDOM.MAX_INT;}else{_c70=-FREEDOM.MAX_INT;}}else{_c70=parseFloat(_c6e);}}else{if(this.widget.dateType){if((_c6f)&&(this.widget.maxValue==undefined||this.widget.maxValue==""||this.widget.maxValue==UNBOUNDED_LABEL)){_c70=new Date();_c70.setFullYear(9999,11,31);}else{if((!_c6f)&&(this.widget.minValue==undefined||this.widget.minValue==""||this.widget.minValue==UNBOUNDED_LABEL)){_c70=new Date();_c70.setFullYear(0,0,0);}else{if(typeof _c6e==="string"){var _c71=_c6e.split("-");_c70=new Date();_c70.setFullYear(parseInt(_c71[0],10),parseInt(_c71[1],10)-1,parseInt(_c71[2],10));if(_c6f){_c70.setHours(23,59,59,999);}else{_c70.setHours(0,0,0,0);}}else{_c70=_c6e;}}}}else{if(this.widget.timeType){if((_c6f)&&(this.widget.maxValue==undefined||this.widget.maxValue==""||this.widget.maxValue==UNBOUNDED_LABEL)){_c70=new Date();_c70.setHours(23,59,59,999);}else{if((!_c6f)&&(this.widget.minValue==undefined||this.widget.minValue==""||this.widget.minValue==UNBOUNDED_LABEL)){_c70=new Date();_c70.setHours(0,0,0,0);}else{if(typeof _c6e==="string"){var _c71=_c6e.split(":");_c70=new Date();_c70.setHours(parseInt(_c71[0]),parseInt(_c71[1]),0,0);}else{_c70=_c6e;}}}}else{_c70=_c6e;}}}return _c70;}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomNumberMixin"]){dojo._hasResource["freedom.widget.solution.form.FreedomNumberMixin"]=true;dojo.provide("freedom.widget.solution.form.FreedomNumberMixin");dojo.declare("freedom.widget.solution.form.FreedomNumberMixin",[freedom.widget.solution.form.FreedomTextValidationMixin],{lengthProperty:"",maxValue:"",minValue:"",numberType:TYPE_PROPERTY_DECIMAL,getHandlers:function(){return [new freedom.widget.solution.form.LengthPropertyMixin(),new freedom.widget.solution.form.FreedomRangePropertyHandlerMixin()];},startup:function(){freedom.widget.solution.form.FreedomNumberMixin.superclass.startup.apply(this,arguments);this.setNumberType(this.numberType);},setNumberType:function(type){this.numberType=type;this.constraints.places=(type==TYPE_PROPERTY_INTEGER)?0:undefined;},setValue:function(val){if(val===undefined||val===null){val=0;}if(isNaN(val)){val="";}this._settingValue=true;arguments[0]=""+val;freedom.widget.solution.form.FreedomNumberMixin.superclass.setValue.apply(this,arguments);},_onBlur:function(){},isContentValid:function(){var _c74=(this.getValue()===""&&!this.required);var _c75=this.inherited("isContentValid",arguments);return _c74||(_c75&&this.isInRange());},onChange:function(){if(null!==this._busObjAttribute&&0!=!isNaN(this.getValue())){this._firingOnChange=true;this._busObjAttribute.setValue(this.getValue());this._firingOnChange=false;}}});}if(!dojo._hasResource["dojo.number"]){dojo._hasResource["dojo.number"]=true;dojo.provide("dojo.number");dojo.number.format=function(_c76,_c77){_c77=dojo.mixin({},_c77||{});var _c78=dojo.i18n.normalizeLocale(_c77.locale);var _c79=dojo.i18n.getLocalization("dojo.cldr","number",_c78);_c77.customs=_c79;var _c7a=_c77.pattern||_c79[(_c77.type||"decimal")+"Format"];if(isNaN(_c76)){return null;}return dojo.number._applyPattern(_c76,_c7a,_c77);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_c7b,_c7c,_c7d){_c7d=_c7d||{};var _c7e=_c7d.customs.group;var _c7f=_c7d.customs.decimal;var _c80=_c7c.split(";");var _c81=_c80[0];_c7c=_c80[(_c7b<0)?1:0]||("-"+_c81);if(_c7c.indexOf("%")!=-1){_c7b*=100;}else{if(_c7c.indexOf("‰")!=-1){_c7b*=1000;}else{if(_c7c.indexOf("¤")!=-1){_c7e=_c7d.customs.currencyGroup||_c7e;_c7f=_c7d.customs.currencyDecimal||_c7f;_c7c=_c7c.replace(/\u00a4{1,3}/,function(_c82){var prop=["symbol","currency","displayName"][_c82.length-1];return _c7d[prop]||_c7d.currency||"";});}else{if(_c7c.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _c84=dojo.number._numberPatternRE;var _c85=_c81.match(_c84);if(!_c85){throw new Error("unable to find a number expression in pattern: "+_c7c);}if(_c7d.fractional===false){_c7d.places=0;}return _c7c.replace(_c84,dojo.number._formatAbsolute(_c7b,_c85[0],{decimal:_c7f,group:_c7e,places:_c7d.places,round:_c7d.round}));};dojo.number.round=function(_c86,_c87,_c88){var _c89=String(_c86).split(".");var _c8a=(_c89[1]&&_c89[1].length)||0;if(_c8a>_c87){var _c8b=Math.pow(10,_c87);if(_c88>0){_c8b*=10/_c88;_c87++;}_c86=Math.round(_c86*_c8b)/_c8b;_c89=String(_c86).split(".");_c8a=(_c89[1]&&_c89[1].length)||0;if(_c8a>_c87){_c89[1]=_c89[1].substr(0,_c87);_c86=Number(_c89.join("."));}}return _c86;};dojo.number._formatAbsolute=function(_c8c,_c8d,_c8e){_c8e=_c8e||{};if(_c8e.places===true){_c8e.places=0;}if(_c8e.places===Infinity){_c8e.places=6;}var _c8f=_c8d.split(".");var _c90=(_c8e.places>=0)?_c8e.places:(_c8f[1]&&_c8f[1].length)||0;if(!(_c8e.round<0)){_c8c=dojo.number.round(_c8c,_c90,_c8e.round);}var _c91=String(Math.abs(_c8c)).split(".");var _c92=_c91[1]||"";if(_c8e.places){var _c93=dojo.isString(_c8e.places)&&_c8e.places.indexOf(",");if(_c93){_c8e.places=_c8e.places.substring(_c93+1);}_c91[1]=dojo.string.pad(_c92.substr(0,_c8e.places),_c8e.places,"0",true);}else{if(_c8f[1]&&_c8e.places!==0){var pad=_c8f[1].lastIndexOf("0")+1;if(pad>_c92.length){_c91[1]=dojo.string.pad(_c92,pad,"0",true);}var _c95=_c8f[1].length;if(_c95<_c92.length){_c91[1]=_c92.substr(0,_c95);}}else{if(_c91[1]){_c91.pop();}}}var _c96=_c8f[0].replace(",","");pad=_c96.indexOf("0");if(pad!=-1){pad=_c96.length-pad;if(pad>_c91[0].length){_c91[0]=dojo.string.pad(_c91[0],pad);}if(_c96.indexOf("#")==-1){_c91[0]=_c91[0].substr(_c91[0].length-pad);}}var _c97=_c8f[0].lastIndexOf(",");var _c98,_c99;if(_c97!=-1){_c98=_c8f[0].length-_c97-1;var _c9a=_c8f[0].substr(0,_c97);_c97=_c9a.lastIndexOf(",");if(_c97!=-1){_c99=_c9a.length-_c97-1;}}var _c9b=[];for(var _c9c=_c91[0];_c9c;){var off=_c9c.length-_c98;_c9b.push((off>0)?_c9c.substr(off):_c9c);_c9c=(off>0)?_c9c.slice(0,off):"";if(_c99){_c98=_c99;delete _c99;}}_c91[0]=_c9b.reverse().join(_c8e.group||",");return _c91.join(_c8e.decimal||".");};dojo.number.regexp=function(_c9e){return dojo.number._parseInfo(_c9e).regexp;};dojo.number._parseInfo=function(_c9f){_c9f=_c9f||{};var _ca0=dojo.i18n.normalizeLocale(_c9f.locale);var _ca1=dojo.i18n.getLocalization("dojo.cldr","number",_ca0);var _ca2=_c9f.pattern||_ca1[(_c9f.type||"decimal")+"Format"];var _ca3=_ca1.group;var _ca4=_ca1.decimal;var _ca5=1;if(_ca2.indexOf("%")!=-1){_ca5/=100;}else{if(_ca2.indexOf("‰")!=-1){_ca5/=1000;}else{var _ca6=_ca2.indexOf("¤")!=-1;if(_ca6){_ca3=_ca1.currencyGroup||_ca3;_ca4=_ca1.currencyDecimal||_ca4;}}}var _ca7=_ca2.split(";");if(_ca7.length==1){_ca7.push("-"+_ca7[0]);}var re=dojo.regexp.buildGroupRE(_ca7,function(_ca9){_ca9="(?:"+dojo.regexp.escapeString(_ca9,".")+")";return _ca9.replace(dojo.number._numberPatternRE,function(_caa){var _cab={signed:false,separator:_c9f.strict?_ca3:[_ca3,""],fractional:_c9f.fractional,decimal:_ca4,exponent:false};var _cac=_caa.split(".");var _cad=_c9f.places;if(_cac.length==1||_cad===0){_cab.fractional=false;}else{if(_cad===undefined){_cad=_c9f.pattern?_cac[1].lastIndexOf("0")+1:Infinity;}if(_cad&&_c9f.fractional==undefined){_cab.fractional=true;}if(!_c9f.places&&(_cad<_cac[1].length)){_cad+=","+_cac[1].length;}_cab.places=_cad;}var _cae=_cac[0].split(",");if(_cae.length>1){_cab.groupSize=_cae.pop().length;if(_cae.length>1){_cab.groupSize2=_cae.pop().length;}}return "("+dojo.number._realNumberRegexp(_cab)+")";});},true);if(_ca6){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_caf,_cb0,_cb1,_cb2){var prop=["symbol","currency","displayName"][_cb1.length-1];var _cb4=dojo.regexp.escapeString(_c9f[prop]||_c9f.currency||"");_cb0=_cb0?"[\\s\\xa0]":"";_cb2=_cb2?"[\\s\\xa0]":"";if(!_c9f.strict){if(_cb0){_cb0+="*";}if(_cb2){_cb2+="*";}return "(?:"+_cb0+_cb4+_cb2+")?";}return _cb0+_cb4+_cb2;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_ca3,decimal:_ca4,factor:_ca5};};dojo.number.parse=function(_cb5,_cb6){var info=dojo.number._parseInfo(_cb6);var _cb8=(new RegExp("^"+info.regexp+"$")).exec(_cb5);if(!_cb8){return NaN;}var _cb9=_cb8[1];if(!_cb8[1]){if(!_cb8[2]){return NaN;}_cb9=_cb8[2];info.factor*=-1;}_cb9=_cb9.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return Number(_cb9)*info.factor;};dojo.number._realNumberRegexp=function(_cba){_cba=_cba||{};if(!("places" in _cba)){_cba.places=Infinity;}if(typeof _cba.decimal!="string"){_cba.decimal=".";}if(!("fractional" in _cba)||/^0/.test(_cba.places)){_cba.fractional=[true,false];}if(!("exponent" in _cba)){_cba.exponent=[true,false];}if(!("eSigned" in _cba)){_cba.eSigned=[true,false];}var _cbb=dojo.number._integerRegexp(_cba);var _cbc=dojo.regexp.buildGroupRE(_cba.fractional,function(q){var re="";if(q&&(_cba.places!==0)){re="\\"+_cba.decimal;if(_cba.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_cba.places+"}";}}return re;},true);var _cbf=dojo.regexp.buildGroupRE(_cba.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_cba.eSigned})+")";}return "";});var _cc1=_cbb+_cbc;if(_cbc){_cc1="(?:(?:"+_cc1+")|(?:"+_cbc+"))";}return _cc1+_cbf;};dojo.number._integerRegexp=function(_cc2){_cc2=_cc2||{};if(!("signed" in _cc2)){_cc2.signed=[true,false];}if(!("separator" in _cc2)){_cc2.separator="";}else{if(!("groupSize" in _cc2)){_cc2.groupSize=3;}}var _cc3=dojo.regexp.buildGroupRE(_cc2.signed,function(q){return q?"[-+]":"";},true);var _cc5=dojo.regexp.buildGroupRE(_cc2.separator,function(sep){if(!sep){return "(?:0|[1-9]\\d*)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_cc2.groupSize,grp2=_cc2.groupSize2;if(grp2){var _cc9="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_cc9+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_cc9;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _cc3+_cc5;};}if(!dojo._hasResource["dijit.form.NumberTextBox"]){dojo._hasResource["dijit.form.NumberTextBox"]=true;dojo.provide("dijit.form.NumberTextBox");dojo.declare("dijit.form.NumberTextBoxMixin",null,{regExpGen:dojo.number.regexp,editOptions:{pattern:"#.######"},_onFocus:function(){this._setValueAttr(this.attr("value"),false);this.inherited(arguments);},_formatter:dojo.number.format,format:function(_cca,_ccb){if(typeof _cca=="string"){return _cca;}if(isNaN(_cca)){return "";}if(this.editOptions&&this._focused){_ccb=dojo.mixin(dojo.mixin({},this.editOptions),this.constraints);}return this._formatter(_cca,_ccb);},parse:dojo.number.parse,filter:function(_ccc){return (_ccc===null||_ccc===""||_ccc===undefined)?NaN:this.inherited(arguments);},serialize:function(_ccd,_cce){return (typeof _ccd!="number"||isNaN(_ccd))?"":this.inherited(arguments);},_getValueAttr:function(){var v=this.inherited(arguments);if(isNaN(v)&&this.textbox.value!==""){return undefined;}return v;},value:NaN});dojo.declare("dijit.form.NumberTextBox",[dijit.form.RangeBoundTextBox,dijit.form.NumberTextBoxMixin],{});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomNumber"]){dojo._hasResource["freedom.widget.solution.form.FreedomNumber"]=true;dojo.provide("freedom.widget.solution.form.FreedomNumber");dojo.declare("freedom.widget.solution.form.FreedomNumber",[dijit.form.NumberTextBox,freedom.widget.solution.form.FreedomNumberMixin],{getValue:function(){if(this.textbox.value===""){return "";}return dijit.form.NumberTextBox.prototype.getValue.apply(this,arguments);}});}if(!dojo._hasResource["freedom.widget.solution.environment.search.AdvancedSearchConditionWidget"]){dojo._hasResource["freedom.widget.solution.environment.search.AdvancedSearchConditionWidget"]=true;dojo.provide("freedom.widget.solution.environment.search.AdvancedSearchConditionWidget");dojo.declare("freedom.widget.solution.environment.search.AdvancedSearchConditionWidget",[dijit._Widget,dijit._Templated,freedom.widget.common.environment.FreedomNlsMixin],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/solution/environment/search/templates/advanced-search-condition-widget.html"),attrNames:null,theForm:null,fieldsCombo:null,fieldsComboDisplay:"",functionsCombo:null,functionsComboDisplay:"",valueInput:null,valueInputParent:null,valueInput2:null,valueInputParent2:null,fieldQueryString:"",operatorQueryString:"",valueQueryString:"",selectedField:null,functionsComboDisplayDefault:"Choose Operator",constructor:function(args){this.attrNames=args.attrNames;this.theForm=args.theForm;},typeIsSupportedToAdvancedSearch:function(_cd1){if((SEARCH_FUNC_PER_TYPE[_cd1]!=null)&&(SEARCH_FUNC_DISPLAY_PER_TYPE[_cd1])){return true;}return false;},postCreate:function(){this.functionsComboDisplay.setDisabled(true);this.valueInput.setDisabled(true);for(var i=0;i<this.attrNames.length;i++){var _cd3=this.attrNames[i];var _cd4=this.theForm[_cd3];var _cd5=_cd4.declaredClass.split(".");var _cd6=_cd5[_cd5.length-1];if(!this.typeIsSupportedToAdvancedSearch(_cd6)){continue;}var _cd7=eval("new "+_cd4.declaredClass+"()");this.fieldsCombo.addChild(new dijit.MenuItem({label:_cd4.helptitle,shortName:_cd3,fullName:_cd4.helptitle,inputWidget:_cd7,type:_cd6,disabled:false}));}},fieldSelected:function(_cd8){if(_cd8===this.fieldsComboDisplay._lastValue){return;}this.selectedField=_cd8;this.fieldsComboDisplay.setValue(_cd8);this.fieldsComboDisplay.setLabel(_cd8.fullName);this.fieldQueryString=_cd8.shortName;this.clearfunctionsCombo();this.fillFuctionsCombo(_cd8);this.functionsComboDisplay.setLabel(this.functionsComboDisplayDefault);this.operatorQueryString="";this.functionsComboDisplay.setDisabled(false);this.valueInput.setDisabled(false);this.valueInputParent.removeChild(this.valueInput.domNode);this.valueInputParent.appendChild(_cd8.inputWidget.domNode);this.valueInput=_cd8.inputWidget;},operatorSelected:function(_cd9){this.functionsComboDisplay.setValue(_cd9);this.functionsComboDisplay.setLabel(_cd9.label);this.operatorQueryString=_cd9.queryFunc;if("between"==this.operatorQueryString){if(this.valueInput2!=null){this.valueInputParent2.removeChild(this.valueInput2.domNode);this.valueInput2=null;}this.valueInput2=eval("new "+this.valueInput.declaredClass+"()");this.valueInputParent2.appendChild(this.valueInput2.domNode);}else{if(this.valueInput2!=null){this.valueInputParent2.removeChild(this.valueInput2.domNode);this.valueInput2=null;}}if(("year"==this.operatorQueryString)||("month"==this.operatorQueryString)||("day"==this.operatorQueryString)){this.valueInputParent.removeChild(this.valueInput.domNode);this.valueInput=new freedom.widget.solution.form.FreedomNumber();this.valueInput.setValue("");this.valueInputParent.appendChild(this.valueInput.domNode);}},clearfunctionsCombo:function(){this.functionsCombo.destroyDescendants();},fillFuctionsCombo:function(_cda){var _cdb=SEARCH_FUNC_PER_TYPE[_cda.type];var _cdc=null;var _cdd=null;for(var i=0;i<_cdb.length;i++){_cdc=SEARCH_FUNC_DISPLAY_PER_TYPE[_cda.type][_cdb[i]];_cdd=this.getString(_cdc);this.functionsCombo.addChild(new dijit.MenuItem({label:_cdd,queryFunc:_cdb[i],disabled:false}));}},adoptValueFormatToBackEndExpectations:function(_cdf){var _ce0=_cdf;if(this.selectedField.type==SEARCH_TYPE_TIME){if(_cdf!=""){var _ce1=_cdf.split(":");var _ce2=_ce1[0];_ce1=_ce1[1].split(" ");var _ce3=_ce1[1];var _ce4=eval(_ce2);if((_ce3=="PM")&&(_ce4!=12)){_ce4+=12;}_ce0=_ce4+":"+_ce1[0]+":00";}}if(this.selectedField.type==SEARCH_TYPE_DATE&&("after"==this.operatorQueryString||"beofre"==this.operatorQueryString||"between"==this.operatorQueryString)){if(_cdf!=""){var _ce5=_cdf.split("/");_ce0=_ce5[2]+"-"+_ce5[0]+"-"+_ce5[1];}}return encodeURIComponent(_ce0);},getvalueQueryString:function(){if(this.valueInput.disabled==true){return "";}var _ce6=this.adoptValueFormatToBackEndExpectations(this.valueInput.getDisplayedValue());if("between"==this.operatorQueryString){var _ce7=_ce6;if(this.valueInput2!=null){_ce7=this.adoptValueFormatToBackEndExpectations(this.valueInput2.getDisplayedValue());}if(_ce6&&_ce7){return _ce6+"A*N*D"+_ce7;}else{return "";}}else{return _ce6;}},getConditionString:function(){if(""==this.getvalueQueryString()){return "";}if((this.fieldQueryString=="")||(this.operatorQueryString=="")){return "";}return this.fieldQueryString+"__"+this.operatorQueryString+"="+this.getvalueQueryString();}});}if(!dojo._hasResource["freedom.widget.solution.environment.search.AdvancedSearchConditionsWrapperContainer"]){dojo._hasResource["freedom.widget.solution.environment.search.AdvancedSearchConditionsWrapperContainer"]=true;dojo.provide("freedom.widget.solution.environment.search.AdvancedSearchConditionsWrapperContainer");dojo.declare("freedom.widget.solution.environment.search.AdvancedSearchConditionsWrapperContainer",[freedom.widget.ide.environment.WrapperContainer,dijit._Templated],{widgetsInTemplate:true,attrNames:null,theForm:null,height:"",noWrappersInstruction:"",noWrappersTitle:"",width:"",formShortName:"",templatePath:dojo.moduleUrl("freedom","widget/solution/environment/search/templates/advanced-search-condtions-wrapper-container.html"),getWrapperType:function(){return "freedom.widget.solution.environment.search.AdvancedSearchConditionsWrapper";},getWidgetType:function(){return "freedom.widget.solution.environment.search.AdvancedSearchConditionWidget";},addAdvancedSearchCondition:function(){this.createElement(this.getWidgetType(),"x",null,null,{attrNames:this.attrNames,theForm:this.theForm});},cloneWrapper:function(_ce8){return this.createElement(_ce8.internalWidgetType,_ce8.getTitle(),_ce8,null,{attrNames:this.attrNames,theForm:this.theForm});},removePressed:function(_ce9){this.numberOfFields=this.numberOfFields-1;if(this.numberOfFields==0){this.handleEmptyContainer(true);}if(this.numberOfFields==1){this.disableAndOrButton();}this.onRemovePressed(_ce9);},increaseWrapperCount:function(){if(this.numberOfFields==0){this.handleEmptyContainer(false);this.enableSearchButton();}if(this.numberOfFields==1){this.enableAndOrButton();}this.numberOfFields=this.numberOfFields+1;},handleEmptyContainer:function(_cea){if(_cea){this.noWrappersNode.domNode.style.display="block";this.emptyContainerEvent();this.disableSearchButton();}else{this.noWrappersNode.domNode.style.display="none";}},disableSearchButton:function(){},enableSearchButton:function(){},enableAndOrButton:function(){},disableAndOrButton:function(){},emptyContainerEvent:function(){},onWrapperChanged:function(_ceb){}});}if(!dojo._hasResource["freedom.widget.solution.environment.search.AdvancedSearchDialog"]){dojo._hasResource["freedom.widget.solution.environment.search.AdvancedSearchDialog"]=true;dojo.provide("freedom.widget.solution.environment.search.AdvancedSearchDialog");dojo.declare("freedom.widget.solution.environment.search.AdvancedSearchDialog",[dijit._Widget,dijit._Templated],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/solution/environment/search/templates/advanced-search-dialog.html"),formName:"",attrNames:null,theForm:null,itemView:null,advanceSearchGoButton:null,andOrOR:"OR",_uid:"",advancedSearchConditionsWrapperContainer:null,postMixInProperties:function(){freedom.widget.solution.environment.search.AdvancedSearchDialog.superclass.postMixInProperties.apply(this,arguments);this._uid=dojox.uuid.generateRandomUuid();},constructor:function(_cec){this.attrNames=_cec.attrNames;this.theForm=_cec.theForm;this.itemView=_cec.itemView;this.formName=this.itemView.fullName;},postCreate:function(){this.advancedSearchConditionsWrapperContainer.attrNames=this.attrNames;this.advancedSearchConditionsWrapperContainer.theForm=this.theForm;this.advanceSearchGoButton.attr("disabled",true);this.andRadioButton.attr("disabled",true);this.orRadioButton.attr("disabled",true);},closeTooltipDialog:function(){dijit.popup.close(this);},openTooltipDialog:function(){dijit.popup.open({popup:this,around:this.domNode});},_onBlur:function(){this.closeTooltipDialog();},onClose:function(){this.closeTooltipDialog();},emptyContainerEventHandle:function(){this.disableSearchButton();},onAndClicked:function(){this.andOrOR="AND";},onOrClicked:function(){this.andOrOR="OR";},onSearch:function(){this.closeTooltipDialog();var _ced="";var _cee=false;var _cef=this.advancedSearchConditionsWrapperContainer.getWrappers();var _cf0="";var _cf1=null;var _cf2=false;for(i=0;i<_cef.length;i++){_cf1=_cef[i];if(_cf1==null){continue;}_cf0=_cf1.getConditionString();if(_cf0==""){FREEDOM.statusDialog.showDialog("Invalid search","The search is not valid","Please revise your search conditions and try again");_cf2=true;break;}if(_cee){_ced+="&";}else{_cee=true;}_ced+=_cf0;}if(_cef.length>=2){_ced+="&searchOperator="+this.andOrOR;}if(!_cf2){this.onSearchNotify(_ced);}},disableSearchButton:function(){this.advanceSearchGoButton.attr("disabled",true);},enableSearchButton:function(){this.advanceSearchGoButton.attr("disabled",false);},disableAndOrButton:function(){this.andRadioButton.attr("disabled",true);this.orRadioButton.attr("disabled",true);},enableAndOrButton:function(){this.andRadioButton.attr("disabled",false);this.orRadioButton.attr("disabled",false);},onSearchNotify:function(_cf3){}});}if(!dojo._hasResource["freedom.widget.solution.environment.search.SearchBox"]){dojo._hasResource["freedom.widget.solution.environment.search.SearchBox"]=true;dojo.provide("freedom.widget.solution.environment.search.SearchBox");dojo.declare("freedom.widget.solution.environment.search.SearchBox",[dijit._Widget,dijit._Templated],{idPrefix:"solution-filter-",searchTextPrompt:"Filter",widgetsInTemplate:false,templatePath:dojo.moduleUrl("freedom","widget/solution/environment/search/templates/search-box.html"),startup:function(){this.criteriaInput.id=this.idPrefix+this.criteriaInput.id;this.criteriaInput.value=this.searchTextPrompt;freedom.widget.solution.environment.search.SearchBox.superclass.startup.apply(this,arguments);},searchActivated:function(evt){dojo.addClass(this.contentNode,"filter-box-active");if(this.criteriaInput.value==this.searchTextPrompt){this.criteriaInput.value="";}else{this.criteriaInput.select();}},searchDeactivated:function(evt){dojo.removeClass(this.contentNode,"filter-box-active");if(this._searchText()==""){this.criteriaInput.value=this.searchTextPrompt;}},keyDown:function(evt){if(evt.keyCode==13){this.onSearchInitiated(this._searchText());}},executeSearch:function(evt){this.onSearchInitiated(this._searchText());},onSearchInitiated:function(_cf8){},_searchText:function(){var _cf9=this.criteriaInput.value.replace(/^\s+|\s+$/g,"");if(_cf9==this.searchTextPrompt){return "";}return encodeURIComponent(_cf9);}});}if(!dojo._hasResource["freedom.widget.solution.form.AggregationContainer"]){dojo._hasResource["freedom.widget.solution.form.AggregationContainer"]=true;dojo.provide("freedom.widget.solution.form.AggregationContainer");dojo.declare("freedom.widget.solution.form.AggregationContainer",[dijit._Widget,dijit._Templated,freedom.widget.solution.form.FreedomFieldShowHideMixin],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/solution/form/templates/aggregation-container.html"),formName:"",overviewName:"",helptitle:"",_aggregate:null,_showHideTitleSeparately:false,startup:function(){this.inherited("startup",arguments);var slf=this;this.theForm.getReferencingField=function(){return slf;};dojo.connect(this.theForm,"afterUpdateReferences",this,"updateReferencesFinished");},sectionCollapsed:function(){this.theOverview.onSetData();},updateReferences:function(_cfb){this.theForm.updateReferences(_cfb);},updateReferencesFinished:function(){this.afterUpdateReferences(this);},isFormAttribute:function(){return true;},setBusinessObjectAttribute:function(_cfc){this._aggregate=_cfc;if(null!==_cfc){var data=_cfc.getValue();if(undefined!=data.length){if(data.length>0){data=data[0];}else{data=this._aggregate.createBusinessObject();data.resetToDefault();this._aggregate.addBusinessObject(data);}}this.theForm.setBusinessObject(data);this.theOverview.setData([data]);}else{this.theForm.setBusinessObject(null);}},isValidValue:function(){return this.theForm.isValidValue();},validate:function(){this.theForm.validate();},isEntityChanged:function(){return this.theForm.isEntityChanged();},setValue:function(_cfe){var data=_cfe;if(data&&undefined!=data.length){if(data.length>0){data=data[0];}else{data=this._aggregate.createBusinessObject();this._aggregate.addBusinessObject(data);}}this.theForm.setValue(data);this.sectionPane.setExpanded(false);},getValue:function(){return this.theForm.getValue();},resetDisplay:function(){this.sectionPane.setExpanded(false);this.theForm.resetDisplay();},setDisabled:function(_d00){this.theForm.setDisabled(_d00);},showInForm:function(_d01){freedom.widget.solution.form.AggregationContainer.superclass.showInForm.apply(this,arguments);if(_d01){this.theForm.showFieldsOfForm();}},onMouseOver:function(){},onClick:function(){},onMouseOut:function(){},afterUpdateReferences:function(_d02){},sectionPane:null,theForm:null,theOverview:null});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomWidgetWithDialog"]){dojo._hasResource["freedom.widget.solution.form.FreedomWidgetWithDialog"]=true;dojo.provide("freedom.widget.solution.form.FreedomWidgetWithDialog");dojo.declare("freedom.widget.solution.form.FreedomWidgetWithDialog",[dijit._Widget,dijit._Templated,freedom.widget.solution.form.FreedomFieldShowHideMixin],{title:"",_expanded:false,_isDisabled:false,_popup:null,_showHideTitleSeparately:false,mNeedsSpaceForTitleBar:true,_updateDisplayView:function(_d03,_d04,_d05){this._expanded=_d03;if(_d03){this._popup.titleNode.innerHTML=_d04;this._popup.show();freedom.widget.solution.form.FreedomWidgetWithDialog.pushDialog(this._popup);this._setupExpandedDisplay(_d05);}else{freedom.widget.solution.form.FreedomWidgetWithDialog.popDialog();this._popup.hide();}}});dojo.declare("freedom.widget.solution.form.FreedomWidgetWithDialogDialog",dijit.Dialog,{_onKey:function(evt){var _d07=freedom.widget.solution.form.FreedomWidgetWithDialog.dialogStack;if(_d07.length>=1&&this.id==_d07[_d07.length-1].id){this.inherited("_onKey",arguments);}}});freedom.widget.solution.form.FreedomWidgetWithDialog.pushDialog=function(_d08){var _d09=freedom.widget.solution.form.FreedomWidgetWithDialog.dialogStack;var _d0a=997;for(var i=_d09.length-1;i>=0;i--){_d09[i].domNode.style.zIndex=_d0a;_d0a--;}_d09.push(_d08);};freedom.widget.solution.form.FreedomWidgetWithDialog.popDialog=function(){var _d0c=freedom.widget.solution.form.FreedomWidgetWithDialog.dialogStack;_d0c.pop();if(0!==_d0c.length){_d0c[_d0c.length-1].domNode.style.zIndex=999;var _d0d=997;for(var i=_d0c.length-2;i>=0;i--){_d0c[i].domNode.style.zIndex=_d0d;_d0d--;}}};freedom.widget.solution.form.FreedomWidgetWithDialog.dialogStack=[];}if(!dojo._hasResource["freedom.widget.solution.form.AggregationListContainer"]){dojo._hasResource["freedom.widget.solution.form.AggregationListContainer"]=true;dojo.provide("freedom.widget.solution.form.AggregationListContainer");dojo.declare("freedom.widget.solution.form.AggregationListContainer",[freedom.widget.solution.form.FreedomWidgetWithDialog,freedom.widget.solution.form.FreedomFieldShowHideMixin],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("freedom","widget/solution/form/templates/aggregation-list-container.html"),title:"",formName:"",overviewName:"",helptitle:"",addButton:null,editButton:null,removeButton:null,saveButton:null,theOverview:null,theForm:null,_aggregateList:null,_eventHandle:null,_selectedRow:null,_isDisabled:false,_showHideTitleSeparately:false,addAggregation:function(_d0f){if(!this._isDisabled){this._unSelectRowsInTable();var _d10=this._aggregateList.createBusinessObject();_d10.resetToDefault();this.theForm.setBusinessObject(_d10);this._updateDisplayView(true,"Add an occurrence of "+this.title," Add");}},editAggregation:function(){this._editAggregation(this._selectedRow);},_editAggregation:function(_d11){if(null!==_d11){var _d12=this._aggregateList.createBusinessObject();_d12.fillFromBusinessObject(_d11);this.theForm.setBusinessObject(_d12);this._updateDisplayView(true,"Edit this occurrence of "+this.title," Save");}},removeAggregation:function(_d13){if(!this._isDisabled&&null!==this._selectedRow){this.theOverview.removeDataByKey(this._selectedRow.Id);this._aggregateList.removeBusinessObject(this._selectedRow);this._unSelectRowsInTable();this._updateDisplayView(false);this.onChange();}},saveAggregation:function(){if(!this._isDisabled){var _d14=this.theForm.isValidValue();if(0==_d14.length){if(null===this._selectedRow){this._selectedRow=this.theForm.getBusinessObject();this.theOverview.addData(this._selectedRow);this.theOverview.selectByKey(this._selectedRow.Id);this.theOverview.renderSelections();this._aggregateList.addBusinessObject(this._selectedRow);}else{this._selectedRow.fillFromBusinessObject(this.theForm.getBusinessObject());this.theOverview.onSetData();this.onEdit(this._selectedRow);}this._updateDisplayView(false);this.onChange();}else{for(var i=0;i<_d14.length;i++){_d14[i]={type:"error",message:_d14[i]};}FREEDOM.mController.setMessages(_d14);}}},cancelEdit:function(){this._unSelectRowsInTable();this._updateDisplayView(false);},_updateSelection:function(_d16){this._selectedRow=_d16;},_unSelectRowsInTable:function(){this._selectedRow=null;this.theOverview.resetSelections();},_setupExpandedDisplay:function(_d17){this.saveButton.attr("label",_d17);this.theForm.setDisabled(this._isDisabled);this.theForm.shown();this.theForm.validate();},updateReferences:function(_d18){this.theForm.updateReferences(_d18);},updateReferencesFinished:function(){this.afterUpdateReferences(this);},isFormAttribute:function(){return true;},setBusinessObjectAttribute:function(_d19){if(null!==this._eventHandle){for(var i=0,l=this._eventHandle.length;i<l;i++){dojo.disconnect(this._eventHandle[i]);}}this._eventHandle=[];this._aggregateList=_d19;if(null!==_d19){if(this._expanded){this._updateDisplayView(false);}this.theOverview.setData(_d19.getValue());this._eventHandle.push(dojo.connect(_d19,"onChange",this,"_onAggregateListChange"));this._eventHandle.push(dojo.connect(this._aggregateList,"addBusinessObject",this,"onAdd"));this._eventHandle.push(dojo.connect(this._aggregateList,"removeBusinessObject",this,"onRemove"));this._eventHandle.push(dojo.connect(this._aggregateList,"onEdit",this,"onEdit"));}else{this.theForm.setBusinessObject(null);}},_onAggregateListChange:function(_d1c){this.theOverview.setData(_d1c);},isValidValue:function(){return [];},validate:function(){},isEntityChanged:function(_d1d){if(_d1d.length!==this.theOverview.getData().length){return true;}if(this._expanded&&null!==this._selectedRow&&this.theForm.isEntityChanged(this._selectedRow)){return true;}for(var _d1e=0;_d1e<_d1d.length;_d1e++){var row=this.theOverview.getDataByKey(_d1d[_d1e].Id);if(null===row||this.theForm.isEntityRowChanged(_d1d[_d1e],row)){return true;}}return false;},isEntityRowChanged:function(_d20,_d21){if(_d20.length!==_d21.length){return true;}for(var _d22=0;_d22<_d20.length;_d22++){var row=null;for(rowIdx=0;row==null&&rowIdx<_d21.length;rowIdx++){if(_d21[rowIdx].Id==_d20[_d22].Id){row=_d21[rowIdx];}}if(null===row||this.theForm.isEntityRowChanged(_d20[_d22],row)){return true;}}return false;},setValue:function(_d24){var _d25=[];for(var i=0;i<_d24.length;i++){_d25[i]={Id:_d24[i].Id};this.theForm.copyTableRow(_d24[i],_d25[i]);}this.theOverview.setData(_d25);},getValue:function(){return this.theOverview.getData();},setDisabled:function(_d27){this._isDisabled=_d27;this.addButton.disabled=_d27;this.saveButton.disabled=_d27;},postMixInProperties:function(){freedom.widget.solution.form.AggregationListContainer.superclass.postMixInProperties.apply(this,arguments);this._uid=dojox.uuid.generateRandomUuid();},onMouseOver:function(){},onClick:function(){},onMouseOut:function(){},onChange:function(){},onAdd:function(_d28){},onRemove:function(_d29){},onEdit:function(_d2a){},afterUpdateReferences:function(_d2b){},startup:function(){freedom.widget.solution.form.AggregationListContainer.superclass.startup.apply(this,arguments);var slf=this;this.theForm.getReferencingField=function(){return slf;};this._popup.closeButtonNode.style.display="none";this._popup.domNode.parentNode.removeChild(this._popup.domNode);dojo.body().appendChild(this._popup.domNode);dojo.connect(this.theForm,"afterUpdateReferences",this,"updateReferencesFinished");dojo.connect(this._popup,"onCancel",this,"cancelEdit");}});}if(!dojo._hasResource["freedom.widget.solution.form.DisplayableContentMixin"]){dojo._hasResource["freedom.widget.solution.form.DisplayableContentMixin"]=true;dojo.provide("freedom.widget.solution.form.DisplayableContentMixin");dojo.declare("freedom.widget.solution.form.DisplayableContentMixin",freedom.widget.solution.form.FreedomFieldShowHideMixin,{contentNode:null,onShow:function(){},onHide:function(){},onMouseOver:function(){},onClick:function(){},onMouseOut:function(){},setDisabled:function(_d2d){},isValidValue:function(){return [];},getContentNode:function(){return (this.contentNode||(this.contentNode=this.containerNode.getElementsByTagName("div")[0]));},setContent:function(_d2e){(this.contentNode||this.getContentNode()).innerHTML=_d2e;},getContent:function(){return (this.contentNode||this.getContentNode()).innerHTML;}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomComboBox"]){dojo._hasResource["freedom.widget.solution.form.FreedomComboBox"]=true;dojo.provide("freedom.widget.solution.form.FreedomComboBox");dojo.declare("freedom.widget.solution.form.FreedomComboBox",[dijit._Widget,dijit._Templated,freedom.widget.solution.form.FreedomBaseValidationMixin],{templateString:null,templatePath:dojo.moduleUrl("freedom","widget/solution/form/templates/freedom-combo-box.html"),predefinedList:"",formReference:"",formFields:"",required:false,_dataStore:null,_dataFitler:"",_tempValue:null,_optionsFilled:false,setDisabled:function(_d2f){this.comboNode.disabled=_d2f;},getValue:function(){if(this.formReference&&this._dataStore){return this._dataStore.getByDbId(this.getSelectedOption());}return this.getSelectedOption();},setValue:function(_d30){if(!this._optionsFilled){this._tempValue=_d30;}else{this._setValueNoNotification(_d30);this.onChange();}},_setValueNoNotification:function(_d31){if(_d31!=null){var _d32=this.getIndexOfOptionWithText(_d31);this.comboNode.selectedIndex=_d32;this.validate();}},getFormReference:function(){return this.formReference;},getSelectedOption:function(){if(this.comboNode.selectedIndex<0){return "";}return this.comboNode.options[this.comboNode.selectedIndex].value||this.comboNode.options[this.comboNode.selectedIndex].text;},getIndexOfOptionWithText:function(_d33){if(this.formReference&&this._dataStore){if(typeof (_d33)!=="string"&&_d33.length&&_d33.length>0){_d33=_d33[0].dbId;}}for(var i=0;i<this.comboNode.options.length;i++){if(this.comboNode.options[i].value===_d33){return i;}}return -1;},isValid:function(){return true;},isEmpty:function(){return (this.comboNode.options.length==0);},onFocus:function(){dojo.addClass(this.comboNode,"freedomTextInFocus");},onBlur:function(){dojo.removeClass(this.comboNode,"freedomTextInFocus");this.validate();},onKeyUp:function(){freedom.widget.solution.form.FreedomComboBox.superclass.onKeyUp.apply(this,arguments);this.validate();},onkeypress:function(){freedom.widget.solution.form.FreedomComboBox.superclass.onkeypress.apply(this,arguments);this.validate();},clearOptions:function(){for(i=this.comboNode.options.length-1;i>=0;i--){this.comboNode.removeChild(this.comboNode.options[i]);}},setOptions:function(_d35){if(!_d35){return;}var _d36;if(typeof _d35=="string"){_d36=getDataStores().getOptions(_d35);if(!_d36){dojo.xhrGet({url:_d35,load:dojo.hitch(this,function(_d37){try{this.setOptions(_d37);}catch(error){FREEDOM.showExceptionError(error);}}),error:dojo.hitch(this,function(type,_d39){FREEDOM.statusDiaog.showDialog(this.errorTitle,this.oopsMsg,this.serviceFailureMsg);}),handleAs:"json-comment-optional"});return;}}else{_d36=_d35;}this.comboNode.options.length=0;if(!_d36){return;}var i=0;if(_d36.length){for(;i<_d36.length;i++){this.comboNode.options[i]=new Option(_d36[i],_d36[i]);}}else{for(var key in _d36){this.comboNode.options[i]=new Option(key,_d36[key]);i++;}}this._optionsFilled=true;},fillFormReferences:function(_d3c){if(!_d3c&&!this._dataStore){return;}if(this._dataStore==null){this._dataStore=_d3c.clone(this.getUid());this._dataStore.setPageSize(-1);this._dataStore.setAdditionalFilter(FREEDOM.COMBO_FILTER_NAME,this._dataFitler);dojo.connect(this._dataStore,"onReadAfter",this,"_continueFillFormReference");}this._dataStore.retrieve("",true);},_continueFillFormReference:function(_d3d,_d3e,_d3f){if(_d3d===freedom.client.DataStore.OK){var _d40=this.comboNode.value;this.clearOptions();var data=this._dataStore.getAllData();this.beforeOptionsUpdate(data);for(var i=0;i<data.length;i++){var _d43="";if(this.formFields&&this.formFields.length>0){_d43=data[i][this.formFields[0]];if(this.formFields.length>1){for(var _d44=1;_d44<this.formFields.length;_d44++){_d43+=" ";_d43=data[i][this.formFields[_d44]];}}}else{_d43=data[i].dbId;}this.comboNode.options[i]=new Option(_d43,data[i].dbId);}this._optionsFilled=true;if(this._tempValue!==null){this._setValueNoNotification(this._tempValue);this._tempValue=null;}else{this.comboNode.selectedIndex=this.getIndexOfOptionWithText(_d40);this.validate();}}this.fillReferencesFinished(this);},onChange:function(e){freedom.widget.solution.form.FreedomComboBox.superclass.onChange.apply(this,arguments);this.validate();this.onSelection(this.comboNode.selectedIndex);},onSelection:function(_d46){},postMixInProperties:function(){freedom.widget.solution.form.FreedomComboBox.superclass.postMixInProperties.apply(this,arguments);if(this.formFields){this.formFields=this.formFields.split(" ");}else{this.formFields=[];}this.initializeStrings();},initializeStrings:function(){this.errorTitle=this.getString("ERROR");this.oopsMsg=this.getString("OOPS_ELIPSYS");this.serviceFailureMsg=this.getString("OPTIONS_SERVICE_FAILURE");},filterBy:function(_d47){if(this.formReference){this.setDataFilter(_d47);this.fillFormReferences();}},setDataFilter:function(_d48){this._dataFitler=_d48;if(this._dataStore){this._dataStore.setAdditionalFilter(FREEDOM.COMBO_FILTER_NAME,this._dataFitler);}},startup:function(){freedom.widget.solution.form.FreedomComboBox.superclass.startup.apply(this,arguments);if(this.predefinedList){this.setOptions(this.predefinedList);}if(!this.formReference){this._optionsFilled=true;}},fillReferencesFinished:function(_d49){},beforeOptionsUpdate:function(_d4a){}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomAddress"]){dojo._hasResource["freedom.widget.solution.form.FreedomAddress"]=true;dojo.provide("freedom.widget.solution.form.FreedomAddress");dojo.declare("freedom.widget.solution.form.FreedomAddress",[dijit._Widget,dijit._Templated,freedom.widget.solution.form.FreedomDataWidgetBaseMixin],{templatePath:dojo.moduleUrl("freedom","widget/solution/form/templates/freedom-address.html"),widgetsInTemplate:true,countries:COUNTRIES_LIST,required:"true",_showHideTitleSeparately:false,setValue:function(_d4b){var _d4c=(_d4b.street)?_d4b.street:"";var _d4d=(_d4b.addressLine2)?_d4b.addressLine2:"";var city=(_d4b.city)?_d4b.city:"";var _d4f=(_d4b.state)?_d4b.state:"";var zip=(_d4b.zipCode)?_d4b.zipCode:"";var _d51=(_d4b.country)?_d4b.country:"";this.streetNode.setValue(_d4c);this.addressLine2Node.setValue(_d4d);this.cityNode.setValue(city);this.sprNode.setValue(_d4f);this.zipNode.setValue(zip);this.countryNode.setValue(_d51);this.onChange();},getValue:function(){var _d52={};_d52.street=this.streetNode.getValue();_d52.addressLine2=this.addressLine2Node.getValue();_d52.city=this.cityNode.getValue();_d52.state=this.sprNode.getValue();_d52.zipCode=this.zipNode.getValue();_d52.country=this.countryNode.getValue();return _d52;},setDisabled:function(_d53){this.streetNode.setDisabled(_d53);this.addressLine2Node.setDisabled(_d53);this.cityNode.setDisabled(_d53);this.sprNode.setDisabled(_d53);this.zipNode.setDisabled(_d53);this.countryNode.setDisabled(_d53);},validate:function(){},isValidValue:function(){if(this.required=="false"||0!=this.streetNode.getValue().length||0!=this.addressLine2Node.getValue().length||0!=this.cityNode.getValue()||0!=this.sprNode.getValue()||0!=this.zipNode.getValue()||0!=this.countryNode.getValue().length){return [];}else{return [this.getString("REQUIRED_MESSAGE")];}},postMixInProperties:function(){freedom.widget.solution.form.FreedomAddress.superclass.postMixInProperties.apply(this,arguments);this.addressLine2Str=this.getString("ADDRESS_LINE_TWO");this.cityStr=this.getString("CITY");this.countryStr=this.getString("COUNTRY");this.stateStr=this.getString("STATE");this.streetStr=this.getString("STREET_ADDRESS");this.zipStr=this.getString("ZIP");},postCreate:function(){freedom.widget.solution.form.FreedomAddress.superclass.postCreate.apply(this,arguments);this.countryNode.setOptions(COUNTRIES_LIST);this.countryNode.comboNode.style.width="10em";}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomBaseForm"]){dojo._hasResource["freedom.widget.solution.form.FreedomBaseForm"]=true;dojo.provide("freedom.widget.solution.form.FreedomBaseForm");dojo.declare("freedom.widget.solution.form.FreedomBaseForm",[dijit._Widget,freedom.widget.common.environment.FreedomNlsMixin],{_uid:"",_businessObject:null,_waitingForRefUpdate:false,_waitingForRefUpdateCount:0,_waitingForRefUpdateHandlers:null,getFormName:function(){return this._formName;},getBusinessObject:function(){return this._businessObject;},setBusinessObject:function(_d54){if(_d54==this._businessObject){return;}if(this._businessObject){this.doHide();this.onDestruct();}_d54&&this.onCreate();this._businessObject=_d54;this.initAttributes(_d54);_d54&&this.onLoad();},initAttributes:function(_d55){var _d56=this.getAttributeNames();var _d57;var slf=this;var _d59;for(var i=0,l=_d56.length;i<l;i++){_d57=_d56[i];_d59=this[_d57];_d59.setBusinessObjectAttribute&&_d59.setBusinessObjectAttribute(_d55&&_d55[_d57]);_d59.getContainingForm=function(){return slf;};_d59.shortName=_d57;_d59.getId=function(){return this.shortName;};}if(_d55&&FREEDOM.mIsWorkflow[this._formName]&&undefined==this._businessObject.flowState){this._businessObject.flowState="Start";}},doHide:function(){var _d5c=this.getAttributeNames();for(var i=0;i<_d5c.length;i++){this[_d5c[i]].showInForm(false);}this.onHide();},shown:function(){this.showFieldsOfForm();this.onShow();},showFieldsOfForm:function(){var _d5e=this.getVisualWidgets();var _d5f;if(FREEDOM.mIsWorkflow[this._formName]){var _d60=this._businessObject.flowState;if(undefined==_d60){_d60="Start";}}for(var i=0;i<_d5e.length;i++){var _d62=true;if(FREEDOM.mIsWorkflow[this._formName]){this[_d5e[i]].setDisabled(false);var _d63=this.getWorkflowFieldProperties(_d5e[i],_d60);if(_d63){_d62=_d63.shown;if(_d62){var _d64=!_d63.editable;this[_d5e[i]].setDisabled(_d64);}}}this[_d5e[i]].showInForm(_d62);}},updateReferences:function(_d65){var _d66=this.getAttributeNames();var _d67=[];var _d68=[];if(_d66.length>0){this._waitingForRefUpdateCount=0;this._waitingForRefUpdate=true;this._waitingForRefUpdateHandlers=[];}for(var i=0;i<_d66.length;i++){var _d6a=this[_d66[i]];if(_d6a.getFormReference&&typeof (_d6a.getFormReference)=="function"){var _d6b=_d6a.getFormReference();if(_d6b){var _d6c=_d65.getDataStoreByFormName(_d6b);if(_d6c){this._waitingForRefUpdateHandlers[_d6a]=dojo.connect(_d6a,"fillReferencesFinished",this,"_updateReferencesFinished");this._waitingForRefUpdateCount++;_d67.push({field:_d6a,dataStore:_d6c});}}}if(_d6a.updateReferences&&typeof (_d6a.updateReferences)=="function"){this._waitingForRefUpdateHandlers[_d6a]=dojo.connect(_d6a,"afterUpdateReferences",this,"_updateReferencesFinished");this._waitingForRefUpdateCount++;_d68.push(_d6a);}}if(this._waitingForRefUpdateCount==0){this._waitingForRefUpdate=false;this.afterUpdateReferences();}else{for(var i=0,rl=_d67.length;i<rl;i++){var ref=_d67[i];ref.field.fillFormReferences(ref.dataStore);}for(var i=0,rl=_d68.length;i<rl;i++){_d68[i].updateReferences(_d65);}}},_updateReferencesFinished:function(_d6f){if(this._waitingForRefUpdate){delete this._waitingForRefUpdateHandlers[_d6f];this._waitingForRefUpdateCount--;if(this._waitingForRefUpdateCount==0){this._waitingForRefUpdateHandlers=null;this._waitingForRefUpdate=false;this.afterUpdateReferences();}}},isValidValue:function(){var _d70=[];var _d71=this.getAttributeNames();for(var i=0;i<_d71.length;i++){var _d73=this[_d71[i]].isValidValue();for(var j=0;j<_d73.length;j++){_d70.push(this.getString("FIELD_ERROR_MESSAGE",{fieldName:this[_d71[i]].helptitle,errorMessage:_d73[j]}));}}return (_d70);},validate:function(){var _d75=this.getAttributeNames();for(var i=0;i<_d75.length;i++){this[_d75[i]].validate&&this[_d75[i]].validate();}},isEntityChanged:function(){if(null!==this._businessObject){return this._businessObject.isChanged();}return false;},isEntityRowChanged:function(_d77,_d78){var _d79=this.getAttributeNames();for(var i=0;i<_d79.length;i++){if(_d77[_d79[i]].equals(_d78[_d79[i]].getValue())){return true;}}return false;},resetDisplay:function(){var _d7b=this.getVisualWidgets();for(var i=0;i<_d7b.length;i++){this[_d7b[i]].resetDisplay&&this[_d7b[i]].resetDisplay();}},setDisabled:function(_d7d){var _d7e=this.getVisualWidgets();for(var i=0;i<_d7e.length;i++){this[_d7e[i]].setDisabled(_d7d);}},getAttributeNames:function(){if(undefined===this._class._attributeNames){var _d80=[];for(var _d81 in this){if(null!==this[_d81]&&"object"===typeof (this[_d81])&&"function"===typeof (this[_d81].isFormAttribute)){_d80.push(_d81);}}this._class._attributeNames=_d80;}return this._class._attributeNames;},getVisualWidgets:function(){if(undefined===this._class._visualWidgets){this._class._visualWidgets=[];for(var _d82 in this){if(null!==this[_d82]&&"object"===typeof (this[_d82])&&"function"===typeof (this[_d82].showInForm)){this._class._visualWidgets.push(_d82);}}}return this._class._visualWidgets;},postMixInProperties:function(){freedom.widget.solution.form.FreedomBaseForm.superclass.postMixInProperties.apply(this,arguments);this._uid=dojox.uuid.generateRandomUuid();},afterUpdateReferences:function(){},validateButtonPressed:function(){return true;},afterSave:function(){},beforeSave:function(){},onCreate:function(){},onDestruct:function(){},onHide:function(){},onLoad:function(){},onShow:function(){}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomBaseCalculatedForm"]){dojo._hasResource["freedom.widget.solution.form.FreedomBaseCalculatedForm"]=true;dojo.provide("freedom.widget.solution.form.FreedomBaseCalculatedForm");dojo.declare("freedom.widget.solution.form.FreedomBaseCalculatedForm",freedom.widget.solution.form.FreedomBaseForm,{updateCalculatedFields:function(){},setBusinessObject:function(_d83){freedom.widget.solution.form.FreedomBaseCalculatedForm.superclass.setBusinessObject.apply(this,arguments);if(null!==_d83){this.updateCalculatedFields();}},startup:function(){freedom.widget.solution.form.FreedomBaseCalculatedForm.superclass.startup.apply(this,arguments);var _d84=this.getAttributeNames();for(i=0;i<_d84.length;i++){dojo.connect(this[_d84[i]],"onChange",this,"updateCalculatedFields");}}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomCheckbox"]){dojo._hasResource["freedom.widget.solution.form.FreedomCheckbox"]=true;dojo.provide("freedom.widget.solution.form.FreedomCheckbox");dojo.declare("freedom.widget.solution.form.FreedomCheckbox",[dijit.form.CheckBox,freedom.widget.solution.form.FreedomDataWidgetBaseMixin],{_showHideTitleSeparately:false,setValue:function(_d85){if(typeof (_d85)=="boolean"){this.setChecked(_d85);}else{this.setChecked(_d85=="on"||_d85=="true");}},getValue:function(){return this.checked;},validate:function(){return true;},isValidValue:function(){return [];},disable:function(){freedom.widget.solution.form.FreedomCheckbox.superclass.disable.apply(this,arguments);this.inputNode.disabled=true;},enable:function(){freedom.widget.solution.form.FreedomCheckbox.superclass.enable.apply(this,arguments);this.inputNode.disabled=false;},onClick:function(e){freedom.widget.solution.form.FreedomCheckbox.superclass.onClick.apply(this,arguments);this.onChange();}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomOptionButton"]){dojo._hasResource["freedom.widget.solution.form.FreedomOptionButton"]=true;dojo.provide("freedom.widget.solution.form.FreedomOptionButton");dojo.declare("freedom.widget.solution.form.FreedomOptionButton",[dijit._Widget,dijit._Templated,freedom.widget.common.environment.FreedomBaseMixin],{templatePath:dojo.moduleUrl("freedom","widget/solution/form/templates/freedom-option-button.html"),title:"option",groupName:"",type:"radio",setGroupName:function(name){this.groupName=name;this.inputNode.name=this.groupName;},setTitle:function(_d88){this.title=_d88;this.titleNode.innerHTML=_d88;},getTitle:function(){return this.title;},setDirection:function(_d89){if(_d89===FREEDOM.DIRECTION_PROPERTY_HORIZONTAL){dojo.removeClass(this.listItem,"vertical-selection-group-item");dojo.addClass(this.listItem,"horizontal-selection-group-item");}else{dojo.removeClass(this.listItem,"horizontal-selection-group-item");dojo.addClass(this.listItem,"vertical-selection-group-item");}},onSelection:function(){this.optionSelected(this);if(this.inputNode.checked){dojo.addClass(this.titleNode,"bold-selection-group-item");dojo.removeClass(this.titleNode,"normal-selection-group-item");}else{dojo.addClass(this.titleNode,"normal-selection-group-item");dojo.removeClass(this.titleNode,"bold-selection-group-item");}},setChecked:function(_d8a){this.inputNode.checked=_d8a;if(_d8a){dojo.addClass(this.titleNode,"bold-selection-group-item");dojo.removeClass(this.titleNode,"normal-selection-group-item");}else{dojo.addClass(this.titleNode,"normal-selection-group-item");dojo.removeClass(this.titleNode,"bold-selection-group-item");}},getChecked:function(){return this.inputNode.checked;},optionSelected:function(_d8b){},setDisabled:function(_d8c){this.inputNode.disabled=_d8c;},postCreate:function(){freedom.widget.solution.form.FreedomOptionButton.superclass.postCreate.apply(this,arguments);}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomSelectionGroup"]){dojo._hasResource["freedom.widget.solution.form.FreedomSelectionGroup"]=true;dojo.provide("freedom.widget.solution.form.FreedomSelectionGroup");dojo.declare("freedom.widget.solution.form.FreedomSelectionGroup",[dijit._Widget,dijit._Templated,freedom.widget.solution.form.FreedomBaseValidationMixin],{templatePath:dojo.moduleUrl("freedom","widget/solution/form/templates/freedom-selection-group.html"),options:null,groupUid:null,isContainer:true,widgetsInTemplate:true,hasPropertiesError:false,direction:FREEDOM.DIRECTION_PROPERTY_VERTICAL,defaults:"",addOption:function(_d8d){this.groupUid=this.groupUid||this._uid+"group";var _d8e;var _d8f;if(typeof _d8d=="string"){_d8e=_d8d;_d8f=-1;}else{_d8e=_d8d.getValue();_d8f=_d8d.getNumber()-1;}var _d90;var _d91=(this.getSelectionType()==SINGLE_SELECTION)?"radio":"checkbox";if(this.validateIndex(_d8f)){var _d92=this.options[_d8f];_d90=getWidgetFactory().createWidget("freedom.widget.solution.form.FreedomOptionButton",{title:_d8e,groupName:this.groupUid,type:_d91},_d92.domNode,"before");this.options.splice(_d8f,0,_d90);}else{_d90=getWidgetFactory().createWidget("freedom.widget.solution.form.FreedomOptionButton",{title:_d8e,groupName:this.groupUid,type:_d91});this.containerNode.appendChild(_d90.domNode);this.options.push(_d90);}_d90.setGroupName(this.groupUid);_d90.setTitle(_d8e);_d90.setDirection(this.direction);dojo.connect(_d90,"optionSelected",this,"onOptionSelected");this.finishedAddingOption();},removeOption:function(_d93){var _d94=_d93.getNumber()-1;if(!this.validateIndex(_d94)){return;}var _d93=this.options[_d94];this.options.splice(_d94,1);_d93.destroy();this.finishedRemovingOption();},updateOption:function(_d95,_d96,_d97){hasPropertiesError=_d97;this.setErrorMessage(_d97);if(!this.validateIndex(_d96)){return;}var _d98=this.options[_d96];_d98.setTitle(_d95);},setChecked:function(_d99,_d9a){if(!this.validateIndex(_d99)){return;}var _d9b=this.options[_d99];_d9b.setChecked(_d9a);this.onChange();},validateIndex:function(_d9c){if(_d9c<0||_d9c>=this.options.length){return false;}return true;},onOptionSelected:function(_d9d){for(var i=0;i<this.options.length;i++){if(this.options[i]==_d9d){this.onSelection(i);if(this.getSelectionType()!==MULTI_SELECTION){break;}}}this.onChange();},isValid:function(){return true;},setDirection:function(_d9f){this.direction=_d9f;dojo.forEach(this.options,function(_da0){_da0.setDirection(_d9f);});},postCreate:function(){this.options=[];},startup:function(){freedom.widget.solution.form.FreedomSelectionGroup.superclass.startup.apply(this,arguments);if(this.containerNode!==undefined&&this.containerNode!==null){var _da1=this.containerNode.getElementsByTagName("div");var cnt=_da1.length;var _da3=[];for(var i=0;i<cnt;i++){var _da5=_da1[i].firstChild.nodeValue;this.addOption(_da5,-1);}for(i=cnt-1;i>=0;--i){this.containerNode.removeChild(_da1[i]);}var _da6=(!this.defaults)?[]:this.defaults.split(" ");for(var j=0;j<_da6.length;j++){var indx=parseInt(_da6[j],10)-1;this.setChecked(indx,true);}}},setValue:function(_da9){if(typeof (_da9)=="string"){if(_da9!=""){_da9=_da9.split(",");}else{_da9=[];}}for(var i=0;i<this.options.length;i++){var _dab=this.options[i];this.setChecked(i,false);for(var j=0;j<_da9.length;j++){if(_dab.getTitle()==_da9[j]){this.setChecked(i,true);this.onSelection(i);}}}},getValue:function(){var _dad="";var _dae="";for(var i=0;i<this.options.length;i++){if(this.options[i].getChecked()){_dad=_dad+_dae+this.options[i].getTitle();_dae=",";}}return _dad;},setDisabled:function(_db0){for(var i=0;i<this.options.length;i++){this.options[i].setDisabled(_db0);}},select:function(){},update:function(){},getSelectionType:function(){return "SHOULD NOT BE HERE!!";},onSelection:function(_db2){},finishedAddingOption:function(){},finishedRemovingOption:function(){}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomCheckboxGroup"]){dojo._hasResource["freedom.widget.solution.form.FreedomCheckboxGroup"]=true;dojo.provide("freedom.widget.solution.form.FreedomCheckboxGroup");dojo.declare("freedom.widget.solution.form.FreedomCheckboxGroup",[freedom.widget.solution.form.FreedomSelectionGroup,freedom.widget.solution.form.FreedomRangePropertyHandlerMixin],{numChecked:0,_showHideTitleSeparately:false,getSelectionType:function(){return MULTI_SELECTION;},getHandlers:function(){return [new freedom.widget.solution.form.FreedomRangePropertyHandlerMixin()];},setChecked:function(_db3,_db4){freedom.widget.solution.form.FreedomCheckboxGroup.superclass.setChecked.apply(this,arguments);this.updateCheckedNumber(_db4);},onOptionSelected:function(_db5){freedom.widget.solution.form.FreedomCheckboxGroup.superclass.onOptionSelected.apply(this,arguments);this.updateCheckedNumber(_db5.getChecked());},removeOption:function(_db6){freedom.widget.solution.form.FreedomCheckboxGroup.superclass.removeOption.apply(this,arguments);this.validate();},addOption:function(_db7){freedom.widget.solution.form.FreedomCheckboxGroup.superclass.addOption.apply(this,arguments);this.validate();},updateCheckedNumber:function(_db8){_db8?this.numChecked++:this.numChecked--;this.validate();},validate:function(){if(!this.hasPropertiesError){return;}var _db9=null;if(this.numChecked>this.constraints.max){_db9=this.getString("TOO_MANY_OPTIONS_ARE_SELECTED");}if(this.numChecked<this.constraints.min){_db9=this.getString("NOT_ENOUGH_OPTIONS_ARE_SELECTED");}if((this.constraints.max!==Infinity&&this.constraints.max>this.options.length)||(this.constraints.min!==-Infinity&&this.constraints.min>this.options.length)||this.constraints.max<this.constraints.min){_db9=this.getString("INVALID_SELECTION_RANGE_DEFINITION");}this.setErrorMessage(_db9);}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomCodeArea"]){dojo._hasResource["freedom.widget.solution.form.FreedomCodeArea"]=true;dojo.provide("freedom.widget.solution.form.FreedomCodeArea");dojo.declare("freedom.widget.solution.form.FreedomCodeArea",[dijit._Widget,dijit._Templated,freedom.widget.solution.form.FreedomFieldShowHideMixin],{value:"",inSetValue:false,_isHighLight:false,templateString:"<div dojoAttachPoint='valueNode' dojoAttachPoint='onclick:onClick, onmouseover:onMouseOver, onmouseout:onMouseOut'></div>",isFormAttribute:function(){return true;},isValidValue:function(){return [];},onChange:function(){},onMouseOver:function(){},onClick:function(){},onMouseOut:function(){},setValue:function(_dba){if(_dba==this.value){return;}if(this.inSetValue){return;}this.inSetValue=true;this.value=_dba;this.valueNode.innerHTML=_dba;this.onChange();this.inSetValue=false;}});}if(!dojo._hasResource["dojo.cldr.monetary"]){dojo._hasResource["dojo.cldr.monetary"]=true;dojo.provide("dojo.cldr.monetary");dojo.cldr.monetary.getData=function(code){var _dbc={ADP:0,BHD:3,BIF:0,BYR:0,CLF:0,CLP:0,DJF:0,ESP:0,GNF:0,IQD:3,ITL:0,JOD:3,JPY:0,KMF:0,KRW:0,KWD:3,LUF:0,LYD:3,MGA:0,MGF:0,OMR:3,PYG:0,RWF:0,TND:3,TRL:0,VUV:0,XAF:0,XOF:0,XPF:0};var _dbd={CHF:5};var _dbe=_dbc[code],_dbf=_dbd[code];if(typeof _dbe=="undefined"){_dbe=2;}if(typeof _dbf=="undefined"){_dbf=0;}return {places:_dbe,round:_dbf};};}if(!dojo._hasResource["dojo.currency"]){dojo._hasResource["dojo.currency"]=true;dojo.provide("dojo.currency");dojo.currency._mixInDefaults=function(_dc0){_dc0=_dc0||{};_dc0.type="currency";var _dc1=dojo.i18n.getLocalization("dojo.cldr","currency",_dc0.locale)||{};var iso=_dc0.currency;var data=dojo.cldr.monetary.getData(iso);dojo.forEach(["displayName","symbol","group","decimal"],function(prop){data[prop]=_dc1[iso+"_"+prop];});data.fractional=[true,false];return dojo.mixin(data,_dc0);};dojo.currency.format=function(_dc5,_dc6){return dojo.number.format(_dc5,dojo.currency._mixInDefaults(_dc6));};dojo.currency.regexp=function(_dc7){return dojo.number.regexp(dojo.currency._mixInDefaults(_dc7));};dojo.currency.parse=function(_dc8,_dc9){return dojo.number.parse(_dc8,dojo.currency._mixInDefaults(_dc9));};}if(!dojo._hasResource["dijit.form.CurrencyTextBox"]){dojo._hasResource["dijit.form.CurrencyTextBox"]=true;dojo.provide("dijit.form.CurrencyTextBox");dojo.declare("dijit.form.CurrencyTextBox",dijit.form.NumberTextBox,{currency:"",regExpGen:dojo.currency.regexp,_formatter:dojo.currency.format,parse:dojo.currency.parse,postMixInProperties:function(){if(this.constraints===dijit.form.ValidationTextBox.prototype.constraints){this.constraints={};}this.constraints.currency=this.currency;dijit.form.CurrencyTextBox.superclass.postMixInProperties.apply(this,arguments);}});}if(!dojo._hasResource["freedom.widget.solution.form.FreedomCurrency"]){dojo._hasResource["freedom.widget.solution.form.FreedomCurrency"]=true;dojo.provide("freedom.widget.solution.form.FreedomCurrency");dojo.declare("freedom.widget.solution.form.FreedomCurrency",[dijit.form.CurrencyTextBox,freedom.widget.solution.form.FreedomNumberMixin],{taxDiv:null,taxHoldingDiv:null,usingTax:"",policy:"",taxValue:0,numberType:TYPE_PROPERTY_DECIMAL,setValue:function(_dca){freedom.widget.solution.form.FreedomCurrency.superclass.setValue.apply(this,arguments);if(this.usingTax==USING_TAX_TRUE){if(null==this.taxDiv){this.addTaxNode();}this.updateTaxValue();}},startup:function(){freedom.widget.solution.form.FreedomCurrency.superclass.startup.apply(this,arguments);if(this.usingTax==USING_TAX_TRUE){if(null==this.taxDiv){this.addTaxNode();}this.updateTaxValue();}},isValid:function(_dcb){var val=this.getValue();return this.validator(val,this.constraints)||this.validator(""+val+"0",this.constraints);},addTaxNode:function(){var br=document.createElement("br");this.taxDiv=document.createElement("div");this.taxHoldingDiv=document.createElement("div");this.taxHoldingDiv.appendChild(br);this.taxHoldingDiv.appendChild(this.taxDiv);var _dce=this.textbox.parentNode;_dce.appendChild(this.taxHoldingDiv);},handleOnKeyUp:function(){if(this.usingTax==USING_TAX_TRUE){this.updateTaxValue();}},updateTaxValue:function(){var tax=this.taxValue;tax=parseFloat(tax);var _dd0=parseFloat(this.getValue());var _dd1=null;if(this.policy==ADD_PERCENTAGE_POLICY){_dd1=_dd0*((100+tax)/100);}if(this.policy==DEDUCT_PERCENTAGE_POLICY){_dd1=_dd0*((100-tax)/100);}if(this.policy==ADD_FIXED_VALUE_POLICY){_dd1=_dd0+tax;}if(this.policy==DEDUCT_FIXED_VALUE_POLICY){_dd1=_dd0-tax;}this.taxDiv.innerHTML="Total incl. tax is: "+_dd1;},postCreate:function(){freedom.widget.solution.form.FreedomCurrency.superclass.postCreate.apply(this,arguments);this.constraints=this.constraints||{};this.constraints.pattern="#.##;-#.##";}});}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.cldr.supplemental.getFirstDayOfWeek=function(_dd2){var _dd3={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,sy:4};var _dd4=dojo.cldr.supplemental._region(_dd2);var dow=_dd3[_dd4];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_dd6){_dd6=dojo.i18n.normalizeLocale(_dd6);var tags=_dd6.split("-");var _dd8=tags[1];if(!_dd8){_dd8={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[tags[0]];}else{if(_dd8.length==4){_dd8=tags[2];}}return _dd8;};dojo.cldr.supplemental.getWeekend=function(_dd9){var _dda={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};var _ddb={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};var _ddc=dojo.cldr.supplemental._region(_dd9);var _ddd=_dda[_ddc];var end=_ddb[_ddc];if(_ddd===undefined){_ddd=6;}if(end===undefined){end=0;}return {start:_ddd,end:end};};}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_ddf){var _de0=_ddf.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_de0==1&&dojo.date.isLeapYear(_ddf)){return 29;}return days[_de0];};dojo.date.isLeapYear=function(_de2){var year=_de2.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_de4){var str=_de4.toString();var tz="";var _de7;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_de7=str.match(pat))){tz=_de7[1];}else{str=_de4.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_de7=str.match(pat))){tz=_de7[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_dea,_deb,_dec){_dea=new Date(Number(_dea));_deb=new Date(Number(_deb||new Date()));if(_dec!=="undefined"){if(_dec=="date"){_dea.setHours(0,0,0,0);_deb.setHours(0,0,0,0);}else{if(_dec=="time"){_dea.setFullYear(0,0,0);_deb.setFullYear(0,0,0);}}}if(_dea>_deb){return 1;}if(_dea<_deb){return -1;}return 0;};dojo.date.add=function(date,_dee,_def){var sum=new Date(Number(date));var _df1=false;var _df2="Date";switch(_dee){case "day":break;case "weekday":var days,_df4;var mod=_def%5;if(!mod){days=(_def>0)?5:-5;_df4=(_def>0)?((_def-5)/5):((_def+5)/5);}else{days=mod;_df4=parseInt(_def/5);}var strt=date.getDay();var adj=0;if(strt==6&&_def>0){adj=1;}else{if(strt==0&&_def<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_def>0)?2:-2;}_def=(7*_df4)+days+adj;break;case "year":_df2="FullYear";_df1=true;break;case "week":_def*=7;break;case "quarter":_def*=3;case "month":_df1=true;_df2="Month";break;case "hour":case "minute":case "second":case "millisecond":_df2="UTC"+_dee.charAt(0).toUpperCase()+_dee.substring(1)+"s";}if(_df2){sum["set"+_df2](sum["get"+_df2]()+_def);}if(_df1&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_df9,_dfa,_dfb){_dfa=_dfa||new Date();_dfb=_dfb||"day";var _dfc=_dfa.getFullYear()-_df9.getFullYear();var _dfd=1;switch(_dfb){case "quarter":var m1=_df9.getMonth();var m2=_dfa.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_dfc*4);_dfd=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_df9,_dfa,"day"));var _e03=parseInt(dojo.date.difference(_df9,_dfa,"week"));var mod=days%7;if(mod==0){days=_e03*5;}else{var adj=0;var aDay=_df9.getDay();var bDay=_dfa.getDay();_e03=parseInt(days/7);mod=days%7;var _e08=new Date(_df9);_e08.setDate(_e08.getDate()+(_e03*7));var _e09=_e08.getDay();if(days>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_e09+mod)>5:adj=-2;}}else{if(days<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_e09+mod)<0:adj=2;}}}days+=adj;days-=(_e03*2);}_dfd=days;break;case "year":_dfd=_dfc;break;case "month":_dfd=(_dfa.getMonth()-_df9.getMonth())+(_dfc*12);break;case "week":_dfd=parseInt(dojo.date.difference(_df9,_dfa,"day")/7);break;case "day":_dfd/=24;case "hour":_dfd/=60;case "minute":_dfd/=60;case "second":_dfd/=1000;case "millisecond":_dfd*=_dfa.getTime()-_df9.getTime();}return Math.round(_dfd);};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");(function(){function formatPattern(_e0a,_e0b,_e0c,_e0d){return _e0d.replace(/([a-z])\1*/ig,function(_e0e){var s,pad;var c=_e0e.charAt(0);var l=_e0e.length;var _e13=["abbr","wide","narrow"];switch(c){case "G":s=_e0b[(l<4)?"eraAbbr":"eraNames"][_e0a.getFullYear()<0?0:1];break;case "y":s=_e0a.getFullYear();switch(l){case 1:break;case 2:if(!_e0c){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_e0a.getMonth()+1)/3);pad=true;break;case "M":var m=_e0a.getMonth();if(l<3){s=m+1;pad=true;}else{var _e15=["months","format",_e13[l-3]].join("-");s=_e0b[_e15][m];}break;case "w":var _e16=0;s=dojo.date.locale._getWeekOfYear(_e0a,_e16);pad=true;break;case "d":s=_e0a.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_e0a);pad=true;break;case "E":var d=_e0a.getDay();if(l<3){s=d+1;pad=true;}else{var _e18=["days","format",_e13[l-3]].join("-");s=_e0b[_e18][d];}break;case "a":var _e19=(_e0a.getHours()<12)?"am":"pm";s=_e0b[_e19];break;case "h":case "H":case "K":case "k":var h=_e0a.getHours();switch(c){case "h":s=(h%12)||12;break;case "H":s=h;break;case "K":s=(h%12);break;case "k":s=h||24;break;}pad=true;break;case "m":s=_e0a.getMinutes();pad=true;break;case "s":s=_e0a.getSeconds();pad=true;break;case "S":s=Math.round(_e0a.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.getTimezoneName(_e0a);if(s){break;}l=4;case "Z":var _e1b=_e0a.getTimezoneOffset();var tz=[(_e1b<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_e1b)/60),2),dojo.string.pad(Math.abs(_e1b)%60,2)];if(l==4){tz.splice(0,0,"GMT");tz.splice(3,0,":");}s=tz.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+_e0d);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale.format=function(_e1d,_e1e){_e1e=_e1e||{};var _e1f=dojo.i18n.normalizeLocale(_e1e.locale);var _e20=_e1e.formatLength||"short";var _e21=dojo.date.locale._getGregorianBundle(_e1f);var str=[];var _e23=dojo.hitch(this,formatPattern,_e1d,_e21,_e1e.fullYear);if(_e1e.selector=="year"){var year=_e1d.getFullYear();if(_e1f.match(/^zh|^ja/)){year+="年";}return year;}if(_e1e.selector!="time"){var _e25=_e1e.datePattern||_e21["dateFormat-"+_e20];if(_e25){str.push(_processPattern(_e25,_e23));}}if(_e1e.selector!="date"){var _e26=_e1e.timePattern||_e21["timeFormat-"+_e20];if(_e26){str.push(_processPattern(_e26,_e23));}}var _e27=str.join(" ");return _e27;};dojo.date.locale.regexp=function(_e28){return dojo.date.locale._parseInfo(_e28).regexp;};dojo.date.locale._parseInfo=function(_e29){_e29=_e29||{};var _e2a=dojo.i18n.normalizeLocale(_e29.locale);var _e2b=dojo.date.locale._getGregorianBundle(_e2a);var _e2c=_e29.formatLength||"short";var _e2d=_e29.datePattern||_e2b["dateFormat-"+_e2c];var _e2e=_e29.timePattern||_e2b["timeFormat-"+_e2c];var _e2f;if(_e29.selector=="date"){_e2f=_e2d;}else{if(_e29.selector=="time"){_e2f=_e2e;}else{_e2f=_e2d+" "+_e2e;}}var _e30=[];var re=_processPattern(_e2f,dojo.hitch(this,_buildDateTimeRE,_e30,_e2b,_e29));return {regexp:re,tokens:_e30,bundle:_e2b};};dojo.date.locale.parse=function(_e32,_e33){var info=dojo.date.locale._parseInfo(_e33);var _e35=info.tokens,_e36=info.bundle;var re=new RegExp("^"+info.regexp+"$",info.strict?"":"i");var _e38=re.exec(_e32);if(!_e38){return null;}var _e39=["abbr","wide","narrow"];var _e3a=[1970,0,1,0,0,0,0];var amPm="";var _e3c=dojo.every(_e38,function(v,i){if(!i){return true;}var _e3f=_e35[i-1];var l=_e3f.length;switch(_e3f.charAt(0)){case "y":if(l!=2&&_e33.strict){_e3a[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear();var _e42=year.substring(0,2)*100;var _e43=Math.min(Number(year.substring(2,4))+20,99);var num=(v<_e43)?_e42+v:_e42-100+v;_e3a[0]=num;}else{if(_e33.strict){return false;}_e3a[0]=v;}}break;case "M":if(l>2){var _e45=_e36["months-format-"+_e39[l-3]].concat();if(!_e33.strict){v=v.replace(".","").toLowerCase();_e45=dojo.map(_e45,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_e45,v);if(v==-1){return false;}}else{v--;}_e3a[1]=v;break;case "E":case "e":var days=_e36["days-format-"+_e39[l-3]].concat();if(!_e33.strict){v=v.toLowerCase();days=dojo.map(days,function(d){return d.toLowerCase();});}v=dojo.indexOf(days,v);if(v==-1){return false;}break;case "D":_e3a[1]=0;case "d":_e3a[2]=v;break;case "a":var am=_e33.am||_e36.am;var pm=_e33.pm||_e36.pm;if(!_e33.strict){var _e4b=/\./g;v=v.replace(_e4b,"").toLowerCase();am=am.replace(_e4b,"").toLowerCase();pm=pm.replace(_e4b,"").toLowerCase();}if(_e33.strict&&v!=am&&v!=pm){return false;}amPm=(v==pm)?"p":(v==am)?"a":"";break;case "K":if(v==24){v=0;}case "h":case "H":case "k":if(v>23){return false;}_e3a[3]=v;break;case "m":_e3a[4]=v;break;case "s":_e3a[5]=v;break;case "S":_e3a[6]=v;}return true;});var _e4c=+_e3a[3];if(amPm==="p"&&_e4c<12){_e3a[3]=_e4c+12;}else{if(amPm==="a"&&_e4c==12){_e3a[3]=0;}}var _e4d=new Date(_e3a[0],_e3a[1],_e3a[2],_e3a[3],_e3a[4],_e3a[5],_e3a[6]);if(_e33.strict){_e4d.setFullYear(_e3a[0]);}var _e4e=_e35.join("");if(!_e3c||(_e4e.indexOf("M")!=-1&&_e4d.getMonth()!=_e3a[1])||(_e4e.indexOf("d")!=-1&&_e4d.getDate()!=_e3a[2])){return null;}return _e4d;};function _processPattern(_e4f,_e50,_e51,_e52){var _e53=function(x){return x;};_e50=_e50||_e53;_e51=_e51||_e53;_e52=_e52||_e53;var _e55=_e4f.match(/(''|[^'])+/g);var _e56=_e4f.charAt(0)=="'";dojo.forEach(_e55,function(_e57,i){if(!_e57){_e55[i]="";}else{_e55[i]=(_e56?_e51:_e50)(_e57);_e56=!_e56;}});return _e52(_e55.join(""));};function _buildDateTimeRE(_e59,_e5a,_e5b,_e5c){_e5c=dojo.regexp.escapeString(_e5c);if(!_e5b.strict){_e5c=_e5c.replace(" a"," ?a");}return _e5c.replace(/([a-z])\1*/ig,function(_e5d){var s;var c=_e5d.charAt(0);var l=_e5d.length;var p2="",p3="";if(_e5b.strict){if(l>1){p2="0"+"{"+(l-1)+"}";}if(l>2){p3="0"+"{"+(l-2)+"}";}}else{p2="0?";p3="0{0,2}";}switch(c){case "y":s="\\d{2,4}";break;case "M":s=(l>2)?"\\S+?":p2+"[1-9]|1[0-2]";break;case "D":s=p2+"[1-9]|"+p3+"[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6]";break;case "d":s="[12]\\d|"+p2+"[1-9]|3[01]";break;case "w":s=p2+"[1-9]|[1-4][0-9]|5[0-3]";break;case "E":s="\\S+";break;case "h":s=p2+"[1-9]|1[0-2]";break;case "k":s=p2+"\\d|1[01]";break;case "H":s=p2+"\\d|1\\d|2[0-3]";break;case "K":s=p2+"[1-9]|1\\d|2[0-4]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_e5b.am||_e5a.am||"AM";var pm=_e5b.pm||_e5a.pm||"PM";if(_e5b.strict){s=am+"|"+pm;}else{s=am+"|"+pm;if(am!=am.toLowerCase()){s+="|"+am.toLowerCase();}if(pm!=pm.toLowerCase()){s+="|"+pm.toLowerCase();}if(s.indexOf(".")!=-1){s+="|"+s.replace(/\./g,"");}}s=s.replace(/\./g,"\\.");break;default:s=".*";}if(_e59){_e59.push(_e5d);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _e65=[];dojo.date.locale.addCustomFormats=function(_e66,_e67){_e65.push({pkg:_e66,name:_e67});};dojo.date.locale._getGregorianBundle=function(_e68){var _e69={};dojo.forEach(_e65,function(desc){var _e6b=dojo.i18n.getLocalization(desc.pkg,desc.name,_e68);_e69=dojo.mixin(_e69,_e6b);},this);return _e69;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,use,_e6f){var _e70;var _e71=dojo.date.locale._getGregorianBundle(_e6f);var _e72=[item,use,type];if(use=="standAlone"){var key=_e72.join("-");_e70=_e71[key];if(_e70[0]==1){_e70=undefined;}}_e72[1]="format";return (_e70||_e71[_e72.join("-")]).concat();};dojo.date.locale.isWeekend=function(_e74,_e75){var _e76=dojo.cldr.supplemental.getWeekend(_e75);var day=(_e74||new Date()).getDay();if(_e76.end<_e76.start){_e76.end+=7;if(day<_e76.start){day+=7;}}return day>=_e76.start&&day<=_e76.end;};dojo.date.locale._getDayOfYear=function(_e78){return dojo.date.difference(new Date(_e78.getFullYear(),0,1,_e78.getHours()),_e78)+1;};dojo.date.locale._getWeekOfYear=function(_e79,_e7a){if(arguments.length==1){_e7a=0;}var _e7b=new Date(_e79.getFullYear(),0,1).getDay();var adj=(_e7b-_e7a+7)%7;var week=Math.floor((dojo.date.locale._getDayOfYear(_e79)+adj-1)/7);if(_e7b==_e7a){week++;}return week;};}if(!dojo._hasResource["dijit._Calendar"]){dojo._hasResource["dijit._Calendar"]=true;dojo.provide("dijit._Calendar");dojo.declare("dijit._Calendar",[dijit._Widget,dijit._Templated],{templateString:"<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\">\r\n\t<thead>\r\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\r\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"decrementMonth\">\r\n\t\t\t\t<div class=\"dijitInline dijitCalendarIncrementControl dijitCalendarDecrease\"><span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow dijitCalendarIncrementControl dijitCalendarDecreaseInner\">-</span></div>\r\n\t\t\t</th>\r\n\t\t\t<th class='dijitReset' colspan=\"5\">\r\n\t\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\" class=\"dijitCalendarMonthLabelSpacer\"></div>\r\n\t\t\t\t<div dojoAttachPoint=\"monthLabelNode\" class=\"dijitCalendarMonthLabel\"></div>\r\n\t\t\t</th>\r\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"incrementMonth\">\r\n\t\t\t\t<div class=\"dijitInline dijitCalendarIncrementControl dijitCalendarIncrease\"><span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow dijitCalendarIncrementControl dijitCalendarIncreaseInner\">+</span></div>\r\n\t\t\t</th>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\"><span class=\"dijitCalendarDayLabel\"></span></th>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut\" class=\"dijitReset dijitCalendarBodyContainer\">\r\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\">\r\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\"><span class=\"dijitCalendarDateLabel\"></span></td>\r\n\t\t</tr>\r\n\t</tbody>\r\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\r\n\t\t<tr>\r\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\r\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\r\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\r\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\"></span>\r\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\r\n\t\t\t\t</h3>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</tfoot>\r\n</table>\t\r\n",value:new Date(),dayWidth:"narrow",setValue:function(_e7e){dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");this.attr("value",_e7e);},_setValueAttr:function(_e7f){if(!this.value||dojo.date.compare(_e7f,this.value)){_e7f=new Date(_e7f);this.displayMonth=new Date(_e7f);if(!this.isDisabledDate(_e7f,this.lang)){this.value=_e7f;this.value.setHours(0,0,0,0);this.onChange(this.value);}this._populateGrid();}},_setText:function(node,text){while(node.firstChild){node.removeChild(node.firstChild);}node.appendChild(dojo.doc.createTextNode(text));},_populateGrid:function(){var _e82=this.displayMonth;_e82.setDate(1);var _e83=_e82.getDay();var _e84=dojo.date.getDaysInMonth(_e82);var _e85=dojo.date.getDaysInMonth(dojo.date.add(_e82,"month",-1));var _e86=new Date();var _e87=this.value;var _e88=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);if(_e88>_e83){_e88-=7;}dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_e89,i){i+=_e88;var date=new Date(_e82);var _e8c,_e8d="dijitCalendar",adj=0;if(i<_e83){_e8c=_e85-_e83+i+1;adj=-1;_e8d+="Previous";}else{if(i>=(_e83+_e84)){_e8c=i-_e83-_e84+1;adj=1;_e8d+="Next";}else{_e8c=i-_e83+1;_e8d+="Current";}}if(adj){date=dojo.date.add(date,"month",adj);}date.setDate(_e8c);if(!dojo.date.compare(date,_e86,"date")){_e8d="dijitCalendarCurrentDate "+_e8d;}if(!dojo.date.compare(date,_e87,"date")){_e8d="dijitCalendarSelectedDate "+_e8d;}if(this.isDisabledDate(date,this.lang)){_e8d="dijitCalendarDisabledDate "+_e8d;}var _e8f=this.getClassForDate(date,this.lang);if(_e8f){_e8d=_e8f+" "+_e8d;}_e89.className=_e8d+"Month dijitCalendarDateTemplate";_e89.dijitDateValue=date.valueOf();var _e90=dojo.query(".dijitCalendarDateLabel",_e89)[0];this._setText(_e90,date.getDate());},this);var _e91=dojo.date.locale.getNames("months","wide","standAlone",this.lang);this._setText(this.monthLabelNode,_e91[_e82.getMonth()]);var y=_e82.getFullYear()-1;var d=new Date();dojo.forEach(["previous","current","next"],function(name){d.setFullYear(y++);this._setText(this[name+"YearLabelNode"],dojo.date.locale.format(d,{selector:"year",locale:this.lang}));},this);var _e95=this;var _e96=function(_e97,_e98,adj){_e95._connects.push(dijit.typematic.addMouseListener(_e95[_e97],_e95,function(_e9a){if(_e9a>=0){_e95._adjustDisplay(_e98,adj);}},0.8,500));};_e96("incrementMonth","month",1);_e96("decrementMonth","month",-1);_e96("nextYearLabelNode","year",1);_e96("previousYearLabelNode","year",-1);},goToToday:function(){this.attr("value",new Date());},postCreate:function(){this.inherited(arguments);var _e9b=dojo.hitch(this,function(_e9c,n){var _e9e=dojo.query(_e9c,this.domNode)[0];for(var i=0;i<n;i++){_e9e.parentNode.appendChild(_e9e.cloneNode(true));}});_e9b(".dijitCalendarDayLabelTemplate",6);_e9b(".dijitCalendarDateTemplate",6);_e9b(".dijitCalendarWeekTemplate",5);var _ea0=dojo.date.locale.getNames("days",this.dayWidth,"standAlone",this.lang);var _ea1=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_ea2,i){this._setText(_ea2,_ea0[(i+_ea1)%7]);},this);var _ea4=dojo.date.locale.getNames("months","wide","standAlone",this.lang);dojo.forEach(_ea4,function(name){var _ea6=dojo.doc.createElement("div");this._setText(_ea6,name);this.monthLabelSpacer.appendChild(_ea6);},this);this.value=null;this.attr("value",new Date());},_adjustDisplay:function(part,_ea8){this.displayMonth=dojo.date.add(this.displayMonth,part,_ea8);this._populateGrid();},_onDayClick:function(evt){var node=evt.target;dojo.stopEvent(evt);while(!node.dijitDateValue){node=node.parentNode;}if(!dojo.hasClass(node,"dijitCalendarDisabledDate")){this.attr("value",node.dijitDateValue);this.onValueSelected(this.value);}},_onDayMouseOver:function(evt){var node=evt.target;if(node&&(node.dijitDateValue||node==this.previousYearLabelNode||node==this.nextYearLabelNode)){dojo.addClass(node,"dijitCalendarHoveredDate");this._currentNode=node;}},_onDayMouseOut:function(evt){if(!this._currentNode){return;}for(var node=evt.relatedTarget;node;){if(node==this._currentNode){return;}try{node=node.parentNode;}catch(x){node=null;}}dojo.removeClass(this._currentNode,"dijitCalendarHoveredDate");this._currentNode=null;},onValueSelected:function(date){},onChange:function(date){},isDisabledDate:function(_eb1,_eb2){},getClassForDate:function(_eb3,_eb4){}});}if(!dojo._hasResource["dijit.form._DateTimeTextBox"]){dojo._hasResource["dijit.form._DateTimeTextBox"]=true;dojo.provide("dijit.form._DateTimeTextBox");dojo.declare("dijit.form._DateTimeTextBox",dijit.form.RangeBoundTextBox,{regExpGen:dojo.date.locale.regexp,compare:dojo.date.compare,format:function(_eb5,_eb6){if(!_eb5){return "";}return dojo.date.locale.format(_eb5,_eb6);},parse:function(_eb7,_eb8){return dojo.date.locale.parse(_eb7,_eb8)||(this._isEmpty(_eb7)?null:undefined);},serialize:dojo.date.stamp.toISOString,value:new Date(""),popupClass:"",_selector:"",postMixInProperties:function(){this.inherited(arguments);if(!this.value||this.value.toString()==dijit.form._DateTimeTextBox.prototype.value.toString()){this.value=null;}var _eb9=this.constraints;_eb9.selector=this._selector;_eb9.fullYear=true;var _eba=dojo.date.stamp.fromISOString;if(typeof _eb9.min=="string"){_eb9.min=_eba(_eb9.min);}if(typeof _eb9.max=="string"){_eb9.max=_eba(_eb9.max);}},_onFocus:function(evt){this._open();},_setValueAttr:function(_ebc,_ebd,_ebe){this.inherited(arguments);if(this._picker){if(!_ebc){_ebc=new Date();}this._picker.attr("value",_ebc);}},_open:function(){if(this.disabled||this.readOnly||!this.popupClass){return;}var _ebf=this;if(!this._picker){var _ec0=dojo.getObject(this.popupClass,false);this._picker=new _ec0({onValueSelected:function(_ec1){if(_ebf._tabbingAway){delete _ebf._tabbingAway;}else{_ebf.focus();}setTimeout(dojo.hitch(_ebf,"_close"),1);dijit.form._DateTimeTextBox.superclass._setValueAttr.call(_ebf,_ec1,true);},lang:_ebf.lang,constraints:_ebf.constraints,isDisabledDate:function(date){var _ec3=dojo.date.compare;var _ec4=_ebf.constraints;return _ec4&&(_ec4.min&&(_ec3(_ec4.min,date,"date")>0)||(_ec4.max&&_ec3(_ec4.max,date,"date")<0));}});this._picker.attr("value",this.attr("value")||new Date());}if(!this._opened){dijit.popup.open({parent:this,popup:this._picker,around:this.domNode,onCancel:dojo.hitch(this,this._close),onClose:function(){_ebf._opened=false;}});this._opened=true;}dojo.marginBox(this._picker.domNode,{w:this.domNode.offsetWidth});},_close:function(){if(this._opened){dijit.popup.close(this._picker);this._opened=false;}},_onBlur:function(){this._close();if(this._picker){this._picker.destroy();delete this._picker;}this.inherited(arguments);},_getDisplayedValueAttr:function(){return this.textbox.value;},_setDisplayedValueAttr:function(_ec5,_ec6){this._setValueAttr(this.parse(_ec5,this.constraints),_ec6,_ec5);},destroy:function(){if(this._picker){this._picker.destroy();delete this._picker;}this.inherited(arguments);},_onKeyPress:function(e){var p=this._picker,dk=dojo.keys;if(p&&this._opened&&p.handleKey){if(p.handleKey(e)===false){return;}}if(this._opened&&e.charOrCode==dk.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){this._close();dojo.stopEvent(e);}else{if(!this._opened&&e.charOrCode==dk.DOWN_ARROW){this._open();dojo.stopEvent(e);}else{if(dijit.form._DateTimeTextBox.superclass._onKeyPress.apply(this,arguments)){if(e.charOrCode===dk.TAB){this._tabbingAway=true;}else{if(this._opened&&(e.keyChar||e.charOrCode===dk.BACKSPACE||e.charOrCode==dk.DELETE)){setTimeout(dojo.hitch(this,function(){dijit.placeOnScreenAroundElement(p.domNode.parentNode,this.domNode,{"BL":"TL","TL":"BL"},p.orient?dojo.hitch(p,"orient"):null);}),1);}}}}}}});}if(!dojo._hasResource["dijit.form.DateTextBox"]){dojo._hasResource["dijit.form.DateTextBox"]=true;dojo.provide("dijit.form.DateTextBox");dojo.declare("dijit.form.DateTextBox",dijit.form._DateTimeTextBox,{baseClass:"dijitTextBox dijitDateTextBox",popupClass:"dijit._Calendar",_selector:"date"});}