<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -22,4 +22,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 */
-(function(){var A=YAHOO.lang;inputEx=function(B){var C=null;if(B.type){C=inputEx.getFieldClass(B.type);if(C===null){C=inputEx.StringField}}else{C=B.fieldClass?B.fieldClass:inputEx.StringField}var D=new C(B.inputParams);return D};A.augmentObject(inputEx,{VERSION:&quot;0.4.0rc1&quot;,spacerUrl:&quot;images/space.gif&quot;,stateEmpty:&quot;empty&quot;,stateRequired:&quot;required&quot;,stateValid:&quot;valid&quot;,stateInvalid:&quot;invalid&quot;,messages:{required:&quot;This field is required&quot;,invalid:&quot;This field is invalid&quot;,valid:&quot;This field is valid&quot;,defaultDateFormat:&quot;m/d/Y&quot;,months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;]},widget:{},regexps:{email:/^(([^&lt;&gt;()[\]\\.,;:\s@\&quot;]+(\.[^&lt;&gt;()[\]\\.,;:\s@\&quot;]+)*)|(\&quot;.+\&quot;))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/i,password:/^[0-9a-zA-Z\x20-\x7E]*$/},typeClasses:{},registerType:function(C,E,B,F){if(!A.isString(C)){throw new Error(&quot;inputEx.registerType: first argument must be a string&quot;)}if(!A.isFunction(E)){throw new Error(&quot;inputEx.registerType: second argument must be a function&quot;)}this.typeClasses[C]=E;var D=[];if(A.isArray(B)){D=B}if(E.superclass&amp;&amp;!F&amp;&amp;A.isArray(E.superclass.constructor.groupOptions)){D=D.concat(E.superclass.constructor.groupOptions)}E.groupOptions=D},getFieldClass:function(B){return A.isFunction(this.typeClasses[B])?this.typeClasses[B]:null},getType:function(B){for(var C in this.typeClasses){if(this.typeClasses.hasOwnProperty(C)){if(this.typeClasses[C]==B){return C}}}return null},buildField:function(B){return inputEx(B)},sn:function(E,D,B){if(!E){return }var C;if(D){for(C in D){var G=D[C];if(A.isFunction(G)){continue}if(C==&quot;className&quot;){C=&quot;class&quot;;E.className=G}if(G!==E.getAttribute(C)){try{if(G===false){E.removeAttribute(C)}else{E.setAttribute(C,G)}}catch(F){}}}}if(B){for(C in B){if(A.isFunction(B[C])){continue}if(E.style[C]!=B[C]){E.style[C]=B[C]}}}},cn:function(B,F,C,H){if(B==&quot;input&quot;&amp;&amp;YAHOO.env.ua.ie){var E=&quot;&lt;&quot;+B;if(F!==&quot;undefined&quot;){for(var D in F){E+=&quot; &quot;+D+'=&quot;'+F[D]+'&quot;'}}E+=&quot;/&gt;&quot;;return document.createElement(E)}else{var G=document.createElement(B);this.sn(G,F,C);if(H){G.innerHTML=H}return G}},indexOf:function(E,B){var C=B.length,D;for(D=0;D&lt;C;D++){if(B[D]==E){return D}}return -1},compactArray:function(B){var E=[],C=B.length,D;for(D=0;D&lt;C;D++){if(!A.isNull(B[D])&amp;&amp;!A.isUndefined(B[D])){E.push(B[D])}}return E},removeAccents:function(B){return B.replace(/[&#224;&#225;&#226;&#227;&#228;&#229;]/g,&quot;a&quot;).replace(/[&#232;&#233;&#234;&#235;]/g,&quot;e&quot;).replace(/[&#236;&#237;&#238;&#239;]/g,&quot;i&quot;).replace(/[&#242;&#243;&#244;&#245;&#246;]/g,&quot;o&quot;).replace(/[&#249;&#250;&#251;&#252;]/g,&quot;u&quot;).replace(/[&#253;&#255;]/g,&quot;y&quot;).replace(/[&#241;]/g,&quot;n&quot;).replace(/[&#231;]/g,&quot;c&quot;).replace(/[&#339;]/g,&quot;oe&quot;).replace(/[&#230;]/g,&quot;ae&quot;)}})})();YAHOO.inputEx=inputEx;(function(){var A=YAHOO.lang;inputEx.visus={trimpath:function(D,E){if(!TrimPath){alert(&quot;TrimPath is not on the page. Please load inputex/lib/trimpath-template.js&quot;);return null}var C=TrimPath.parseTemplate(D.template);var B=C.process(E);return B},func:function(B,C){return B.func(C)},dump:function(B,C){return A.dump(C)}};inputEx.renderVisu=function(H,D,E){var B=H||{};var I=B.visuType||&quot;dump&quot;;if(!inputEx.visus.hasOwnProperty(I)){throw new Error(&quot;inputEx: no visu for visuType: &quot;+I)}var F=inputEx.visus[I];if(!A.isFunction(F)){throw new Error(&quot;inputEx: no visu for visuType: &quot;+I)}var J=null;try{J=F(B,D)}catch(G){throw new Error(&quot;inputEx: error while running visu &quot;+I+&quot; : &quot;+G.message)}var C=null;if(E){if(A.isString(E)){C=YAHOO.util.Dom.get(E)}else{C=E}}if(C){if(YAHOO.lang.isObject(J)&amp;&amp;J.tagName){C.innerHTML=&quot;&quot;;C.appendChild(J)}else{C.innerHTML=J}}return J}})();(function(){var A=YAHOO.lang;inputEx.JsonSchema={inputExToSchema:function(B){var E=B.type||&quot;string&quot;,G=B.inputParams||{};if(E==&quot;group&quot;){var C={type:&quot;object&quot;,title:G.legend,properties:{}};for(var D=0;D&lt;G.fields.length;D++){var F=G.fields[D];var H=F.inputParams.name;C.properties[H]=inputEx.JsonSchema.inputExToSchema(F)}return C}else{if(E==&quot;number&quot;){return{type:&quot;number&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label}}else{if(E==&quot;string&quot;){return{type:&quot;string&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label}}else{if(E==&quot;text&quot;){return{type:&quot;string&quot;,format:&quot;text&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,_inputex:{rows:5,cols:50}}}else{if(E==&quot;html&quot;){return{type:&quot;string&quot;,format:&quot;html&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,_inputex:{}}}else{if(E==&quot;list&quot;){return{type:&quot;array&quot;,title:G.label,items:inputEx.JsonSchema.inputExToSchema(G.elementType),_inputex:{}}}else{if(E==&quot;email&quot;){return{type:&quot;string&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,format:&quot;email&quot;}}else{if(E==&quot;url&quot;){return{type:&quot;string&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,format:&quot;url&quot;}}else{if(E==&quot;time&quot;){return{type:&quot;string&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,format:&quot;time&quot;}}else{if(E==&quot;IPv4&quot;){return{type:&quot;string&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,format:&quot;ip-address&quot;}}else{if(E==&quot;color&quot;){return{type:&quot;string&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,format:&quot;color&quot;}}else{if(E==&quot;date&quot;){return{type:&quot;string&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,format:&quot;date&quot;}}else{return{type:&quot;string&quot;,title:G.label,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,_inputex:G}}}}}}}}}}}}}}};inputEx.JsonSchema.Builder=function(C){var B=C||{};this.options=B;this.schemaToParamMap=B.schemaToParamMap||{title:&quot;label&quot;,description:&quot;description&quot;,_inputex:null};this.referenceResolver=B.referenceResolver||null;this.defaultOptions=B.defaultOptions||{};this.schemaIdentifierMap=B.schemaIdentifierMap||{}};inputEx.JsonSchema.Builder.prototype={defaultReferenceResolver:function(B){return this.schemaIdentifierMap[B]||null},schemaToInputEx:function(D,M){var G={inputParams:{label:M,name:M}};var N=this.schemaToParamMap;var F=D[&quot;$ref&quot;];var Q;if(F){var K=null;if(this.referenceResolver){K=this.referenceResolver(F)}if(K===null){K=this.defaultReferenceResolver(F)}if(K===null){throw new Error('Schema for property : &quot;'+M+'&quot; $references &quot;'+F+'&quot;, not found')}K=A.merge(K);for(var H in D){if(D.hasOwnProperty(H)&amp;&amp;A.isUndefined(K[H])&amp;&amp;H!=&quot;$ref&quot;){K[H]=D[H]}}D=K}if(!D.optional){G.inputParams.required=true}for(Q in N){if(N.hasOwnProperty(Q)){var J=N[Q];var P=D[Q];if(!A.isUndefined(P)){if(J===null){if(A.isObject(P)){for(var B in P){if(P.hasOwnProperty(B)){G.inputParams[B]=P[B]}}}}else{G.inputParams[J]=P}}}}if(!D.type){D.type=&quot;object&quot;}var O=D.type;if(A.isArray(O)){if(O.length===0||(O.length==1&amp;&amp;O[0]==&quot;any&quot;)){O=&quot;array&quot;}else{O=O[0]}}G.type=O;if(!A.isUndefined(D[&quot;default&quot;])){G.inputParams.value=D[&quot;default&quot;]}if(O==&quot;array&quot;){G.type=&quot;list&quot;;if(A.isObject(D.items)&amp;&amp;!A.isArray(D.items)){G.inputParams.elementType=this.schemaToInputEx(D.items,M)}if(D.minItems){G.inputParams.minItems=D.minItems}if(D.maxItems){G.inputParams.maxItems=D.maxItems}}else{if(O==&quot;object&quot;){G.type=&quot;group&quot;;if(D.title&amp;&amp;A.isUndefined(G.inputParams.legend)){G.inputParams.legend=D.title}var L=[];if(M){G.inputParams.name=M}for(Q in D.properties){if(D.properties.hasOwnProperty(Q)){L.push(this.schemaToInputEx(D.properties[Q],Q))}}G.inputParams.fields=L}else{if(O==&quot;string&quot;&amp;&amp;(D[&quot;enum&quot;]||D.options)){G.type=&quot;select&quot;;if(D.options){G.inputParams.selectOptions=[];G.inputParams.selectValues=[];for(var I=0;I&lt;D.options.length;I++){var E=D.options[I];G.inputParams.selectOptions[I]=E.label;G.inputParams.selectValues[I]=E.value}}else{G.inputParams.selectValues=D[&quot;enum&quot;]}}else{if(O==&quot;string&quot;){if(!A.isUndefined(D.pattern)&amp;&amp;A.isUndefined(G.inputParams.regexp)){if(A.isString(D.pattern)){G.inputParams.regexp=new RegExp(D.pattern)}else{G.inputParams.regexp=D.pattern}}if(!A.isUndefined(D.maxLength)&amp;&amp;A.isUndefined(G.inputParams.maxLength)){G.inputParams.maxLength=D.maxLength}if(!A.isUndefined(D.minLength)&amp;&amp;A.isUndefined(G.inputParams.minLength)){G.inputParams.minLength=D.minLength}if(!A.isUndefined(D.readonly)&amp;&amp;A.isUndefined(G.inputParams.readonly)){G.inputParams.readonly=D.readonly}if(D.format){if(D.format==&quot;html&quot;){G.type=&quot;html&quot;}else{if(D.format==&quot;date&quot;){G.type=&quot;date&quot;;G.inputParams.tooltipIcon=true}else{if(D.format==&quot;url&quot;){G.type=&quot;url&quot;}else{if(D.format==&quot;email&quot;){G.type=&quot;email&quot;}else{if(D.format==&quot;text&quot;){G.type=&quot;text&quot;}else{if(D.format==&quot;time&quot;){G.type=&quot;time&quot;}else{if(D.format==&quot;ip-address&quot;){G.type=&quot;IPv4&quot;}else{if(D.format==&quot;color&quot;){G.type=&quot;color&quot;}}}}}}}}}}}}}if(!!D._inputex&amp;&amp;!!D._inputex[&quot;_type&quot;]){G.type=D._inputex[&quot;_type&quot;]}for(var C in this.defaultOptions){if(this.defaultOptions.hasOwnProperty(C)&amp;&amp;A.isUndefined(G.inputParams[C])){G.inputParams[C]=this.defaultOptions[C]}}return G},formFromInstance:function(E){if(!E||!E[&quot;$schema&quot;]){throw new Error(&quot;Invalid json schema instance object. Object must have a '$schema' property.&quot;)}var B=this.schemaToInputEx(E[&quot;$schema&quot;]);for(var C=0;C&lt;B.fields.length;C++){var D=B.fields[C].inputParams.name;B.fields[C].inputParams.value=E[D]}return B}}})();(function(){var B=YAHOO.util.Dom,C=YAHOO.lang,A=YAHOO.util;inputEx.Field=function(D){this.setOptions(D||{});this.render();this.updatedEvt=new A.CustomEvent(&quot;updated&quot;,this);this.initEvents();if(!C.isUndefined(this.options.value)){this.setValue(this.options.value,false)}if(D.parentEl){if(C.isString(D.parentEl)){B.get(D.parentEl).appendChild(this.getEl())}else{D.parentEl.appendChild(this.getEl())}}};inputEx.Field.prototype={setOptions:function(D){this.options={};this.options.name=D.name;this.options.value=D.value;this.options.id=D.id||B.generateId();this.options.label=D.label;this.options.description=D.description;this.options.messages={};this.options.messages.required=(D.messages&amp;&amp;D.messages.required)?D.messages.required:inputEx.messages.required;this.options.messages.invalid=(D.messages&amp;&amp;D.messages.invalid)?D.messages.invalid:inputEx.messages.invalid;this.options.className=D.className?D.className:&quot;inputEx-Field&quot;;this.options.required=C.isUndefined(D.required)?false:D.required;this.options.showMsg=C.isUndefined(D.showMsg)?false:D.showMsg},render:function(){this.divEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-fieldWrapper&quot;});if(this.options.id){this.divEl.id=this.options.id}if(this.options.required){B.addClass(this.divEl,&quot;inputEx-required&quot;)}if(this.options.label){this.labelDiv=inputEx.cn(&quot;div&quot;,{id:this.divEl.id+&quot;-label&quot;,className:&quot;inputEx-label&quot;,&quot;for&quot;:this.divEl.id+&quot;-field&quot;});this.labelEl=inputEx.cn(&quot;label&quot;);this.labelEl.appendChild(document.createTextNode(this.options.label));this.labelDiv.appendChild(this.labelEl);this.divEl.appendChild(this.labelDiv)}this.fieldContainer=inputEx.cn(&quot;div&quot;,{className:this.options.className});this.renderComponent();if(this.options.description){this.fieldContainer.appendChild(inputEx.cn(&quot;div&quot;,{id:this.divEl.id+&quot;-desc&quot;,className:&quot;inputEx-description&quot;},null,this.options.description))}this.divEl.appendChild(this.fieldContainer);this.divEl.appendChild(inputEx.cn(&quot;div&quot;,null,{clear:&quot;both&quot;},&quot; &quot;))},fireUpdatedEvt:function(){var D=this;setTimeout(function(){D.updatedEvt.fire(D.getValue(),D)},50)},renderComponent:function(){},getEl:function(){return this.divEl},initEvents:function(){},getValue:function(){},setValue:function(E,D){this.setClassFromState();if(D!==false){this.fireUpdatedEvt()}},setClassFromState:function(){var D;if(this.previousState){D=&quot;inputEx-&quot;+((this.previousState==inputEx.stateRequired)?inputEx.stateInvalid:this.previousState);B.removeClass(this.divEl,D)}var E=this.getState();if(!(E==inputEx.stateEmpty&amp;&amp;B.hasClass(this.divEl,&quot;inputEx-focused&quot;))){D=&quot;inputEx-&quot;+((E==inputEx.stateRequired)?inputEx.stateInvalid:E);B.addClass(this.divEl,D)}if(this.options.showMsg){this.displayMessage(this.getStateString(E))}this.previousState=E},getStateString:function(D){if(D==inputEx.stateRequired){return this.options.messages.required}else{if(D==inputEx.stateInvalid){return this.options.messages.invalid}else{return&quot;&quot;}}},getState:function(){if(this.isEmpty()){return this.options.required?inputEx.stateRequired:inputEx.stateEmpty}return this.validate()?inputEx.stateValid:inputEx.stateInvalid},validate:function(){return true},onFocus:function(E){var D=this.getEl();B.removeClass(D,&quot;inputEx-empty&quot;);B.addClass(D,&quot;inputEx-focused&quot;)},onBlur:function(D){B.removeClass(this.getEl(),&quot;inputEx-focused&quot;);this.setClassFromState()},onChange:function(D){this.fireUpdatedEvt()},close:function(){},disable:function(){},enable:function(){},focus:function(){},destroy:function(){var D=this.getEl();this.updatedEvt.unsubscribeAll();if(B.inDocument(D)){D.parentNode.removeChild(D)}A.Event.purgeElement(D,true)},displayMessage:function(F){if(!this.fieldContainer){return }if(!this.msgEl){this.msgEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-message&quot;});try{var D=this.divEl.getElementsByTagName(&quot;div&quot;);this.divEl.insertBefore(this.msgEl,D[(D.length-1&gt;=0)?D.length-1:0])}catch(E){alert(E)}}this.msgEl.innerHTML=F},show:function(){this.divEl.style.display=&quot;&quot;},hide:function(){this.divEl.style.display=&quot;none&quot;},clear:function(D){this.setValue(C.isUndefined(this.options.value)?&quot;&quot;:this.options.value,D)},isEmpty:function(){return this.getValue()===&quot;&quot;}};inputEx.Field.groupOptions=[{type:&quot;string&quot;,inputParams:{label:&quot;Label&quot;,name:&quot;label&quot;,value:&quot;&quot;}},{type:&quot;string&quot;,inputParams:{label:&quot;Name&quot;,name:&quot;name&quot;,value:&quot;&quot;}},{type:&quot;string&quot;,inputParams:{label:&quot;Description&quot;,name:&quot;description&quot;,value:&quot;&quot;}},{type:&quot;boolean&quot;,inputParams:{label:&quot;Required?&quot;,name:&quot;required&quot;,value:false}},{type:&quot;boolean&quot;,inputParams:{label:&quot;Show messages&quot;,name:&quot;showMsg&quot;,value:false}}]})();(function(){var C=YAHOO.lang,B=YAHOO.util.Dom,A=YAHOO.util.Event;inputEx.Group=function(D){inputEx.Group.superclass.constructor.call(this,D);if(!this.options.value){this.runFieldsInteractions()}};C.extend(inputEx.Group,inputEx.Field,{setOptions:function(D){this.options={};this.options.className=D.className||&quot;inputEx-Group&quot;;this.options.fields=D.fields;this.options.id=D.id;this.options.name=D.name;this.options.value=D.value;this.options.flatten=D.flatten;this.options.legend=D.legend||&quot;&quot;;this.inputConfigs=D.fields;this.options.collapsible=C.isUndefined(D.collapsible)?false:D.collapsible;this.options.collapsed=C.isUndefined(D.collapsed)?false:D.collapsed;this.options.disabled=C.isUndefined(D.disabled)?false:D.disabled;this.inputs=[];this.inputsNames={}},render:function(){this.divEl=inputEx.cn(&quot;div&quot;,{className:this.options.className});if(this.options.id){this.divEl.id=this.options.id}this.renderFields(this.divEl);if(this.options.disabled){this.disable()}},renderFields:function(F){this.fieldset=inputEx.cn(&quot;fieldset&quot;);this.legend=inputEx.cn(&quot;legend&quot;,{className:&quot;inputEx-Group-legend&quot;});if(this.options.collapsible){var H=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-Group-collapseImg&quot;},null,&quot; &quot;);this.legend.appendChild(H);inputEx.sn(this.fieldset,{className:&quot;inputEx-Expanded&quot;})}if(!C.isUndefined(this.options.legend)&amp;&amp;this.options.legend!==&quot;&quot;){this.legend.appendChild(document.createTextNode(&quot; &quot;+this.options.legend))}if(this.options.collapsible||(!C.isUndefined(this.options.legend)&amp;&amp;this.options.legend!==&quot;&quot;)){this.fieldset.appendChild(this.legend)}for(var E=0;E&lt;this.options.fields.length;E++){var D=this.options.fields[E];if(!D){throw new Error(&quot;inputEx.Form: One of the provided fields is undefined ! (check trailing comma)&quot;)}var G=this.renderField(D);this.fieldset.appendChild(G.getEl())}if(this.options.collapsed){this.toggleCollapse()}F.appendChild(this.fieldset)},renderField:function(E){var D=inputEx.buildField(E);this.inputs.push(D);if(D.options.name){this.inputsNames[D.options.name]=D}if(!this.hasInteractions&amp;&amp;E.interactions){this.hasInteractions=true}D.updatedEvt.subscribe(this.onChange,this,true);return D},initEvents:function(){if(this.options.collapsible){A.addListener(this.legend,&quot;click&quot;,this.toggleCollapse,this,true)}},toggleCollapse:function(){if(B.hasClass(this.fieldset,&quot;inputEx-Expanded&quot;)){B.replaceClass(this.fieldset,&quot;inputEx-Expanded&quot;,&quot;inputEx-Collapsed&quot;)}else{B.replaceClass(this.fieldset,&quot;inputEx-Collapsed&quot;,&quot;inputEx-Expanded&quot;)}},validate:function(){var E=true;for(var F=0;F&lt;this.inputs.length;F++){var D=this.inputs[F];D.setClassFromState();var G=D.getState();if(G==inputEx.stateRequired||G==inputEx.stateInvalid){E=false}}return E},enable:function(){for(var D=0;D&lt;this.inputs.length;D++){this.inputs[D].enable()}},disable:function(){for(var D=0;D&lt;this.inputs.length;D++){this.inputs[D].disable()}},setValue:function(G,E){if(!G){return }for(var F=0;F&lt;this.inputs.length;F++){var H=this.inputs[F];var D=H.options.name;if(D&amp;&amp;!C.isUndefined(G[D])){H.setValue(G[D],false)}else{H.clear(false)}}this.runFieldsInteractions();if(E!==false){this.fireUpdatedEvt()}},getValue:function(){var F={};for(var E=0;E&lt;this.inputs.length;E++){var D=this.inputs[E].getValue();if(this.inputs[E].options.name){if(this.inputs[E].options.flatten&amp;&amp;C.isObject(D)){C.augmentObject(F,D)}else{F[this.inputs[E].options.name]=D}}}return F},close:function(){for(var D=0;D&lt;this.inputs.length;D++){this.inputs[D].close()}},focus:function(){if(this.inputs.length&gt;0){this.inputs[0].focus()}},getFieldByName:function(D){if(!this.inputsNames.hasOwnProperty(D)){return null}return this.inputsNames[D]},onChange:function(E,F){var G=F[0];var D=F[1];this.runInteractions(D,G);this.fireUpdatedEvt()},runAction:function(D,F){var E=this.getFieldByName(D.name);if(YAHOO.lang.isFunction(E[D.action])){E[D.action].call(E)}else{if(YAHOO.lang.isFunction(D.action)){D.action.call(E,F)}else{throw new Error(&quot;action &quot;+D.action+&quot; is not a valid action for field &quot;+D.name)}}},runInteractions:function(E,J){var G=inputEx.indexOf(E,this.inputs);var I=this.options.fields[G];if(YAHOO.lang.isUndefined(I.interactions)){return }var K=I.interactions;for(var H=0;H&lt;K.length;H++){var D=K[H];if(D.valueTrigger===J){for(var F=0;F&lt;D.actions.length;F++){this.runAction(D.actions[F],J)}}}},runFieldsInteractions:function(){if(this.hasInteractions){for(var D=0;D&lt;this.inputs.length;D++){this.runInteractions(this.inputs[D],this.inputs[D].getValue())}}},clear:function(D){for(var E=0;E&lt;this.inputs.length;E++){this.inputs[E].clear(false)}if(D!==false){this.fireUpdatedEvt()}}});inputEx.registerType(&quot;group&quot;,inputEx.Group,[{type:&quot;string&quot;,inputParams:{label:&quot;Name&quot;,name:&quot;name&quot;,value:&quot;&quot;}},{type:&quot;string&quot;,inputParams:{label:&quot;Legend&quot;,name:&quot;legend&quot;}},{type:&quot;boolean&quot;,inputParams:{label:&quot;Collapsible&quot;,name:&quot;collapsible&quot;,value:false}},{type:&quot;boolean&quot;,inputParams:{label:&quot;Collapsed&quot;,name:&quot;collapsed&quot;,value:false}},{type:&quot;list&quot;,inputParams:{label:&quot;Fields&quot;,name:&quot;fields&quot;,elementType:{type:&quot;type&quot;}}}],true)})();(function(){var B=YAHOO.util,D=YAHOO.lang,A=YAHOO.util.Event,C=B.Dom;inputEx.Form=function(E){inputEx.Form.superclass.constructor.call(this,E)};D.extend(inputEx.Form,inputEx.Group,{setOptions:function(E){inputEx.Form.superclass.setOptions.call(this,E);this.buttons=[];this.options.buttons=E.buttons||[];this.options.action=E.action;this.options.method=E.method;this.options.className=E.className||&quot;inputEx-Group&quot;;this.options.autocomplete=D.isUndefined(E.autocomplete)?true:E.autocomplete;this.options.enctype=E.enctype;if(E.ajax){this.options.ajax={};this.options.ajax.method=E.ajax.method||&quot;POST&quot;;this.options.ajax.uri=E.ajax.uri||&quot;default.php&quot;;this.options.ajax.callback=E.ajax.callback||{};this.options.ajax.callback.scope=E.ajax.callback.scope||this;this.options.ajax.showMask=D.isUndefined(E.ajax.showMask)?false:E.ajax.showMask;this.options.ajax.contentType=E.ajax.contentType||&quot;application/json&quot;;this.options.ajax.wrapObject=E.ajax.wrapObject}if(D.isFunction(E.onSubmit)){this.options.onSubmit=E.onSubmit}},render:function(){this.divEl=inputEx.cn(&quot;div&quot;,{className:this.options.className});if(this.options.id){this.divEl.id=this.options.id}this.form=inputEx.cn(&quot;form&quot;,{method:this.options.method||&quot;POST&quot;,action:this.options.action||&quot;&quot;,className:this.options.className||&quot;inputEx-Form&quot;});this.divEl.appendChild(this.form);if(this.options.enctype){this.form.setAttribute(&quot;enctype&quot;,this.options.enctype)}if(!this.options.autocomplete){this.form.setAttribute(&quot;autocomplete&quot;,&quot;off&quot;)}if(this.options.formName){this.form.name=this.options.formName}this.renderFields(this.form);this.renderButtons();if(this.options.disabled){this.disable()}},renderButtons:function(){this.buttonDiv=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-Form-buttonBar&quot;});var G,E;for(var F=0;F&lt;this.options.buttons.length;F++){G=this.options.buttons[F];if(!G){throw new Error(&quot;inputEx.Form: One of the provided button is undefined ! (check trailing comma)&quot;)}E=inputEx.cn(&quot;input&quot;,{type:G.type,value:G.value});if(G.onClick){E.onclick=G.onClick}this.buttons.push(E);this.buttonDiv.appendChild(E)}this.form.appendChild(this.buttonDiv)},initEvents:function(){inputEx.Form.superclass.initEvents.call(this);A.addListener(this.form,&quot;submit&quot;,this.options.onSubmit||this.onSubmit,this,true)},onSubmit:function(E){if(!this.validate()){A.stopEvent(E);return }if(this.options.ajax){A.stopEvent(E);this.asyncRequest()}},asyncRequest:function(){if(this.options.ajax.showMask){this.showMask()}var M=this.getValue();var H=D.isFunction(this.options.ajax.uri)?this.options.ajax.uri(M):this.options.ajax.uri;var E=D.isFunction(this.options.ajax.method)?this.options.ajax.method(M):this.options.ajax.method;var G=null;if(this.options.ajax.contentType==&quot;application/x-www-form-urlencoded&quot;&amp;&amp;E!=&quot;PUT&quot;){var J=[];for(var L in M){if(M.hasOwnProperty(L)){var K=(this.options.ajax.wrapObject?this.options.ajax.wrapObject+&quot;[&quot;:&quot;&quot;)+L+(this.options.ajax.wrapObject?&quot;]&quot;:&quot;&quot;);J.push(K+&quot;=&quot;+window.encodeURIComponent(M[L]))}}G=J.join(&quot;&amp;&quot;)}else{YAHOO.util.Connect.initHeader(&quot;Content-Type&quot;,&quot;application/json&quot;,false);if(E==&quot;PUT&quot;){var I=this.getValue();var F;if(this.options.ajax.wrapObject){F={};F[this.options.ajax.wrapObject]=I}else{F=I}G=D.JSON.stringify(F)}else{G=&quot;value=&quot;+window.encodeURIComponent(D.JSON.stringify(this.getValue()))}}B.Connect.asyncRequest(E,H,{success:function(N){if(this.options.ajax.showMask){this.hideMask()}if(D.isFunction(this.options.ajax.callback.success)){this.options.ajax.callback.success.call(this.options.ajax.callback.scope,N)}},failure:function(N){if(this.options.ajax.showMask){this.hideMask()}if(D.isFunction(this.options.ajax.callback.failure)){this.options.ajax.callback.failure.call(this.options.ajax.callback.scope,N)}},scope:this},G)},renderMask:function(){if(this.maskRendered){return }C.setStyle(this.divEl,&quot;position&quot;,&quot;relative&quot;);if(YAHOO.env.ua.ie){C.setStyle(this.divEl,&quot;zoom&quot;,1)}this.formMask=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-Form-Mask&quot;},{display:&quot;none&quot;,width:this.divEl.offsetWidth+&quot;px&quot;,height:this.divEl.offsetHeight+&quot;px&quot;},&quot;&lt;div class='inputEx-Form-Mask-bg'/&gt;&lt;center&gt;&lt;br/&gt;&lt;div class='inputEx-Form-Mask-spinner'&gt;&lt;/div&gt;&lt;br /&gt;&lt;span&gt;&quot;+inputEx.messages.ajaxWait+&quot;&lt;/span&gt;&lt;/div&gt;&quot;);this.divEl.appendChild(this.formMask);this.maskRendered=true},showMask:function(){this.renderMask();this.toggleSelectsInIE(false);this.formMask.style.display=&quot;&quot;},hideMask:function(){this.toggleSelectsInIE(true);this.formMask.style.display=&quot;none&quot;},toggleSelectsInIE:function(E){if(!!YAHOO.env.ua.ie&amp;&amp;YAHOO.env.ua.ie&lt;7){var G=!!E?YAHOO.util.Dom.removeClass:YAHOO.util.Dom.addClass;var F=this;YAHOO.util.Dom.getElementsBy(function(){return true},&quot;select&quot;,this.divEl,function(H){G.call(F,H,&quot;inputEx-hidden&quot;)})}},enable:function(){inputEx.Form.superclass.enable.call(this);for(var E=0;E&lt;this.buttons.length;E++){this.buttons[E].disabled=false}},disable:function(){inputEx.Form.superclass.disable.call(this);for(var E=0;E&lt;this.buttons.length;E++){this.buttons[E].disabled=true}}});inputEx.messages.ajaxWait=&quot;Please wait...&quot;;inputEx.registerType(&quot;form&quot;,inputEx.Form,[{type:&quot;list&quot;,inputParams:{label:&quot;Buttons&quot;,name:&quot;buttons&quot;,elementType:{type:&quot;group&quot;,inputParams:{fields:[{inputParams:{label:&quot;Label&quot;,name:&quot;value&quot;}},{type:&quot;select&quot;,inputParams:{label:&quot;Type&quot;,name:&quot;type&quot;,selectValues:[&quot;button&quot;,&quot;submit&quot;]}}]}}}}])})();(function(){var B=YAHOO.lang,A=YAHOO.util.Dom;inputEx.CombineField=function(C){inputEx.CombineField.superclass.constructor.call(this,C)};B.extend(inputEx.CombineField,inputEx.Group,{setOptions:function(C){inputEx.CombineField.superclass.setOptions.call(this,C);this.options.label=C.label;this.options.className=C.className?C.className:&quot;inputEx-CombineField&quot;;this.options.separators=C.separators},render:function(){this.divEl=inputEx.cn(&quot;div&quot;,{className:this.options.className});if(this.options.id){this.divEl.id=this.options.id}if(this.options.label){this.labelDiv=inputEx.cn(&quot;div&quot;,{id:this.divEl.id+&quot;-label&quot;,className:&quot;inputEx-label&quot;,&quot;for&quot;:this.divEl.id+&quot;-field&quot;});this.labelEl=inputEx.cn(&quot;label&quot;);this.labelEl.appendChild(document.createTextNode(this.options.label));this.labelDiv.appendChild(this.labelEl);this.divEl.appendChild(this.labelDiv)}this.renderFields(this.divEl);if(this.options.disabled){this.disable()}this.divEl.appendChild(inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-clear-div&quot;},null,&quot; &quot;))},renderFields:function(E){this.appendSeparator(0);if(!this.options.fields){return }var D,I=this.options.fields.length,F,H,G,C;for(D=0;D&lt;I;D++){F=this.options.fields[D];if(this.options.required){F.required=true}H=this.renderField(F);G=H.getEl();C=F.type;if(C!=&quot;group&quot;&amp;&amp;C!=&quot;form&quot;){H.divEl.removeChild(G.childNodes[G.childNodes.length-1])}A.setStyle(G,&quot;float&quot;,&quot;left&quot;);this.divEl.appendChild(G);this.appendSeparator(D+1)}},renderField:function(C){if(this.options.required){if(!C.inputParams){C.inputParams={}}C.inputParams.required=true}return inputEx.CombineField.superclass.renderField.call(this,C)},appendSeparator:function(D){if(this.options.separators&amp;&amp;this.options.separators[D]){var C=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-CombineField-separator&quot;},null,this.options.separators[D]);this.divEl.appendChild(C)}},setValue:function(C,D){if(!C){return }var E,F=this.inputs.length;for(E=0;E&lt;F;E++){this.inputs[E].setValue(C[E],false)}this.runFieldsInteractions();if(D!==false){this.fireUpdatedEvt()}},getValue:function(){var C=[],D,E=this.inputs.length;for(D=0;D&lt;E;D++){C.push(this.inputs[D].getValue())}return C}});inputEx.registerType(&quot;combine&quot;,inputEx.CombineField,[{type:&quot;list&quot;,inputParams:{name:&quot;fields&quot;,label:&quot;Elements&quot;,required:true,elementType:{type:&quot;type&quot;}}},{type:&quot;list&quot;,inputParams:{name:&quot;separators&quot;,label:&quot;Separators&quot;,required:true}}])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.StringField=function(D){inputEx.StringField.superclass.constructor.call(this,D);if(this.options.typeInvite){this.updateTypeInvite()}};C.extend(inputEx.StringField,inputEx.Field,{setOptions:function(D){inputEx.StringField.superclass.setOptions.call(this,D);this.options.regexp=D.regexp;this.options.size=D.size;this.options.maxLength=D.maxLength;this.options.minLength=D.minLength;this.options.typeInvite=D.typeInvite;this.options.readonly=D.readonly},renderComponent:function(){this.wrapEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-StringField-wrapper&quot;});var D={};D.type=&quot;text&quot;;D.id=this.divEl.id?this.divEl.id+&quot;-field&quot;:YAHOO.util.Dom.generateId();if(this.options.size){D.size=this.options.size}if(this.options.name){D.name=this.options.name}if(this.options.readonly){D.readonly=&quot;readonly&quot;}if(this.options.maxLength){D.maxLength=this.options.maxLength}this.el=inputEx.cn(&quot;input&quot;,D);this.wrapEl.appendChild(this.el);this.fieldContainer.appendChild(this.wrapEl)},initEvents:function(){A.addListener(this.el,&quot;change&quot;,this.onChange,this,true);if(YAHOO.env.ua.ie){var D=this.el;new YAHOO.util.KeyListener(this.el,{keys:[13]},{fn:function(){D.blur();D.focus()}}).enable()}A.addFocusListener(this.el,this.onFocus,this,true);A.addBlurListener(this.el,this.onBlur,this,true);A.addListener(this.el,&quot;keypress&quot;,this.onKeyPress,this,true);A.addListener(this.el,&quot;keyup&quot;,this.onKeyUp,this,true)},getValue:function(){return(this.options.typeInvite&amp;&amp;this.el.value==this.options.typeInvite)?&quot;&quot;:this.el.value},setValue:function(E,D){this.el.value=(C.isNull(E)||C.isUndefined(E))?&quot;&quot;:E;inputEx.StringField.superclass.setValue.call(this,E,D)},validate:function(){var E=this.getValue();if(E===&quot;&quot;){return !this.options.required}var D=true;if(this.options.regexp){D=D&amp;&amp;E.match(this.options.regexp)}if(this.options.minLength){D=D&amp;&amp;E.length&gt;=this.options.minLength}return D},disable:function(){this.el.disabled=true},enable:function(){this.el.disabled=false},focus:function(){if(!!this.el&amp;&amp;!C.isUndefined(this.el.focus)){this.el.focus()}},getStateString:function(D){if(D==inputEx.stateInvalid&amp;&amp;this.options.minLength&amp;&amp;this.el.value.length&lt;this.options.minLength){return inputEx.messages.stringTooShort[0]+this.options.minLength+inputEx.messages.stringTooShort[1]}return inputEx.StringField.superclass.getStateString.call(this,D)},setClassFromState:function(){inputEx.StringField.superclass.setClassFromState.call(this);if(this.options.typeInvite){this.updateTypeInvite()}},updateTypeInvite:function(){if(!B.hasClass(this.divEl,&quot;inputEx-focused&quot;)){if(this.isEmpty()){B.addClass(this.divEl,&quot;inputEx-typeInvite&quot;);this.el.value=this.options.typeInvite}else{B.removeClass(this.divEl,&quot;inputEx-typeInvite&quot;)}}else{if(B.hasClass(this.divEl,&quot;inputEx-typeInvite&quot;)){this.el.value=&quot;&quot;;this.previousState=null;B.removeClass(this.divEl,&quot;inputEx-typeInvite&quot;)}}},onFocus:function(D){inputEx.StringField.superclass.onFocus.call(this,D);if(this.options.typeInvite){this.updateTypeInvite()}},onKeyPress:function(D){},onKeyUp:function(D){}});inputEx.messages.stringTooShort=[&quot;This field should contain at least &quot;,&quot; numbers or characters&quot;];inputEx.registerType(&quot;string&quot;,inputEx.StringField,[{type:&quot;string&quot;,inputParams:{label:&quot;Type invite&quot;,name:&quot;typeInvite&quot;,value:&quot;&quot;}},{type:&quot;integer&quot;,inputParams:{label:&quot;Size&quot;,name:&quot;size&quot;,value:20}},{type:&quot;integer&quot;,inputParams:{label:&quot;Min. length&quot;,name:&quot;minLength&quot;,value:0}}])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.AutoComplete=function(D){inputEx.AutoComplete.superclass.constructor.call(this,D)};C.extend(inputEx.AutoComplete,inputEx.StringField,{setOptions:function(D){inputEx.AutoComplete.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-AutoComplete&quot;;this.options.datasource=D.datasource;this.options.autoComp=D.autoComp;this.options.returnValue=D.returnValue},initEvents:function(){inputEx.AutoComplete.superclass.initEvents.call(this);A.removeBlurListener(this.el,this.onBlur)},renderComponent:function(){this.wrapEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-StringField-wrapper&quot;});var D={type:&quot;text&quot;,id:YAHOO.util.Dom.generateId()};if(this.options.size){D.size=this.options.size}if(this.options.readonly){D.readonly=&quot;readonly&quot;}if(this.options.maxLength){D.maxLength=this.options.maxLength}this.el=inputEx.cn(&quot;input&quot;,D);var E={type:&quot;hidden&quot;,value:&quot;&quot;};if(this.options.name){E.name=this.options.name}this.hiddenEl=inputEx.cn(&quot;input&quot;,E);this.wrapEl.appendChild(this.el);this.wrapEl.appendChild(this.hiddenEl);this.fieldContainer.appendChild(this.wrapEl);this.listEl=inputEx.cn(&quot;div&quot;,{id:B.generateId()});this.fieldContainer.appendChild(this.listEl);A.onAvailable([this.el,this.listEl],this.buildAutocomplete,this,true)},buildAutocomplete:function(){if(!this._nElementsReady){this._nElementsReady=0}this._nElementsReady++;if(this._nElementsReady!=2){return }this.oAutoComp=new YAHOO.widget.AutoComplete(this.el.id,this.listEl.id,this.options.datasource,this.options.autoComp);this.oAutoComp.itemSelectEvent.subscribe(this.itemSelectHandler,this,true);this.oAutoComp.textboxBlurEvent.subscribe(this.onBlur,this,true)},itemSelectHandler:function(F,E){var D=E[2];this.setValue(this.options.returnValue?this.options.returnValue(D):D[0])},onChange:function(D){this.setClassFromState();C.later(50,this,function(){if(this.el.value==&quot;&quot;){this.setValue(&quot;&quot;)}})},setValue:function(E,D){this.hiddenEl.value=E;this.setClassFromState();if(D!==false){this.fireUpdatedEvt()}},getValue:function(){return this.hiddenEl.value}});inputEx.registerType(&quot;autocomplete&quot;,inputEx.AutoComplete)})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.CheckBox=function(D){inputEx.CheckBox.superclass.constructor.call(this,D)};C.extend(inputEx.CheckBox,inputEx.Field,{setOptions:function(D){inputEx.CheckBox.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-CheckBox&quot;;this.options.rightLabel=D.rightLabel||&quot;&quot;;this.sentValues=D.sentValues||[true,false];this.options.sentValues=this.sentValues;this.checkedValue=this.sentValues[0];this.uncheckedValue=this.sentValues[1]},renderComponent:function(){var D=this.divEl.id?this.divEl.id+&quot;-field&quot;:YAHOO.util.Dom.generateId();this.el=inputEx.cn(&quot;input&quot;,{id:D,type:&quot;checkbox&quot;,checked:(this.options.checked===false)?false:true});this.fieldContainer.appendChild(this.el);this.rightLabelEl=inputEx.cn(&quot;label&quot;,{&quot;for&quot;:D,className:&quot;inputEx-CheckBox-rightLabel&quot;},null,this.options.rightLabel);this.fieldContainer.appendChild(this.rightLabelEl);this.hiddenEl=inputEx.cn(&quot;input&quot;,{type:&quot;hidden&quot;,name:this.options.name||&quot;&quot;,value:this.el.checked?this.checkedValue:this.uncheckedValue});this.fieldContainer.appendChild(this.hiddenEl)},initEvents:function(){A.addListener(this.el,&quot;change&quot;,this.onChange,this,true);if(YAHOO.env.ua.ie){A.addListener(this.el,&quot;click&quot;,function(){YAHOO.lang.later(10,this,this.fireUpdatedEvt)},this,true)}A.addFocusListener(this.el,this.onFocus,this,true);A.addBlurListener(this.el,this.onBlur,this,true)},onChange:function(D){this.hiddenEl.value=this.el.checked?this.checkedValue:this.uncheckedValue;if(!YAHOO.env.ua.ie){inputEx.CheckBox.superclass.onChange.call(this,D)}},getValue:function(){return this.el.checked?this.checkedValue:this.uncheckedValue},setValue:function(E,D){if(E===this.checkedValue){this.hiddenEl.value=E;this.el.checked=true}else{this.hiddenEl.value=E;this.el.checked=false}inputEx.CheckBox.superclass.setValue.call(this,E,D)},disable:function(){this.el.disabled=true},enable:function(){this.el.disabled=false}});inputEx.registerType(&quot;boolean&quot;,inputEx.CheckBox,[{type:&quot;string&quot;,inputParams:{label:&quot;Right Label&quot;,name:&quot;rightLabel&quot;}}])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.ColorField=function(D){inputEx.ColorField.superclass.constructor.call(this,D)};C.extend(inputEx.ColorField,inputEx.Field,{setOptions:function(D){inputEx.ColorField.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-ColorField inputEx-PickerField&quot;;this.options.palette=D.palette;this.options.colors=D.colors;if(D.ratio){this.options.ratio=D.ratio}if(D.cellPerLine){this.options.cellPerLine=D.cellPerLine}if(D.overlayPadding){this.options.overlayPadding=D.overlayPadding}if(D.cellHeight){this.options.cellHeight=D.cellHeight}if(D.cellWidth){this.options.cellWidth=D.cellWidth}if(D.cellMargin){this.options.cellMargin=D.cellMargin}},renderComponent:function(){this.el=inputEx.cn(&quot;input&quot;,{type:&quot;hidden&quot;,name:this.options.name||&quot;&quot;,value:this.options.value||&quot;#DD7870&quot;});this.colorEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-ColorField-button&quot;},{backgroundColor:this.el.value});this.wrapEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-PickerField-wrapper&quot;});this.wrapEl.appendChild(this.el);this.wrapEl.appendChild(this.colorEl);this.oOverlay=new YAHOO.widget.Overlay(B.generateId(),{visible:false});this.oOverlay.setBody(&quot; &quot;);this.oOverlay.body.id=B.generateId();this.button=new YAHOO.widget.Button({type:&quot;menu&quot;,menu:this.oOverlay,label:&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;});this.button.appendTo(this.wrapEl);this.oOverlay.render(this.wrapEl);B.setStyle(this.oOverlay.body.parentNode,&quot;position&quot;,&quot;absolute&quot;);A.addListener(this.colorEl,&quot;mousedown&quot;,function(D){if(!this.oOverlay.cfg.getProperty(&quot;visible&quot;)){A.stopEvent(D);this.renderPalette();this.button._showMenu()}},this,true);this.button.on(&quot;mousedown&quot;,this.renderPalette,this,true);this.fieldContainer.appendChild(this.wrapEl)},renderPalette:function(){if(this.paletteRendered){return }var H=this.options.palette||1;this.colors=this.options.colors||this.setDefaultColors(H);this.length=this.colors.length;this.ratio=this.options.ratio||[16,9];this.cellPerLine=this.options.cellPerLine||Math.ceil(Math.sqrt(this.length*this.ratio[0]/this.ratio[1]));this.cellPerColumn=Math.ceil(this.length/this.cellPerLine);this.overlayPadding=this.options.overlayPadding||7;this.cellWidth=this.options.cellWidth||17;this.cellHeight=this.options.cellHeight||17;this.cellMargin=this.options.cellMargin||4;var G=document.getElementById(this.oOverlay.body.id);var E=this.renderColorGrid();G.appendChild(E);var F=(this.cellWidth+2*this.cellMargin)*this.cellPerLine+(YAHOO.env.ua.ie==6?3*this.overlayPadding:0);var D=(this.cellHeight+2*this.cellMargin)*this.cellPerColumn+(YAHOO.env.ua.ie==6?3*this.overlayPadding:0);B.setStyle(G,&quot;width&quot;,F+&quot;px&quot;);B.setStyle(G,&quot;height&quot;,D+&quot;px&quot;);B.setStyle(G,&quot;padding&quot;,this.overlayPadding+&quot;px&quot;);this.button.unsubscribe(&quot;mousedown&quot;,this.renderPalette);this.paletteRendered=true},setDefaultColors:function(D){return inputEx.ColorField.palettes[D-1]},renderColorGrid:function(){var E=inputEx.cn(&quot;div&quot;);for(var D=0;D&lt;this.length;D++){var F=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-ColorField-square&quot;},{backgroundColor:this.colors[D],width:this.cellWidth+&quot;px&quot;,height:this.cellHeight+&quot;px&quot;,margin:this.cellMargin+&quot;px&quot;});A.addListener(F,&quot;mousedown&quot;,this.onColorClick,this,true);E.appendChild(F)}return E},onColorClick:function(G){var F=A.getTarget(G);A.stopEvent(G);this.oOverlay.hide();var E=B.getStyle(F,&quot;background-color&quot;);var D=inputEx.ColorField.ensureHexa(E);this.setValue(D)},setValue:function(E,D){this.el.value=E;B.setStyle(this.colorEl,&quot;background-color&quot;,this.el.value);inputEx.ColorField.superclass.setValue.call(this,E,D)},getValue:function(){return this.el.value},close:function(){this.oOverlay.hide()}});inputEx.messages.selectColor=&quot;Select a color :&quot;;inputEx.ColorField.palettes=[[&quot;#FFEA99&quot;,&quot;#FFFF66&quot;,&quot;#FFCC99&quot;,&quot;#FFCAB2&quot;,&quot;#FF99AD&quot;,&quot;#FFD6FF&quot;,&quot;#FF6666&quot;,&quot;#E8EEF7&quot;,&quot;#ADC2FF&quot;,&quot;#ADADFF&quot;,&quot;#CCFFFF&quot;,&quot;#D6EAAD&quot;,&quot;#B5EDBC&quot;,&quot;#CCFF99&quot;],[&quot;#DEDFDE&quot;,&quot;#FFFF6B&quot;,&quot;#EFCB7B&quot;,&quot;#FFBE94&quot;,&quot;#FFB6B5&quot;,&quot;#A5E3FF&quot;,&quot;#A5CBFF&quot;,&quot;#99ABEF&quot;,&quot;#EFB2E7&quot;,&quot;#FF9AAD&quot;,&quot;#94E7C6&quot;,&quot;#A5FFD6&quot;,&quot;#CEFFA5&quot;,&quot;#E7EF9C&quot;,&quot;#FFE38C&quot;],[&quot;#000000&quot;,&quot;#993300&quot;,&quot;#333300&quot;,&quot;#003300&quot;,&quot;#003366&quot;,&quot;#000080&quot;,&quot;#333399&quot;,&quot;#333333&quot;,&quot;#800000&quot;,&quot;#FF6600&quot;,&quot;#808000&quot;,&quot;#008000&quot;,&quot;#008080&quot;,&quot;#0000FF&quot;,&quot;#666699&quot;,&quot;#808080&quot;,&quot;#FF0000&quot;,&quot;#FF9900&quot;,&quot;#99CC00&quot;,&quot;#339966&quot;,&quot;#33CCCC&quot;,&quot;#3366FF&quot;,&quot;#800080&quot;,&quot;#969696&quot;,&quot;#FF00FF&quot;,&quot;#FFCC00&quot;,&quot;#FFFF00&quot;,&quot;#00FF00&quot;,&quot;#00FFFF&quot;,&quot;#00CCFF&quot;,&quot;#993366&quot;,&quot;#C0C0C0&quot;,&quot;#FF99CC&quot;,&quot;#FFCC99&quot;,&quot;#FFFF99&quot;,&quot;#CCFFCC&quot;,&quot;#CCFFFF&quot;,&quot;#99CCFF&quot;,&quot;#CC99FF&quot;,&quot;#F0F0F0&quot;],[&quot;#FFFFCC&quot;,&quot;#FFFF99&quot;,&quot;#CCFFCC&quot;,&quot;#CCFF66&quot;,&quot;#99FFCC&quot;,&quot;#CCFFFF&quot;,&quot;#66CCCC&quot;,&quot;#CCCCFF&quot;,&quot;#99CCFF&quot;,&quot;#9999FF&quot;,&quot;#6666CC&quot;,&quot;#9966CC&quot;,&quot;#CC99FF&quot;,&quot;#FFCCFF&quot;,&quot;#FF99FF&quot;,&quot;#CC66CC&quot;,&quot;#FFCCCC&quot;,&quot;#FF99CC&quot;,&quot;#FFCCCC&quot;,&quot;#CC6699&quot;,&quot;#FF9999&quot;,&quot;#FF9966&quot;,&quot;#FFCC99&quot;,&quot;#FFFFCC&quot;,&quot;#FFCC66&quot;,&quot;#FFFF99&quot;,&quot;#CCCC66&quot;],[&quot;#D0D0D0&quot;,&quot;#31A8FA&quot;,&quot;#8EC1E5&quot;,&quot;#58D7CF&quot;,&quot;#89E2BB&quot;,&quot;#A7F7F8&quot;,&quot;#F6B77C&quot;,&quot;#FE993F&quot;,&quot;#FE6440&quot;,&quot;#F56572&quot;,&quot;#FA9AA3&quot;,&quot;#F7B1CA&quot;,&quot;#E584AF&quot;,&quot;#D1C3EF&quot;,&quot;#AB77B8&quot;,&quot;#C69FE7&quot;,&quot;#90D28A&quot;,&quot;#C2F175&quot;,&quot;#EDEA9A&quot;,&quot;#F3DF70&quot;,&quot;#F8D1AE&quot;,&quot;#F98064&quot;,&quot;#F54F5E&quot;,&quot;#EC9099&quot;,&quot;#F0B5BA&quot;,&quot;#EDA0BB&quot;,&quot;#D375AC&quot;,&quot;#BC8DBE&quot;,&quot;#8C77B8&quot;],[&quot;#EEEEEE&quot;,&quot;#84CBFC&quot;,&quot;#BCDAF0&quot;,&quot;#9BE7E3&quot;,&quot;#B9EED7&quot;,&quot;#CBFBFB&quot;,&quot;#FAD4B1&quot;,&quot;#FFC28C&quot;,&quot;#FFA28D&quot;,&quot;#F9A3AB&quot;,&quot;#FCC3C8&quot;,&quot;#FBD1E0&quot;,&quot;#F0B6CF&quot;,&quot;#E4DBF6&quot;,&quot;#CDAED5&quot;,&quot;#DDC6F1&quot;,&quot;#BDE4B9&quot;,&quot;#DBF7AD&quot;,&quot;#F5F3C3&quot;,&quot;#F8ECAA&quot;,&quot;#FBE4CF&quot;,&quot;#FCB3A2&quot;,&quot;#F9969F&quot;,&quot;#F4BDC2&quot;,&quot;#F6D3D6&quot;,&quot;#F5C6D7&quot;,&quot;#E5ADCE&quot;,&quot;#D7BBD8&quot;,&quot;#BAAED5&quot;]];inputEx.ColorField.ensureHexa=function(E){var F,D;E=E.replace(/\s/g,&quot;&quot;);if(!!E.match(/^rgb\((?:\d{1,3},){2}\d{1,3}\)$/)){var G=function(I){var H=parseInt(I,10).toString(16);if(H.length==1){H=&quot;0&quot;+H}return H};F=E.split(/([(,)])/);D=&quot;#&quot;+G(F[2])+G(F[4])+G(F[6])}else{if(!!E.match(/^#[\da-fA-F]{6}$/)){D=E}else{D=&quot;#FFFFFF&quot;}}return D};inputEx.registerType(&quot;color&quot;,inputEx.ColorField,[])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.DateField=function(D){inputEx.DateField.superclass.constructor.call(this,D)};C.extend(inputEx.DateField,inputEx.StringField,{setOptions:function(D){inputEx.DateField.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-DateField&quot;;this.options.messages.invalid=inputEx.messages.invalidDate;this.options.dateFormat=D.dateFormat||inputEx.messages.defaultDateFormat;this.options.valueFormat=D.valueFormat},validate:function(){var L=this.el.value;var I=this.options.dateFormat.match(/[^Ymd ]/g)[0];var M=L.split(I);if(M.length!=3){return false}if(isNaN(parseInt(M[0],10))||isNaN(parseInt(M[1],10))||isNaN(parseInt(M[2],10))){return false}var H=this.options.dateFormat.split(I);var D=inputEx.indexOf(&quot;Y&quot;,H);if(M[D].length!=4){return false}var K=parseInt(M[inputEx.indexOf(&quot;d&quot;,H)],10);var E=parseInt(M[D],10);var G=parseInt(M[inputEx.indexOf(&quot;m&quot;,H)],10)-1;var J=new Date(E,G,K);var F=J.getFullYear();return((J.getDate()==K)&amp;&amp;(J.getMonth()==G)&amp;&amp;(F==E))},setValue:function(G,E){if(G===&quot;&quot;){inputEx.DateField.superclass.setValue.call(this,&quot;&quot;,E);return }var F=&quot;&quot;;if(G instanceof Date){F=inputEx.DateField.formatDate(G,this.options.dateFormat)}else{if(this.options.valueFormat){var D=inputEx.DateField.parseWithFormat(G,this.options.valueFormat);F=inputEx.DateField.formatDate(D,this.options.dateFormat)}else{F=G}}inputEx.DateField.superclass.setValue.call(this,F,E)},getValue:function(D){var F=inputEx.DateField.superclass.getValue.call(this);if(F===&quot;&quot;){return&quot;&quot;}var E=inputEx.DateField.parseWithFormat(F,this.options.dateFormat);if(!D&amp;&amp;this.options.valueFormat){return inputEx.DateField.formatDate(E,this.options.valueFormat)}return E}});inputEx.DateField.parseWithFormat=function(I,H){var G=H.match(/[^Ymd ]/g)[0];var E=I.split(G);var F=H.split(G);var K=parseInt(E[inputEx.indexOf(&quot;d&quot;,F)],10);var J=parseInt(E[inputEx.indexOf(&quot;Y&quot;,F)],10);var D=parseInt(E[inputEx.indexOf(&quot;m&quot;,F)],10)-1;return(new Date(J,D,K))};inputEx.DateField.formatDate=function(H,F){var G=F.replace(&quot;Y&quot;,H.getFullYear());var D=H.getMonth()+1;G=G.replace(&quot;m&quot;,((D&lt;10)?&quot;0&quot;:&quot;&quot;)+D);var E=H.getDate();G=G.replace(&quot;d&quot;,((E&lt;10)?&quot;0&quot;:&quot;&quot;)+E);return G};inputEx.messages.invalidDate=&quot;Invalid date, ex: 03/27/2008&quot;;inputEx.registerType(&quot;date&quot;,inputEx.DateField,[{type:&quot;select&quot;,inputParams:{label:&quot;Date format&quot;,name:&quot;dateFormat&quot;,selectOptions:[&quot;m/d/Y&quot;,&quot;d/m/Y&quot;],selectValues:[&quot;m/d/Y&quot;,&quot;d/m/Y&quot;]}}])})();(function(){var B=YAHOO.lang,A=YAHOO.util.Event;inputEx.DateSplitField=function(C){if(!C.dateFormat){C.dateFormat=inputEx.messages.defaultDateFormat}var E=C.dateFormat.split(&quot;/&quot;);this.yearIndex=inputEx.indexOf(&quot;Y&quot;,E);this.monthIndex=inputEx.indexOf(&quot;m&quot;,E);this.dayIndex=inputEx.indexOf(&quot;d&quot;,E);C.fields=[];for(var D=0;D&lt;3;D++){if(D==this.dayIndex){C.fields.push({type:&quot;integer&quot;,inputParams:{typeInvite:inputEx.messages.dayTypeInvite,size:2}})}else{if(D==this.yearIndex){C.fields.push({type:&quot;integer&quot;,inputParams:{typeInvite:inputEx.messages.yearTypeInvite,size:4}})}else{C.fields.push({type:&quot;integer&quot;,inputParams:{typeInvite:inputEx.messages.monthTypeInvite,size:2}})}}}C.separators=C.separators||[false,&quot;&amp;nbsp;&quot;,&quot;&amp;nbsp;&quot;,false];inputEx.DateSplitField.superclass.constructor.call(this,C);this.initAutoTab()};B.extend(inputEx.DateSplitField,inputEx.CombineField,{setValue:function(F,D){var C=[];if(!F||!B.isFunction(F.getTime)||!B.isNumber(F.getTime())){C[this.monthIndex]=&quot;&quot;;C[this.yearIndex]=&quot;&quot;;C[this.dayIndex]=&quot;&quot;}else{for(var E=0;E&lt;3;E++){C.push(E==this.dayIndex?F.getDate():(E==this.yearIndex?F.getFullYear():F.getMonth()+1))}}inputEx.DateSplitField.superclass.setValue.call(this,C,D)},getValue:function(){if(this.isEmpty()){return&quot;&quot;}var C=inputEx.DateSplitField.superclass.getValue.call(this);return new Date(C[this.yearIndex],C[this.monthIndex]-1,C[this.dayIndex])},validate:function(){var E=inputEx.DateSplitField.superclass.validate.call(this);if(!E){return false}var D=inputEx.DateSplitField.superclass.getValue.call(this);var C=D[this.dayIndex];var G=D[this.monthIndex];var F=D[this.yearIndex];var H=this.getValue();if(H==&quot;&quot;){return true}if(C==&quot;&quot;||G==&quot;&quot;||F==&quot;&quot;){return false}if(F&lt;0||F&gt;9999||C&lt;1||C&gt;31||G&lt;1||G&gt;12){return false}return(H!=&quot;Invalid Date&quot;)},isEmpty:function(){var C=inputEx.DateSplitField.superclass.getValue.call(this);return(C[this.monthIndex]==&quot;&quot;&amp;&amp;C[this.yearIndex]==&quot;&quot;&amp;&amp;C[this.dayIndex]==&quot;&quot;)},initAutoTab:function(){var C=[48,49,50,51,52,53,54,55,56,57];var F=function(G){for(var H=0,I=C.length;H&lt;I;H++){if(G==C[H]){return true}}return false};var E=this;var D=function(G){B.later(0,E,function(){var H=E.inputs[G];if(H.el.value.length==H.options.size){E.inputs[G+1].focus()}})};A.addListener(this.inputs[0].el,&quot;keypress&quot;,function(G){if(F(A.getCharCode(G))){D(0)}},this,true);A.addListener(this.inputs[1].el,&quot;keypress&quot;,function(G){if(F(A.getCharCode(G))){D(1)}},this,true)}});inputEx.messages.monthTypeInvite=&quot;Month&quot;;inputEx.messages.dayTypeInvite=&quot;Day&quot;;inputEx.messages.yearTypeInvite=&quot;Year&quot;;inputEx.registerType(&quot;datesplit&quot;,inputEx.DateSplitField)})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.DatePickerField=function(D){inputEx.DatePickerField.superclass.constructor.call(this,D)};C.extend(inputEx.DatePickerField,inputEx.DateField,{setOptions:function(D){inputEx.DatePickerField.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-DateField inputEx-PickerField inputEx-DatePickerField&quot;;this.options.readonly=true;this.options.calendar=D.calendar||inputEx.messages.defautCalendarOpts},renderComponent:function(){inputEx.DatePickerField.superclass.renderComponent.call(this);this.oOverlay=new YAHOO.widget.Overlay(B.generateId(),{visible:false});this.oOverlay.setBody(&quot; &quot;);this.oOverlay.body.id=B.generateId();this.button=new YAHOO.widget.Button({type:&quot;menu&quot;,menu:this.oOverlay,label:&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;});this.button.appendTo(this.wrapEl);this.oOverlay.render(this.wrapEl);B.setStyle(this.oOverlay.body.parentNode,&quot;position&quot;,&quot;absolute&quot;);A.addListener(this.el,&quot;click&quot;,function(){this.renderCalendar();if(!this.oOverlay.justHidden){this.button._showMenu()}},this,true);this.oOverlay.hideEvent.subscribe(function(){this.oOverlay.justHidden=true;YAHOO.lang.later(250,this,function(){this.oOverlay.justHidden=false})},this,true);this.button.on(&quot;click&quot;,this.renderCalendar,this,true)},renderCalendar:function(){if(!!this.calendarRendered){return }var E=B.generateId();this.calendar=new YAHOO.widget.Calendar(E,this.oOverlay.body.id,this.options.calendar);if(inputEx.messages.shortMonths){this.calendar.cfg.setProperty(&quot;MONTHS_SHORT&quot;,inputEx.messages.shortMonths)}if(inputEx.messages.months){this.calendar.cfg.setProperty(&quot;MONTHS_LONG&quot;,inputEx.messages.months)}if(inputEx.messages.weekdays1char){this.calendar.cfg.setProperty(&quot;WEEKDAYS_1CHAR&quot;,inputEx.messages.weekdays1char)}if(inputEx.messages.shortWeekdays){this.calendar.cfg.setProperty(&quot;WEEKDAYS_SHORT&quot;,inputEx.messages.shortWeekdays)}var D=function(){var H=B.get(E).tBodies[0],G=H.getElementsByTagName(&quot;a&quot;),F;if(G.length&gt;0){B.batch(G,function(I){if(B.hasClass(I.parentNode,&quot;today&quot;)){F=I}});if(!F){F=G[0]}C.later(0,F,function(){try{F.focus()}catch(I){}})}};this.calendar.renderEvent.subscribe(D,this.calendar,true);this.oOverlay.beforeShowEvent.subscribe(this.beforeShowOverlay,this,true);this.beforeShowOverlay();this.calendar.selectEvent.subscribe(function(J,H,L){if(!!this.ignoreBeforeShowOverlayCall){return }this.oOverlay.hide();var G=H[0][0];var I=G[0],K=G[1],F=G[2];this.setValue(new Date(I,K-1,F))},this,true);this.button.unsubscribe(&quot;click&quot;,this.renderCalendar);this.calendarRendered=true},beforeShowOverlay:function(){var D=this.getValue(true);if(!!D&amp;&amp;!!this.calendar){this.ignoreBeforeShowOverlayCall=true;this.calendar.select(D);this.ignoreBeforeShowOverlayCall=false;this.calendar.cfg.setProperty(&quot;pagedate&quot;,(D.getMonth()+1)+&quot;/&quot;+D.getFullYear());this.calendar.render()}}});inputEx.messages.defautCalendarOpts={navigator:true};inputEx.registerType(&quot;datepicker&quot;,inputEx.DatePickerField)})();(function(){inputEx.EmailField=function(A){inputEx.EmailField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.EmailField,inputEx.StringField,{setOptions:function(A){inputEx.EmailField.superclass.setOptions.call(this,A);this.options.messages.invalid=inputEx.messages.invalidEmail;this.options.regexp=inputEx.regexps.email},getValue:function(){return inputEx.removeAccents(this.el.value.toLowerCase())}});inputEx.messages.invalidEmail=&quot;Invalid email, ex: sample@test.com&quot;;inputEx.registerType(&quot;email&quot;,inputEx.EmailField,[])})();(function(){inputEx.HiddenField=function(A){inputEx.HiddenField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.HiddenField,inputEx.Field,{render:function(){this.type=inputEx.HiddenField;this.divEl=inputEx.cn(&quot;div&quot;,null,{display:&quot;none&quot;});this.el=inputEx.cn(&quot;input&quot;,{type:&quot;hidden&quot;});if(this.options.name){this.el.name=this.options.name}this.divEl.appendChild(this.el)},setValue:function(B,A){this.el.value=B;inputEx.HiddenField.superclass.setValue.call(this,B,A)},getValue:function(){return this.el.value}});inputEx.registerType(&quot;hidden&quot;,inputEx.HiddenField)})();(function(){var D=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom,C=&quot;inputEx-InPlaceEdit-&quot;;inputEx.InPlaceEdit=function(E){inputEx.InPlaceEdit.superclass.constructor.call(this,E)};D.extend(inputEx.InPlaceEdit,inputEx.Field,{setOptions:function(E){inputEx.InPlaceEdit.superclass.setOptions.call(this,E);this.options.animColors=E.animColors||{from:&quot;#ffff99&quot;,to:&quot;#ffffff&quot;};this.options.visu=E.visu;this.options.editorField=E.editorField},renderComponent:function(){this.renderVisuDiv();this.renderEditor()},renderEditor:function(){this.editorContainer=inputEx.cn(&quot;div&quot;,{className:C+&quot;editor&quot;},{display:&quot;none&quot;});this.editorField=inputEx.buildField(this.options.editorField);var E=this.editorField.getEl();this.editorContainer.appendChild(E);B.addClass(E,C+&quot;editorDiv&quot;);this.okButton=inputEx.cn(&quot;a&quot;,{className:C+&quot;OkButton&quot;},null,inputEx.messages.okEditor);this.okButton.href=&quot;&quot;;this.editorContainer.appendChild(this.okButton);this.cancelLink=inputEx.cn(&quot;a&quot;,{className:C+&quot;CancelLink&quot;},null,inputEx.messages.cancelEditor);this.cancelLink.href=&quot;&quot;;this.editorContainer.appendChild(this.cancelLink);this.editorContainer.appendChild(inputEx.cn(&quot;div&quot;,null,{clear:&quot;both&quot;}));this.fieldContainer.appendChild(this.editorContainer)},onVisuMouseOver:function(E){if(this.colorAnim){this.colorAnim.stop(true)}inputEx.sn(this.formattedContainer,null,{backgroundColor:this.options.animColors.from})},onVisuMouseOut:function(E){if(this.colorAnim){this.colorAnim.stop(true)}this.colorAnim=new YAHOO.util.ColorAnim(this.formattedContainer,{backgroundColor:this.options.animColors},1);this.colorAnim.onComplete.subscribe(function(){B.setStyle(this.formattedContainer,&quot;background-color&quot;,&quot;&quot;)},this,true);this.colorAnim.animate()},renderVisuDiv:function(){this.formattedContainer=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-InPlaceEdit-visu&quot;});if(D.isFunction(this.options.formatDom)){this.formattedContainer.appendChild(this.options.formatDom(this.options.value))}else{if(D.isFunction(this.options.formatValue)){this.formattedContainer.innerHTML=this.options.formatValue(this.options.value)}else{this.formattedContainer.innerHTML=D.isUndefined(this.options.value)?inputEx.messages.emptyInPlaceEdit:this.options.value}}this.fieldContainer.appendChild(this.formattedContainer)},initEvents:function(){A.addListener(this.formattedContainer,&quot;click&quot;,this.openEditor,this,true);A.addListener(this.formattedContainer,&quot;mouseover&quot;,this.onVisuMouseOver,this,true);A.addListener(this.formattedContainer,&quot;mouseout&quot;,this.onVisuMouseOut,this,true);A.addListener(this.okButton,&quot;click&quot;,this.onOkEditor,this,true);A.addListener(this.cancelLink,&quot;click&quot;,this.onCancelEditor,this,true);if(this.editorField.el){A.addListener(this.editorField.el,&quot;keyup&quot;,this.onKeyUp,this,true);A.addListener(this.editorField.el,&quot;keydown&quot;,this.onKeyDown,this,true)}},onKeyUp:function(E){if(E.keyCode==13){this.onOkEditor(E)}if(E.keyCode==27){this.onCancelEditor(E)}},onKeyDown:function(E){if(E.keyCode==9){this.onOkEditor(E)}},onOkEditor:function(G){A.stopEvent(G);var F=this.editorField.getValue();this.setValue(F);this.editorContainer.style.display=&quot;none&quot;;this.formattedContainer.style.display=&quot;&quot;;var E=this;setTimeout(function(){E.updatedEvt.fire(F)},50)},onCancelEditor:function(E){A.stopEvent(E);this.editorContainer.style.display=&quot;none&quot;;this.formattedContainer.style.display=&quot;&quot;},openEditor:function(){var E=this.getValue();this.editorContainer.style.display=&quot;&quot;;this.formattedContainer.style.display=&quot;none&quot;;if(!D.isUndefined(E)){this.editorField.setValue(E)}this.editorField.focus();if(this.editorField.el&amp;&amp;D.isFunction(this.editorField.el.setSelectionRange)&amp;&amp;(!!E&amp;&amp;!!E.length)){this.editorField.el.setSelectionRange(0,E.length)}},getValue:function(){var E=(this.editorContainer.style.display==&quot;&quot;);return E?this.editorField.getValue():this.value},setValue:function(F,E){this.value=F;if(D.isUndefined(F)||F==&quot;&quot;){inputEx.renderVisu(this.options.visu,inputEx.messages.emptyInPlaceEdit,this.formattedContainer)}else{inputEx.renderVisu(this.options.visu,this.value,this.formattedContainer)}if(this.editorContainer.style.display==&quot;&quot;){this.editorField.setValue(F)}inputEx.InPlaceEdit.superclass.setValue.call(this,F,E)},close:function(){this.editorContainer.style.display=&quot;none&quot;;this.formattedContainer.style.display=&quot;&quot;}});inputEx.messages.emptyInPlaceEdit=&quot;(click to edit)&quot;;inputEx.messages.cancelEditor=&quot;cancel&quot;;inputEx.messages.okEditor=&quot;Ok&quot;;inputEx.registerType(&quot;inplaceedit&quot;,inputEx.InPlaceEdit,[{type:&quot;type&quot;,inputParams:{label:&quot;Editor&quot;,name:&quot;editorField&quot;}}])})();(function(){var B=YAHOO.lang,A=YAHOO.util.Event;inputEx.IntegerField=function(C){inputEx.IntegerField.superclass.constructor.call(this,C)};YAHOO.lang.extend(inputEx.IntegerField,inputEx.StringField,{setOptions:function(C){inputEx.IntegerField.superclass.setOptions.call(this,C);this.options.negative=B.isUndefined(C.negative)?false:C.negative;this.options.min=B.isUndefined(C.min)?(this.options.negative?-Infinity:0):parseInt(C.min,10);this.options.max=B.isUndefined(C.max)?Infinity:parseInt(C.max,10)},getValue:function(){if((this.options.typeInvite&amp;&amp;this.el.value==this.options.typeInvite)||this.el.value==&quot;&quot;){return&quot;&quot;}return parseInt(this.el.value,10)},validate:function(){var C=this.getValue();if(C===&quot;&quot;){return !this.options.required}if(isNaN(C)){return false}return !!this.el.value.match(new RegExp(this.options.negative?&quot;^[+-]?[0-9]*$&quot;:&quot;^\\+?[0-9]*$&quot;))&amp;&amp;C&gt;=this.options.min&amp;&amp;C&lt;=this.options.max}});inputEx.registerType(&quot;integer&quot;,inputEx.IntegerField,[{type:&quot;boolean&quot;,inputParams:{label:&quot;Accept negative&quot;,name:&quot;negative&quot;,value:false}}])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.ListField=function(D){this.subFields=[];inputEx.ListField.superclass.constructor.call(this,D)};C.extend(inputEx.ListField,inputEx.Field,{setOptions:function(D){inputEx.ListField.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-ListField&quot;;this.options.sortable=C.isUndefined(D.sortable)?false:D.sortable;this.options.elementType=D.elementType||{type:&quot;string&quot;};this.options.useButtons=C.isUndefined(D.useButtons)?false:D.useButtons;this.options.unique=C.isUndefined(D.unique)?false:D.unique;this.options.listAddLabel=D.listAddLabel||inputEx.messages.listAddLink;this.options.listRemoveLabel=D.listRemoveLabel||inputEx.messages.listRemoveLink;this.options.maxItems=D.maxItems;this.options.minItems=D.minItems},renderComponent:function(){if(this.options.useButtons){this.addButton=inputEx.cn(&quot;img&quot;,{src:inputEx.spacerUrl,className:&quot;inputEx-ListField-addButton&quot;});this.fieldContainer.appendChild(this.addButton)}this.fieldContainer.appendChild(inputEx.cn(&quot;span&quot;,null,{marginLeft:&quot;4px&quot;},this.options.listLabel));this.childContainer=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-ListField-childContainer&quot;});this.fieldContainer.appendChild(this.childContainer);if(!this.options.useButtons){this.addButton=inputEx.cn(&quot;a&quot;,{className:&quot;inputEx-List-link&quot;},null,this.options.listAddLabel);this.fieldContainer.appendChild(this.addButton)}},initEvents:function(){A.addListener(this.addButton,&quot;click&quot;,this.onAddButton,this,true)},validate:function(){var F=true;var J={};var D=this.subFields.length;if(C.isNumber(this.options.minItems)&amp;&amp;D&lt;this.options.minItems){F=false}if(C.isNumber(this.options.maxItems)&amp;&amp;D&gt;this.options.maxItems){F=false}for(var G=0;G&lt;D&amp;&amp;F;G++){var E=this.subFields[G];E.setClassFromState();var H=E.getState();if(H==inputEx.stateRequired||H==inputEx.stateInvalid){F=false}if(this.options.unique){var I=C.dump(E.getValue());if(J[I]){F=false}else{J[I]=true}}}return F},setValue:function(G,D){if(!C.isArray(G)){throw new Error(&quot;inputEx.ListField.setValue expected an array, got &quot;+(typeof G))}for(var F=0;F&lt;G.length;F++){if(F==this.subFields.length){this.addElement(G[F])}else{this.subFields[F].setValue(G[F],false)}}var E=this.subFields.length-G.length;if(E&gt;0){for(F=0;F&lt;E;F++){this.removeElement(G.length)}}inputEx.ListField.superclass.setValue.call(this,G,D)},getValue:function(){var D=[];for(var E=0;E&lt;this.subFields.length;E++){D[E]=this.subFields[E].getValue()}return D},addElement:function(E){var D=this.renderSubField(E);this.subFields.push(D);return D},onAddButton:function(E){A.stopEvent(E);if(C.isNumber(this.options.maxItems)&amp;&amp;this.subFields.length&gt;=this.options.maxItems){return }var D=this.addElement();D.focus();this.fireUpdatedEvt()},renderSubField:function(K){var G=inputEx.cn(&quot;div&quot;),E;if(this.options.useButtons){E=inputEx.cn(&quot;img&quot;,{src:inputEx.spacerUrl,className:&quot;inputEx-ListField-delButton&quot;});A.addListener(E,&quot;click&quot;,this.onDelete,this,true);G.appendChild(E)}var J=C.merge({},this.options.elementType);if(!J.inputParams){J.inputParams={}}if(!C.isUndefined(K)){J.inputParams.value=K}var H=inputEx.buildField(J);var F=H.getEl();B.setStyle(F,&quot;margin-left&quot;,&quot;4px&quot;);B.setStyle(F,&quot;float&quot;,&quot;left&quot;);G.appendChild(F);H.updatedEvt.subscribe(this.onChange,this,true);if(this.options.sortable){var I=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-ListField-Arrow inputEx-ListField-ArrowUp&quot;});A.addListener(I,&quot;click&quot;,this.onArrowUp,this,true);var D=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-ListField-Arrow inputEx-ListField-ArrowDown&quot;});A.addListener(D,&quot;click&quot;,this.onArrowDown,this,true);G.appendChild(I);G.appendChild(D)}if(!this.options.useButtons){E=inputEx.cn(&quot;a&quot;,{className:&quot;inputEx-List-link&quot;},null,this.options.listRemoveLabel);A.addListener(E,&quot;click&quot;,this.onDelete,this,true);G.appendChild(E)}G.appendChild(inputEx.cn(&quot;div&quot;,null,{clear:&quot;both&quot;}));this.childContainer.appendChild(G);return H},onArrowUp:function(J){var G=A.getTarget(J).parentNode;var E=null;var F=-1;for(var H=1;H&lt;G.parentNode.childNodes.length;H++){var D=G.parentNode.childNodes[H];if(D==G){E=G.parentNode.childNodes[H-1];F=H;break}}if(E){var K=this.childContainer.removeChild(G);var I=this.childContainer.insertBefore(K,E);var L=this.subFields[F];this.subFields[F]=this.subFields[F-1];this.subFields[F-1]=L;if(this.arrowAnim){this.arrowAnim.stop(true)}this.arrowAnim=new YAHOO.util.ColorAnim(I,{backgroundColor:{from:&quot;#eeee33&quot;,to:&quot;#eeeeee&quot;}},0.4);this.arrowAnim.onComplete.subscribe(function(){B.setStyle(I,&quot;background-color&quot;,&quot;&quot;)});this.arrowAnim.animate();this.fireUpdatedEvt()}},onArrowDown:function(J){var F=A.getTarget(J).parentNode;var E=-1;var I=null;for(var G=0;G&lt;F.parentNode.childNodes.length;G++){var D=F.parentNode.childNodes[G];if(D==F){I=F.parentNode.childNodes[G+1];E=G;break}}if(I){var K=this.childContainer.removeChild(F);var H=B.insertAfter(K,I);var L=this.subFields[E];this.subFields[E]=this.subFields[E+1];this.subFields[E+1]=L;if(this.arrowAnim){this.arrowAnim.stop(true)}this.arrowAnim=new YAHOO.util.ColorAnim(H,{backgroundColor:{from:&quot;#eeee33&quot;,to:&quot;#eeeeee&quot;}},1);this.arrowAnim.onComplete.subscribe(function(){B.setStyle(H,&quot;background-color&quot;,&quot;&quot;)});this.arrowAnim.animate();this.fireUpdatedEvt()}},onDelete:function(H){A.stopEvent(H);if(C.isNumber(this.options.minItems)&amp;&amp;this.subFields.length&lt;=this.options.minItems){return }var E=A.getTarget(H).parentNode;var D=-1;var G=E.childNodes[this.options.useButtons?1:0];for(var F=0;F&lt;this.subFields.length;F++){if(this.subFields[F].getEl()==G){D=F;break}}if(D!=-1){this.removeElement(D)}this.fireUpdatedEvt()},removeElement:function(E){var D=this.subFields[E].getEl().parentNode;this.subFields[E]=undefined;this.subFields=inputEx.compactArray(this.subFields);D.parentNode.removeChild(D)}});inputEx.registerType(&quot;list&quot;,inputEx.ListField,[{type:&quot;string&quot;,inputParams:{label:&quot;List label&quot;,name:&quot;listLabel&quot;,value:&quot;&quot;}},{type:&quot;type&quot;,inputParams:{label:&quot;List element type&quot;,required:true,name:&quot;elementType&quot;}}]);inputEx.messages.listAddLink=&quot;Add&quot;;inputEx.messages.listRemoveLink=&quot;remove&quot;})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.NumberField=function(C){inputEx.NumberField.superclass.constructor.call(this,C)};YAHOO.lang.extend(inputEx.NumberField,inputEx.StringField,{setOptions:function(C){inputEx.NumberField.superclass.setOptions.call(this,C);this.options.min=B.isUndefined(C.min)?-Infinity:parseFloat(C.min);this.options.max=B.isUndefined(C.max)?Infinity:parseFloat(C.max)},getValue:function(){if((this.options.typeInvite&amp;&amp;this.el.value==this.options.typeInvite)||this.el.value==&quot;&quot;){return&quot;&quot;}return parseFloat(this.el.value)},validate:function(){var C=this.getValue();if(C===&quot;&quot;){return !this.options.required}if(isNaN(C)){return false}return !!this.el.value.match(/^([\+\-]?((([0-9]+(\.)?)|([0-9]*\.[0-9]+))([eE][+-]?[0-9]+)?))$/)&amp;&amp;C&gt;=this.options.min&amp;&amp;C&lt;=this.options.max}});inputEx.registerType(&quot;number&quot;,inputEx.NumberField,[])})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.PasswordField=function(C){inputEx.PasswordField.superclass.constructor.call(this,C)};inputEx.PasswordField.byId={};B.extend(inputEx.PasswordField,inputEx.StringField,{setOptions:function(C){inputEx.PasswordField.superclass.setOptions.call(this,C);this.options.className=C.className?C.className:&quot;inputEx-Field inputEx-PasswordField&quot;;this.options.regexp=C.regexp||inputEx.regexps.password;this.options.strengthIndicator=YAHOO.lang.isUndefined(C.strengthIndicator)?false:C.strengthIndicator;this.options.capsLockWarning=YAHOO.lang.isUndefined(C.capsLockWarning)?false:C.capsLockWarning;inputEx.PasswordField.byId[C.id]=this;var D;if(C.confirm&amp;&amp;(D=inputEx.PasswordField.byId[C.confirm])){this.setConfirmationField(D)}},renderComponent:function(){this.wrapEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-StringField-wrapper&quot;});var C={};C.type=&quot;password&quot;;C.size=this.options.size;if(this.options.name){C.name=this.options.name}this.el=inputEx.cn(&quot;input&quot;,C);this.wrapEl.appendChild(this.el);this.fieldContainer.appendChild(this.wrapEl);if(this.options.capsLockWarning){this.capsLockWarning=inputEx.cn(&quot;div&quot;,{className:&quot;capsLockWarning&quot;},{display:&quot;none&quot;},inputEx.messages.capslockWarning);this.wrapEl.appendChild(this.capsLockWarning)}if(this.options.strengthIndicator){this.strengthEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-Password-StrengthIndicator&quot;},null,inputEx.messages.passwordStrength);this.strengthBlocks=[];for(var D=0;D&lt;4;D++){this.strengthBlocks[D]=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-Password-StrengthIndicatorBlock&quot;});this.strengthEl.appendChild(this.strengthBlocks[D])}this.wrapEl.appendChild(this.strengthEl)}},setConfirmationField:function(C){this.options.confirmPasswordField=C;this.options.messages.invalid=inputEx.messages.invalidPasswordConfirmation;this.options.confirmPasswordField.options.confirmationPasswordField=this},validate:function(){if(this.options.confirmPasswordField){if(this.options.confirmPasswordField.getValue()!=this.getValue()){return false}}return inputEx.PasswordField.superclass.validate.call(this)},getStateString:function(C){if(C==inputEx.stateInvalid&amp;&amp;this.options.minLength&amp;&amp;this.el.value.length&lt;this.options.minLength){return inputEx.messages.invalidPassword[0]+this.options.minLength+inputEx.messages.invalidPassword[1]}return inputEx.StringField.superclass.getStateString.call(this,C)},onInput:function(C){inputEx.PasswordField.superclass.onInput.call(this,C);if(this.options.confirmationPasswordField){this.options.confirmationPasswordField.setClassFromState()}},onKeyPress:function(G){inputEx.PasswordField.superclass.onKeyPress.call(this,G);if(this.options.capsLockWarning){var F=G?G:window.event;if(!F){return }var D=F.target?F.target:F.srcElement;var H=-1;if(F.which){H=F.which}else{if(F.keyCode){H=F.keyCode}}var E=false;if(F.shiftKey){E=F.shiftKey}else{if(F.modifiers){E=!!(F.modifiers&amp;4)}}var C=((H&gt;=65&amp;&amp;H&lt;=90)&amp;&amp;!E)||((H&gt;=97&amp;&amp;H&lt;=122)&amp;&amp;E);this.setCapsLockWarning(C)}},onKeyUp:function(C){inputEx.PasswordField.superclass.onKeyUp.call(this,C);if(this.options.strengthIndicator){B.later(0,this,this.updateStrengthIndicator)}},setCapsLockWarning:function(C){this.capsLockWarning.style.display=C?&quot;&quot;:&quot;none&quot;},updateStrengthIndicator:function(){var E=inputEx.PasswordField.getPasswordStrength(this.getValue());for(var D=0;D&lt;4;D++){var C=(E&gt;=D*25)&amp;&amp;(E&gt;0);YAHOO.util.Dom.setStyle(this.strengthBlocks[D],&quot;background-color&quot;,C?&quot;#4AE817&quot;:&quot;#FFFFFF&quot;)}}});inputEx.PasswordField.getPasswordStrength=function(J){var F=(J.length);if(F&gt;7){F=7}var H=J.replace(/[0-9]/g,&quot;&quot;);var I=(J.length-H.length);if(I&gt;3){I=3}var C=J.replace(/\W/g,&quot;&quot;);var E=(J.length-C.length);if(E&gt;3){E=3}var D=J.replace(/[A-Z]/g,&quot;&quot;);var K=(J.length-D.length);if(K&gt;3){K=3}var G=((F*10)-20)+(I*10)+(E*20)+(K*10);if(G&lt;0){G=0}if(G&gt;100){G=100}return G};inputEx.messages.invalidPassword=[&quot;The password schould contain at least &quot;,&quot; numbers or characters&quot;];inputEx.messages.invalidPasswordConfirmation=&quot;Passwords are different !&quot;;inputEx.messages.capslockWarning=&quot;Warning: CapsLock is on&quot;;inputEx.messages.passwordStrength=&quot;Password Strength&quot;;inputEx.registerType(&quot;password&quot;,inputEx.PasswordField,[{type:&quot;boolean&quot;,inputParams:{label:&quot;Strength indicator&quot;,name:&quot;strengthIndicator&quot;,value:false}},{type:&quot;boolean&quot;,inputParams:{label:&quot;CapsLock warning&quot;,name:&quot;capsLockWarning&quot;,value:false}}])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.RadioField=function(D){inputEx.RadioField.superclass.constructor.call(this,D);if(YAHOO.env.ua.ie&amp;&amp;!C.isUndefined(this.options.value)){var E=this;setTimeout(function(){E.setValue(E.options.value,false)},0)}};C.extend(inputEx.RadioField,inputEx.Field,{setOptions:function(D){inputEx.RadioField.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-RadioField&quot;;if(C.isUndefined(D.allowAny)||D.allowAny===false){this.options.allowAny=false}else{this.options.allowAny={};if(C.isArray(D.allowAny.separators)){this.options.allowAny.separators=D.allowAny.separators}this.options.allowAny.validator=(C.isFunction(D.allowAny.validator))?D.allowAny.validator:function(E){return true};this.options.allowAny.value=(!C.isUndefined(D.allowAny.value))?D.allowAny.value:&quot;&quot;}this.options.choices=D.choices;this.options.values=C.isArray(D.values)?D.values:D.choices},renderComponent:function(){var I,G;this.optionEls=[];for(var H=0;H&lt;this.options.choices.length;H++){I=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-RadioField-choice&quot;});var F=this.divEl.id?this.divEl.id+&quot;-field-opt&quot;+H:YAHOO.util.Dom.generateId();var E=inputEx.cn(&quot;input&quot;,{id:F,type:&quot;radio&quot;,name:this.options.name,value:this.options.values[H]});I.appendChild(E);var D=inputEx.cn(&quot;label&quot;,{&quot;for&quot;:F,className:&quot;inputEx-RadioField-rightLabel&quot;},null,&quot;&quot;+this.options.choices[H]);I.appendChild(D);this.fieldContainer.appendChild(I);this.optionEls.push(E)}if(this.options.allowAny){I=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-RadioField-choice&quot;});if(YAHOO.env.ua.ie){this.radioAny=document.createElement(&quot;&lt;input type='radio' name='&quot;+this.options.name+&quot;'&gt;&quot;)}else{this.radioAny=inputEx.cn(&quot;input&quot;,{type:&quot;radio&quot;,name:this.options.name})}I.appendChild(this.radioAny);this.anyField=new inputEx.StringField({value:this.options.allowAny.value});B.setStyle(this.radioAny,&quot;float&quot;,&quot;left&quot;);B.setStyle(this.anyField.getEl(),&quot;float&quot;,&quot;left&quot;);this.anyField.disable();if(this.options.allowAny.separators){G=inputEx.cn(&quot;div&quot;,null,{margin:&quot;3px&quot;},this.options.allowAny.separators[0]||&quot;&quot;);B.setStyle(G,&quot;float&quot;,&quot;left&quot;);I.appendChild(G)}I.appendChild(this.anyField.getEl());if(this.options.allowAny.separators){G=inputEx.cn(&quot;div&quot;,null,{margin:&quot;3px&quot;},this.options.allowAny.separators[1]||&quot;&quot;);B.setStyle(G,&quot;float&quot;,&quot;left&quot;);I.appendChild(G)}this.fieldContainer.appendChild(I);this.optionEls.push(this.radioAny)}},initEvents:function(){A.addListener(this.optionEls,&quot;change&quot;,this.onChange,this,true);A.addFocusListener(this.optionEls,this.onFocus,this,true);A.addBlurListener(this.optionEls,this.onBlur,this,true);if(YAHOO.env.ua.ie){A.addListener(this.optionEls,&quot;click&quot;,function(){YAHOO.lang.later(10,this,this.fireUpdatedEvt)},this,true)}if(this.anyField){this.anyField.updatedEvt.subscribe(function(D){inputEx.RadioField.superclass.onChange.call(this,D)},this,true);A.addBlurListener(this.anyField.el,this.onBlur,this,true)}},onChange:function(D){if(this.radioAny){if(this.radioAny==A.getTarget(D)){this.anyField.enable();C.later(50,this.anyField,&quot;focus&quot;)}else{this.anyField.disable()}}if(!YAHOO.env.ua.ie){inputEx.RadioField.superclass.onChange.call(this,D)}},getValue:function(){for(var D=0;D&lt;this.optionEls.length;D++){if(this.optionEls[D].checked){if(this.radioAny&amp;&amp;this.radioAny==this.optionEls[D]){var E=this.anyField.getValue();return E}return this.options.values[D]}}return&quot;&quot;},setValue:function(H,D){var F=true,G;for(var E=0;E&lt;this.optionEls.length;E++){if(H==this.options.values[E]){this.optionEls[E].checked=true;F=false}else{this.optionEls[E].checked=false}if(this.radioAny&amp;&amp;this.radioAny==this.optionEls[E]){G=this.optionEls[E]}}if(this.radioAny){if(F){G.checked=true;this.anyField.enable();this.anyField.setValue(H,false)}else{this.anyField.disable()}}inputEx.StringField.superclass.setValue.call(this,H,D)},clear:function(D){if(this.radioAny){this.anyField.setValue(this.options.allowAny.value,false)}inputEx.RadioField.superclass.clear.call(this,D)},isEmpty:function(){for(var D=0;D&lt;this.optionEls.length;D++){if(this.optionEls[D].checked){if(this.radioAny&amp;&amp;this.radioAny==this.optionEls[D]){return this.anyField.getValue()===&quot;&quot;}else{return false}}}return true},validate:function(){if(this.options.allowAny){for(var D=0;D&lt;this.optionEls.length;D++){if(this.optionEls[D].checked){if(this.radioAny&amp;&amp;this.radioAny==this.optionEls[D]){var E=this.anyField.getValue();return this.options.allowAny.validator(E)}}}}return true}});inputEx.registerType(&quot;radio&quot;,inputEx.RadioField,[{type:&quot;list&quot;,inputParams:{label:&quot;Options&quot;,name:&quot;choices&quot;,elementType:{type:&quot;string&quot;}}},{type:&quot;boolean&quot;,inputParams:{label:&quot;Allow custom value&quot;,name:&quot;allowAny&quot;},value:false}])})();(function(){var A=YAHOO.lang;inputEx.RTEField=function(B){inputEx.RTEField.superclass.constructor.call(this,B)};A.extend(inputEx.RTEField,inputEx.Field,{setOptions:function(B){inputEx.RTEField.superclass.setOptions.call(this,B);this.options.opts=B.opts||{};this.options.type=B.type},renderComponent:function(){if(!inputEx.RTEfieldsNumber){inputEx.RTEfieldsNumber=0}var G=&quot;inputEx-RTEField-&quot;+inputEx.RTEfieldsNumber;var C={id:G};if(this.options.name){C.name=this.options.name}this.el=inputEx.cn(&quot;textarea&quot;,C);inputEx.RTEfieldsNumber+=1;this.fieldContainer.appendChild(this.el);var E={height:&quot;300px&quot;,width:&quot;580px&quot;,dompath:true};var F=this.options.opts;for(var D in F){if(A.hasOwnProperty(F,D)){E[D]=F[D]}}var B=((this.options.type&amp;&amp;(this.options.type==&quot;simple&quot;))?YAHOO.widget.SimpleEditor:YAHOO.widget.Editor);if(B){this.editor=new B(G,E);this.editor.render()}else{alert(&quot;Editor is not on the page&quot;)}},setValue:function(C,B){if(this.editor){var D=this.el.id+&quot;_editor&quot;;if(!YAHOO.util.Dom.get(D)){this.el.value=C}else{this.editor.setEditorHTML(C)}}if(B!==false){this.fireUpdatedEvt()}},getValue:function(){try{this.editor.saveHTML();return this.el.value}catch(B){return null}}});inputEx.registerType(&quot;html&quot;,inputEx.RTEField,[])})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.SelectField=function(C){inputEx.SelectField.superclass.constructor.call(this,C)};B.extend(inputEx.SelectField,inputEx.Field,{setOptions:function(C){inputEx.SelectField.superclass.setOptions.call(this,C);this.options.multiple=B.isUndefined(C.multiple)?false:C.multiple;this.options.selectValues=[];this.options.selectOptions=[];for(var D=0,E=C.selectValues.length;D&lt;E;D++){this.options.selectValues.push(C.selectValues[D]);this.options.selectOptions.push(&quot;&quot;+((C.selectOptions&amp;&amp;!B.isUndefined(C.selectOptions[D]))?C.selectOptions[D]:C.selectValues[D]))}},renderComponent:function(){this.el=inputEx.cn(&quot;select&quot;,{id:this.divEl.id?this.divEl.id+&quot;-field&quot;:YAHOO.util.Dom.generateId(),name:this.options.name||&quot;&quot;});if(this.options.multiple){this.el.multiple=true;this.el.size=this.options.selectValues.length}this.optionEls={};var C;for(var D=0;D&lt;this.options.selectValues.length;D++){C=inputEx.cn(&quot;option&quot;,{value:this.options.selectValues[D]},null,this.options.selectOptions[D]);this.optionEls[this.options.selectOptions[D]]=C;this.el.appendChild(C)}this.fieldContainer.appendChild(this.el)},initEvents:function(){A.addListener(this.el,&quot;change&quot;,this.onChange,this,true);A.addFocusListener(this.el,this.onFocus,this,true);A.addBlurListener(this.el,this.onBlur,this,true)},setValue:function(G,D){var C=0;var F;for(var E=0;E&lt;this.options.selectValues.length;E++){if(G===this.options.selectValues[E]){F=this.el.childNodes[E];F.selected=&quot;selected&quot;}}inputEx.SelectField.superclass.setValue.call(this,G,D)},getValue:function(){return this.options.selectValues[this.el.selectedIndex]},disable:function(){this.el.disabled=true},enable:function(){this.el.disabled=false},addOption:function(D){var I=D.value,F=&quot;&quot;+(!B.isUndefined(D.option)?D.option:D.value),J=this.options.selectOptions.length,C=J,E;if(B.isNumber(D.position)&amp;&amp;D.position&gt;=0&amp;&amp;D.position&lt;=C){C=parseInt(D.position,10)}else{if(B.isString(D.before)){for(E=0;E&lt;J;E++){if(this.options.selectOptions[E]===D.before){C=E;break}}}else{if(B.isString(D.after)){for(E=0;E&lt;J;E++){if(this.options.selectOptions[E]===D.after){C=E+1;break}}}}}this.options.selectValues=this.options.selectValues.slice(0,C).concat([I]).concat(this.options.selectValues.slice(C,J));this.options.selectOptions=this.options.selectOptions.slice(0,C).concat([F]).concat(this.options.selectOptions.slice(C,J));var H=inputEx.cn(&quot;option&quot;,{value:I},null,F);this.optionEls[F]=H;if(C&lt;J){YAHOO.util.Dom.insertBefore(H,this.el.childNodes[C])}else{this.el.appendChild(H)}if(!!D.selected){var G=this;setTimeout(function(){G.setValue(I)},0)}},removeOption:function(F){var E,H=this.options.selectOptions.length,D=this.el.selectedIndex,G;if(B.isNumber(F.position)&amp;&amp;F.position&gt;=0&amp;&amp;F.position&lt;=H){E=parseInt(F.position,10)}else{if(B.isString(F.option)){for(G=0;G&lt;H;G++){if(this.options.selectOptions[G]===F.option){E=G;break}}}else{if(B.isString(F.value)){for(G=0;G&lt;H;G++){if(this.options.selectValues[G]===F.value){E=G;break}}}}}if(!B.isNumber(E)){throw new Error(&quot;SelectField : invalid or missing position, option or value in removeOption&quot;)}this.options.selectValues.splice(E,1);var C=this.options.selectOptions.splice(E,1);this.el.removeChild(this.optionEls[C]);delete this.optionEls[C];if(D==E){this.clear()}}});inputEx.registerType(&quot;select&quot;,inputEx.SelectField,[{type:&quot;list&quot;,inputParams:{name:&quot;selectValues&quot;,label:&quot;Values&quot;,elementType:{type:&quot;string&quot;},required:true}},{type:&quot;list&quot;,inputParams:{name:&quot;selectOptions&quot;,label:&quot;Options&quot;,elementType:{type:&quot;string&quot;}}}])})();(function(){var A=YAHOO.util.Event;inputEx.Textarea=function(B){inputEx.Textarea.superclass.constructor.call(this,B)};YAHOO.lang.extend(inputEx.Textarea,inputEx.StringField,{setOptions:function(B){inputEx.Textarea.superclass.setOptions.call(this,B);this.options.rows=B.rows||6;this.options.cols=B.cols||23},renderComponent:function(){this.wrapEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-StringField-wrapper&quot;});var B={};B.id=this.divEl.id?this.divEl.id+&quot;-field&quot;:YAHOO.util.Dom.generateId();B.rows=this.options.rows;B.cols=this.options.cols;if(this.options.name){B.name=this.options.name}this.el=inputEx.cn(&quot;textarea&quot;,B,null,this.options.value);this.wrapEl.appendChild(this.el);this.fieldContainer.appendChild(this.wrapEl)},validate:function(){var B=inputEx.Textarea.superclass.validate.call(this);if(this.options.maxLength){B=B&amp;&amp;this.getValue().length&lt;=this.options.maxLength}return B},getStateString:function(B){if(B==inputEx.stateInvalid&amp;&amp;this.options.minLength&amp;&amp;this.el.value.length&lt;this.options.minLength){return inputEx.messages.stringTooShort[0]+this.options.minLength+inputEx.messages.stringTooShort[1]}else{if(B==inputEx.stateInvalid&amp;&amp;this.options.maxLength&amp;&amp;this.el.value.length&gt;this.options.maxLength){return inputEx.messages.stringTooLong[0]+this.options.maxLength+inputEx.messages.stringTooLong[1]}}return inputEx.Textarea.superclass.getStateString.call(this,B)},insert:function(E){var D,C,B;if(document.selection){this.el.focus();D=document.selection.createRange();D.text=E}else{if(this.el.selectionStart||this.el.selectionStart==&quot;0&quot;){C=this.el.selectionStart;B=this.el.selectionEnd;this.el.value=this.el.value.substring(0,C)+E+this.el.value.substring(B,this.el.value.length)}else{this.el.value+=E}}}});inputEx.messages.stringTooLong=[&quot;This field should contain at most &quot;,&quot; numbers or characters&quot;];inputEx.registerType(&quot;text&quot;,inputEx.Textarea,[{type:&quot;integer&quot;,inputParams:{label:&quot;Rows&quot;,name:&quot;rows&quot;,value:6}},{type:&quot;integer&quot;,inputParams:{label:&quot;Cols&quot;,name:&quot;cols&quot;,value:23}}])})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.TimeField=function(D){var H=[],F,C=[],E=[],G;for(F=0;F&lt;24;F++){G=&quot;&quot;;if(F&lt;10){G=&quot;0&quot;}G+=F;H.push(G)}for(F=0;F&lt;60;F++){G=&quot;&quot;;if(F&lt;10){G=&quot;0&quot;}G+=F;C.push(G);E.push(G)}D.fields=[{type:&quot;select&quot;,inputParams:{selectOptions:H,selectValues:H}},{type:&quot;select&quot;,inputParams:{selectOptions:C,selectValues:C}},{type:&quot;select&quot;,inputParams:{selectOptions:E,selectValues:E}}];D.separators=D.separators||[false,&quot;:&quot;,&quot;:&quot;,false];inputEx.TimeField.superclass.constructor.call(this,D)};B.extend(inputEx.TimeField,inputEx.CombineField,{getValue:function(){var C=inputEx.TimeField.superclass.getValue.call(this);return C.join(&quot;:&quot;)},setValue:function(D,C){inputEx.TimeField.superclass.setValue.call(this,D.split(&quot;:&quot;),C)}});inputEx.registerType(&quot;time&quot;,inputEx.TimeField)})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.DateTimeField=function(C){C.fields=[{type:&quot;datepicker&quot;,inputParams:{}},{type:&quot;time&quot;,inputParams:{}}];if(C.dateFormat){C.fields[0].inputParams.dateFormat=C.dateFormat}C.separators=C.separators||[false,&quot;&amp;nbsp;&amp;nbsp;&quot;,false];inputEx.DateTimeField.superclass.constructor.call(this,C)};B.extend(inputEx.DateTimeField,inputEx.CombineField,{getValue:function(){var D=this.inputs[0].getValue();if(D==&quot;&quot;){return null}var C=this.inputs[1].getValue().split(&quot;:&quot;);D.setHours(C[0]);D.setMinutes(C[1]);D.setSeconds(C[2]);return D},setValue:function(H,D){if(!B.isObject(H)){return }var F=H.getHours();var C=H.getMinutes();var E=H.getSeconds();var G=([(F&lt;10?&quot;0&quot;:&quot;&quot;)+F,(C&lt;10?&quot;0&quot;:&quot;&quot;)+C,(E&lt;10?&quot;0&quot;:&quot;&quot;)+E]).join(&quot;:&quot;);inputEx.DateTimeField.superclass.setValue.call(this,[H,G],D)}});inputEx.registerType(&quot;datetime&quot;,inputEx.DateTimeField)})();(function(){inputEx.UneditableField=function(A){inputEx.UneditableField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.UneditableField,inputEx.Field,{setOptions:function(A){inputEx.UneditableField.superclass.setOptions.call(this,A);this.options.visu=A.visu},setValue:function(B,A){this.value=B;inputEx.renderVisu(this.options.visu,B,this.fieldContainer);inputEx.UneditableField.superclass.setValue.call(this,B,A)},getValue:function(){return this.value}});inputEx.registerType(&quot;uneditable&quot;,inputEx.UneditableField)})();(function(){var A=YAHOO.lang;inputEx.UrlField=function(B){inputEx.UrlField.superclass.constructor.call(this,B)};A.extend(inputEx.UrlField,inputEx.StringField,{setOptions:function(B){inputEx.UrlField.superclass.setOptions.call(this,B);this.options.className=B.className?B.className:&quot;inputEx-Field inputEx-UrlField&quot;;this.options.messages.invalid=inputEx.messages.invalidUrl;this.options.favicon=A.isUndefined(B.favicon)?((&quot;https:&quot;==document.location.protocol)?false:true):B.favicon;this.options.size=B.size||50;this.options.regexp=inputEx.regexps.url},render:function(){inputEx.UrlField.superclass.render.call(this);this.el.size=this.options.size;if(!this.options.favicon){YAHOO.util.Dom.addClass(this.el,&quot;nofavicon&quot;)}if(this.options.favicon){this.favicon=inputEx.cn(&quot;img&quot;,{src:inputEx.spacerUrl});this.fieldContainer.insertBefore(this.favicon,this.fieldContainer.childNodes[0]);YAHOO.util.Event.addListener(this.favicon,&quot;click&quot;,function(){this.focus()},this,true)}},setClassFromState:function(){inputEx.UrlField.superclass.setClassFromState.call(this);if(this.options.favicon){this.updateFavicon((this.previousState==inputEx.stateValid)?this.getValue():null)}},updateFavicon:function(C){var B=C?C.match(/https?:\/\/[^\/]*/)+&quot;/favicon.ico&quot;:inputEx.spacerUrl;if(B!=this.favicon.src){inputEx.sn(this.favicon,null,{visibility:&quot;hidden&quot;});this.favicon.src=B;if(this.timer){clearTimeout(this.timer)}var D=this;this.timer=setTimeout(function(){D.displayFavicon()},1000)}},displayFavicon:function(){inputEx.sn(this.favicon,null,{visibility:(this.favicon.naturalWidth!=0)?&quot;visible&quot;:&quot;hidden&quot;})}});inputEx.messages.invalidUrl=&quot;Invalid URL, ex: http://www.test.com&quot;;inputEx.registerType(&quot;url&quot;,inputEx.UrlField,[{type:&quot;boolean&quot;,inputParams:{label:&quot;Display favicon&quot;,name:&quot;favicon&quot;,value:true}}])})();(function(){var B=YAHOO.util.DragDropMgr,C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang;inputEx.widget.DDListItem=function(E){inputEx.widget.DDListItem.superclass.constructor.call(this,E);this.setXConstraint(0,0);this.goingUp=false;this.lastY=0};YAHOO.extend(inputEx.widget.DDListItem,YAHOO.util.DDProxy,{startDrag:function(F,H){var E=this.getDragEl();var G=this.getEl();C.setStyle(G,&quot;visibility&quot;,&quot;hidden&quot;);this._originalIndex=inputEx.indexOf(G,G.parentNode.childNodes);E.className=G.className;E.innerHTML=G.innerHTML},endDrag:function(F){C.setStyle(this.id,&quot;visibility&quot;,&quot;&quot;);var G=this.getEl();var E=inputEx.indexOf(G,G.parentNode.childNodes);if(this._originalIndex!=E){this._list.onReordered(this._originalIndex,E)}},onDragDrop:function(I,J){if(B.interactionInfo.drop.length===1){var H=B.interactionInfo.point;var G=B.interactionInfo.sourceRegion;if(!G.intersect(H)){var E=C.get(J);if(E.nodeName.toLowerCase()!=&quot;li&quot;){var F=B.getDDById(J);E.appendChild(this.getEl());F.isEmpty=false;B.refreshCache()}}}},onDrag:function(E){var F=A.getPageY(E);if(F&lt;this.lastY){this.goingUp=true}else{if(F&gt;this.lastY){this.goingUp=false}}this.lastY=F},onDragOver:function(I,J){var G=this.getEl();var F=C.get(J);if(F.nodeName.toLowerCase()==&quot;li&quot;){var E=G.parentNode;var H=F.parentNode;if(this.goingUp){H.insertBefore(G,F)}else{H.insertBefore(G,F.nextSibling)}B.refreshCache()}}});inputEx.widget.DDList=function(E){this.ul=inputEx.cn(&quot;ul&quot;);this.items=[];this.setOptions(E);this.itemRemovedEvt=new YAHOO.util.CustomEvent(&quot;itemRemoved&quot;,this);this.listReorderedEvt=new YAHOO.util.CustomEvent(&quot;listReordered&quot;,this);if(E.parentEl){if(D.isString(E.parentEl)){C.get(E.parentEl).appendChild(this.ul)}else{E.parentEl.appendChild(this.ul)}}};inputEx.widget.DDList.prototype={setOptions:function(E){this.options={};this.options.allowDelete=D.isUndefined(E.allowDelete)?true:E.allowDelete;if(E.id){this.ul.id=E.id}if(E.value){this.setValue(E.value)}},addItem:function(G){var E=inputEx.cn(&quot;li&quot;,{className:&quot;inputEx-DDList-item&quot;});E.appendChild(inputEx.cn(&quot;span&quot;,null,null,(typeof G==&quot;object&quot;)?G.label:G));if(!!this.options.allowDelete){var H=inputEx.cn(&quot;a&quot;,null,null,&quot;remove&quot;);E.appendChild(H);A.addListener(H,&quot;click&quot;,function(K){var J=A.getTarget(K);var I=J.parentNode;this.removeItem(inputEx.indexOf(I,this.ul.childNodes))},this,true)}var F=new inputEx.widget.DDListItem(E);F._list=this;this.items.push((typeof G==&quot;object&quot;)?G.value:G);this.ul.appendChild(E)},_removeItem:function(E){var F=this.items[E];this.ul.removeChild(this.ul.childNodes[E]);this.items[E]=null;this.items=inputEx.compactArray(this.items);return F},removeItem:function(E){var F=this._removeItem(E);this.itemRemovedEvt.fire(F)},onReordered:function(F,E){if(F&lt;E){this.items.splice(E+1,0,this.items[F]);this.items[F]=null}else{this.items.splice(E,0,this.items[F]);this.items[F+1]=null}this.items=inputEx.compactArray(this.items);this.listReorderedEvt.fire()},getValue:function(){return this.items},updateItem:function(E,F){this.items[E]=F;this.ul.childNodes[E].childNodes[0].innerHTML=F},setValue:function(H){if(!D.isArray(H)){H=[]}var I=this.ul.childNodes.length;var G=H.length;for(var F=0;F&lt;G;F++){if(F&lt;I){this.updateItem(F,H[F])}else{this.addItem(H[F])}}for(var E=G;E&lt;I;E++){this._removeItem(G)}}}})();(function(){inputEx.MultiSelectField=function(A){inputEx.MultiSelectField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.MultiSelectField,inputEx.SelectField,{renderComponent:function(){inputEx.MultiSelectField.superclass.renderComponent.call(this);this.ddlist=new inputEx.widget.DDList({parentEl:this.fieldContainer})},initEvents:function(){YAHOO.util.Event.addListener(this.el,&quot;change&quot;,this.onAddNewItem,this,true);this.ddlist.itemRemovedEvt.subscribe(this.onItemRemoved,this,true);this.ddlist.listReorderedEvt.subscribe(this.fireUpdatedEvt,this,true)},onItemRemoved:function(B,D){var C=D[0];var A=inputEx.indexOf(C,this.options.selectValues);this.el.childNodes[A].disabled=false;this.fireUpdatedEvt()},onAddNewItem:function(){if(this.el.selectedIndex!=0){if(this.options.selectOptions){this.ddlist.addItem({value:this.options.selectValues[this.el.selectedIndex],label:this.options.selectOptions[this.el.selectedIndex]})}else{this.ddlist.addItem(this.options.selectValues[this.el.selectedIndex])}this.el.childNodes[this.el.selectedIndex].disabled=true;this.el.selectedIndex=0;this.fireUpdatedEvt()}},setValue:function(D,B){this.ddlist.setValue(D);for(var C=0;C&lt;this.el.childNodes.length;C++){this.el.childNodes[C].disabled=false}for(C=0;C&lt;D.length;C++){var A=inputEx.indexOf(D[C],this.options.selectValues);this.el.childNodes[A].disabled=true}if(B!==false){this.fireUpdatedEvt()}},getValue:function(){return this.ddlist.getValue()}});inputEx.registerType(&quot;multiselect&quot;,inputEx.MultiSelectField)})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.AutoComplete=function(D){inputEx.AutoComplete.superclass.constructor.call(this,D)};C.extend(inputEx.AutoComplete,inputEx.StringField,{setOptions:function(D){inputEx.AutoComplete.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-AutoComplete&quot;;this.options.datasource=D.datasource;this.options.autoComp=D.autoComp;this.options.returnValue=D.returnValue},initEvents:function(){inputEx.AutoComplete.superclass.initEvents.call(this);A.removeBlurListener(this.el,this.onBlur)},renderComponent:function(){this.wrapEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-StringField-wrapper&quot;});var D={type:&quot;text&quot;,id:YAHOO.util.Dom.generateId()};if(this.options.size){D.size=this.options.size}if(this.options.readonly){D.readonly=&quot;readonly&quot;}if(this.options.maxLength){D.maxLength=this.options.maxLength}this.el=inputEx.cn(&quot;input&quot;,D);var E={type:&quot;hidden&quot;,value:&quot;&quot;};if(this.options.name){E.name=this.options.name}this.hiddenEl=inputEx.cn(&quot;input&quot;,E);this.wrapEl.appendChild(this.el);this.wrapEl.appendChild(this.hiddenEl);this.fieldContainer.appendChild(this.wrapEl);this.listEl=inputEx.cn(&quot;div&quot;,{id:B.generateId()});this.fieldContainer.appendChild(this.listEl);A.onAvailable([this.el,this.listEl],this.buildAutocomplete,this,true)},buildAutocomplete:function(){if(!this._nElementsReady){this._nElementsReady=0}this._nElementsReady++;if(this._nElementsReady!=2){return }this.oAutoComp=new YAHOO.widget.AutoComplete(this.el.id,this.listEl.id,this.options.datasource,this.options.autoComp);this.oAutoComp.itemSelectEvent.subscribe(this.itemSelectHandler,this,true);this.oAutoComp.textboxBlurEvent.subscribe(this.onBlur,this,true)},itemSelectHandler:function(F,E){var D=E[2];this.setValue(this.options.returnValue?this.options.returnValue(D):D[0])},onChange:function(D){this.setClassFromState();C.later(50,this,function(){if(this.el.value==&quot;&quot;){this.setValue(&quot;&quot;)}})},setValue:function(E,D){this.hiddenEl.value=E;this.setClassFromState();if(D!==false){this.fireUpdatedEvt()}},getValue:function(){return this.hiddenEl.value}});inputEx.registerType(&quot;autocomplete&quot;,inputEx.AutoComplete)})();(function(){var A=YAHOO.lang;inputEx.MultiAutoComplete=function(B){inputEx.MultiAutoComplete.superclass.constructor.call(this,B)};A.extend(inputEx.MultiAutoComplete,inputEx.AutoComplete,{renderComponent:function(){inputEx.MultiAutoComplete.superclass.renderComponent.call(this);this.ddlist=new inputEx.widget.DDList({parentEl:this.fieldContainer});this.ddlist.itemRemovedEvt.subscribe(function(){this.setClassFromState();this.fireUpdatedEvt()},this,true);this.ddlist.listReorderedEvt.subscribe(this.fireUpdatedEvt,this,true)},setOptions:function(B){inputEx.MultiAutoComplete.superclass.setOptions.call(this,B);this.options.returnLabel=B.returnLabel},itemSelectHandler:function(F,E){var C=E[2];var D=A.isFunction(this.options.returnValue)?this.options.returnValue(C):C[0];var B=A.isFunction(this.options.returnLabel)?this.options.returnLabel(C):D;this.ddlist.addItem({label:B,value:D});this.el.value=&quot;&quot;;this.fireUpdatedEvt()},setValue:function(C,B){this.ddlist.setValue(C);this.setClassFromState();if(B!==false){this.fireUpdatedEvt()}},getValue:function(){return this.ddlist.getValue()},getState:function(){var B=this.getValue();if(B.length===0){return this.options.required?inputEx.stateRequired:inputEx.stateEmpty}return this.validate()?inputEx.stateValid:inputEx.stateInvalid},validate:function(){return true},onChange:function(B){}});inputEx.registerType(&quot;multiautocomplete&quot;,inputEx.MultiAutoComplete)})();(function(){inputEx.UneditableField=function(A){inputEx.UneditableField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.UneditableField,inputEx.Field,{setOptions:function(A){inputEx.UneditableField.superclass.setOptions.call(this,A);this.options.visu=A.visu},setValue:function(B,A){this.value=B;inputEx.renderVisu(this.options.visu,B,this.fieldContainer);inputEx.UneditableField.superclass.setValue.call(this,B,A)},getValue:function(){return this.value}});inputEx.registerType(&quot;uneditable&quot;,inputEx.UneditableField)})();(function(){var A=YAHOO.lang;inputEx.SliderField=function(B){inputEx.SliderField.superclass.constructor.call(this,B)};YAHOO.lang.extend(inputEx.SliderField,inputEx.Field,{setOptions:function(B){inputEx.SliderField.superclass.setOptions.call(this,B);this.options.className=B.className?B.className:&quot;inputEx-SliderField&quot;;this.options.minValue=A.isUndefined(B.minValue)?0:B.minValue;this.options.maxValue=A.isUndefined(B.maxValue)?100:B.maxValue;this.options.displayValue=A.isUndefined(B.displayValue)?true:B.displayValue},renderComponent:function(){this.sliderbg=inputEx.cn(&quot;div&quot;,{id:YAHOO.util.Dom.generateId(),className:&quot;inputEx-SliderField-bg&quot;});this.sliderthumb=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-SliderField-thumb&quot;});this.sliderbg.appendChild(this.sliderthumb);this.fieldContainer.appendChild(this.sliderbg);if(this.options.displayValue){this.valueDisplay=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-SliderField-value&quot;},null,String(this.options.minValue));this.fieldContainer.appendChild(this.valueDisplay)}this.fieldContainer.appendChild(inputEx.cn(&quot;div&quot;,null,{clear:&quot;both&quot;}));this.slider=YAHOO.widget.Slider.getHorizSlider(this.sliderbg,this.sliderthumb,0,100)},initEvents:function(){this.slider.on(&quot;slideEnd&quot;,this.fireUpdatedEvt,this,true);if(this.options.displayValue){this.updatedEvt.subscribe(function(B,D){var C=D[0];this.valueDisplay.innerHTML=C},this,true)}},setValue:function(E,C){var B=E;if(B&lt;this.options.minValue){B=this.options.minValue}if(B&gt;this.options.maxValue){B=this.options.maxValue}var D=Math.floor(B-this.options.minValue)*100/this.options.maxValue;this.slider.setValue(D);inputEx.SliderField.superclass.setValue.call(this,E,C)},getValue:function(){var B=Math.floor(this.options.minValue+(this.options.maxValue-this.options.minValue)*this.slider.getValue()/100);return B}});inputEx.registerType(&quot;slider&quot;,inputEx.SliderField,[{type:&quot;integer&quot;,inputParams:{label:&quot;Min. value&quot;,name:&quot;minValue&quot;,value:0}},{type:&quot;integer&quot;,inputParams:{label:&quot;Max. value&quot;,name:&quot;maxValue&quot;,value:100}}])})();
\ No newline at end of file
+(function(){var A=YAHOO.lang;inputEx=function(B){var C=null;if(B.type){C=inputEx.getFieldClass(B.type);if(C===null){C=inputEx.StringField}}else{C=B.fieldClass?B.fieldClass:inputEx.StringField}var D=new C(B.inputParams);return D};A.augmentObject(inputEx,{VERSION:&quot;0.4.0rc1&quot;,spacerUrl:&quot;images/space.gif&quot;,stateEmpty:&quot;empty&quot;,stateRequired:&quot;required&quot;,stateValid:&quot;valid&quot;,stateInvalid:&quot;invalid&quot;,messages:{required:&quot;This field is required&quot;,invalid:&quot;This field is invalid&quot;,valid:&quot;This field is valid&quot;,defaultDateFormat:&quot;m/d/Y&quot;,months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;]},widget:{},regexps:{email:/^(([^&lt;&gt;()[\]\\.,;:\s@\&quot;]+(\.[^&lt;&gt;()[\]\\.,;:\s@\&quot;]+)*)|(\&quot;.+\&quot;))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/i,password:/^[0-9a-zA-Z\x20-\x7E]*$/},typeClasses:{},registerType:function(C,E,B,F){if(!A.isString(C)){throw new Error(&quot;inputEx.registerType: first argument must be a string&quot;)}if(!A.isFunction(E)){throw new Error(&quot;inputEx.registerType: second argument must be a function&quot;)}this.typeClasses[C]=E;var D=[];if(A.isArray(B)){D=B}if(E.superclass&amp;&amp;!F&amp;&amp;A.isArray(E.superclass.constructor.groupOptions)){D=D.concat(E.superclass.constructor.groupOptions)}E.groupOptions=D},getFieldClass:function(B){return A.isFunction(this.typeClasses[B])?this.typeClasses[B]:null},getType:function(B){for(var C in this.typeClasses){if(this.typeClasses.hasOwnProperty(C)){if(this.typeClasses[C]==B){return C}}}return null},buildField:function(B){return inputEx(B)},sn:function(E,D,B){if(!E){return }var C;if(D){for(C in D){var G=D[C];if(A.isFunction(G)){continue}if(C==&quot;className&quot;){C=&quot;class&quot;;E.className=G}if(G!==E.getAttribute(C)){try{if(G===false){E.removeAttribute(C)}else{E.setAttribute(C,G)}}catch(F){}}}}if(B){for(C in B){if(A.isFunction(B[C])){continue}if(E.style[C]!=B[C]){E.style[C]=B[C]}}}},cn:function(B,F,C,H){if(B==&quot;input&quot;&amp;&amp;YAHOO.env.ua.ie){var E=&quot;&lt;&quot;+B;if(F!==&quot;undefined&quot;){for(var D in F){E+=&quot; &quot;+D+'=&quot;'+F[D]+'&quot;'}}E+=&quot;/&gt;&quot;;return document.createElement(E)}else{var G=document.createElement(B);this.sn(G,F,C);if(H){G.innerHTML=H}return G}},indexOf:function(E,B){var C=B.length,D;for(D=0;D&lt;C;D++){if(B[D]==E){return D}}return -1},compactArray:function(B){var E=[],C=B.length,D;for(D=0;D&lt;C;D++){if(!A.isNull(B[D])&amp;&amp;!A.isUndefined(B[D])){E.push(B[D])}}return E},removeAccents:function(B){return B.replace(/[&#224;&#225;&#226;&#227;&#228;&#229;]/g,&quot;a&quot;).replace(/[&#232;&#233;&#234;&#235;]/g,&quot;e&quot;).replace(/[&#236;&#237;&#238;&#239;]/g,&quot;i&quot;).replace(/[&#242;&#243;&#244;&#245;&#246;]/g,&quot;o&quot;).replace(/[&#249;&#250;&#251;&#252;]/g,&quot;u&quot;).replace(/[&#253;&#255;]/g,&quot;y&quot;).replace(/[&#241;]/g,&quot;n&quot;).replace(/[&#231;]/g,&quot;c&quot;).replace(/[&#339;]/g,&quot;oe&quot;).replace(/[&#230;]/g,&quot;ae&quot;)}})})();YAHOO.inputEx=inputEx;(function(){var A=YAHOO.lang;inputEx.visus={trimpath:function(D,E){if(!TrimPath){alert(&quot;TrimPath is not on the page. Please load inputex/lib/trimpath-template.js&quot;);return null}var C=TrimPath.parseTemplate(D.template);var B=C.process(E);return B},func:function(B,C){return B.func(C)},dump:function(B,C){return A.dump(C)}};inputEx.renderVisu=function(H,D,E){var B=H||{};var I=B.visuType||&quot;dump&quot;;if(!inputEx.visus.hasOwnProperty(I)){throw new Error(&quot;inputEx: no visu for visuType: &quot;+I)}var F=inputEx.visus[I];if(!A.isFunction(F)){throw new Error(&quot;inputEx: no visu for visuType: &quot;+I)}var J=null;try{J=F(B,D)}catch(G){throw new Error(&quot;inputEx: error while running visu &quot;+I+&quot; : &quot;+G.message)}var C=null;if(E){if(A.isString(E)){C=YAHOO.util.Dom.get(E)}else{C=E}}if(C){if(YAHOO.lang.isObject(J)&amp;&amp;J.tagName){C.innerHTML=&quot;&quot;;C.appendChild(J)}else{C.innerHTML=J}}return J}})();(function(){var A=YAHOO.lang;inputEx.JsonSchema={inputExToSchema:function(B){var E=B.type||&quot;string&quot;,G=B.inputParams||{};if(E==&quot;group&quot;){var C={type:&quot;object&quot;,title:G.legend,properties:{}};for(var D=0;D&lt;G.fields.length;D++){var F=G.fields[D];var H=F.inputParams.name;C.properties[H]=inputEx.JsonSchema.inputExToSchema(F)}return C}else{if(E==&quot;number&quot;){return{type:&quot;number&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label}}else{if(E==&quot;string&quot;){return{type:&quot;string&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label}}else{if(E==&quot;text&quot;){return{type:&quot;string&quot;,format:&quot;text&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,_inputex:{rows:5,cols:50}}}else{if(E==&quot;html&quot;){return{type:&quot;string&quot;,format:&quot;html&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,_inputex:{}}}else{if(E==&quot;list&quot;){return{type:&quot;array&quot;,title:G.label,items:inputEx.JsonSchema.inputExToSchema(G.elementType),_inputex:{}}}else{if(E==&quot;email&quot;){return{type:&quot;string&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,format:&quot;email&quot;}}else{if(E==&quot;url&quot;){return{type:&quot;string&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,format:&quot;url&quot;}}else{if(E==&quot;time&quot;){return{type:&quot;string&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,format:&quot;time&quot;}}else{if(E==&quot;IPv4&quot;){return{type:&quot;string&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,format:&quot;ip-address&quot;}}else{if(E==&quot;color&quot;){return{type:&quot;string&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,format:&quot;color&quot;}}else{if(E==&quot;date&quot;){return{type:&quot;string&quot;,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,title:G.label,format:&quot;date&quot;}}else{return{type:&quot;string&quot;,title:G.label,optional:typeof G.required==&quot;undefined&quot;?true:!G.required,_inputex:G}}}}}}}}}}}}}}};inputEx.JsonSchema.Builder=function(C){var B=C||{};this.options=B;this.schemaToParamMap=B.schemaToParamMap||{title:&quot;label&quot;,description:&quot;description&quot;,_inputex:null};this.referenceResolver=B.referenceResolver||null;this.defaultOptions=B.defaultOptions||{};this.schemaIdentifierMap=B.schemaIdentifierMap||{}};inputEx.JsonSchema.Builder.prototype={defaultReferenceResolver:function(B){return this.schemaIdentifierMap[B]||null},schemaToInputEx:function(D,M){var G={inputParams:{label:M,name:M}};var N=this.schemaToParamMap;var F=D[&quot;$ref&quot;];var Q;if(F){var K=null;if(this.referenceResolver){K=this.referenceResolver(F)}if(K===null){K=this.defaultReferenceResolver(F)}if(K===null){throw new Error('Schema for property : &quot;'+M+'&quot; $references &quot;'+F+'&quot;, not found')}K=A.merge(K);for(var H in D){if(D.hasOwnProperty(H)&amp;&amp;A.isUndefined(K[H])&amp;&amp;H!=&quot;$ref&quot;){K[H]=D[H]}}D=K}if(!D.optional){G.inputParams.required=true}for(Q in N){if(N.hasOwnProperty(Q)){var J=N[Q];var P=D[Q];if(!A.isUndefined(P)){if(J===null){if(A.isObject(P)){for(var B in P){if(P.hasOwnProperty(B)){G.inputParams[B]=P[B]}}}}else{G.inputParams[J]=P}}}}if(!D.type){D.type=&quot;object&quot;}var O=D.type;if(A.isArray(O)){if(O.length===0||(O.length==1&amp;&amp;O[0]==&quot;any&quot;)){O=&quot;array&quot;}else{O=O[0]}}G.type=O;if(!A.isUndefined(D[&quot;default&quot;])){G.inputParams.value=D[&quot;default&quot;]}if(O==&quot;array&quot;){G.type=&quot;list&quot;;if(A.isObject(D.items)&amp;&amp;!A.isArray(D.items)){G.inputParams.elementType=this.schemaToInputEx(D.items,M)}if(D.minItems){G.inputParams.minItems=D.minItems}if(D.maxItems){G.inputParams.maxItems=D.maxItems}}else{if(O==&quot;object&quot;){G.type=&quot;group&quot;;if(D.title&amp;&amp;A.isUndefined(G.inputParams.legend)){G.inputParams.legend=D.title}var L=[];if(M){G.inputParams.name=M}for(Q in D.properties){if(D.properties.hasOwnProperty(Q)){L.push(this.schemaToInputEx(D.properties[Q],Q))}}G.inputParams.fields=L}else{if(O==&quot;string&quot;&amp;&amp;(D[&quot;enum&quot;]||D.options)){G.type=&quot;select&quot;;if(D.options){G.inputParams.selectOptions=[];G.inputParams.selectValues=[];for(var I=0;I&lt;D.options.length;I++){var E=D.options[I];G.inputParams.selectOptions[I]=E.label;G.inputParams.selectValues[I]=E.value}}else{G.inputParams.selectValues=D[&quot;enum&quot;]}}else{if(O==&quot;string&quot;){if(!A.isUndefined(D.pattern)&amp;&amp;A.isUndefined(G.inputParams.regexp)){if(A.isString(D.pattern)){G.inputParams.regexp=new RegExp(D.pattern)}else{G.inputParams.regexp=D.pattern}}if(!A.isUndefined(D.maxLength)&amp;&amp;A.isUndefined(G.inputParams.maxLength)){G.inputParams.maxLength=D.maxLength}if(!A.isUndefined(D.minLength)&amp;&amp;A.isUndefined(G.inputParams.minLength)){G.inputParams.minLength=D.minLength}if(!A.isUndefined(D.readonly)&amp;&amp;A.isUndefined(G.inputParams.readonly)){G.inputParams.readonly=D.readonly}if(D.format){if(D.format==&quot;html&quot;){G.type=&quot;html&quot;}else{if(D.format==&quot;date&quot;){G.type=&quot;date&quot;;G.inputParams.tooltipIcon=true}else{if(D.format==&quot;url&quot;){G.type=&quot;url&quot;}else{if(D.format==&quot;email&quot;){G.type=&quot;email&quot;}else{if(D.format==&quot;text&quot;){G.type=&quot;text&quot;}else{if(D.format==&quot;time&quot;){G.type=&quot;time&quot;}else{if(D.format==&quot;ip-address&quot;){G.type=&quot;IPv4&quot;}else{if(D.format==&quot;color&quot;){G.type=&quot;color&quot;}}}}}}}}}}}}}if(!!D._inputex&amp;&amp;!!D._inputex[&quot;_type&quot;]){G.type=D._inputex[&quot;_type&quot;]}for(var C in this.defaultOptions){if(this.defaultOptions.hasOwnProperty(C)&amp;&amp;A.isUndefined(G.inputParams[C])){G.inputParams[C]=this.defaultOptions[C]}}return G},formFromInstance:function(E){if(!E||!E[&quot;$schema&quot;]){throw new Error(&quot;Invalid json schema instance object. Object must have a '$schema' property.&quot;)}var B=this.schemaToInputEx(E[&quot;$schema&quot;]);for(var C=0;C&lt;B.fields.length;C++){var D=B.fields[C].inputParams.name;B.fields[C].inputParams.value=E[D]}return B}}})();(function(){var B=YAHOO.util.Dom,C=YAHOO.lang,A=YAHOO.util;inputEx.Field=function(D){this.setOptions(D||{});this.render();this.updatedEvt=new A.CustomEvent(&quot;updated&quot;,this);this.initEvents();if(!C.isUndefined(this.options.value)){this.setValue(this.options.value,false)}if(D.parentEl){if(C.isString(D.parentEl)){B.get(D.parentEl).appendChild(this.getEl())}else{D.parentEl.appendChild(this.getEl())}}};inputEx.Field.prototype={setOptions:function(D){this.options={};this.options.name=D.name;this.options.value=D.value;this.options.id=D.id||B.generateId();this.options.label=D.label;this.options.description=D.description;this.options.messages={};this.options.messages.required=(D.messages&amp;&amp;D.messages.required)?D.messages.required:inputEx.messages.required;this.options.messages.invalid=(D.messages&amp;&amp;D.messages.invalid)?D.messages.invalid:inputEx.messages.invalid;this.options.className=D.className?D.className:&quot;inputEx-Field&quot;;this.options.required=C.isUndefined(D.required)?false:D.required;this.options.showMsg=C.isUndefined(D.showMsg)?false:D.showMsg},render:function(){this.divEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-fieldWrapper&quot;});if(this.options.id){this.divEl.id=this.options.id}if(this.options.required){B.addClass(this.divEl,&quot;inputEx-required&quot;)}if(this.options.label){this.labelDiv=inputEx.cn(&quot;div&quot;,{id:this.divEl.id+&quot;-label&quot;,className:&quot;inputEx-label&quot;,&quot;for&quot;:this.divEl.id+&quot;-field&quot;});this.labelEl=inputEx.cn(&quot;label&quot;);this.labelEl.appendChild(document.createTextNode(this.options.label));this.labelDiv.appendChild(this.labelEl);this.divEl.appendChild(this.labelDiv)}this.fieldContainer=inputEx.cn(&quot;div&quot;,{className:this.options.className});this.renderComponent();if(this.options.description){this.fieldContainer.appendChild(inputEx.cn(&quot;div&quot;,{id:this.divEl.id+&quot;-desc&quot;,className:&quot;inputEx-description&quot;},null,this.options.description))}this.divEl.appendChild(this.fieldContainer);this.divEl.appendChild(inputEx.cn(&quot;div&quot;,null,{clear:&quot;both&quot;},&quot; &quot;))},fireUpdatedEvt:function(){var D=this;setTimeout(function(){D.updatedEvt.fire(D.getValue(),D)},50)},renderComponent:function(){},getEl:function(){return this.divEl},initEvents:function(){},getValue:function(){},setValue:function(E,D){this.setClassFromState();if(D!==false){this.fireUpdatedEvt()}},setClassFromState:function(){var D;if(this.previousState){D=&quot;inputEx-&quot;+((this.previousState==inputEx.stateRequired)?inputEx.stateInvalid:this.previousState);B.removeClass(this.divEl,D)}var E=this.getState();if(!(E==inputEx.stateEmpty&amp;&amp;B.hasClass(this.divEl,&quot;inputEx-focused&quot;))){D=&quot;inputEx-&quot;+((E==inputEx.stateRequired)?inputEx.stateInvalid:E);B.addClass(this.divEl,D)}if(this.options.showMsg){this.displayMessage(this.getStateString(E))}this.previousState=E},getStateString:function(D){if(D==inputEx.stateRequired){return this.options.messages.required}else{if(D==inputEx.stateInvalid){return this.options.messages.invalid}else{return&quot;&quot;}}},getState:function(){if(this.isEmpty()){return this.options.required?inputEx.stateRequired:inputEx.stateEmpty}return this.validate()?inputEx.stateValid:inputEx.stateInvalid},validate:function(){return true},onFocus:function(E){var D=this.getEl();B.removeClass(D,&quot;inputEx-empty&quot;);B.addClass(D,&quot;inputEx-focused&quot;)},onBlur:function(D){B.removeClass(this.getEl(),&quot;inputEx-focused&quot;);this.setClassFromState()},onChange:function(D){this.fireUpdatedEvt()},close:function(){},disable:function(){},enable:function(){},focus:function(){},destroy:function(){var D=this.getEl();this.updatedEvt.unsubscribeAll();if(B.inDocument(D)){D.parentNode.removeChild(D)}A.Event.purgeElement(D,true)},displayMessage:function(F){if(!this.fieldContainer){return }if(!this.msgEl){this.msgEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-message&quot;});try{var D=this.divEl.getElementsByTagName(&quot;div&quot;);this.divEl.insertBefore(this.msgEl,D[(D.length-1&gt;=0)?D.length-1:0])}catch(E){alert(E)}}this.msgEl.innerHTML=F},show:function(){this.divEl.style.display=&quot;&quot;},hide:function(){this.divEl.style.display=&quot;none&quot;},clear:function(D){this.setValue(C.isUndefined(this.options.value)?&quot;&quot;:this.options.value,D)},isEmpty:function(){return this.getValue()===&quot;&quot;}};inputEx.Field.groupOptions=[{type:&quot;string&quot;,inputParams:{label:&quot;Label&quot;,name:&quot;label&quot;,value:&quot;&quot;}},{type:&quot;string&quot;,inputParams:{label:&quot;Name&quot;,name:&quot;name&quot;,value:&quot;&quot;}},{type:&quot;string&quot;,inputParams:{label:&quot;Description&quot;,name:&quot;description&quot;,value:&quot;&quot;}},{type:&quot;boolean&quot;,inputParams:{label:&quot;Required?&quot;,name:&quot;required&quot;,value:false}},{type:&quot;boolean&quot;,inputParams:{label:&quot;Show messages&quot;,name:&quot;showMsg&quot;,value:false}}]})();(function(){var C=YAHOO.lang,B=YAHOO.util.Dom,A=YAHOO.util.Event;inputEx.Group=function(D){inputEx.Group.superclass.constructor.call(this,D);if(!this.options.value){this.runFieldsInteractions()}};C.extend(inputEx.Group,inputEx.Field,{setOptions:function(D){this.options={};this.options.className=D.className||&quot;inputEx-Group&quot;;this.options.fields=D.fields;this.options.id=D.id;this.options.name=D.name;this.options.value=D.value;this.options.flatten=D.flatten;this.options.legend=D.legend||&quot;&quot;;this.inputConfigs=D.fields;this.options.collapsible=C.isUndefined(D.collapsible)?false:D.collapsible;this.options.collapsed=C.isUndefined(D.collapsed)?false:D.collapsed;this.options.disabled=C.isUndefined(D.disabled)?false:D.disabled;this.inputs=[];this.inputsNames={}},render:function(){this.divEl=inputEx.cn(&quot;div&quot;,{className:this.options.className});if(this.options.id){this.divEl.id=this.options.id}this.renderFields(this.divEl);if(this.options.disabled){this.disable()}},renderFields:function(F){this.fieldset=inputEx.cn(&quot;fieldset&quot;);this.legend=inputEx.cn(&quot;legend&quot;,{className:&quot;inputEx-Group-legend&quot;});if(this.options.collapsible){var H=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-Group-collapseImg&quot;},null,&quot; &quot;);this.legend.appendChild(H);inputEx.sn(this.fieldset,{className:&quot;inputEx-Expanded&quot;})}if(!C.isUndefined(this.options.legend)&amp;&amp;this.options.legend!==&quot;&quot;){this.legend.appendChild(document.createTextNode(&quot; &quot;+this.options.legend))}if(this.options.collapsible||(!C.isUndefined(this.options.legend)&amp;&amp;this.options.legend!==&quot;&quot;)){this.fieldset.appendChild(this.legend)}for(var E=0;E&lt;this.options.fields.length;E++){var D=this.options.fields[E];if(!D){throw new Error(&quot;inputEx.Form: One of the provided fields is undefined ! (check trailing comma)&quot;)}var G=this.renderField(D);this.fieldset.appendChild(G.getEl())}if(this.options.collapsed){this.toggleCollapse()}F.appendChild(this.fieldset)},renderField:function(E){var D=inputEx.buildField(E);this.inputs.push(D);if(D.options.name){this.inputsNames[D.options.name]=D}if(!this.hasInteractions&amp;&amp;E.interactions){this.hasInteractions=true}D.updatedEvt.subscribe(this.onChange,this,true);return D},initEvents:function(){if(this.options.collapsible){A.addListener(this.legend,&quot;click&quot;,this.toggleCollapse,this,true)}},toggleCollapse:function(){if(B.hasClass(this.fieldset,&quot;inputEx-Expanded&quot;)){B.replaceClass(this.fieldset,&quot;inputEx-Expanded&quot;,&quot;inputEx-Collapsed&quot;)}else{B.replaceClass(this.fieldset,&quot;inputEx-Collapsed&quot;,&quot;inputEx-Expanded&quot;)}},validate:function(){var E=true;for(var F=0;F&lt;this.inputs.length;F++){var D=this.inputs[F];D.setClassFromState();var G=D.getState();if(G==inputEx.stateRequired||G==inputEx.stateInvalid){E=false}}return E},enable:function(){for(var D=0;D&lt;this.inputs.length;D++){this.inputs[D].enable()}},disable:function(){for(var D=0;D&lt;this.inputs.length;D++){this.inputs[D].disable()}},setValue:function(G,E){if(!G){return }for(var F=0;F&lt;this.inputs.length;F++){var H=this.inputs[F];var D=H.options.name;if(D&amp;&amp;!C.isUndefined(G[D])){H.setValue(G[D],false)}else{H.clear(false)}}this.runFieldsInteractions();if(E!==false){this.fireUpdatedEvt()}},getValue:function(){var F={};for(var E=0;E&lt;this.inputs.length;E++){var D=this.inputs[E].getValue();if(this.inputs[E].options.name){if(this.inputs[E].options.flatten&amp;&amp;C.isObject(D)){C.augmentObject(F,D)}else{F[this.inputs[E].options.name]=D}}}return F},close:function(){for(var D=0;D&lt;this.inputs.length;D++){this.inputs[D].close()}},focus:function(){if(this.inputs.length&gt;0){this.inputs[0].focus()}},getFieldByName:function(D){if(!this.inputsNames.hasOwnProperty(D)){return null}return this.inputsNames[D]},onChange:function(E,F){var G=F[0];var D=F[1];this.runInteractions(D,G);this.fireUpdatedEvt()},runAction:function(D,F){var E=this.getFieldByName(D.name);if(YAHOO.lang.isFunction(E[D.action])){E[D.action].call(E)}else{if(YAHOO.lang.isFunction(D.action)){D.action.call(E,F)}else{throw new Error(&quot;action &quot;+D.action+&quot; is not a valid action for field &quot;+D.name)}}},runInteractions:function(E,J){var G=inputEx.indexOf(E,this.inputs);var I=this.options.fields[G];if(YAHOO.lang.isUndefined(I.interactions)){return }var K=I.interactions;for(var H=0;H&lt;K.length;H++){var D=K[H];if(D.valueTrigger===J){for(var F=0;F&lt;D.actions.length;F++){this.runAction(D.actions[F],J)}}}},runFieldsInteractions:function(){if(this.hasInteractions){for(var D=0;D&lt;this.inputs.length;D++){this.runInteractions(this.inputs[D],this.inputs[D].getValue())}}},clear:function(D){for(var E=0;E&lt;this.inputs.length;E++){this.inputs[E].clear(false)}if(D!==false){this.fireUpdatedEvt()}}});inputEx.registerType(&quot;group&quot;,inputEx.Group,[{type:&quot;string&quot;,inputParams:{label:&quot;Name&quot;,name:&quot;name&quot;,value:&quot;&quot;}},{type:&quot;string&quot;,inputParams:{label:&quot;Legend&quot;,name:&quot;legend&quot;}},{type:&quot;boolean&quot;,inputParams:{label:&quot;Collapsible&quot;,name:&quot;collapsible&quot;,value:false}},{type:&quot;boolean&quot;,inputParams:{label:&quot;Collapsed&quot;,name:&quot;collapsed&quot;,value:false}},{type:&quot;list&quot;,inputParams:{label:&quot;Fields&quot;,name:&quot;fields&quot;,elementType:{type:&quot;type&quot;}}}],true)})();(function(){var B=YAHOO.util,D=YAHOO.lang,A=YAHOO.util.Event,C=B.Dom;inputEx.Form=function(E){inputEx.Form.superclass.constructor.call(this,E)};D.extend(inputEx.Form,inputEx.Group,{setOptions:function(E){inputEx.Form.superclass.setOptions.call(this,E);this.buttons=[];this.options.buttons=E.buttons||[];this.options.action=E.action;this.options.method=E.method;this.options.className=E.className||&quot;inputEx-Group&quot;;this.options.autocomplete=D.isUndefined(E.autocomplete)?true:E.autocomplete;this.options.enctype=E.enctype;if(E.ajax){this.options.ajax={};this.options.ajax.method=E.ajax.method||&quot;POST&quot;;this.options.ajax.uri=E.ajax.uri||&quot;default.php&quot;;this.options.ajax.callback=E.ajax.callback||{};this.options.ajax.callback.scope=E.ajax.callback.scope||this;this.options.ajax.showMask=D.isUndefined(E.ajax.showMask)?false:E.ajax.showMask;this.options.ajax.contentType=E.ajax.contentType||&quot;application/json&quot;;this.options.ajax.wrapObject=E.ajax.wrapObject}if(D.isFunction(E.onSubmit)){this.options.onSubmit=E.onSubmit}},render:function(){this.divEl=inputEx.cn(&quot;div&quot;,{className:this.options.className});if(this.options.id){this.divEl.id=this.options.id}this.form=inputEx.cn(&quot;form&quot;,{method:this.options.method||&quot;POST&quot;,action:this.options.action||&quot;&quot;,className:this.options.className||&quot;inputEx-Form&quot;});this.divEl.appendChild(this.form);if(this.options.enctype){this.form.setAttribute(&quot;enctype&quot;,this.options.enctype)}if(!this.options.autocomplete){this.form.setAttribute(&quot;autocomplete&quot;,&quot;off&quot;)}if(this.options.formName){this.form.name=this.options.formName}this.renderFields(this.form);this.renderButtons();if(this.options.disabled){this.disable()}},renderButtons:function(){this.buttonDiv=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-Form-buttonBar&quot;});var G,E;for(var F=0;F&lt;this.options.buttons.length;F++){G=this.options.buttons[F];if(!G){throw new Error(&quot;inputEx.Form: One of the provided button is undefined ! (check trailing comma)&quot;)}E=inputEx.cn(&quot;input&quot;,{type:G.type,value:G.value});if(G.onClick){E.onclick=G.onClick}this.buttons.push(E);this.buttonDiv.appendChild(E)}this.form.appendChild(this.buttonDiv)},initEvents:function(){inputEx.Form.superclass.initEvents.call(this);A.addListener(this.form,&quot;submit&quot;,this.options.onSubmit||this.onSubmit,this,true)},onSubmit:function(E){if(!this.validate()){A.stopEvent(E);return }if(this.options.ajax){A.stopEvent(E);this.asyncRequest()}},asyncRequest:function(){if(this.options.ajax.showMask){this.showMask()}var M=this.getValue();var H=D.isFunction(this.options.ajax.uri)?this.options.ajax.uri(M):this.options.ajax.uri;var E=D.isFunction(this.options.ajax.method)?this.options.ajax.method(M):this.options.ajax.method;var G=null;if(this.options.ajax.contentType==&quot;application/x-www-form-urlencoded&quot;&amp;&amp;E!=&quot;PUT&quot;){var J=[];for(var L in M){if(M.hasOwnProperty(L)){var K=(this.options.ajax.wrapObject?this.options.ajax.wrapObject+&quot;[&quot;:&quot;&quot;)+L+(this.options.ajax.wrapObject?&quot;]&quot;:&quot;&quot;);J.push(K+&quot;=&quot;+window.encodeURIComponent(M[L]))}}G=J.join(&quot;&amp;&quot;)}else{YAHOO.util.Connect.initHeader(&quot;Content-Type&quot;,&quot;application/json&quot;,false);if(E==&quot;PUT&quot;){var I=this.getValue();var F;if(this.options.ajax.wrapObject){F={};F[this.options.ajax.wrapObject]=I}else{F=I}G=D.JSON.stringify(F)}else{G=&quot;value=&quot;+window.encodeURIComponent(D.JSON.stringify(this.getValue()))}}B.Connect.asyncRequest(E,H,{success:function(N){if(this.options.ajax.showMask){this.hideMask()}if(D.isFunction(this.options.ajax.callback.success)){this.options.ajax.callback.success.call(this.options.ajax.callback.scope,N)}},failure:function(N){if(this.options.ajax.showMask){this.hideMask()}if(D.isFunction(this.options.ajax.callback.failure)){this.options.ajax.callback.failure.call(this.options.ajax.callback.scope,N)}},scope:this},G)},renderMask:function(){if(this.maskRendered){return }C.setStyle(this.divEl,&quot;position&quot;,&quot;relative&quot;);if(YAHOO.env.ua.ie){C.setStyle(this.divEl,&quot;zoom&quot;,1)}this.formMask=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-Form-Mask&quot;},{display:&quot;none&quot;,width:this.divEl.offsetWidth+&quot;px&quot;,height:this.divEl.offsetHeight+&quot;px&quot;},&quot;&lt;div class='inputEx-Form-Mask-bg'/&gt;&lt;center&gt;&lt;br/&gt;&lt;div class='inputEx-Form-Mask-spinner'&gt;&lt;/div&gt;&lt;br /&gt;&lt;span&gt;&quot;+inputEx.messages.ajaxWait+&quot;&lt;/span&gt;&lt;/div&gt;&quot;);this.divEl.appendChild(this.formMask);this.maskRendered=true},showMask:function(){this.renderMask();this.toggleSelectsInIE(false);this.formMask.style.display=&quot;&quot;},hideMask:function(){this.toggleSelectsInIE(true);this.formMask.style.display=&quot;none&quot;},toggleSelectsInIE:function(E){if(!!YAHOO.env.ua.ie&amp;&amp;YAHOO.env.ua.ie&lt;7){var G=!!E?YAHOO.util.Dom.removeClass:YAHOO.util.Dom.addClass;var F=this;YAHOO.util.Dom.getElementsBy(function(){return true},&quot;select&quot;,this.divEl,function(H){G.call(F,H,&quot;inputEx-hidden&quot;)})}},enable:function(){inputEx.Form.superclass.enable.call(this);for(var E=0;E&lt;this.buttons.length;E++){this.buttons[E].disabled=false}},disable:function(){inputEx.Form.superclass.disable.call(this);for(var E=0;E&lt;this.buttons.length;E++){this.buttons[E].disabled=true}}});inputEx.messages.ajaxWait=&quot;Please wait...&quot;;inputEx.registerType(&quot;form&quot;,inputEx.Form,[{type:&quot;list&quot;,inputParams:{label:&quot;Buttons&quot;,name:&quot;buttons&quot;,elementType:{type:&quot;group&quot;,inputParams:{fields:[{inputParams:{label:&quot;Label&quot;,name:&quot;value&quot;}},{type:&quot;select&quot;,inputParams:{label:&quot;Type&quot;,name:&quot;type&quot;,selectValues:[&quot;button&quot;,&quot;submit&quot;]}}]}}}}])})();(function(){var B=YAHOO.lang,A=YAHOO.util.Dom;inputEx.CombineField=function(C){inputEx.CombineField.superclass.constructor.call(this,C)};B.extend(inputEx.CombineField,inputEx.Group,{setOptions:function(C){inputEx.CombineField.superclass.setOptions.call(this,C);this.options.label=C.label;this.options.className=C.className?C.className:&quot;inputEx-CombineField&quot;;this.options.separators=C.separators},render:function(){this.divEl=inputEx.cn(&quot;div&quot;,{className:this.options.className});if(this.options.id){this.divEl.id=this.options.id}if(this.options.label){this.labelDiv=inputEx.cn(&quot;div&quot;,{id:this.divEl.id+&quot;-label&quot;,className:&quot;inputEx-label&quot;,&quot;for&quot;:this.divEl.id+&quot;-field&quot;});this.labelEl=inputEx.cn(&quot;label&quot;);this.labelEl.appendChild(document.createTextNode(this.options.label));this.labelDiv.appendChild(this.labelEl);this.divEl.appendChild(this.labelDiv)}this.renderFields(this.divEl);if(this.options.disabled){this.disable()}this.divEl.appendChild(inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-clear-div&quot;},null,&quot; &quot;))},renderFields:function(E){this.appendSeparator(0);if(!this.options.fields){return }var D,I=this.options.fields.length,F,H,G,C;for(D=0;D&lt;I;D++){F=this.options.fields[D];if(this.options.required){F.required=true}H=this.renderField(F);G=H.getEl();C=F.type;if(C!=&quot;group&quot;&amp;&amp;C!=&quot;form&quot;){H.divEl.removeChild(G.childNodes[G.childNodes.length-1])}A.setStyle(G,&quot;float&quot;,&quot;left&quot;);this.divEl.appendChild(G);this.appendSeparator(D+1)}},renderField:function(C){if(this.options.required){if(!C.inputParams){C.inputParams={}}C.inputParams.required=true}return inputEx.CombineField.superclass.renderField.call(this,C)},appendSeparator:function(D){if(this.options.separators&amp;&amp;this.options.separators[D]){var C=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-CombineField-separator&quot;},null,this.options.separators[D]);this.divEl.appendChild(C)}},setValue:function(C,D){if(!C){return }var E,F=this.inputs.length;for(E=0;E&lt;F;E++){this.inputs[E].setValue(C[E],false)}this.runFieldsInteractions();if(D!==false){this.fireUpdatedEvt()}},getValue:function(){var C=[],D,E=this.inputs.length;for(D=0;D&lt;E;D++){C.push(this.inputs[D].getValue())}return C}});inputEx.registerType(&quot;combine&quot;,inputEx.CombineField,[{type:&quot;list&quot;,inputParams:{name:&quot;fields&quot;,label:&quot;Elements&quot;,required:true,elementType:{type:&quot;type&quot;}}},{type:&quot;list&quot;,inputParams:{name:&quot;separators&quot;,label:&quot;Separators&quot;,required:true}}])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.StringField=function(D){inputEx.StringField.superclass.constructor.call(this,D);if(this.options.typeInvite){this.updateTypeInvite()}};C.extend(inputEx.StringField,inputEx.Field,{setOptions:function(D){inputEx.StringField.superclass.setOptions.call(this,D);this.options.regexp=D.regexp;this.options.size=D.size;this.options.maxLength=D.maxLength;this.options.minLength=D.minLength;this.options.typeInvite=D.typeInvite;this.options.readonly=D.readonly},renderComponent:function(){this.wrapEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-StringField-wrapper&quot;});var D={};D.type=&quot;text&quot;;D.id=this.divEl.id?this.divEl.id+&quot;-field&quot;:YAHOO.util.Dom.generateId();if(this.options.size){D.size=this.options.size}if(this.options.name){D.name=this.options.name}if(this.options.readonly){D.readonly=&quot;readonly&quot;}if(this.options.maxLength){D.maxLength=this.options.maxLength}this.el=inputEx.cn(&quot;input&quot;,D);this.wrapEl.appendChild(this.el);this.fieldContainer.appendChild(this.wrapEl)},initEvents:function(){A.addListener(this.el,&quot;change&quot;,this.onChange,this,true);if(YAHOO.env.ua.ie){var D=this.el;new YAHOO.util.KeyListener(this.el,{keys:[13]},{fn:function(){D.blur();D.focus()}}).enable()}A.addFocusListener(this.el,this.onFocus,this,true);A.addBlurListener(this.el,this.onBlur,this,true);A.addListener(this.el,&quot;keypress&quot;,this.onKeyPress,this,true);A.addListener(this.el,&quot;keyup&quot;,this.onKeyUp,this,true)},getValue:function(){return(this.options.typeInvite&amp;&amp;this.el.value==this.options.typeInvite)?&quot;&quot;:this.el.value},setValue:function(E,D){this.el.value=(C.isNull(E)||C.isUndefined(E))?&quot;&quot;:E;inputEx.StringField.superclass.setValue.call(this,E,D)},validate:function(){var E=this.getValue();if(E===&quot;&quot;){return !this.options.required}var D=true;if(this.options.regexp){D=D&amp;&amp;E.match(this.options.regexp)}if(this.options.minLength){D=D&amp;&amp;E.length&gt;=this.options.minLength}return D},disable:function(){this.el.disabled=true},enable:function(){this.el.disabled=false},focus:function(){if(!!this.el&amp;&amp;!C.isUndefined(this.el.focus)){this.el.focus()}},getStateString:function(D){if(D==inputEx.stateInvalid&amp;&amp;this.options.minLength&amp;&amp;this.el.value.length&lt;this.options.minLength){return inputEx.messages.stringTooShort[0]+this.options.minLength+inputEx.messages.stringTooShort[1]}return inputEx.StringField.superclass.getStateString.call(this,D)},setClassFromState:function(){inputEx.StringField.superclass.setClassFromState.call(this);if(this.options.typeInvite){this.updateTypeInvite()}},updateTypeInvite:function(){if(!B.hasClass(this.divEl,&quot;inputEx-focused&quot;)){if(this.isEmpty()){B.addClass(this.divEl,&quot;inputEx-typeInvite&quot;);this.el.value=this.options.typeInvite}else{B.removeClass(this.divEl,&quot;inputEx-typeInvite&quot;)}}else{if(B.hasClass(this.divEl,&quot;inputEx-typeInvite&quot;)){this.el.value=&quot;&quot;;this.previousState=null;B.removeClass(this.divEl,&quot;inputEx-typeInvite&quot;)}}},onFocus:function(D){inputEx.StringField.superclass.onFocus.call(this,D);if(this.options.typeInvite){this.updateTypeInvite()}},onKeyPress:function(D){},onKeyUp:function(D){}});inputEx.messages.stringTooShort=[&quot;This field should contain at least &quot;,&quot; numbers or characters&quot;];inputEx.registerType(&quot;string&quot;,inputEx.StringField,[{type:&quot;string&quot;,inputParams:{label:&quot;Type invite&quot;,name:&quot;typeInvite&quot;,value:&quot;&quot;}},{type:&quot;integer&quot;,inputParams:{label:&quot;Size&quot;,name:&quot;size&quot;,value:20}},{type:&quot;integer&quot;,inputParams:{label:&quot;Min. length&quot;,name:&quot;minLength&quot;,value:0}}])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.AutoComplete=function(D){inputEx.AutoComplete.superclass.constructor.call(this,D)};C.extend(inputEx.AutoComplete,inputEx.StringField,{setOptions:function(D){inputEx.AutoComplete.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-AutoComplete&quot;;this.options.datasource=D.datasource;this.options.autoComp=D.autoComp;this.options.returnValue=D.returnValue},initEvents:function(){inputEx.AutoComplete.superclass.initEvents.call(this);A.removeBlurListener(this.el,this.onBlur)},renderComponent:function(){this.wrapEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-StringField-wrapper&quot;});var D={type:&quot;text&quot;,id:YAHOO.util.Dom.generateId()};if(this.options.size){D.size=this.options.size}if(this.options.readonly){D.readonly=&quot;readonly&quot;}if(this.options.maxLength){D.maxLength=this.options.maxLength}this.el=inputEx.cn(&quot;input&quot;,D);var E={type:&quot;hidden&quot;,value:&quot;&quot;};if(this.options.name){E.name=this.options.name}this.hiddenEl=inputEx.cn(&quot;input&quot;,E);this.wrapEl.appendChild(this.el);this.wrapEl.appendChild(this.hiddenEl);this.fieldContainer.appendChild(this.wrapEl);this.listEl=inputEx.cn(&quot;div&quot;,{id:B.generateId()});this.fieldContainer.appendChild(this.listEl);A.onAvailable([this.el,this.listEl],this.buildAutocomplete,this,true)},buildAutocomplete:function(){if(!this._nElementsReady){this._nElementsReady=0}this._nElementsReady++;if(this._nElementsReady!=2){return }this.oAutoComp=new YAHOO.widget.AutoComplete(this.el.id,this.listEl.id,this.options.datasource,this.options.autoComp);this.oAutoComp.itemSelectEvent.subscribe(this.itemSelectHandler,this,true);this.oAutoComp.textboxBlurEvent.subscribe(this.onBlur,this,true)},itemSelectHandler:function(F,E){var D=E[2];this.setValue(this.options.returnValue?this.options.returnValue(D):D[0])},onChange:function(D){this.setClassFromState();C.later(50,this,function(){if(this.el.value==&quot;&quot;){this.setValue(&quot;&quot;)}})},setValue:function(E,D){this.hiddenEl.value=E||&quot;&quot;;this.setClassFromState();if(D!==false){this.fireUpdatedEvt()}},getValue:function(){return this.hiddenEl.value}});inputEx.registerType(&quot;autocomplete&quot;,inputEx.AutoComplete)})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.CheckBox=function(D){inputEx.CheckBox.superclass.constructor.call(this,D)};C.extend(inputEx.CheckBox,inputEx.Field,{setOptions:function(D){inputEx.CheckBox.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-CheckBox&quot;;this.options.rightLabel=D.rightLabel||&quot;&quot;;this.sentValues=D.sentValues||[true,false];this.options.sentValues=this.sentValues;this.checkedValue=this.sentValues[0];this.uncheckedValue=this.sentValues[1]},renderComponent:function(){var D=this.divEl.id?this.divEl.id+&quot;-field&quot;:YAHOO.util.Dom.generateId();this.el=inputEx.cn(&quot;input&quot;,{id:D,type:&quot;checkbox&quot;,checked:(this.options.checked===false)?false:true});this.fieldContainer.appendChild(this.el);this.rightLabelEl=inputEx.cn(&quot;label&quot;,{&quot;for&quot;:D,className:&quot;inputEx-CheckBox-rightLabel&quot;},null,this.options.rightLabel);this.fieldContainer.appendChild(this.rightLabelEl);this.hiddenEl=inputEx.cn(&quot;input&quot;,{type:&quot;hidden&quot;,name:this.options.name||&quot;&quot;,value:this.el.checked?this.checkedValue:this.uncheckedValue});this.fieldContainer.appendChild(this.hiddenEl)},initEvents:function(){A.addListener(this.el,&quot;change&quot;,this.onChange,this,true);if(YAHOO.env.ua.ie){A.addListener(this.el,&quot;click&quot;,function(){YAHOO.lang.later(10,this,this.fireUpdatedEvt)},this,true)}A.addFocusListener(this.el,this.onFocus,this,true);A.addBlurListener(this.el,this.onBlur,this,true)},onChange:function(D){this.hiddenEl.value=this.el.checked?this.checkedValue:this.uncheckedValue;if(!YAHOO.env.ua.ie){inputEx.CheckBox.superclass.onChange.call(this,D)}},getValue:function(){return this.el.checked?this.checkedValue:this.uncheckedValue},setValue:function(E,D){if(E===this.checkedValue){this.hiddenEl.value=E;this.el.checked=true}else{this.hiddenEl.value=E;this.el.checked=false}inputEx.CheckBox.superclass.setValue.call(this,E,D)},disable:function(){this.el.disabled=true},enable:function(){this.el.disabled=false}});inputEx.registerType(&quot;boolean&quot;,inputEx.CheckBox,[{type:&quot;string&quot;,inputParams:{label:&quot;Right Label&quot;,name:&quot;rightLabel&quot;}}])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.ColorField=function(D){inputEx.ColorField.superclass.constructor.call(this,D)};C.extend(inputEx.ColorField,inputEx.Field,{setOptions:function(D){inputEx.ColorField.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-ColorField inputEx-PickerField&quot;;this.options.palette=D.palette;this.options.colors=D.colors;if(D.ratio){this.options.ratio=D.ratio}if(D.cellPerLine){this.options.cellPerLine=D.cellPerLine}if(D.overlayPadding){this.options.overlayPadding=D.overlayPadding}if(D.cellHeight){this.options.cellHeight=D.cellHeight}if(D.cellWidth){this.options.cellWidth=D.cellWidth}if(D.cellMargin){this.options.cellMargin=D.cellMargin}},renderComponent:function(){this.el=inputEx.cn(&quot;input&quot;,{type:&quot;hidden&quot;,name:this.options.name||&quot;&quot;,value:this.options.value||&quot;#DD7870&quot;});this.colorEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-ColorField-button&quot;},{backgroundColor:this.el.value});this.wrapEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-PickerField-wrapper&quot;});this.wrapEl.appendChild(this.el);this.wrapEl.appendChild(this.colorEl);this.oOverlay=new YAHOO.widget.Overlay(B.generateId(),{visible:false});this.oOverlay.setBody(&quot; &quot;);this.oOverlay.body.id=B.generateId();this.button=new YAHOO.widget.Button({type:&quot;menu&quot;,menu:this.oOverlay,label:&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;});this.button.appendTo(this.wrapEl);this.oOverlay.render(this.wrapEl);B.setStyle(this.oOverlay.body.parentNode,&quot;position&quot;,&quot;absolute&quot;);A.addListener(this.colorEl,&quot;mousedown&quot;,function(D){if(!this.oOverlay.cfg.getProperty(&quot;visible&quot;)){A.stopEvent(D);this.renderPalette();this.button._showMenu()}},this,true);this.button.on(&quot;mousedown&quot;,this.renderPalette,this,true);this.fieldContainer.appendChild(this.wrapEl)},renderPalette:function(){if(this.paletteRendered){return }var H=this.options.palette||1;this.colors=this.options.colors||this.setDefaultColors(H);this.length=this.colors.length;this.ratio=this.options.ratio||[16,9];this.cellPerLine=this.options.cellPerLine||Math.ceil(Math.sqrt(this.length*this.ratio[0]/this.ratio[1]));this.cellPerColumn=Math.ceil(this.length/this.cellPerLine);this.overlayPadding=this.options.overlayPadding||7;this.cellWidth=this.options.cellWidth||17;this.cellHeight=this.options.cellHeight||17;this.cellMargin=this.options.cellMargin||4;var G=document.getElementById(this.oOverlay.body.id);var E=this.renderColorGrid();G.appendChild(E);var F=(this.cellWidth+2*this.cellMargin)*this.cellPerLine+(YAHOO.env.ua.ie==6?3*this.overlayPadding:0);var D=(this.cellHeight+2*this.cellMargin)*this.cellPerColumn+(YAHOO.env.ua.ie==6?3*this.overlayPadding:0);B.setStyle(G,&quot;width&quot;,F+&quot;px&quot;);B.setStyle(G,&quot;height&quot;,D+&quot;px&quot;);B.setStyle(G,&quot;padding&quot;,this.overlayPadding+&quot;px&quot;);this.button.unsubscribe(&quot;mousedown&quot;,this.renderPalette);this.paletteRendered=true},setDefaultColors:function(D){return inputEx.ColorField.palettes[D-1]},renderColorGrid:function(){var E=inputEx.cn(&quot;div&quot;);for(var D=0;D&lt;this.length;D++){var F=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-ColorField-square&quot;},{backgroundColor:this.colors[D],width:this.cellWidth+&quot;px&quot;,height:this.cellHeight+&quot;px&quot;,margin:this.cellMargin+&quot;px&quot;});A.addListener(F,&quot;mousedown&quot;,this.onColorClick,this,true);E.appendChild(F)}return E},onColorClick:function(G){var F=A.getTarget(G);A.stopEvent(G);this.oOverlay.hide();var E=B.getStyle(F,&quot;background-color&quot;);var D=inputEx.ColorField.ensureHexa(E);this.setValue(D)},setValue:function(E,D){this.el.value=E;B.setStyle(this.colorEl,&quot;background-color&quot;,this.el.value);inputEx.ColorField.superclass.setValue.call(this,E,D)},getValue:function(){return this.el.value},close:function(){this.oOverlay.hide()}});inputEx.messages.selectColor=&quot;Select a color :&quot;;inputEx.ColorField.palettes=[[&quot;#FFEA99&quot;,&quot;#FFFF66&quot;,&quot;#FFCC99&quot;,&quot;#FFCAB2&quot;,&quot;#FF99AD&quot;,&quot;#FFD6FF&quot;,&quot;#FF6666&quot;,&quot;#E8EEF7&quot;,&quot;#ADC2FF&quot;,&quot;#ADADFF&quot;,&quot;#CCFFFF&quot;,&quot;#D6EAAD&quot;,&quot;#B5EDBC&quot;,&quot;#CCFF99&quot;],[&quot;#DEDFDE&quot;,&quot;#FFFF6B&quot;,&quot;#EFCB7B&quot;,&quot;#FFBE94&quot;,&quot;#FFB6B5&quot;,&quot;#A5E3FF&quot;,&quot;#A5CBFF&quot;,&quot;#99ABEF&quot;,&quot;#EFB2E7&quot;,&quot;#FF9AAD&quot;,&quot;#94E7C6&quot;,&quot;#A5FFD6&quot;,&quot;#CEFFA5&quot;,&quot;#E7EF9C&quot;,&quot;#FFE38C&quot;],[&quot;#000000&quot;,&quot;#993300&quot;,&quot;#333300&quot;,&quot;#003300&quot;,&quot;#003366&quot;,&quot;#000080&quot;,&quot;#333399&quot;,&quot;#333333&quot;,&quot;#800000&quot;,&quot;#FF6600&quot;,&quot;#808000&quot;,&quot;#008000&quot;,&quot;#008080&quot;,&quot;#0000FF&quot;,&quot;#666699&quot;,&quot;#808080&quot;,&quot;#FF0000&quot;,&quot;#FF9900&quot;,&quot;#99CC00&quot;,&quot;#339966&quot;,&quot;#33CCCC&quot;,&quot;#3366FF&quot;,&quot;#800080&quot;,&quot;#969696&quot;,&quot;#FF00FF&quot;,&quot;#FFCC00&quot;,&quot;#FFFF00&quot;,&quot;#00FF00&quot;,&quot;#00FFFF&quot;,&quot;#00CCFF&quot;,&quot;#993366&quot;,&quot;#C0C0C0&quot;,&quot;#FF99CC&quot;,&quot;#FFCC99&quot;,&quot;#FFFF99&quot;,&quot;#CCFFCC&quot;,&quot;#CCFFFF&quot;,&quot;#99CCFF&quot;,&quot;#CC99FF&quot;,&quot;#F0F0F0&quot;],[&quot;#FFFFCC&quot;,&quot;#FFFF99&quot;,&quot;#CCFFCC&quot;,&quot;#CCFF66&quot;,&quot;#99FFCC&quot;,&quot;#CCFFFF&quot;,&quot;#66CCCC&quot;,&quot;#CCCCFF&quot;,&quot;#99CCFF&quot;,&quot;#9999FF&quot;,&quot;#6666CC&quot;,&quot;#9966CC&quot;,&quot;#CC99FF&quot;,&quot;#FFCCFF&quot;,&quot;#FF99FF&quot;,&quot;#CC66CC&quot;,&quot;#FFCCCC&quot;,&quot;#FF99CC&quot;,&quot;#FFCCCC&quot;,&quot;#CC6699&quot;,&quot;#FF9999&quot;,&quot;#FF9966&quot;,&quot;#FFCC99&quot;,&quot;#FFFFCC&quot;,&quot;#FFCC66&quot;,&quot;#FFFF99&quot;,&quot;#CCCC66&quot;],[&quot;#D0D0D0&quot;,&quot;#31A8FA&quot;,&quot;#8EC1E5&quot;,&quot;#58D7CF&quot;,&quot;#89E2BB&quot;,&quot;#A7F7F8&quot;,&quot;#F6B77C&quot;,&quot;#FE993F&quot;,&quot;#FE6440&quot;,&quot;#F56572&quot;,&quot;#FA9AA3&quot;,&quot;#F7B1CA&quot;,&quot;#E584AF&quot;,&quot;#D1C3EF&quot;,&quot;#AB77B8&quot;,&quot;#C69FE7&quot;,&quot;#90D28A&quot;,&quot;#C2F175&quot;,&quot;#EDEA9A&quot;,&quot;#F3DF70&quot;,&quot;#F8D1AE&quot;,&quot;#F98064&quot;,&quot;#F54F5E&quot;,&quot;#EC9099&quot;,&quot;#F0B5BA&quot;,&quot;#EDA0BB&quot;,&quot;#D375AC&quot;,&quot;#BC8DBE&quot;,&quot;#8C77B8&quot;],[&quot;#EEEEEE&quot;,&quot;#84CBFC&quot;,&quot;#BCDAF0&quot;,&quot;#9BE7E3&quot;,&quot;#B9EED7&quot;,&quot;#CBFBFB&quot;,&quot;#FAD4B1&quot;,&quot;#FFC28C&quot;,&quot;#FFA28D&quot;,&quot;#F9A3AB&quot;,&quot;#FCC3C8&quot;,&quot;#FBD1E0&quot;,&quot;#F0B6CF&quot;,&quot;#E4DBF6&quot;,&quot;#CDAED5&quot;,&quot;#DDC6F1&quot;,&quot;#BDE4B9&quot;,&quot;#DBF7AD&quot;,&quot;#F5F3C3&quot;,&quot;#F8ECAA&quot;,&quot;#FBE4CF&quot;,&quot;#FCB3A2&quot;,&quot;#F9969F&quot;,&quot;#F4BDC2&quot;,&quot;#F6D3D6&quot;,&quot;#F5C6D7&quot;,&quot;#E5ADCE&quot;,&quot;#D7BBD8&quot;,&quot;#BAAED5&quot;]];inputEx.ColorField.ensureHexa=function(E){var F,D;E=E.replace(/\s/g,&quot;&quot;);if(!!E.match(/^rgb\((?:\d{1,3},){2}\d{1,3}\)$/)){var G=function(I){var H=parseInt(I,10).toString(16);if(H.length==1){H=&quot;0&quot;+H}return H};F=E.split(/([(,)])/);D=&quot;#&quot;+G(F[2])+G(F[4])+G(F[6])}else{if(!!E.match(/^#[\da-fA-F]{6}$/)){D=E}else{D=&quot;#FFFFFF&quot;}}return D};inputEx.registerType(&quot;color&quot;,inputEx.ColorField,[])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.DateField=function(D){inputEx.DateField.superclass.constructor.call(this,D)};C.extend(inputEx.DateField,inputEx.StringField,{setOptions:function(D){inputEx.DateField.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-DateField&quot;;this.options.messages.invalid=inputEx.messages.invalidDate;this.options.dateFormat=D.dateFormat||inputEx.messages.defaultDateFormat;this.options.valueFormat=D.valueFormat},validate:function(){var L=this.el.value;var I=this.options.dateFormat.match(/[^Ymd ]/g)[0];var M=L.split(I);if(M.length!=3){return false}if(isNaN(parseInt(M[0],10))||isNaN(parseInt(M[1],10))||isNaN(parseInt(M[2],10))){return false}var H=this.options.dateFormat.split(I);var D=inputEx.indexOf(&quot;Y&quot;,H);if(M[D].length!=4){return false}var K=parseInt(M[inputEx.indexOf(&quot;d&quot;,H)],10);var E=parseInt(M[D],10);var G=parseInt(M[inputEx.indexOf(&quot;m&quot;,H)],10)-1;var J=new Date(E,G,K);var F=J.getFullYear();return((J.getDate()==K)&amp;&amp;(J.getMonth()==G)&amp;&amp;(F==E))},setValue:function(G,E){if(G===&quot;&quot;){inputEx.DateField.superclass.setValue.call(this,&quot;&quot;,E);return }var F=&quot;&quot;;if(G instanceof Date){F=inputEx.DateField.formatDate(G,this.options.dateFormat)}else{if(this.options.valueFormat){var D=inputEx.DateField.parseWithFormat(G,this.options.valueFormat);F=inputEx.DateField.formatDate(D,this.options.dateFormat)}else{F=G}}inputEx.DateField.superclass.setValue.call(this,F,E)},getValue:function(D){var F=inputEx.DateField.superclass.getValue.call(this);if(F===&quot;&quot;){return&quot;&quot;}var E=inputEx.DateField.parseWithFormat(F,this.options.dateFormat);if(!D&amp;&amp;this.options.valueFormat){return inputEx.DateField.formatDate(E,this.options.valueFormat)}return E}});inputEx.DateField.parseWithFormat=function(I,H){var G=H.match(/[^Ymd ]/g)[0];var E=I.split(G);var F=H.split(G);var K=parseInt(E[inputEx.indexOf(&quot;d&quot;,F)],10);var J=parseInt(E[inputEx.indexOf(&quot;Y&quot;,F)],10);var D=parseInt(E[inputEx.indexOf(&quot;m&quot;,F)],10)-1;return(new Date(J,D,K))};inputEx.DateField.formatDate=function(H,F){var G=F.replace(&quot;Y&quot;,H.getFullYear());var D=H.getMonth()+1;G=G.replace(&quot;m&quot;,((D&lt;10)?&quot;0&quot;:&quot;&quot;)+D);var E=H.getDate();G=G.replace(&quot;d&quot;,((E&lt;10)?&quot;0&quot;:&quot;&quot;)+E);return G};inputEx.messages.invalidDate=&quot;Invalid date, ex: 03/27/2008&quot;;inputEx.registerType(&quot;date&quot;,inputEx.DateField,[{type:&quot;select&quot;,inputParams:{label:&quot;Date format&quot;,name:&quot;dateFormat&quot;,selectOptions:[&quot;m/d/Y&quot;,&quot;d/m/Y&quot;],selectValues:[&quot;m/d/Y&quot;,&quot;d/m/Y&quot;]}}])})();(function(){var B=YAHOO.lang,A=YAHOO.util.Event;inputEx.DateSplitField=function(C){if(!C.dateFormat){C.dateFormat=inputEx.messages.defaultDateFormat}var E=C.dateFormat.split(&quot;/&quot;);this.yearIndex=inputEx.indexOf(&quot;Y&quot;,E);this.monthIndex=inputEx.indexOf(&quot;m&quot;,E);this.dayIndex=inputEx.indexOf(&quot;d&quot;,E);C.fields=[];for(var D=0;D&lt;3;D++){if(D==this.dayIndex){C.fields.push({type:&quot;integer&quot;,inputParams:{typeInvite:inputEx.messages.dayTypeInvite,size:2}})}else{if(D==this.yearIndex){C.fields.push({type:&quot;integer&quot;,inputParams:{typeInvite:inputEx.messages.yearTypeInvite,size:4}})}else{C.fields.push({type:&quot;integer&quot;,inputParams:{typeInvite:inputEx.messages.monthTypeInvite,size:2}})}}}C.separators=C.separators||[false,&quot;&amp;nbsp;&quot;,&quot;&amp;nbsp;&quot;,false];inputEx.DateSplitField.superclass.constructor.call(this,C);this.initAutoTab()};B.extend(inputEx.DateSplitField,inputEx.CombineField,{setValue:function(F,D){var C=[];if(!F||!B.isFunction(F.getTime)||!B.isNumber(F.getTime())){C[this.monthIndex]=&quot;&quot;;C[this.yearIndex]=&quot;&quot;;C[this.dayIndex]=&quot;&quot;}else{for(var E=0;E&lt;3;E++){C.push(E==this.dayIndex?F.getDate():(E==this.yearIndex?F.getFullYear():F.getMonth()+1))}}inputEx.DateSplitField.superclass.setValue.call(this,C,D)},getValue:function(){if(this.isEmpty()){return&quot;&quot;}var C=inputEx.DateSplitField.superclass.getValue.call(this);return new Date(C[this.yearIndex],C[this.monthIndex]-1,C[this.dayIndex])},validate:function(){var E=inputEx.DateSplitField.superclass.validate.call(this);if(!E){return false}var D=inputEx.DateSplitField.superclass.getValue.call(this);var C=D[this.dayIndex];var G=D[this.monthIndex];var F=D[this.yearIndex];var H=this.getValue();if(H==&quot;&quot;){return true}if(C==&quot;&quot;||G==&quot;&quot;||F==&quot;&quot;){return false}if(F&lt;0||F&gt;9999||C&lt;1||C&gt;31||G&lt;1||G&gt;12){return false}return(H!=&quot;Invalid Date&quot;)},isEmpty:function(){var C=inputEx.DateSplitField.superclass.getValue.call(this);return(C[this.monthIndex]==&quot;&quot;&amp;&amp;C[this.yearIndex]==&quot;&quot;&amp;&amp;C[this.dayIndex]==&quot;&quot;)},initAutoTab:function(){var C=[48,49,50,51,52,53,54,55,56,57];var F=function(G){for(var H=0,I=C.length;H&lt;I;H++){if(G==C[H]){return true}}return false};var E=this;var D=function(G){B.later(0,E,function(){var H=E.inputs[G];if(H.el.value.length==H.options.size){E.inputs[G+1].focus()}})};A.addListener(this.inputs[0].el,&quot;keypress&quot;,function(G){if(F(A.getCharCode(G))){D(0)}},this,true);A.addListener(this.inputs[1].el,&quot;keypress&quot;,function(G){if(F(A.getCharCode(G))){D(1)}},this,true)}});inputEx.messages.monthTypeInvite=&quot;Month&quot;;inputEx.messages.dayTypeInvite=&quot;Day&quot;;inputEx.messages.yearTypeInvite=&quot;Year&quot;;inputEx.registerType(&quot;datesplit&quot;,inputEx.DateSplitField)})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.DatePickerField=function(D){inputEx.DatePickerField.superclass.constructor.call(this,D)};C.extend(inputEx.DatePickerField,inputEx.DateField,{setOptions:function(D){inputEx.DatePickerField.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-DateField inputEx-PickerField inputEx-DatePickerField&quot;;this.options.readonly=true;this.options.calendar=D.calendar||inputEx.messages.defautCalendarOpts},renderComponent:function(){inputEx.DatePickerField.superclass.renderComponent.call(this);this.oOverlay=new YAHOO.widget.Overlay(B.generateId(),{visible:false});this.oOverlay.setBody(&quot; &quot;);this.oOverlay.body.id=B.generateId();this.button=new YAHOO.widget.Button({type:&quot;menu&quot;,menu:this.oOverlay,label:&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;});this.button.appendTo(this.wrapEl);this.oOverlay.render(this.wrapEl);B.setStyle(this.oOverlay.body.parentNode,&quot;position&quot;,&quot;absolute&quot;);A.addListener(this.el,&quot;click&quot;,function(){this.renderCalendar();if(!this.oOverlay.justHidden){this.button._showMenu()}},this,true);this.oOverlay.hideEvent.subscribe(function(){this.oOverlay.justHidden=true;YAHOO.lang.later(250,this,function(){this.oOverlay.justHidden=false})},this,true);this.button.on(&quot;click&quot;,this.renderCalendar,this,true)},renderCalendar:function(){if(!!this.calendarRendered){return }var E=B.generateId();this.calendar=new YAHOO.widget.Calendar(E,this.oOverlay.body.id,this.options.calendar);if(inputEx.messages.shortMonths){this.calendar.cfg.setProperty(&quot;MONTHS_SHORT&quot;,inputEx.messages.shortMonths)}if(inputEx.messages.months){this.calendar.cfg.setProperty(&quot;MONTHS_LONG&quot;,inputEx.messages.months)}if(inputEx.messages.weekdays1char){this.calendar.cfg.setProperty(&quot;WEEKDAYS_1CHAR&quot;,inputEx.messages.weekdays1char)}if(inputEx.messages.shortWeekdays){this.calendar.cfg.setProperty(&quot;WEEKDAYS_SHORT&quot;,inputEx.messages.shortWeekdays)}var D=function(){var H=B.get(E).tBodies[0],G=H.getElementsByTagName(&quot;a&quot;),F;if(G.length&gt;0){B.batch(G,function(I){if(B.hasClass(I.parentNode,&quot;today&quot;)){F=I}});if(!F){F=G[0]}C.later(0,F,function(){try{F.focus()}catch(I){}})}};this.calendar.renderEvent.subscribe(D,this.calendar,true);this.oOverlay.beforeShowEvent.subscribe(this.beforeShowOverlay,this,true);this.beforeShowOverlay();this.calendar.selectEvent.subscribe(function(J,H,L){if(!!this.ignoreBeforeShowOverlayCall){return }this.oOverlay.hide();var G=H[0][0];var I=G[0],K=G[1],F=G[2];this.setValue(new Date(I,K-1,F))},this,true);this.button.unsubscribe(&quot;click&quot;,this.renderCalendar);this.calendarRendered=true},beforeShowOverlay:function(){var D=this.getValue(true);if(!!D&amp;&amp;!!this.calendar){this.ignoreBeforeShowOverlayCall=true;this.calendar.select(D);this.ignoreBeforeShowOverlayCall=false;this.calendar.cfg.setProperty(&quot;pagedate&quot;,(D.getMonth()+1)+&quot;/&quot;+D.getFullYear());this.calendar.render()}}});inputEx.messages.defautCalendarOpts={navigator:true};inputEx.registerType(&quot;datepicker&quot;,inputEx.DatePickerField)})();(function(){inputEx.EmailField=function(A){inputEx.EmailField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.EmailField,inputEx.StringField,{setOptions:function(A){inputEx.EmailField.superclass.setOptions.call(this,A);this.options.messages.invalid=inputEx.messages.invalidEmail;this.options.regexp=inputEx.regexps.email},getValue:function(){return inputEx.removeAccents(this.el.value.toLowerCase())}});inputEx.messages.invalidEmail=&quot;Invalid email, ex: sample@test.com&quot;;inputEx.registerType(&quot;email&quot;,inputEx.EmailField,[])})();(function(){inputEx.HiddenField=function(A){inputEx.HiddenField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.HiddenField,inputEx.Field,{render:function(){this.type=inputEx.HiddenField;this.divEl=inputEx.cn(&quot;div&quot;,null,{display:&quot;none&quot;});this.el=inputEx.cn(&quot;input&quot;,{type:&quot;hidden&quot;});if(this.options.name){this.el.name=this.options.name}this.divEl.appendChild(this.el)},setValue:function(B,A){this.el.value=B;inputEx.HiddenField.superclass.setValue.call(this,B,A)},getValue:function(){return this.el.value}});inputEx.registerType(&quot;hidden&quot;,inputEx.HiddenField)})();(function(){var D=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom,C=&quot;inputEx-InPlaceEdit-&quot;;inputEx.InPlaceEdit=function(E){inputEx.InPlaceEdit.superclass.constructor.call(this,E)};D.extend(inputEx.InPlaceEdit,inputEx.Field,{setOptions:function(E){inputEx.InPlaceEdit.superclass.setOptions.call(this,E);this.options.animColors=E.animColors||{from:&quot;#ffff99&quot;,to:&quot;#ffffff&quot;};this.options.visu=E.visu;this.options.editorField=E.editorField},renderComponent:function(){this.renderVisuDiv();this.renderEditor()},renderEditor:function(){this.editorContainer=inputEx.cn(&quot;div&quot;,{className:C+&quot;editor&quot;},{display:&quot;none&quot;});this.editorField=inputEx.buildField(this.options.editorField);var E=this.editorField.getEl();this.editorContainer.appendChild(E);B.addClass(E,C+&quot;editorDiv&quot;);this.okButton=inputEx.cn(&quot;a&quot;,{className:C+&quot;OkButton&quot;},null,inputEx.messages.okEditor);this.okButton.href=&quot;&quot;;this.editorContainer.appendChild(this.okButton);this.cancelLink=inputEx.cn(&quot;a&quot;,{className:C+&quot;CancelLink&quot;},null,inputEx.messages.cancelEditor);this.cancelLink.href=&quot;&quot;;this.editorContainer.appendChild(this.cancelLink);this.editorContainer.appendChild(inputEx.cn(&quot;div&quot;,null,{clear:&quot;both&quot;}));this.fieldContainer.appendChild(this.editorContainer)},onVisuMouseOver:function(E){if(this.colorAnim){this.colorAnim.stop(true)}inputEx.sn(this.formattedContainer,null,{backgroundColor:this.options.animColors.from})},onVisuMouseOut:function(E){if(this.colorAnim){this.colorAnim.stop(true)}this.colorAnim=new YAHOO.util.ColorAnim(this.formattedContainer,{backgroundColor:this.options.animColors},1);this.colorAnim.onComplete.subscribe(function(){B.setStyle(this.formattedContainer,&quot;background-color&quot;,&quot;&quot;)},this,true);this.colorAnim.animate()},renderVisuDiv:function(){this.formattedContainer=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-InPlaceEdit-visu&quot;});if(D.isFunction(this.options.formatDom)){this.formattedContainer.appendChild(this.options.formatDom(this.options.value))}else{if(D.isFunction(this.options.formatValue)){this.formattedContainer.innerHTML=this.options.formatValue(this.options.value)}else{this.formattedContainer.innerHTML=D.isUndefined(this.options.value)?inputEx.messages.emptyInPlaceEdit:this.options.value}}this.fieldContainer.appendChild(this.formattedContainer)},initEvents:function(){A.addListener(this.formattedContainer,&quot;click&quot;,this.openEditor,this,true);A.addListener(this.formattedContainer,&quot;mouseover&quot;,this.onVisuMouseOver,this,true);A.addListener(this.formattedContainer,&quot;mouseout&quot;,this.onVisuMouseOut,this,true);A.addListener(this.okButton,&quot;click&quot;,this.onOkEditor,this,true);A.addListener(this.cancelLink,&quot;click&quot;,this.onCancelEditor,this,true);if(this.editorField.el){A.addListener(this.editorField.el,&quot;keyup&quot;,this.onKeyUp,this,true);A.addListener(this.editorField.el,&quot;keydown&quot;,this.onKeyDown,this,true)}},onKeyUp:function(E){if(E.keyCode==13){this.onOkEditor(E)}if(E.keyCode==27){this.onCancelEditor(E)}},onKeyDown:function(E){if(E.keyCode==9){this.onOkEditor(E)}},onOkEditor:function(G){A.stopEvent(G);var F=this.editorField.getValue();this.setValue(F);this.editorContainer.style.display=&quot;none&quot;;this.formattedContainer.style.display=&quot;&quot;;var E=this;setTimeout(function(){E.updatedEvt.fire(F)},50)},onCancelEditor:function(E){A.stopEvent(E);this.editorContainer.style.display=&quot;none&quot;;this.formattedContainer.style.display=&quot;&quot;},openEditor:function(){var E=this.getValue();this.editorContainer.style.display=&quot;&quot;;this.formattedContainer.style.display=&quot;none&quot;;if(!D.isUndefined(E)){this.editorField.setValue(E)}this.editorField.focus();if(this.editorField.el&amp;&amp;D.isFunction(this.editorField.el.setSelectionRange)&amp;&amp;(!!E&amp;&amp;!!E.length)){this.editorField.el.setSelectionRange(0,E.length)}},getValue:function(){var E=(this.editorContainer.style.display==&quot;&quot;);return E?this.editorField.getValue():this.value},setValue:function(F,E){this.value=F;if(D.isUndefined(F)||F==&quot;&quot;){inputEx.renderVisu(this.options.visu,inputEx.messages.emptyInPlaceEdit,this.formattedContainer)}else{inputEx.renderVisu(this.options.visu,this.value,this.formattedContainer)}if(this.editorContainer.style.display==&quot;&quot;){this.editorField.setValue(F)}inputEx.InPlaceEdit.superclass.setValue.call(this,F,E)},close:function(){this.editorContainer.style.display=&quot;none&quot;;this.formattedContainer.style.display=&quot;&quot;}});inputEx.messages.emptyInPlaceEdit=&quot;(click to edit)&quot;;inputEx.messages.cancelEditor=&quot;cancel&quot;;inputEx.messages.okEditor=&quot;Ok&quot;;inputEx.registerType(&quot;inplaceedit&quot;,inputEx.InPlaceEdit,[{type:&quot;type&quot;,inputParams:{label:&quot;Editor&quot;,name:&quot;editorField&quot;}}])})();(function(){var B=YAHOO.lang,A=YAHOO.util.Event;inputEx.IntegerField=function(C){inputEx.IntegerField.superclass.constructor.call(this,C)};YAHOO.lang.extend(inputEx.IntegerField,inputEx.StringField,{setOptions:function(C){inputEx.IntegerField.superclass.setOptions.call(this,C);this.options.negative=B.isUndefined(C.negative)?false:C.negative;this.options.min=B.isUndefined(C.min)?(this.options.negative?-Infinity:0):parseInt(C.min,10);this.options.max=B.isUndefined(C.max)?Infinity:parseInt(C.max,10)},getValue:function(){if((this.options.typeInvite&amp;&amp;this.el.value==this.options.typeInvite)||this.el.value==&quot;&quot;){return&quot;&quot;}return parseInt(this.el.value,10)},validate:function(){var C=this.getValue();if(C===&quot;&quot;){return !this.options.required}if(isNaN(C)){return false}return !!this.el.value.match(new RegExp(this.options.negative?&quot;^[+-]?[0-9]*$&quot;:&quot;^\\+?[0-9]*$&quot;))&amp;&amp;C&gt;=this.options.min&amp;&amp;C&lt;=this.options.max}});inputEx.registerType(&quot;integer&quot;,inputEx.IntegerField,[{type:&quot;boolean&quot;,inputParams:{label:&quot;Accept negative&quot;,name:&quot;negative&quot;,value:false}}])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.ListField=function(D){this.subFields=[];inputEx.ListField.superclass.constructor.call(this,D)};C.extend(inputEx.ListField,inputEx.Field,{setOptions:function(D){inputEx.ListField.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-ListField&quot;;this.options.sortable=C.isUndefined(D.sortable)?false:D.sortable;this.options.elementType=D.elementType||{type:&quot;string&quot;};this.options.useButtons=C.isUndefined(D.useButtons)?false:D.useButtons;this.options.unique=C.isUndefined(D.unique)?false:D.unique;this.options.listAddLabel=D.listAddLabel||inputEx.messages.listAddLink;this.options.listRemoveLabel=D.listRemoveLabel||inputEx.messages.listRemoveLink;this.options.maxItems=D.maxItems;this.options.minItems=D.minItems},renderComponent:function(){if(this.options.useButtons){this.addButton=inputEx.cn(&quot;img&quot;,{src:inputEx.spacerUrl,className:&quot;inputEx-ListField-addButton&quot;});this.fieldContainer.appendChild(this.addButton)}this.fieldContainer.appendChild(inputEx.cn(&quot;span&quot;,null,{marginLeft:&quot;4px&quot;},this.options.listLabel));this.childContainer=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-ListField-childContainer&quot;});this.fieldContainer.appendChild(this.childContainer);if(!this.options.useButtons){this.addButton=inputEx.cn(&quot;a&quot;,{className:&quot;inputEx-List-link&quot;},null,this.options.listAddLabel);this.fieldContainer.appendChild(this.addButton)}},initEvents:function(){A.addListener(this.addButton,&quot;click&quot;,this.onAddButton,this,true)},validate:function(){var F=true;var J={};var D=this.subFields.length;if(C.isNumber(this.options.minItems)&amp;&amp;D&lt;this.options.minItems){F=false}if(C.isNumber(this.options.maxItems)&amp;&amp;D&gt;this.options.maxItems){F=false}for(var G=0;G&lt;D&amp;&amp;F;G++){var E=this.subFields[G];E.setClassFromState();var H=E.getState();if(H==inputEx.stateRequired||H==inputEx.stateInvalid){F=false}if(this.options.unique){var I=C.dump(E.getValue());if(J[I]){F=false}else{J[I]=true}}}return F},setValue:function(G,D){if(!C.isArray(G)){throw new Error(&quot;inputEx.ListField.setValue expected an array, got &quot;+(typeof G))}for(var F=0;F&lt;G.length;F++){if(F==this.subFields.length){this.addElement(G[F])}else{this.subFields[F].setValue(G[F],false)}}var E=this.subFields.length-G.length;if(E&gt;0){for(F=0;F&lt;E;F++){this.removeElement(G.length)}}inputEx.ListField.superclass.setValue.call(this,G,D)},getValue:function(){var D=[];for(var E=0;E&lt;this.subFields.length;E++){D[E]=this.subFields[E].getValue()}return D},addElement:function(E){var D=this.renderSubField(E);this.subFields.push(D);return D},onAddButton:function(E){A.stopEvent(E);if(C.isNumber(this.options.maxItems)&amp;&amp;this.subFields.length&gt;=this.options.maxItems){return }var D=this.addElement();D.focus();this.fireUpdatedEvt()},renderSubField:function(K){var G=inputEx.cn(&quot;div&quot;),E;if(this.options.useButtons){E=inputEx.cn(&quot;img&quot;,{src:inputEx.spacerUrl,className:&quot;inputEx-ListField-delButton&quot;});A.addListener(E,&quot;click&quot;,this.onDelete,this,true);G.appendChild(E)}var J=C.merge({},this.options.elementType);if(!J.inputParams){J.inputParams={}}if(!C.isUndefined(K)){J.inputParams.value=K}var H=inputEx.buildField(J);var F=H.getEl();B.setStyle(F,&quot;margin-left&quot;,&quot;4px&quot;);B.setStyle(F,&quot;float&quot;,&quot;left&quot;);G.appendChild(F);H.updatedEvt.subscribe(this.onChange,this,true);if(this.options.sortable){var I=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-ListField-Arrow inputEx-ListField-ArrowUp&quot;});A.addListener(I,&quot;click&quot;,this.onArrowUp,this,true);var D=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-ListField-Arrow inputEx-ListField-ArrowDown&quot;});A.addListener(D,&quot;click&quot;,this.onArrowDown,this,true);G.appendChild(I);G.appendChild(D)}if(!this.options.useButtons){E=inputEx.cn(&quot;a&quot;,{className:&quot;inputEx-List-link&quot;},null,this.options.listRemoveLabel);A.addListener(E,&quot;click&quot;,this.onDelete,this,true);G.appendChild(E)}G.appendChild(inputEx.cn(&quot;div&quot;,null,{clear:&quot;both&quot;}));this.childContainer.appendChild(G);return H},onArrowUp:function(J){var G=A.getTarget(J).parentNode;var E=null;var F=-1;for(var H=1;H&lt;G.parentNode.childNodes.length;H++){var D=G.parentNode.childNodes[H];if(D==G){E=G.parentNode.childNodes[H-1];F=H;break}}if(E){var K=this.childContainer.removeChild(G);var I=this.childContainer.insertBefore(K,E);var L=this.subFields[F];this.subFields[F]=this.subFields[F-1];this.subFields[F-1]=L;if(this.arrowAnim){this.arrowAnim.stop(true)}this.arrowAnim=new YAHOO.util.ColorAnim(I,{backgroundColor:{from:&quot;#eeee33&quot;,to:&quot;#eeeeee&quot;}},0.4);this.arrowAnim.onComplete.subscribe(function(){B.setStyle(I,&quot;background-color&quot;,&quot;&quot;)});this.arrowAnim.animate();this.fireUpdatedEvt()}},onArrowDown:function(J){var F=A.getTarget(J).parentNode;var E=-1;var I=null;for(var G=0;G&lt;F.parentNode.childNodes.length;G++){var D=F.parentNode.childNodes[G];if(D==F){I=F.parentNode.childNodes[G+1];E=G;break}}if(I){var K=this.childContainer.removeChild(F);var H=B.insertAfter(K,I);var L=this.subFields[E];this.subFields[E]=this.subFields[E+1];this.subFields[E+1]=L;if(this.arrowAnim){this.arrowAnim.stop(true)}this.arrowAnim=new YAHOO.util.ColorAnim(H,{backgroundColor:{from:&quot;#eeee33&quot;,to:&quot;#eeeeee&quot;}},1);this.arrowAnim.onComplete.subscribe(function(){B.setStyle(H,&quot;background-color&quot;,&quot;&quot;)});this.arrowAnim.animate();this.fireUpdatedEvt()}},onDelete:function(H){A.stopEvent(H);if(C.isNumber(this.options.minItems)&amp;&amp;this.subFields.length&lt;=this.options.minItems){return }var E=A.getTarget(H).parentNode;var D=-1;var G=E.childNodes[this.options.useButtons?1:0];for(var F=0;F&lt;this.subFields.length;F++){if(this.subFields[F].getEl()==G){D=F;break}}if(D!=-1){this.removeElement(D)}this.fireUpdatedEvt()},removeElement:function(E){var D=this.subFields[E].getEl().parentNode;this.subFields[E]=undefined;this.subFields=inputEx.compactArray(this.subFields);D.parentNode.removeChild(D)}});inputEx.registerType(&quot;list&quot;,inputEx.ListField,[{type:&quot;string&quot;,inputParams:{label:&quot;List label&quot;,name:&quot;listLabel&quot;,value:&quot;&quot;}},{type:&quot;type&quot;,inputParams:{label:&quot;List element type&quot;,required:true,name:&quot;elementType&quot;}}]);inputEx.messages.listAddLink=&quot;Add&quot;;inputEx.messages.listRemoveLink=&quot;remove&quot;})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.NumberField=function(C){inputEx.NumberField.superclass.constructor.call(this,C)};YAHOO.lang.extend(inputEx.NumberField,inputEx.StringField,{setOptions:function(C){inputEx.NumberField.superclass.setOptions.call(this,C);this.options.min=B.isUndefined(C.min)?-Infinity:parseFloat(C.min);this.options.max=B.isUndefined(C.max)?Infinity:parseFloat(C.max)},getValue:function(){if((this.options.typeInvite&amp;&amp;this.el.value==this.options.typeInvite)||this.el.value==&quot;&quot;){return&quot;&quot;}return parseFloat(this.el.value)},validate:function(){var C=this.getValue();if(C===&quot;&quot;){return !this.options.required}if(isNaN(C)){return false}return !!this.el.value.match(/^([\+\-]?((([0-9]+(\.)?)|([0-9]*\.[0-9]+))([eE][+-]?[0-9]+)?))$/)&amp;&amp;C&gt;=this.options.min&amp;&amp;C&lt;=this.options.max}});inputEx.registerType(&quot;number&quot;,inputEx.NumberField,[])})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.PasswordField=function(C){inputEx.PasswordField.superclass.constructor.call(this,C)};inputEx.PasswordField.byId={};B.extend(inputEx.PasswordField,inputEx.StringField,{setOptions:function(C){inputEx.PasswordField.superclass.setOptions.call(this,C);this.options.className=C.className?C.className:&quot;inputEx-Field inputEx-PasswordField&quot;;this.options.regexp=C.regexp||inputEx.regexps.password;this.options.strengthIndicator=YAHOO.lang.isUndefined(C.strengthIndicator)?false:C.strengthIndicator;this.options.capsLockWarning=YAHOO.lang.isUndefined(C.capsLockWarning)?false:C.capsLockWarning;inputEx.PasswordField.byId[C.id]=this;var D;if(C.confirm&amp;&amp;(D=inputEx.PasswordField.byId[C.confirm])){this.setConfirmationField(D)}},renderComponent:function(){this.wrapEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-StringField-wrapper&quot;});var C={};C.type=&quot;password&quot;;C.size=this.options.size;if(this.options.name){C.name=this.options.name}this.el=inputEx.cn(&quot;input&quot;,C);this.wrapEl.appendChild(this.el);this.fieldContainer.appendChild(this.wrapEl);if(this.options.capsLockWarning){this.capsLockWarning=inputEx.cn(&quot;div&quot;,{className:&quot;capsLockWarning&quot;},{display:&quot;none&quot;},inputEx.messages.capslockWarning);this.wrapEl.appendChild(this.capsLockWarning)}if(this.options.strengthIndicator){this.strengthEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-Password-StrengthIndicator&quot;},null,inputEx.messages.passwordStrength);this.strengthBlocks=[];for(var D=0;D&lt;4;D++){this.strengthBlocks[D]=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-Password-StrengthIndicatorBlock&quot;});this.strengthEl.appendChild(this.strengthBlocks[D])}this.wrapEl.appendChild(this.strengthEl)}},setConfirmationField:function(C){this.options.confirmPasswordField=C;this.options.messages.invalid=inputEx.messages.invalidPasswordConfirmation;this.options.confirmPasswordField.options.confirmationPasswordField=this},validate:function(){if(this.options.confirmPasswordField){if(this.options.confirmPasswordField.getValue()!=this.getValue()){return false}}return inputEx.PasswordField.superclass.validate.call(this)},getStateString:function(C){if(C==inputEx.stateInvalid&amp;&amp;this.options.minLength&amp;&amp;this.el.value.length&lt;this.options.minLength){return inputEx.messages.invalidPassword[0]+this.options.minLength+inputEx.messages.invalidPassword[1]}return inputEx.StringField.superclass.getStateString.call(this,C)},onInput:function(C){inputEx.PasswordField.superclass.onInput.call(this,C);if(this.options.confirmationPasswordField){this.options.confirmationPasswordField.setClassFromState()}},onKeyPress:function(G){inputEx.PasswordField.superclass.onKeyPress.call(this,G);if(this.options.capsLockWarning){var F=G?G:window.event;if(!F){return }var D=F.target?F.target:F.srcElement;var H=-1;if(F.which){H=F.which}else{if(F.keyCode){H=F.keyCode}}var E=false;if(F.shiftKey){E=F.shiftKey}else{if(F.modifiers){E=!!(F.modifiers&amp;4)}}var C=((H&gt;=65&amp;&amp;H&lt;=90)&amp;&amp;!E)||((H&gt;=97&amp;&amp;H&lt;=122)&amp;&amp;E);this.setCapsLockWarning(C)}},onKeyUp:function(C){inputEx.PasswordField.superclass.onKeyUp.call(this,C);if(this.options.strengthIndicator){B.later(0,this,this.updateStrengthIndicator)}},setCapsLockWarning:function(C){this.capsLockWarning.style.display=C?&quot;&quot;:&quot;none&quot;},updateStrengthIndicator:function(){var E=inputEx.PasswordField.getPasswordStrength(this.getValue());for(var D=0;D&lt;4;D++){var C=(E&gt;=D*25)&amp;&amp;(E&gt;0);YAHOO.util.Dom.setStyle(this.strengthBlocks[D],&quot;background-color&quot;,C?&quot;#4AE817&quot;:&quot;#FFFFFF&quot;)}}});inputEx.PasswordField.getPasswordStrength=function(J){var F=(J.length);if(F&gt;7){F=7}var H=J.replace(/[0-9]/g,&quot;&quot;);var I=(J.length-H.length);if(I&gt;3){I=3}var C=J.replace(/\W/g,&quot;&quot;);var E=(J.length-C.length);if(E&gt;3){E=3}var D=J.replace(/[A-Z]/g,&quot;&quot;);var K=(J.length-D.length);if(K&gt;3){K=3}var G=((F*10)-20)+(I*10)+(E*20)+(K*10);if(G&lt;0){G=0}if(G&gt;100){G=100}return G};inputEx.messages.invalidPassword=[&quot;The password schould contain at least &quot;,&quot; numbers or characters&quot;];inputEx.messages.invalidPasswordConfirmation=&quot;Passwords are different !&quot;;inputEx.messages.capslockWarning=&quot;Warning: CapsLock is on&quot;;inputEx.messages.passwordStrength=&quot;Password Strength&quot;;inputEx.registerType(&quot;password&quot;,inputEx.PasswordField,[{type:&quot;boolean&quot;,inputParams:{label:&quot;Strength indicator&quot;,name:&quot;strengthIndicator&quot;,value:false}},{type:&quot;boolean&quot;,inputParams:{label:&quot;CapsLock warning&quot;,name:&quot;capsLockWarning&quot;,value:false}}])})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.RadioField=function(D){inputEx.RadioField.superclass.constructor.call(this,D);if(YAHOO.env.ua.ie&amp;&amp;!C.isUndefined(this.options.value)){var E=this;setTimeout(function(){E.setValue(E.options.value,false)},0)}};C.extend(inputEx.RadioField,inputEx.Field,{setOptions:function(D){inputEx.RadioField.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-RadioField&quot;;if(C.isUndefined(D.allowAny)||D.allowAny===false){this.options.allowAny=false}else{this.options.allowAny={};if(C.isArray(D.allowAny.separators)){this.options.allowAny.separators=D.allowAny.separators}this.options.allowAny.validator=(C.isFunction(D.allowAny.validator))?D.allowAny.validator:function(E){return true};this.options.allowAny.value=(!C.isUndefined(D.allowAny.value))?D.allowAny.value:&quot;&quot;}this.options.choices=D.choices;this.options.values=C.isArray(D.values)?D.values:D.choices},renderComponent:function(){var I,G;this.optionEls=[];for(var H=0;H&lt;this.options.choices.length;H++){I=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-RadioField-choice&quot;});var F=this.divEl.id?this.divEl.id+&quot;-field-opt&quot;+H:YAHOO.util.Dom.generateId();var E=inputEx.cn(&quot;input&quot;,{id:F,type:&quot;radio&quot;,name:this.options.name,value:this.options.values[H]});I.appendChild(E);var D=inputEx.cn(&quot;label&quot;,{&quot;for&quot;:F,className:&quot;inputEx-RadioField-rightLabel&quot;},null,&quot;&quot;+this.options.choices[H]);I.appendChild(D);this.fieldContainer.appendChild(I);this.optionEls.push(E)}if(this.options.allowAny){I=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-RadioField-choice&quot;});if(YAHOO.env.ua.ie){this.radioAny=document.createElement(&quot;&lt;input type='radio' name='&quot;+this.options.name+&quot;'&gt;&quot;)}else{this.radioAny=inputEx.cn(&quot;input&quot;,{type:&quot;radio&quot;,name:this.options.name})}I.appendChild(this.radioAny);this.anyField=new inputEx.StringField({value:this.options.allowAny.value});B.setStyle(this.radioAny,&quot;float&quot;,&quot;left&quot;);B.setStyle(this.anyField.getEl(),&quot;float&quot;,&quot;left&quot;);this.anyField.disable();if(this.options.allowAny.separators){G=inputEx.cn(&quot;div&quot;,null,{margin:&quot;3px&quot;},this.options.allowAny.separators[0]||&quot;&quot;);B.setStyle(G,&quot;float&quot;,&quot;left&quot;);I.appendChild(G)}I.appendChild(this.anyField.getEl());if(this.options.allowAny.separators){G=inputEx.cn(&quot;div&quot;,null,{margin:&quot;3px&quot;},this.options.allowAny.separators[1]||&quot;&quot;);B.setStyle(G,&quot;float&quot;,&quot;left&quot;);I.appendChild(G)}this.fieldContainer.appendChild(I);this.optionEls.push(this.radioAny)}},initEvents:function(){A.addListener(this.optionEls,&quot;change&quot;,this.onChange,this,true);A.addFocusListener(this.optionEls,this.onFocus,this,true);A.addBlurListener(this.optionEls,this.onBlur,this,true);if(YAHOO.env.ua.ie){A.addListener(this.optionEls,&quot;click&quot;,function(){YAHOO.lang.later(10,this,this.fireUpdatedEvt)},this,true)}if(this.anyField){this.anyField.updatedEvt.subscribe(function(D){inputEx.RadioField.superclass.onChange.call(this,D)},this,true);A.addBlurListener(this.anyField.el,this.onBlur,this,true)}},onChange:function(D){if(this.radioAny){if(this.radioAny==A.getTarget(D)){this.anyField.enable();C.later(50,this.anyField,&quot;focus&quot;)}else{this.anyField.disable()}}if(!YAHOO.env.ua.ie){inputEx.RadioField.superclass.onChange.call(this,D)}},getValue:function(){for(var D=0;D&lt;this.optionEls.length;D++){if(this.optionEls[D].checked){if(this.radioAny&amp;&amp;this.radioAny==this.optionEls[D]){var E=this.anyField.getValue();return E}return this.options.values[D]}}return&quot;&quot;},setValue:function(H,D){var F=true,G;for(var E=0;E&lt;this.optionEls.length;E++){if(H==this.options.values[E]){this.optionEls[E].checked=true;F=false}else{this.optionEls[E].checked=false}if(this.radioAny&amp;&amp;this.radioAny==this.optionEls[E]){G=this.optionEls[E]}}if(this.radioAny){if(F){G.checked=true;this.anyField.enable();this.anyField.setValue(H,false)}else{this.anyField.disable()}}inputEx.StringField.superclass.setValue.call(this,H,D)},clear:function(D){if(this.radioAny){this.anyField.setValue(this.options.allowAny.value,false)}inputEx.RadioField.superclass.clear.call(this,D)},isEmpty:function(){for(var D=0;D&lt;this.optionEls.length;D++){if(this.optionEls[D].checked){if(this.radioAny&amp;&amp;this.radioAny==this.optionEls[D]){return this.anyField.getValue()===&quot;&quot;}else{return false}}}return true},validate:function(){if(this.options.allowAny){for(var D=0;D&lt;this.optionEls.length;D++){if(this.optionEls[D].checked){if(this.radioAny&amp;&amp;this.radioAny==this.optionEls[D]){var E=this.anyField.getValue();return this.options.allowAny.validator(E)}}}}return true}});inputEx.registerType(&quot;radio&quot;,inputEx.RadioField,[{type:&quot;list&quot;,inputParams:{label:&quot;Options&quot;,name:&quot;choices&quot;,elementType:{type:&quot;string&quot;}}},{type:&quot;boolean&quot;,inputParams:{label:&quot;Allow custom value&quot;,name:&quot;allowAny&quot;},value:false}])})();(function(){var A=YAHOO.lang;inputEx.RTEField=function(B){inputEx.RTEField.superclass.constructor.call(this,B)};A.extend(inputEx.RTEField,inputEx.Field,{setOptions:function(B){inputEx.RTEField.superclass.setOptions.call(this,B);this.options.opts=B.opts||{};this.options.type=B.type},renderComponent:function(){if(!inputEx.RTEfieldsNumber){inputEx.RTEfieldsNumber=0}var G=&quot;inputEx-RTEField-&quot;+inputEx.RTEfieldsNumber;var C={id:G};if(this.options.name){C.name=this.options.name}this.el=inputEx.cn(&quot;textarea&quot;,C);inputEx.RTEfieldsNumber+=1;this.fieldContainer.appendChild(this.el);var E={height:&quot;300px&quot;,width:&quot;580px&quot;,dompath:true};var F=this.options.opts;for(var D in F){if(A.hasOwnProperty(F,D)){E[D]=F[D]}}var B=((this.options.type&amp;&amp;(this.options.type==&quot;simple&quot;))?YAHOO.widget.SimpleEditor:YAHOO.widget.Editor);if(B){this.editor=new B(G,E);this.editor.render()}else{alert(&quot;Editor is not on the page&quot;)}},setValue:function(C,B){if(this.editor){var D=this.el.id+&quot;_editor&quot;;if(!YAHOO.util.Dom.get(D)){this.el.value=C}else{this.editor.setEditorHTML(C)}}if(B!==false){this.fireUpdatedEvt()}},getValue:function(){try{this.editor.saveHTML();return this.el.value}catch(B){return null}}});inputEx.registerType(&quot;html&quot;,inputEx.RTEField,[])})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.SelectField=function(C){inputEx.SelectField.superclass.constructor.call(this,C)};B.extend(inputEx.SelectField,inputEx.Field,{setOptions:function(C){inputEx.SelectField.superclass.setOptions.call(this,C);this.options.multiple=B.isUndefined(C.multiple)?false:C.multiple;this.options.selectValues=[];this.options.selectOptions=[];for(var D=0,E=C.selectValues.length;D&lt;E;D++){this.options.selectValues.push(C.selectValues[D]);this.options.selectOptions.push(&quot;&quot;+((C.selectOptions&amp;&amp;!B.isUndefined(C.selectOptions[D]))?C.selectOptions[D]:C.selectValues[D]))}},renderComponent:function(){this.el=inputEx.cn(&quot;select&quot;,{id:this.divEl.id?this.divEl.id+&quot;-field&quot;:YAHOO.util.Dom.generateId(),name:this.options.name||&quot;&quot;});if(this.options.multiple){this.el.multiple=true;this.el.size=this.options.selectValues.length}this.optionEls={};var C;for(var D=0;D&lt;this.options.selectValues.length;D++){C=inputEx.cn(&quot;option&quot;,{value:this.options.selectValues[D]},null,this.options.selectOptions[D]);this.optionEls[this.options.selectOptions[D]]=C;this.el.appendChild(C)}this.fieldContainer.appendChild(this.el)},initEvents:function(){A.addListener(this.el,&quot;change&quot;,this.onChange,this,true);A.addFocusListener(this.el,this.onFocus,this,true);A.addBlurListener(this.el,this.onBlur,this,true)},setValue:function(G,D){var C=0;var F;for(var E=0;E&lt;this.options.selectValues.length;E++){if(G===this.options.selectValues[E]){F=this.el.childNodes[E];F.selected=&quot;selected&quot;}}inputEx.SelectField.superclass.setValue.call(this,G,D)},getValue:function(){return this.options.selectValues[this.el.selectedIndex]},disable:function(){this.el.disabled=true},enable:function(){this.el.disabled=false},addOption:function(D){var I=D.value,F=&quot;&quot;+(!B.isUndefined(D.option)?D.option:D.value),J=this.options.selectOptions.length,C=J,E;if(B.isNumber(D.position)&amp;&amp;D.position&gt;=0&amp;&amp;D.position&lt;=C){C=parseInt(D.position,10)}else{if(B.isString(D.before)){for(E=0;E&lt;J;E++){if(this.options.selectOptions[E]===D.before){C=E;break}}}else{if(B.isString(D.after)){for(E=0;E&lt;J;E++){if(this.options.selectOptions[E]===D.after){C=E+1;break}}}}}this.options.selectValues=this.options.selectValues.slice(0,C).concat([I]).concat(this.options.selectValues.slice(C,J));this.options.selectOptions=this.options.selectOptions.slice(0,C).concat([F]).concat(this.options.selectOptions.slice(C,J));var H=inputEx.cn(&quot;option&quot;,{value:I},null,F);this.optionEls[F]=H;if(C&lt;J){YAHOO.util.Dom.insertBefore(H,this.el.childNodes[C])}else{this.el.appendChild(H)}if(!!D.selected){var G=this;setTimeout(function(){G.setValue(I)},0)}},removeOption:function(F){var E,H=this.options.selectOptions.length,D=this.el.selectedIndex,G;if(B.isNumber(F.position)&amp;&amp;F.position&gt;=0&amp;&amp;F.position&lt;=H){E=parseInt(F.position,10)}else{if(B.isString(F.option)){for(G=0;G&lt;H;G++){if(this.options.selectOptions[G]===F.option){E=G;break}}}else{if(B.isString(F.value)){for(G=0;G&lt;H;G++){if(this.options.selectValues[G]===F.value){E=G;break}}}}}if(!B.isNumber(E)){throw new Error(&quot;SelectField : invalid or missing position, option or value in removeOption&quot;)}this.options.selectValues.splice(E,1);var C=this.options.selectOptions.splice(E,1);this.el.removeChild(this.optionEls[C]);delete this.optionEls[C];if(D==E){this.clear()}}});inputEx.registerType(&quot;select&quot;,inputEx.SelectField,[{type:&quot;list&quot;,inputParams:{name:&quot;selectValues&quot;,label:&quot;Values&quot;,elementType:{type:&quot;string&quot;},required:true}},{type:&quot;list&quot;,inputParams:{name:&quot;selectOptions&quot;,label:&quot;Options&quot;,elementType:{type:&quot;string&quot;}}}])})();(function(){var A=YAHOO.util.Event;inputEx.Textarea=function(B){inputEx.Textarea.superclass.constructor.call(this,B)};YAHOO.lang.extend(inputEx.Textarea,inputEx.StringField,{setOptions:function(B){inputEx.Textarea.superclass.setOptions.call(this,B);this.options.rows=B.rows||6;this.options.cols=B.cols||23},renderComponent:function(){this.wrapEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-StringField-wrapper&quot;});var B={};B.id=this.divEl.id?this.divEl.id+&quot;-field&quot;:YAHOO.util.Dom.generateId();B.rows=this.options.rows;B.cols=this.options.cols;if(this.options.name){B.name=this.options.name}this.el=inputEx.cn(&quot;textarea&quot;,B,null,this.options.value);this.wrapEl.appendChild(this.el);this.fieldContainer.appendChild(this.wrapEl)},validate:function(){var B=inputEx.Textarea.superclass.validate.call(this);if(this.options.maxLength){B=B&amp;&amp;this.getValue().length&lt;=this.options.maxLength}return B},getStateString:function(B){if(B==inputEx.stateInvalid&amp;&amp;this.options.minLength&amp;&amp;this.el.value.length&lt;this.options.minLength){return inputEx.messages.stringTooShort[0]+this.options.minLength+inputEx.messages.stringTooShort[1]}else{if(B==inputEx.stateInvalid&amp;&amp;this.options.maxLength&amp;&amp;this.el.value.length&gt;this.options.maxLength){return inputEx.messages.stringTooLong[0]+this.options.maxLength+inputEx.messages.stringTooLong[1]}}return inputEx.Textarea.superclass.getStateString.call(this,B)},insert:function(E){var D,C,B;if(document.selection){this.el.focus();D=document.selection.createRange();D.text=E}else{if(this.el.selectionStart||this.el.selectionStart==&quot;0&quot;){C=this.el.selectionStart;B=this.el.selectionEnd;this.el.value=this.el.value.substring(0,C)+E+this.el.value.substring(B,this.el.value.length)}else{this.el.value+=E}}}});inputEx.messages.stringTooLong=[&quot;This field should contain at most &quot;,&quot; numbers or characters&quot;];inputEx.registerType(&quot;text&quot;,inputEx.Textarea,[{type:&quot;integer&quot;,inputParams:{label:&quot;Rows&quot;,name:&quot;rows&quot;,value:6}},{type:&quot;integer&quot;,inputParams:{label:&quot;Cols&quot;,name:&quot;cols&quot;,value:23}}])})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.TimeField=function(D){var H=[],F,C=[],E=[],G;for(F=0;F&lt;24;F++){G=&quot;&quot;;if(F&lt;10){G=&quot;0&quot;}G+=F;H.push(G)}for(F=0;F&lt;60;F++){G=&quot;&quot;;if(F&lt;10){G=&quot;0&quot;}G+=F;C.push(G);E.push(G)}D.fields=[{type:&quot;select&quot;,inputParams:{selectOptions:H,selectValues:H}},{type:&quot;select&quot;,inputParams:{selectOptions:C,selectValues:C}},{type:&quot;select&quot;,inputParams:{selectOptions:E,selectValues:E}}];D.separators=D.separators||[false,&quot;:&quot;,&quot;:&quot;,false];inputEx.TimeField.superclass.constructor.call(this,D)};B.extend(inputEx.TimeField,inputEx.CombineField,{getValue:function(){var C=inputEx.TimeField.superclass.getValue.call(this);return C.join(&quot;:&quot;)},setValue:function(D,C){inputEx.TimeField.superclass.setValue.call(this,D.split(&quot;:&quot;),C)}});inputEx.registerType(&quot;time&quot;,inputEx.TimeField)})();(function(){var A=YAHOO.util.Event,B=YAHOO.lang;inputEx.DateTimeField=function(C){C.fields=[{type:&quot;datepicker&quot;,inputParams:{}},{type:&quot;time&quot;,inputParams:{}}];if(C.dateFormat){C.fields[0].inputParams.dateFormat=C.dateFormat}C.separators=C.separators||[false,&quot;&amp;nbsp;&amp;nbsp;&quot;,false];inputEx.DateTimeField.superclass.constructor.call(this,C)};B.extend(inputEx.DateTimeField,inputEx.CombineField,{getValue:function(){var D=this.inputs[0].getValue();if(D==&quot;&quot;){return null}var C=this.inputs[1].getValue().split(&quot;:&quot;);D.setHours(C[0]);D.setMinutes(C[1]);D.setSeconds(C[2]);return D},setValue:function(H,D){if(!B.isObject(H)){return }var F=H.getHours();var C=H.getMinutes();var E=H.getSeconds();var G=([(F&lt;10?&quot;0&quot;:&quot;&quot;)+F,(C&lt;10?&quot;0&quot;:&quot;&quot;)+C,(E&lt;10?&quot;0&quot;:&quot;&quot;)+E]).join(&quot;:&quot;);inputEx.DateTimeField.superclass.setValue.call(this,[H,G],D)}});inputEx.registerType(&quot;datetime&quot;,inputEx.DateTimeField)})();(function(){inputEx.UneditableField=function(A){inputEx.UneditableField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.UneditableField,inputEx.Field,{setOptions:function(A){inputEx.UneditableField.superclass.setOptions.call(this,A);this.options.visu=A.visu},setValue:function(B,A){this.value=B;inputEx.renderVisu(this.options.visu,B,this.fieldContainer);inputEx.UneditableField.superclass.setValue.call(this,B,A)},getValue:function(){return this.value}});inputEx.registerType(&quot;uneditable&quot;,inputEx.UneditableField)})();(function(){var A=YAHOO.lang;inputEx.UrlField=function(B){inputEx.UrlField.superclass.constructor.call(this,B)};A.extend(inputEx.UrlField,inputEx.StringField,{setOptions:function(B){inputEx.UrlField.superclass.setOptions.call(this,B);this.options.className=B.className?B.className:&quot;inputEx-Field inputEx-UrlField&quot;;this.options.messages.invalid=inputEx.messages.invalidUrl;this.options.favicon=A.isUndefined(B.favicon)?((&quot;https:&quot;==document.location.protocol)?false:true):B.favicon;this.options.size=B.size||50;this.options.regexp=inputEx.regexps.url},render:function(){inputEx.UrlField.superclass.render.call(this);this.el.size=this.options.size;if(!this.options.favicon){YAHOO.util.Dom.addClass(this.el,&quot;nofavicon&quot;)}if(this.options.favicon){this.favicon=inputEx.cn(&quot;img&quot;,{src:inputEx.spacerUrl});this.fieldContainer.insertBefore(this.favicon,this.fieldContainer.childNodes[0]);YAHOO.util.Event.addListener(this.favicon,&quot;click&quot;,function(){this.focus()},this,true)}},setClassFromState:function(){inputEx.UrlField.superclass.setClassFromState.call(this);if(this.options.favicon){this.updateFavicon((this.previousState==inputEx.stateValid)?this.getValue():null)}},updateFavicon:function(C){var B=C?C.match(/https?:\/\/[^\/]*/)+&quot;/favicon.ico&quot;:inputEx.spacerUrl;if(B!=this.favicon.src){inputEx.sn(this.favicon,null,{visibility:&quot;hidden&quot;});this.favicon.src=B;if(this.timer){clearTimeout(this.timer)}var D=this;this.timer=setTimeout(function(){D.displayFavicon()},1000)}},displayFavicon:function(){inputEx.sn(this.favicon,null,{visibility:(this.favicon.naturalWidth!=0)?&quot;visible&quot;:&quot;hidden&quot;})}});inputEx.messages.invalidUrl=&quot;Invalid URL, ex: http://www.test.com&quot;;inputEx.registerType(&quot;url&quot;,inputEx.UrlField,[{type:&quot;boolean&quot;,inputParams:{label:&quot;Display favicon&quot;,name:&quot;favicon&quot;,value:true}}])})();(function(){var B=YAHOO.util.DragDropMgr,C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang;inputEx.widget.DDListItem=function(E){inputEx.widget.DDListItem.superclass.constructor.call(this,E);this.setXConstraint(0,0);this.goingUp=false;this.lastY=0};YAHOO.extend(inputEx.widget.DDListItem,YAHOO.util.DDProxy,{startDrag:function(F,H){var E=this.getDragEl();var G=this.getEl();C.setStyle(G,&quot;visibility&quot;,&quot;hidden&quot;);this._originalIndex=inputEx.indexOf(G,G.parentNode.childNodes);E.className=G.className;E.innerHTML=G.innerHTML},endDrag:function(F){C.setStyle(this.id,&quot;visibility&quot;,&quot;&quot;);var G=this.getEl();var E=inputEx.indexOf(G,G.parentNode.childNodes);if(this._originalIndex!=E){this._list.onReordered(this._originalIndex,E)}},onDragDrop:function(I,J){if(B.interactionInfo.drop.length===1){var H=B.interactionInfo.point;var G=B.interactionInfo.sourceRegion;if(!G.intersect(H)){var E=C.get(J);if(E.nodeName.toLowerCase()!=&quot;li&quot;){var F=B.getDDById(J);E.appendChild(this.getEl());F.isEmpty=false;B.refreshCache()}}}},onDrag:function(E){var F=A.getPageY(E);if(F&lt;this.lastY){this.goingUp=true}else{if(F&gt;this.lastY){this.goingUp=false}}this.lastY=F},onDragOver:function(I,J){var G=this.getEl();var F=C.get(J);if(F.nodeName.toLowerCase()==&quot;li&quot;){var E=G.parentNode;var H=F.parentNode;if(this.goingUp){H.insertBefore(G,F)}else{H.insertBefore(G,F.nextSibling)}B.refreshCache()}}});inputEx.widget.DDList=function(E){this.ul=inputEx.cn(&quot;ul&quot;);this.items=[];this.setOptions(E);this.itemRemovedEvt=new YAHOO.util.CustomEvent(&quot;itemRemoved&quot;,this);this.listReorderedEvt=new YAHOO.util.CustomEvent(&quot;listReordered&quot;,this);if(E.parentEl){if(D.isString(E.parentEl)){C.get(E.parentEl).appendChild(this.ul)}else{E.parentEl.appendChild(this.ul)}}};inputEx.widget.DDList.prototype={setOptions:function(E){this.options={};this.options.allowDelete=D.isUndefined(E.allowDelete)?true:E.allowDelete;if(E.id){this.ul.id=E.id}if(E.value){this.setValue(E.value)}},addItem:function(G){var E=inputEx.cn(&quot;li&quot;,{className:&quot;inputEx-DDList-item&quot;});E.appendChild(inputEx.cn(&quot;span&quot;,null,null,(typeof G==&quot;object&quot;)?G.label:G));if(!!this.options.allowDelete){var H=inputEx.cn(&quot;a&quot;,null,null,&quot;remove&quot;);E.appendChild(H);A.addListener(H,&quot;click&quot;,function(K){var J=A.getTarget(K);var I=J.parentNode;this.removeItem(inputEx.indexOf(I,this.ul.childNodes))},this,true)}var F=new inputEx.widget.DDListItem(E);F._list=this;this.items.push((typeof G==&quot;object&quot;)?G.value:G);this.ul.appendChild(E)},_removeItem:function(E){var F=this.items[E];this.ul.removeChild(this.ul.childNodes[E]);this.items[E]=null;this.items=inputEx.compactArray(this.items);return F},removeItem:function(E){var F=this._removeItem(E);this.itemRemovedEvt.fire(F)},onReordered:function(F,E){if(F&lt;E){this.items.splice(E+1,0,this.items[F]);this.items[F]=null}else{this.items.splice(E,0,this.items[F]);this.items[F+1]=null}this.items=inputEx.compactArray(this.items);this.listReorderedEvt.fire()},getValue:function(){return this.items},updateItem:function(E,F){this.items[E]=F;this.ul.childNodes[E].childNodes[0].innerHTML=F},setValue:function(H){if(!D.isArray(H)){H=[]}var I=this.ul.childNodes.length;var G=H.length;for(var F=0;F&lt;G;F++){if(F&lt;I){this.updateItem(F,H[F])}else{this.addItem(H[F])}}for(var E=G;E&lt;I;E++){this._removeItem(G)}}}})();(function(){inputEx.MultiSelectField=function(A){inputEx.MultiSelectField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.MultiSelectField,inputEx.SelectField,{renderComponent:function(){inputEx.MultiSelectField.superclass.renderComponent.call(this);this.ddlist=new inputEx.widget.DDList({parentEl:this.fieldContainer})},initEvents:function(){YAHOO.util.Event.addListener(this.el,&quot;change&quot;,this.onAddNewItem,this,true);this.ddlist.itemRemovedEvt.subscribe(this.onItemRemoved,this,true);this.ddlist.listReorderedEvt.subscribe(this.fireUpdatedEvt,this,true)},onItemRemoved:function(B,D){var C=D[0];var A=inputEx.indexOf(C,this.options.selectValues);this.el.childNodes[A].disabled=false;this.fireUpdatedEvt()},onAddNewItem:function(){if(this.el.selectedIndex!=0){if(this.options.selectOptions){this.ddlist.addItem({value:this.options.selectValues[this.el.selectedIndex],label:this.options.selectOptions[this.el.selectedIndex]})}else{this.ddlist.addItem(this.options.selectValues[this.el.selectedIndex])}this.el.childNodes[this.el.selectedIndex].disabled=true;this.el.selectedIndex=0;this.fireUpdatedEvt()}},setValue:function(D,B){this.ddlist.setValue(D);for(var C=0;C&lt;this.el.childNodes.length;C++){this.el.childNodes[C].disabled=false}for(C=0;C&lt;D.length;C++){var A=inputEx.indexOf(D[C],this.options.selectValues);this.el.childNodes[A].disabled=true}if(B!==false){this.fireUpdatedEvt()}},getValue:function(){return this.ddlist.getValue()}});inputEx.registerType(&quot;multiselect&quot;,inputEx.MultiSelectField)})();(function(){var C=YAHOO.lang,A=YAHOO.util.Event,B=YAHOO.util.Dom;inputEx.AutoComplete=function(D){inputEx.AutoComplete.superclass.constructor.call(this,D)};C.extend(inputEx.AutoComplete,inputEx.StringField,{setOptions:function(D){inputEx.AutoComplete.superclass.setOptions.call(this,D);this.options.className=D.className?D.className:&quot;inputEx-Field inputEx-AutoComplete&quot;;this.options.datasource=D.datasource;this.options.autoComp=D.autoComp;this.options.returnValue=D.returnValue},initEvents:function(){inputEx.AutoComplete.superclass.initEvents.call(this);A.removeBlurListener(this.el,this.onBlur)},renderComponent:function(){this.wrapEl=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-StringField-wrapper&quot;});var D={type:&quot;text&quot;,id:YAHOO.util.Dom.generateId()};if(this.options.size){D.size=this.options.size}if(this.options.readonly){D.readonly=&quot;readonly&quot;}if(this.options.maxLength){D.maxLength=this.options.maxLength}this.el=inputEx.cn(&quot;input&quot;,D);var E={type:&quot;hidden&quot;,value:&quot;&quot;};if(this.options.name){E.name=this.options.name}this.hiddenEl=inputEx.cn(&quot;input&quot;,E);this.wrapEl.appendChild(this.el);this.wrapEl.appendChild(this.hiddenEl);this.fieldContainer.appendChild(this.wrapEl);this.listEl=inputEx.cn(&quot;div&quot;,{id:B.generateId()});this.fieldContainer.appendChild(this.listEl);A.onAvailable([this.el,this.listEl],this.buildAutocomplete,this,true)},buildAutocomplete:function(){if(!this._nElementsReady){this._nElementsReady=0}this._nElementsReady++;if(this._nElementsReady!=2){return }this.oAutoComp=new YAHOO.widget.AutoComplete(this.el.id,this.listEl.id,this.options.datasource,this.options.autoComp);this.oAutoComp.itemSelectEvent.subscribe(this.itemSelectHandler,this,true);this.oAutoComp.textboxBlurEvent.subscribe(this.onBlur,this,true)},itemSelectHandler:function(F,E){var D=E[2];this.setValue(this.options.returnValue?this.options.returnValue(D):D[0])},onChange:function(D){this.setClassFromState();C.later(50,this,function(){if(this.el.value==&quot;&quot;){this.setValue(&quot;&quot;)}})},setValue:function(E,D){this.hiddenEl.value=E||&quot;&quot;;this.setClassFromState();if(D!==false){this.fireUpdatedEvt()}},getValue:function(){return this.hiddenEl.value}});inputEx.registerType(&quot;autocomplete&quot;,inputEx.AutoComplete)})();(function(){var A=YAHOO.lang;inputEx.MultiAutoComplete=function(B){inputEx.MultiAutoComplete.superclass.constructor.call(this,B)};A.extend(inputEx.MultiAutoComplete,inputEx.AutoComplete,{renderComponent:function(){inputEx.MultiAutoComplete.superclass.renderComponent.call(this);this.ddlist=new inputEx.widget.DDList({parentEl:this.fieldContainer});this.ddlist.itemRemovedEvt.subscribe(function(){this.setClassFromState();this.fireUpdatedEvt()},this,true);this.ddlist.listReorderedEvt.subscribe(this.fireUpdatedEvt,this,true)},setOptions:function(B){inputEx.MultiAutoComplete.superclass.setOptions.call(this,B);this.options.returnLabel=B.returnLabel},itemSelectHandler:function(F,E){var C=E[2];var D=A.isFunction(this.options.returnValue)?this.options.returnValue(C):C[0];var B=A.isFunction(this.options.returnLabel)?this.options.returnLabel(C):D;this.ddlist.addItem({label:B,value:D});this.el.value=&quot;&quot;;this.fireUpdatedEvt()},setValue:function(C,B){this.ddlist.setValue(C);this.setClassFromState();if(B!==false){this.fireUpdatedEvt()}},getValue:function(){return this.ddlist.getValue()},getState:function(){var B=this.getValue();if(B.length===0){return this.options.required?inputEx.stateRequired:inputEx.stateEmpty}return this.validate()?inputEx.stateValid:inputEx.stateInvalid},validate:function(){return true},onChange:function(B){}});inputEx.registerType(&quot;multiautocomplete&quot;,inputEx.MultiAutoComplete)})();(function(){inputEx.UneditableField=function(A){inputEx.UneditableField.superclass.constructor.call(this,A)};YAHOO.lang.extend(inputEx.UneditableField,inputEx.Field,{setOptions:function(A){inputEx.UneditableField.superclass.setOptions.call(this,A);this.options.visu=A.visu},setValue:function(B,A){this.value=B;inputEx.renderVisu(this.options.visu,B,this.fieldContainer);inputEx.UneditableField.superclass.setValue.call(this,B,A)},getValue:function(){return this.value}});inputEx.registerType(&quot;uneditable&quot;,inputEx.UneditableField)})();(function(){var A=YAHOO.lang;inputEx.SliderField=function(B){inputEx.SliderField.superclass.constructor.call(this,B)};YAHOO.lang.extend(inputEx.SliderField,inputEx.Field,{setOptions:function(B){inputEx.SliderField.superclass.setOptions.call(this,B);this.options.className=B.className?B.className:&quot;inputEx-SliderField&quot;;this.options.minValue=A.isUndefined(B.minValue)?0:B.minValue;this.options.maxValue=A.isUndefined(B.maxValue)?100:B.maxValue;this.options.displayValue=A.isUndefined(B.displayValue)?true:B.displayValue},renderComponent:function(){this.sliderbg=inputEx.cn(&quot;div&quot;,{id:YAHOO.util.Dom.generateId(),className:&quot;inputEx-SliderField-bg&quot;});this.sliderthumb=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-SliderField-thumb&quot;});this.sliderbg.appendChild(this.sliderthumb);this.fieldContainer.appendChild(this.sliderbg);if(this.options.displayValue){this.valueDisplay=inputEx.cn(&quot;div&quot;,{className:&quot;inputEx-SliderField-value&quot;},null,String(this.options.minValue));this.fieldContainer.appendChild(this.valueDisplay)}this.fieldContainer.appendChild(inputEx.cn(&quot;div&quot;,null,{clear:&quot;both&quot;}));this.slider=YAHOO.widget.Slider.getHorizSlider(this.sliderbg,this.sliderthumb,0,100)},initEvents:function(){this.slider.on(&quot;slideEnd&quot;,this.fireUpdatedEvt,this,true);if(this.options.displayValue){this.updatedEvt.subscribe(function(B,D){var C=D[0];this.valueDisplay.innerHTML=C},this,true)}},setValue:function(E,C){var B=E;if(B&lt;this.options.minValue){B=this.options.minValue}if(B&gt;this.options.maxValue){B=this.options.maxValue}var D=Math.floor(B-this.options.minValue)*100/this.options.maxValue;this.slider.setValue(D);inputEx.SliderField.superclass.setValue.call(this,E,C)},getValue:function(){var B=Math.floor(this.options.minValue+(this.options.maxValue-this.options.minValue)*this.slider.getValue()/100);return B}});inputEx.registerType(&quot;slider&quot;,inputEx.SliderField,[{type:&quot;integer&quot;,inputParams:{label:&quot;Min. value&quot;,name:&quot;minValue&quot;,value:0}},{type:&quot;integer&quot;,inputParams:{label:&quot;Max. value&quot;,name:&quot;maxValue&quot;,value:100}}])})();
\ No newline at end of file</diff>
      <filename>build/inputex-min.js</filename>
    </modified>
    <modified>
      <diff>@@ -2490,7 +2490,7 @@ lang.extend(inputEx.AutoComplete, inputEx.StringField, {
     */
    setValue: function(value, sendUpdatedEvt) {
 	
-      this.hiddenEl.value = value;
+      this.hiddenEl.value = value || &quot;&quot;;
       
       // &quot;inherited&quot; from inputex.Field :
       //    (can't inherit of inputex.StringField because would set this.el.value...)
@@ -6132,7 +6132,7 @@ lang.extend(inputEx.AutoComplete, inputEx.StringField, {
     */
    setValue: function(value, sendUpdatedEvt) {
 	
-      this.hiddenEl.value = value;
+      this.hiddenEl.value = value || &quot;&quot;;
       
       // &quot;inherited&quot; from inputex.Field :
       //    (can't inherit of inputex.StringField because would set this.el.value...)</diff>
      <filename>build/inputex.js</filename>
    </modified>
    <modified>
      <diff>@@ -144,7 +144,7 @@ lang.extend(inputEx.AutoComplete, inputEx.StringField, {
     */
    setValue: function(value, sendUpdatedEvt) {
 	
-      this.hiddenEl.value = value;
+      this.hiddenEl.value = value || &quot;&quot;;
       
       // &quot;inherited&quot; from inputex.Field :
       //    (can't inherit of inputex.StringField because would set this.el.value...)</diff>
      <filename>js/fields/AutoComplete.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f6684043d21e3d2fa8f4563e36f63170f3a53c2e</id>
    </parent>
  </parents>
  <author>
    <name>neyric</name>
    <email>eric.abouaf@gmail.com</email>
  </author>
  <url>http://github.com/neyric/inputex/commit/9549d442018d524b8a54aaa81e9b2871b304d883</url>
  <id>9549d442018d524b8a54aaa81e9b2871b304d883</id>
  <committed-date>2009-11-06T10:47:31-08:00</committed-date>
  <authored-date>2009-11-06T10:47:31-08:00</authored-date>
  <message>Set default value in AutoComplete to &quot;&quot;</message>
  <tree>9de1c228d8d7c354738adce699dceab1c25d3774</tree>
  <committer>
    <name>neyric</name>
    <email>eric.abouaf@gmail.com</email>
  </committer>
</commit>
