if(!window.$wf2){var $wf2={};if(document.implementation&&document.implementation.hasFeature&&!document.implementation.hasFeature("WebForms","2.0")){$wf2={version:"0.5.4",isInitialized:false,libpath:"",hasElementExtensions:(window.HTMLElement&&HTMLElement.prototype),hasGettersAndSetters:($wf2.__defineGetter__&&$wf2.__defineSetter__),onDOMContentLoaded:function(){if($wf2.isInitialized){return}$wf2.isInitialized=true;var c,b,a,g;var f=document.createElement("link");f.setAttribute("type","text/css");f.setAttribute("rel","stylesheet");f.setAttribute("href",$wf2.libpath+"webforms2.css");var d=document.getElementsByTagName("head")[0];if(!d){d=document.getElementsByTagName("*")[0]}d.insertBefore(f,d.firstChild);$wf2.zeroPoint={};$wf2.zeroPoint.datetime=$wf2.parseISO8601("1970-01-01T00:00:00.0Z");$wf2.zeroPoint["datetime-local"]=$wf2.parseISO8601("1970-01-01T00:00:00.0");$wf2.zeroPoint.date=$wf2.zeroPoint.datetime;$wf2.zeroPoint.month=$wf2.zeroPoint.datetime;$wf2.zeroPoint.week=$wf2.parseISO8601("1970-W01");$wf2.zeroPoint.time=$wf2.zeroPoint.datetime;$wf2.xhr=null;if(window.XMLHttpRequest){$wf2.xhr=new XMLHttpRequest()}else{if(window.ActiveXObject){try{$wf2.xhr=new ActiveXObject("Msxml2.XMLHTTP")}catch(h){try{$wf2.xhr=new ActiveXObject("Microsoft.XMLHTTP")}catch(h){}}}}if($wf2.xhr){$wf2.prefillSelectElements();$wf2.prefillFormElements()}$wf2.initRepetitionBlocks();$wf2.initRepetitionTemplates();$wf2.initRepetitionButtons("add");$wf2.initRepetitionButtons("remove");$wf2.initRepetitionButtons("move-up");$wf2.initRepetitionButtons("move-down");$wf2.updateAddButtons();$wf2.updateMoveButtons();if(document.addEventListener){document.addEventListener("mousedown",$wf2.clearInvalidIndicators,false);document.addEventListener("keydown",$wf2.clearInvalidIndicators,false)}else{if(document.attachEvent){document.attachEvent("onmousedown",$wf2.clearInvalidIndicators);document.attachEvent("onkeydown",$wf2.clearInvalidIndicators)}}$wf2.initNonRepetitionFunctionality()},prefillSelectElements:function(){var a,d=$wf2.getElementsByTagNames.apply(document.documentElement,["select","datalist"]);for(var c=0;a=d[c];c++){var e=$wf2.loadDataURI(a);if(e&&e.documentElement&&/:?\bselect$/i.test(e.documentElement.nodeName)&&e.documentElement.namespaceURI=="http://www.w3.org/1999/xhtml"){var b=e.documentElement;if(b.getAttribute("type")!="incremental"){while(a.lastChild){a.removeChild(a.lastChild)}}node=b.firstChild;while(node){a.appendChild($wf2.cloneNode(node));node=node.nextSibling}}}},prefillFormElements:function(){var y,z=document.getElementsByTagName("form");for(var t=0;y=z[t];t++){var g=$wf2.loadDataURI(y);if(g&&g.documentElement&&/:?\bformdata$/.test(g.documentElement.nodeName)&&g.documentElement.namespaceURI=="http://n.whatwg.org/formdata"){var f;var q=g.documentElement;if(q.getAttribute("type")!="incremental"){y.reset()}var c,v=q.getElementsByTagName("clear");for(j=0;c=v[j];j++){if(c.namespaceURI=="http://n.whatwg.org/formdata"&&c.parentNode==q&&!c.firstChild&&(f=document.getElementById(c.getAttribute("template")))&&f.getAttribute("repeat")=="template"){var o,p,m;p=f.parentNode.firstChild;while(p){if(p.nodeType==1&&(o=p.getAttributeNode("repeat"))&&o.value!="template"){m=p.nextSibling;p.parentNode.removeChild(p);p=m}else{p=p.nextSibling}}}}var e,s,A=q.getElementsByTagName("repeat");for(j=0;s=A[j];j++){if(s.namespaceURI=="http://n.whatwg.org/formdata"&&s.parentNode==q&&!s.firstChild&&(f=document.getElementById(s.getAttribute("template")))&&f.getAttribute("repeat")=="template"&&/^-?\d+$/.test(e=s.getAttribute("index"))){var w,o,p,m;p=f.parentNode.firstChild;while(p){if(p.nodeType==1&&(o=p.getAttributeNode("repeat"))&&o.value==e){w=true;break}p=p.nextSibling}if(!w){$wf2.addRepetitionBlockByIndex.apply(f,[null,e])}}}var b,l=q.getElementsByTagName("field");var x=$wf2.getFormElements.apply(y);for(j=0;b=l[j];j++){var u=b.getAttributeNode("index");var B=b.getAttribute("name");if(!B||(u&&!/^\d+$/.test(u.value))){continue}var n="";for(r=0;p=b.childNodes[r];r++){if(p.nodeType==3||p.nodeType==4){n+=p.data}else{break}}var h,d=0;for(r=0;h=x[r];r++){if(h.type=="image"){if(h.name?(h.name+".x"==B||h.name+".y"==B):(B=="x"||B=="y")){if(!u||++d-1>=u.value){break}}}else{if(h.name==B){if(u){if(++d-1<u.value){continue}}else{if((h.type=="radio"||h.type=="checkbox")&&(n&&h.value!=n)){continue}}break}}}if(h.type=="file"||h.type=="button"||h.type=="image"){continue}if(!h.getAttributeNode("multiple")||!h.wf2Prefilled){if(h.type=="checkbox"||h.type=="radio"){if(!n){h.checked=false}else{if(h.value==n){h.checked=true}else{break}}}else{if(h.nodeName.toLowerCase()=="select"){h.selectedIndex=-1;for(var a,r=0;a=h.options[r];r++){if(a.value?a.value==n:a.text==n){a.selected=true;break}}}else{h.value=n;$wf2.updateValidityState(h);if(!h.validity.valid){h.value=h.defaultValue;$wf2.updateValidityState(h)}}}h.wf2Prefilled=true}else{if(h.getAttributeNode("multiple")){for(var a,r=0;a=h.options[r];r++){if(!a.selected&&(a.value?a.value==n:a.text==n)){a.selected=true;break}}}}}var x=$wf2.getFormElements.apply(y);for(j=0;j<x.length;j++){}}}},repetitionTemplates:[],constructRepetitionTemplate:function(){if(this.wf2Initialized){return}this.wf2Initialized=true;this.style.display="none";this.repetitionType=RepetitionElement.REPETITION_TEMPLATE;if(!this.repetitionIndex){this.repetitionIndex=0}this.repetitionTemplate=null;if(!this.repetitionBlocks){this.repetitionBlocks=[]}var g;this.repeatStart=/^\d+$/.test(g=this.getAttribute("repeat-start"))?parseInt(g):1;this.repeatMin=/^\d+$/.test(g=this.getAttribute("repeat-min"))?parseInt(g):0;this.repeatMax=/^\d+$/.test(g=this.getAttribute("repeat-max"))?parseInt(g):Number.MAX_VALUE;if(!this.addRepetitionBlock){this.addRepetitionBlock=function(h,i){return $wf2.addRepetitionBlock.apply(this,[h,i])}}if(!this.addRepetitionBlockByIndex){this.addRepetitionBlockByIndex=this.addRepetitionBlock}var f=this;while(f=f.parentNode){if(f.nodeName.toLowerCase()=="form"){break}}var b;if(f&&(b=$wf2.getElementsByTagNames.apply(this,["button","input","select","textarea","isindex"])).length){for(var e,c=0;e=b[c];c++){e.disabled=true}}var a,d=this.parentNode.firstChild;while(d&&d!=this){if(d.nodeType==1&&(a=d.getAttributeNode("repeat"))&&/^-?\d+$/.test(a.value)&&!d.getAttribute("repeat-template")){d.repetitionTemplate=this;d.setAttribute("repeat-template",this.id);this.repetitionBlocks.push(d)}d=d.nextSibling}for(var c=0;(c<this.repeatStart||this.repetitionBlocks.length<this.repeatMin);c++){this.addRepetitionBlock()}$wf2.repetitionTemplates.push(this);this.wf2Initialized=true},initRepetitionTemplates:function(a){var d=$wf2.getElementsByTagNamesAndAttribute.apply((a||document.documentElement),[["*"],"repeat","template"]);for(var c=0,b;c<d.length;c++){$wf2.constructRepetitionTemplate.apply(d[c])}},constructRepetitionBlock:function(){if(this.wf2Initialized){return}this.style.display="";this.repetitionType=RepetitionElement.REPETITION_BLOCK;var b;this.repetitionIndex=/^\d+$/.test(b=this.getAttribute("repeat"))?parseInt(b):0;this.repetitionBlocks=null;this.repetitionTemplate=null;var a;if((a=document.getElementById(this.getAttribute("repeat-template")))&&a.getAttribute("repeat")=="template"){this.repetitionTemplate=a}else{a=this;while(a=a.nextSibling){if(a.nodeType==1&&a.getAttribute("repeat")=="template"){this.repetitionTemplate=a;break}}}if(!this.removeRepetitionBlock){this.removeRepetitionBlock=function(){return $wf2.removeRepetitionBlock.apply(this)}}if(!this.moveRepetitionBlock){this.moveRepetitionBlock=function(c){return $wf2.moveRepetitionBlock.apply(this,[c])}}this.wf2Initialized=true},initRepetitionBlocks:function(a){var b=$wf2.getElementsByTagNamesAndAttribute.apply((a||document.documentElement),[["*"],"repeat","template",true]);for(var c=0;c<b.length;c++){$wf2.constructRepetitionBlock.apply(b[c])}},repetitionButtonDefaultLabels:{add:"Add",remove:"Remove","move-up":"Move-up","move-down":"Move-down"},constructRepetitionButton:function(a){if(this.wf2Initialized){return}this.htmlTemplate=$wf2.getHtmlTemplate(this);if(!this.firstChild){this.appendChild(document.createTextNode($wf2.repetitionButtonDefaultLabels[a]))}if(a!="add"){this.disabled=!$wf2.getRepetitionBlock(this)}else{var b;this.disabled=!(((b=$wf2.getRepetitionBlock(this))&&b.repetitionTemplate)||this.htmlTemplate)}if(this.addEventListener){this.addEventListener("click",$wf2.clickRepetitionButton,false)}else{if(this.attachEvent){this.attachEvent("onclick",$wf2.clickRepetitionButton)}else{this.onclick=$wf2.clickRepetitionButton}}this.wf2Initialized=true},initRepetitionButtons:function(c,g){var f;if(!g){g=document.documentElement}var b=$wf2.getElementsByTagNamesAndAttribute.apply(g,[["input"],"type",c]);for(f=0;f<b.length;f++){var e=document.createElement("button");for(var d=0,a;a=b[f].attributes[d];d++){e.setAttribute(a.nodeName,b[f].getAttribute(a.nodeName))}b[f].parentNode.replaceChild(e,b[f]);e=null}var h=$wf2.getElementsByTagNamesAndAttribute.apply(g,[["button"],"type",c]);for(var f=0;f<h.length;f++){$wf2.constructRepetitionButton.apply(h[f],[c])}},clickRepetitionButton:function(d){if(d&&d.preventDefault){d.preventDefault()}var c;if(d&&d.target){c=d.target}else{if(window.event){c=event.srcElement}else{if(this.nodeName.toLowerCase()=="button"){c=this}}}var b=String(c.getAttribute("type")).toLowerCase();if(c.onclick){c._onclick=c.onclick;c.removeAttribute("onclick");c.onclick=null}if(c.returnValue!==undefined&&!c.returnValue){c.returnValue=undefined;return false}if(c._onclick&&c.returnValue===undefined){c.returnValue=c._onclick(d);if(c.returnValue!==undefined&&!c.returnValue){c.returnValue=undefined;return false}}c.returnValue=undefined;var f;if(b!="add"){f=$wf2.getRepetitionBlock(c);this.disabled=!f;if(f){if(b.indexOf("move")===0){f._clickedMoveBtn=c;f.moveRepetitionBlock(b=="move-up"?-1:1)}else{if(b=="remove"){f.removeRepetitionBlock()}}}}else{var a;if(c.htmlTemplate){a=c.htmlTemplate}else{f=$wf2.getRepetitionBlock(c);if(f&&f.repetitionTemplate){a=f.repetitionTemplate}}if(a){a.addRepetitionBlock()}else{c.disabled=true}}return false},addRepetitionBlock:function(h,g){if(this.getAttribute("repeat")!="template"){throw $wf2.DOMException(9)}if(!this.repetitionBlocks){this.repetitionBlocks=[]}if(!this.repetitionIndex){this.repetitionIndex=0}if(!this.repeatMin){this.repeatMin=0}if(!this.repeatMax){this.repeatMax=Number.MAX_VALUE}if(!this.repeatStart){this.repeatStart=1}if(this.parentNode==null){return null}var b=this;while(b=b.parentNode){if(b.nodeType==1&&b.getAttribute("repeat")=="template"){return false}}var o=this.previousSibling;var f=0;while(o!=null){if(o.nodeType==1){var m,k;repeat=parseInt(o.getAttribute("repeat"));k=o.getAttributeNode("repeat-template");if(!isNaN(repeat)&&(!k||k.value==this.id)){this.repetitionIndex=Math.max(this.repetitionIndex,repeat+1);f++}}o=o.previousSibling}if(this.repeatMax<=f){return null}if(g!==undefined&&g>this.repetitionIndex){this.repetitionIndex=g}var n=this.getAttribute("id")?"id":this.getAttribute("name")?"name":"";var i=this.getAttribute(n);var d;var a=this.repetitionIndex;var e,q;if(i&&!/\u005B|\u02D1|\u005D|\u00B7/.test(i)){e=new RegExp("(\\[|\u02D1)"+i+"(\\]|\u00B7)","g");q=function(r){if(!r){return r}r=r.toString();if(r.indexOf("\uFEFF")===0){return r.replace(/^\uFEFF/,"")}return r.replace(e,a)}}d=$wf2.cloneNode(this,q);d.wf2Initialized=false;e=null;d.setAttribute("repeat",this.repetitionIndex);d.removeAttribute("repeat-min");d.removeAttribute("repeat-max");d.removeAttribute("repeat-start");if(n){d.setAttribute("repeat-template",i);d.removeAttribute(n)}if(!h){h=this;while(h.previousSibling&&h.previousSibling.repetitionType!=RepetitionElement.REPETITION_BLOCK){h=h.previousSibling}this.parentNode.insertBefore(d,h);this.repetitionBlocks.push(d)}else{h.parentNode.insertBefore(d,h.nextSibling);this.repetitionBlocks.push(d);if($wf2.sortNodes){this.repetitionBlocks.sort($wf2.sortNodes)}}this.repetitionIndex++;$wf2.constructRepetitionBlock.apply(d);$wf2.initRepetitionTemplates(d);$wf2.initRepetitionButtons("add",d);$wf2.initRepetitionButtons("remove",d);$wf2.initRepetitionButtons("move-up",d);$wf2.initRepetitionButtons("move-down",d);if($wf2.isInitialized){$wf2.updateAddButtons(this);$wf2.updateMoveButtons(this.parentNode)}$wf2.initNonRepetitionFunctionality(d);var p;try{if(document.createEvent){p=document.createEvent("UIEvents")}else{if(document.createEventObject){p=document.createEventObject()}}RepetitionEvent._upgradeEvent.apply(p);p.initRepetitionEvent("added",true,false,d);if(this.dispatchEvent){this.dispatchEvent(p)}else{if(this.fireEvent){}}}catch(c){p=new Object();RepetitionEvent._upgradeEvent.apply(p);p.initRepetitionEvent("added",true,false,d)}var l;if((l=this.getAttribute("onadded"))&&(!this.onadded||typeof this.onadded!="function")){this.onadded=new Function("event",l)}else{if((l=this.getAttribute("onadd"))&&(!this.onadd||typeof this.onadd!="function")){this.onadd=new Function("event",l)}}try{if(this.onadded){this.onadded.apply(this,[p])}else{if(this.onadd){this.onadd.apply(this,[p])}}}catch(c){setTimeout(function(){throw c},0)}return d},addRepetitionBlockByIndex:function(a,b){$wf2.addRepetitionBlock.apply(this,[a,b])},removeRepetitionBlock:function(){if(this.repetitionType!=RepetitionElement.REPETITION_BLOCK){throw $wf2.DOMException(9)}var b=this.parentNode;var g=b.removeChild(this);$wf2.updateMoveButtons(b);if(this.repetitionTemplate!=null){for(var d=0;d<this.repetitionTemplate.repetitionBlocks.length;d++){if(this.repetitionTemplate.repetitionBlocks[d]==this){this.repetitionTemplate.repetitionBlocks.splice(d,1);break}}}if(this.repetitionTemplate!=null){var c;try{if(document.createEvent){c=document.createEvent("UIEvents")}else{if(document.createEventObject){c=document.createEventObject()}}RepetitionEvent._upgradeEvent.apply(c);c.initRepetitionEvent("removed",true,false,this);if(this.repetitionTemplate.dispatchEvent){this.repetitionTemplate.dispatchEvent(c)}else{if(this.repetitionTemplate.fireEvent){}}}catch(e){c=new Object();RepetitionEvent._upgradeEvent.apply(c);c.initRepetitionEvent("removed",true,false,this)}var a;if((a=this.repetitionTemplate.getAttribute("onremoved"))&&(!this.repetitionTemplate.onremoved||typeof this.repetitionTemplate.onremoved!="function")){this.repetitionTemplate.onremoved=new Function("event",a)}else{if((a=this.repetitionTemplate.getAttribute("onremove"))&&(!this.repetitionTemplate.onremove||typeof this.repetitionTemplate.onremove!="function")){this.repetitionTemplate.onremove=new Function("event",a)}}try{if(this.repetitionTemplate.onremoved){this.repetitionTemplate.onremoved.apply(this,[c])}else{if(this.repetitionTemplate.onremove){this.repetitionTemplate.onremove.apply(this,[c])}}}catch(e){setTimeout(function(){throw e},0)}}if(this.repetitionTemplate!=null){if(this.repetitionTemplate.repetitionBlocks.length<this.repetitionTemplate.repeatMin&&this.repetitionTemplate.repetitionBlocks.length<this.repetitionTemplate.repeatMax){this.repetitionTemplate.addRepetitionBlock()}if(this.repetitionTemplate.repetitionBlocks.length<this.repetitionTemplate.repeatMax){var f=$wf2.getElementsByTagNamesAndAttribute.apply(document.documentElement,[["button"],"type","add"]);for(d=0;d<f.length;d++){if(f[d].htmlTemplate==this.repetitionTemplate){f[d].disabled=false}}}}},moveRepetitionBlock:function(h){if(this.repetitionType!=RepetitionElement.REPETITION_BLOCK){throw $wf2.DOMException(9)}if(h==0||this.parentNode==null){return}var f=this;if(this.repetitionTemplate){var g=0;var b=this.repetitionTemplate.repetitionBlocks;while(g<b.length&&b[g]!=this){g++}b.splice(g,1);b.splice(h<0?Math.max(g+h,0):Math.min(g+h,b.length),0,this)}if(h<0){while(h!=0&&f.previousSibling&&f.previousSibling.repetitionType!=RepetitionElement.REPETITION_TEMPLATE){f=f.previousSibling;if(f.repetitionType==RepetitionElement.REPETITION_BLOCK){h++}}}else{while(h!=0&&f.nextSibling&&f.nextSibling.repetitionType!=RepetitionElement.REPETITION_TEMPLATE){f=f.nextSibling;if(f.repetitionType==RepetitionElement.REPETITION_BLOCK){h--}}f=f.nextSibling}this.parentNode.insertBefore(this,f);if(this._clickedMoveBtn){this._clickedMoveBtn.focus();this._clickedMoveBtn=null}$wf2.updateMoveButtons(this.parentNode);if(this.repetitionTemplate!=null){var e;try{if(document.createEvent){e=document.createEvent("UIEvents")}else{if(document.createEventObject){e=document.createEventObject()}}RepetitionEvent._upgradeEvent.apply(e);e.initRepetitionEvent("moved",true,false,this);if(this.repetitionTemplate.dispatchEvent){this.repetitionTemplate.dispatchEvent(e)}else{if(this.repetitionTemplate.fireEvent){}}}catch(c){e=new Object();RepetitionEvent._upgradeEvent.apply(e);e.initRepetitionEvent("moved",true,false,this)}var a;if((a=this.repetitionTemplate.getAttribute("onmoved"))&&(!this.repetitionTemplate.onmoved||typeof this.repetitionTemplate.onmoved!="function")){this.repetitionTemplate.onmoved=new Function("event",a)}else{if(a=this.repetitionTemplate.getAttribute("onmove")){if(!this.repetitionTemplate.onmove||typeof this.repetitionTemplate.onmove!="function"){this.repetitionTemplate.onmove=new Function("event",a)}var d;if(typeof a=="function"&&(d=a.toString().match(/^\s*function\s+anonymous\(\s*\)\s*\{((?:.|\n)+)\}\s*$/))){this.repetitionTemplate.onmove=new Function("event",d[1])}}}try{if(this.repetitionTemplate.onmoved){this.repetitionTemplate.onmoved.apply(this,[e])}else{if(this.repetitionTemplate.onmove){this.repetitionTemplate.onmove.apply(this,[e])}}}catch(c){setTimeout(function(){throw c},0)}}},getRepetitionBlock:function(a){while(a=a.parentNode){if(a.repetitionType==RepetitionElement.REPETITION_BLOCK){return a}}return null},getHtmlTemplate:function(b){var a=b.getAttribute("template");var c;if(a&&(c=document.getElementById(a))&&c.getAttribute("repeat")=="template"){return c}return null},updateAddButtons:function(a){var f=a?[a]:$wf2.repetitionTemplates;var e=$wf2.getElementsByTagNamesAndAttribute.apply(document.documentElement,[["button"],"type","add"]);for(var d=0;d<e.length;d++){for(var c,b=0;c=f[b];b++){if(e[d].htmlTemplate==c&&c.repetitionBlocks.length>=c.repeatMax){e[d].disabled=true}}}},updateMoveButtons:function(l){var f;var k=[];if(!l){var h=[];k=$wf2.getElementsByTagNamesAndAttribute.apply(document.documentElement,[["*"],"repeat","template",true]);for(f=0;d=k[f];f++){if(!$wf2.arrayHasItem(h,d.parentNode)){$wf2.updateMoveButtons(d.parentNode);h.push(d.parentNode)}}return}var e,b,d;var a=l.firstChild;while(a){if(a.repetitionType==RepetitionElement.REPETITION_BLOCK){k.push(a)}a=a.nextSibling}for(f=0;d=k[f];f++){var g=$wf2.getElementsByTagNamesAndAttribute.apply(d,[["button"],"type","move-up"]);for(e=0;b=g[e];e++){b.disabled=!(rb=$wf2.getRepetitionBlock(b))||(f==0)}var c=$wf2.getElementsByTagNamesAndAttribute.apply(d,[["button"],"type","move-down"]);for(e=0;b=c[e];e++){b.disabled=!(rb=$wf2.getRepetitionBlock(b))||(f==k.length-1)}}},initNonRepetitionFunctionality:function(k){k=(k||document.documentElement);var f,e,h,b=k.getElementsByTagName("form");for(f=0;h=b[f];f++){if(h.checkValidity){continue}h.checkValidity=$wf2.formCheckValidity;if(h.addEventListener){h.addEventListener("submit",$wf2.onsubmitValidityHandler,false)}else{h.attachEvent("onsubmit",$wf2.onsubmitValidityHandler)}}var a,c=$wf2.getElementsByTagNames.apply(k,["input","select","textarea"]);for(f=0;a=c[f];f++){$wf2.applyValidityInterface(a);$wf2.updateValidityState(a)}var d=$wf2.getElementsByTagNamesAndAttribute.apply(document.documentElement,[["*"],"autofocus"]);if(k.getAttribute("autofocus")){d.unshift(k)}for(f=0;f<d.length;f++){$wf2.initAutofocusElement(d[f])}var g=$wf2.getElementsByTagNamesAndAttribute.apply(k,[["textarea"],"maxlength"]);if(k.nodeName.toLowerCase()=="textarea"){g.unshift(k)}for(f=0;f<g.length;f++){g[f].maxLength=parseInt(g[f].getAttribute("maxlength"))}},initAutofocusElement:function(a){if(a.autofocus===false||a.autofocus===true){return}a.autofocus=true;if(a.disabled){return}var b=a;while(b&&b.nodeType==1){if($wf2.getElementStyle(b,"visibility")=="hidden"||$wf2.getElementStyle(b,"display")=="none"){return}b=b.parentNode}a.focus()},formCheckValidity:function(){var b,d,e=true;var a=$wf2.getFormElements.apply(this);for(b=0;d=a[b];b++){var c=(d.getAttribute("type")?d.getAttribute("type").toLowerCase():d.type);d.willValidate=!(/(hidden|button|reset|add|remove|move-up|move-down)/.test(c)||!d.name||d.disabled);if(d.checkValidity&&d.willValidate){if(!d.checkValidity()){e=false}}}if(!e&&$wf2.invalidIndicators.length){$wf2.invalidIndicators[0].errorMsg.className+=" wf2_firstErrorMsg";d=$wf2.invalidIndicators[0].target;if(d.style.display=="none"||!d.offsetParent){while(d&&(d.nodeType!=1||(d.style.display=="none"||!d.offsetParent))){d=d.previousSibling}var g=d;var f=0;if(g&&g.offsetParent){f=g.offsetTop;while(g=g.offsetParent){f+=g.offsetTop}}scrollTo(0,f)}else{d.focus();scrollBy(0,$wf2.invalidIndicators[0].errorMsg.offsetHeight)}}return e},controlCheckValidity:function(){$wf2.updateValidityState(this);if(this.validity.valid){return true}var a=false;var c;try{if(document.createEvent){c=document.createEvent("Events")}else{if(document.createEventObject){c=document.createEventObject()}}c.initEvent("invalid",true,true);c.srcElement=this;if(this.dispatchEvent){a=!this.dispatchEvent(c)}else{if(this.fireEvent){}}}catch(f){c=new Object();if(c.initEvent){c.initEvent("invalid",true,true)}else{c.type="invalid";c.cancelBubble=false}c.target=c.srcElement=this}var b=this.getAttribute("oninvalid");if(b&&(!this.oninvalid||typeof this.oninvalid!="function")){this.oninvalid=new Function("event",b)}try{if(this.oninvalid){a=this.oninvalid.apply(this,[c])===false||a}}catch(f){setTimeout(function(){throw f},0)}var e=false;if(this.type=="radio"||this.type=="checkbox"){for(var d=0;d<$wf2.invalidIndicators.length;d++){if(this.form[this.name][0]==$wf2.invalidIndicators[d].target){e=true;break}}}if(!a&&!e){$wf2.addInvalidIndicator(this)}return false},numberRegExp:/^-?\d+(.\d+)?(e-?\d+)?$/,urlRegExp:/^(\w+):(\/\/)?.+$/i,emailRegExp:/^\S+@\S+$/i,updateValidityState:function(p){var x,w,A;x=p.getAttributeNode("min");w=p.getAttributeNode("max");p.min=undefined;p.max=undefined;p.step=undefined;A=p.getAttributeNode("value");p.validity=$wf2.createValidityState();p.validity.customError=!!p.validationMessage;var e=(p.getAttribute("type")?p.getAttribute("type").toLowerCase():p.type);var a=(e=="datetime"||e=="datetime-local"||e=="time");var s=(e=="date"||e=="month"||e=="week");var z=(e=="number"||e=="range");var m=(e=="file");var y=(a||s||z);var h=y||p.nodeName.toLowerCase()=="textarea";var k=(y||m);var q=(e=="radio"||e=="checkbox");var g=(h||m||e=="email"||e=="url"||e=="text"||e=="password"||q);if(e=="range"){p.min=(x&&$wf2.numberRegExp.test(x.value))?Number(x.value):0;if((!A||!A.specified)&&p.value===""&&!p.wf2ValueProvided){p.setAttribute("value",p.min);p.value=p.min;p.wf2ValueProvided=true}}p.wf2Value=p.value;var e=(p.getAttribute("type")?p.getAttribute("type").toLowerCase():p.type);p.willValidate=!(/(hidden|button|reset|add|remove|move-up|move-down)/.test(e)||!p.name||p.disabled);if(g&&p.willValidate){if(q){if(p.form&&p.form[p.name]){var f=false;var n=false;for(var u=0;u<p.form[p.name].length;u++){if(p.form[p.name][u].getAttributeNode("required")){f=true}if(p.form[p.name][u].checked){n=true}}p.validity.valueMissing=(f&&!n)}}else{if(p.getAttributeNode("required")){p.validity.valueMissing=(p.value=="")}}}if(!p.validity.valueMissing&&p.value){var d=p.getAttributeNode("pattern");if(d){var c=new RegExp("^(?:"+d.value+")$");c.global=false;c.ignoreCase=false;c.multiline=false;if(c){p.validity.patternMismatch=!c.test(p.value)}}if(s||a){p.validity.typeMismatch=((p.wf2Value=$wf2.parseISO8601(p.value,e))==null)}else{switch(e){case"number":case"range":p.validity.typeMismatch=!$wf2.numberRegExp.test(p.value);break;case"email":p.validity.typeMismatch=!$wf2.emailRegExp.test(p.value);break;case"url":p.validity.typeMismatch=!$wf2.urlRegExp.test(p.value);break}}if(!p.validity.patternMismatch&&!p.validity.typeMismatch){if(k){if(z){if(e=="range"){p.max=(w&&$wf2.numberRegExp.test(w.value))?Number(w.value):100}else{if(x&&$wf2.numberRegExp.test(x.value)){p.min=Number(x.value)}if(w&&$wf2.numberRegExp.test(w.value)){p.max=Number(w.value)}}p.validity.rangeUnderflow=(p.min!=undefined&&Number(p.value)<p.min);p.validity.rangeOverflow=(p.max!=undefined&&Number(p.value)>p.max)}else{if(e=="file"){if(x&&/^\d+$/.test(x.value)){p.min=Number(x.value)}else{p.min=0}if(w&&/^\d+$/.test(w.value)){p.max=Number(w.value)}else{p.max=1}}else{if(x){p.min=$wf2.parseISO8601(x.value,e);p.validity.rangeUnderflow=(p.min&&p.wf2Value<p.min)}if(w){p.max=$wf2.parseISO8601(w.value,e);p.validity.rangeOverflow=(p.max&&p.wf2Value>p.max)}}}}if(y&&!p.validity.rangeUnderflow&&!p.validity.rangeOverflow){var b=p.getAttributeNode("step");if(!b){p.step=a?60:1}else{if(b.value=="any"){p.step="any"}else{if($wf2.numberRegExp.test(b.value)&&b.value>0){p.step=Number(b.value)}else{p.step=a?60:1}}}if(p.step!="any"){p.wf2StepDatum=null;if(x){p.wf2StepDatum=p.min}else{if(w){p.wf2StepDatum=p.max}else{p.wf2StepDatum=$wf2.zeroPoint[e]?$wf2.zeroPoint[e]:0}}var B=p.step;if(e=="month"){var t=p.wf2StepDatum.getUTCFullYear()*12+p.wf2StepDatum.getUTCMonth();var r=p.wf2Value.getUTCFullYear()*12+p.wf2Value.getUTCMonth();p.validity.stepMismatch=(r-t)%B!=0}else{switch(e){case"datetime":case"datetime-local":case"time":B=parseInt(B*1000);break;case"date":B=parseInt(B*24*60*60*1000);break;case"week":B=parseInt(B*7*24*60*60*1000);break}p.validity.stepMismatch=(Math.round((p.wf2Value-p.wf2StepDatum)*1000)%Math.round(B*1000))!=0}}}}if(h&&p.maxLength>=0&&p.value!=p.defaultValue){var o=0;var l=p.value;p.wf2ValueLength=l.length;for(var u=1;u<l.length;u++){if(l[u]==="\x0A"&&l[u-1]!=="\x0D"||l[u]=="\x0D"&&(l[u+1]&&l[u+1]!=="\x0A")){p.wf2ValueLength++}}p.validity.tooLong=p.wf2ValueLength>p.maxLength}}p.validity.valid=!$wf2.hasInvalidState(p.validity)},applyValidityInterface:function(c){if(c.validity&&c.validity.typeMismatch!==undefined){return c}c.validationMessage="";c.validity=$wf2.createValidityState();c.willValidate=true;var d=c.nodeName.toLowerCase();if(d=="button"||d=="fieldset"){c.setCustomValidity=function(e){throw $wf2.DOMException(9)};c.checkValidity=function(){return true};return c}c.setCustomValidity=$wf2.controlSetCustomValidity;c.checkValidity=$wf2.controlCheckValidity;var b=(c.getAttribute("type")?c.getAttribute("type").toLowerCase():c.type);if(/(hidden|button|reset|add|remove|move-up|move-down)/.test(b)||!c.name||c.disabled){c.willValidate=false}else{if(window.RepetitionElement){var a=c;while(a=a.parentNode){if(a.repetitionType==RepetitionElement.REPETITION_TEMPLATE){c.willValidate=false;break}}}}return c},onsubmitValidityHandler:function(a){var b=a.currentTarget||a.srcElement;if(!b.checkValidity()){if(a.preventDefault){a.preventDefault()}a.returnValue=false;return false}a.returnValue=true;return true},controlSetCustomValidity:function(a){if(a){this.validationMessage=String(a);this.validity.customError=true}else{this.validationMessage="";this.validity.customError=false}this.validity.valid=!$wf2.hasInvalidState(this.validity)},hasInvalidState:function(a){return a.typeMismatch||a.rangeUnderflow||a.rangeOverflow||a.stepMismatch||a.tooLong||a.patternMismatch||a.valueMissing||a.customError},createValidityState:function(){return{typeMismatch:false,rangeUnderflow:false,rangeOverflow:false,stepMismatch:false,tooLong:false,patternMismatch:false,valueMissing:false,customError:false,valid:true}},invalidIndicators:[],indicatorTimeoutId:null,indicatorIntervalId:null,stepUnits:{datetime:"second","datetime-local":"second",time:"second",date:"day",week:"week",month:"month"},invalidMessages:{valueMissing:"A value must be supplied or selected.",typeMismatch:"The value is invalid for %s type.",rangeUnderflow:"The value must be equal to or greater than %s.",rangeOverflow:"The value must be equal to or less than %s.",stepMismatch:"The value has a step mismatch; it must be a certain number multiples of %s from %s.",tooLong:"The value is too long. The field may have a maximum of %s characters but you supplied %s. Note that each line-break counts as two characters.",patternMismatch:"The value does not match the required pattern: %s"},valueToWF2Type:function(b,a){switch(String(a).toLowerCase()){case"datetime":case"datetime-local":case"date":case"month":case"week":case"time":return $wf2.dateToISO8601(b,a);default:return b}},addInvalidIndicator:function(d){var b=document.createElement("div");b.className="wf2_errorMsg";b.id=(d.id||d.name)+"_wf2_errorMsg";b.onmousedown=function(){this.parentNode.removeChild(this)};var e=(d.getAttribute("type")?d.getAttribute("type").toLowerCase():d.type);var c=(e=="datetime"||e=="datetime-local"||e=="time"||e=="date"||e=="month"||e=="week");var f=document.createElement("ol");if(d.validity.valueMissing){f.appendChild($wf2.createLI($wf2.invalidMessages.valueMissing))}if(d.validity.typeMismatch){f.appendChild($wf2.createLI($wf2.invalidMessages.typeMismatch.replace(/%s/,e)))}if(d.validity.rangeUnderflow){f.appendChild($wf2.createLI($wf2.invalidMessages.rangeUnderflow.replace(/%s/,$wf2.valueToWF2Type(d.min,e))))}if(d.validity.rangeOverflow){f.appendChild($wf2.createLI($wf2.invalidMessages.rangeOverflow.replace(/%s/,$wf2.valueToWF2Type(d.max,e))))}if(d.validity.stepMismatch){f.appendChild($wf2.createLI($wf2.invalidMessages.stepMismatch.replace(/%s/,d.step+($wf2.stepUnits[e]?" "+$wf2.stepUnits[e]+"(s)":"")).replace(/%s/,$wf2.valueToWF2Type(d.wf2StepDatum,e))))}if(d.validity.tooLong){f.appendChild($wf2.createLI($wf2.invalidMessages.tooLong.replace(/%s/,d.maxLength).replace(/%s/,d.wf2ValueLength?d.wf2ValueLength:d.value.length)))}if(d.validity.patternMismatch){f.appendChild($wf2.createLI($wf2.invalidMessages.patternMismatch.replace(/%s/,d.title?d.title:' "'+d.getAttribute("pattern")+'"')))}if(d.validity.customError){f.appendChild($wf2.createLI(d.validationMessage))}if(f.childNodes.length==1){f.className="single"}b.appendChild(f);var h=document.body?document.body:document.documentElement;if($wf2.invalidIndicators.length){h.insertBefore(b,$wf2.invalidIndicators[$wf2.invalidIndicators.length-1].errorMsg)}else{h.insertBefore(b,null)}var a=d;while(a&&(a.nodeType!=1||(a.style.display=="none"||a.style.visibility=="hidden"||!a.offsetParent))){a=a.parentNode}var g=left=0;var i=a;if(i&&i.offsetParent){left=i.offsetLeft;g=i.offsetTop;while(i=i.offsetParent){left+=i.offsetLeft;g+=i.offsetTop}g+=a.offsetHeight}b.style.top=g+"px";b.style.left=left+"px";$wf2.invalidIndicators.push({target:d,errorMsg:b});if(!d.className.match(/\bwf2_invalid\b/)){d.className+=" wf2_invalid"}if($wf2.indicatorIntervalId==null){$wf2.indicatorIntervalId=setInterval(function(){var k;for(var l=0;k=$wf2.invalidIndicators[l];l++){if(!k.target.className.match(/\bwf2_invalid\b/)){k.target.className+=" wf2_invalid"}else{k.target.className=k.target.className.replace(/\s?wf2_invalid/,"")}}},500);$wf2.indicatorTimeoutId=setTimeout($wf2.clearInvalidIndicators,4000)}},clearInvalidIndicators:function(){clearTimeout($wf2.indicatorTimeoutId);$wf2.indicatorTimeoutId=null;clearInterval($wf2.indicatorIntervalId);$wf2.indicatorIntervalId=null;var a;while(a=$wf2.invalidIndicators[0]){if(a.errorMsg&&a.errorMsg.parentNode){a.errorMsg.parentNode.removeChild(a.errorMsg)}var b=a.target;b.className=b.className.replace(/\s?wf2_invalid/,"");$wf2.invalidIndicators.shift()}},cloneNode_customAttrs:{type:1,template:1,repeat:1,"repeat-template":1,"repeat-min":1,"repeat-max":1,"repeat-start":1,value:1,"class":1,required:1,pattern:1,form:1,autocomplete:1,autofocus:1,inputmode:1,max:1,min:1,step:1,onmoved:1,onadded:1,onremoved:1,onadd:1,onremove:1,onmove:1},cloneNode_skippedAttrs:{name:1,"class":1,"for":1,style:1,checked:1,addRepetitionBlock:1,addRepetitionBlockByIndex:1,moveRepetitionBlock:1,removeRepetitionBlock:1,repetitionBlocks:1,setCustomValidity:1,checkValidity:1,validity:1,validationMessage:1,willValidate:1,wf2StepDatum:1,wf2Value:1,wf2Initialized:1,wf2ValueLength:1},cloneNode_rtEventHandlerAttrs:{onmoved:1,onadded:1,onremoved:1,onadd:1,onremove:1,onmove:1},cloneNode:function(b,m,k){if(!k){k=0}var g,c,f;switch(b.nodeType){case 1:var e=b.getAttribute("repeat")=="template";if(e){k++}var l=[];if(b.name){l.name=m?m(b.name):b.name}if(b.type=="radio"){l.type=b.type}if(b.checked){l.checked="checked"}g=$wf2.createElement(b.nodeName,l);for(c=0;f=b.attributes[c];c++){if((f.specified||$wf2.cloneNode_customAttrs[f.name])&&!$wf2.cloneNode_skippedAttrs[f.name]&&((!e||(k>1||!$wf2.cloneNode_rtEventHandlerAttrs[f.name])))){if(k<2&&(f.name.indexOf("on")===0)&&(typeof b[f.name]=="function")){var a=m(b[f.name].toString().match(/{((?:.|\n)+)}/)[1]);a=m(a);g[f.name]=new Function("event",a)}else{var d=b.getAttribute(f.name);d=(m?m(d):d);g.setAttribute(f.name,d)}}}if(b.className){var h=(m?m(b.className):b.className);if(g.getAttributeNode("class")){for(c=0;c<g.attributes.length;c++){if(g.attributes[c].name=="class"){g.attributes[c].value=h}}}else{g.setAttribute("class",h)}}if(!/\bdisabled\b/.test(b.className)){g.disabled=false}if(b.style&&b.style.cssText){g.style.cssText=(m?m(b.style.cssText):b.style.cssText)}if(b.nodeName&&b.nodeName.toLowerCase()=="label"&&b.htmlFor){g.htmlFor=(m?m(b.htmlFor):b.htmlFor)}if(g.nodeName.toLowerCase()=="option"){g.selected=b.selected;g.defaultSelected=b.defaultSelected}for(c=0;c<b.childNodes.length;c++){g.appendChild($wf2.cloneNode(b.childNodes[c],m,k))}break;case 3:case 4:g=document.createTextNode(b.data);break;case 8:g=document.createComment(b.data);break;default:g=b.cloneNode(true)}return g},getFormElements:function(){var d=[];var c=$wf2.getElementsByTagNames.apply(this,["input","output","select","textarea","button"]);for(var a=0;a<c.length;a++){var b=c[a].parentNode;while(b&&b.nodeType==1&&b.getAttribute("repeat")!="template"){b=b.parentNode}if(!b||b.nodeType!=1){d.push(c[a])}}return d},loadDataURI:function(b){var c=b.data||b.getAttribute("data");if(!c){return null}var g=null,d;try{if(d=c.match(/^data:[^,]*xml[^,]*,((?:.|\n)+)/)){var a=decodeURI(d[1].replace(/%3D/ig,"=").replace(/%3A/ig,":").replace(/%2F/ig,"/"));if(window.DOMParser){var h=new DOMParser();g=h.parseFromString(a,"text/xml")}else{if(window.ActiveXObject){g=new ActiveXObject("Microsoft.XMLDOM");g.async="false";g.loadXML(a)}}}else{$wf2.xhr.open("GET",c,false);$wf2.xhr.send(null);g=$wf2.xhr.responseXML}}catch(f){return null}return g},getElementsByTagNames:function(){var e,d,c=[];if(document.evaluate){var a=[];for(d=0;d<arguments.length;d++){a.push(".//"+arguments[d])}e=document.evaluate(a.join("|"),this,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(d=0;d<e.snapshotLength;d++){c.push(e.snapshotItem(d))}}else{for(d=0;d<arguments.length;d++){e=this.getElementsByTagName(arguments[d]);for(var b=0;b<e.length;b++){c.push(e[b])}}if($wf2.sortNodes){c.sort($wf2.sortNodes)}}return c},getElementsByTagNamesAndAttribute:function(h,m,k,b){var c,a,g,d,f=[];if(document.evaluate){var e="";if(m){e="[@"+m+(k?(b?"!=":"=")+'"'+k+'"':"")+"]"}var l=[];for(g=0;g<h.length;g++){l.push(".//"+h[g]+e)}c=document.evaluate(l.join("|"),this,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(g=0;g<c.snapshotLength;g++){f.push(c.snapshotItem(g))}}else{for(g=0;g<h.length;g++){c=this.getElementsByTagName(h[g]);for(d=0;a=c[d];d++){var n=a.getAttributeNode(m);var o=a.getAttribute(m);if(!m||(n&&(k===undefined||(b?o!=k:o==k)))){f.push(a)}}}if($wf2.sortNodes){f.sort($wf2.sortNodes)}}return f},arrayHasItem:function(a,c){for(var b=0;b<a.length;b++){if(a[b]==c){return true}}return false},getElementStyle:function(a,b){if(a.currentStyle){return a.currentStyle[b]}else{if(window.getComputedStyle){return getComputedStyle(a,"").getPropertyValue(b)}else{if(a.style){return a.style[b]}else{return""}}}},createElement:(function(){try{var a=document.createElement('<div name="foo">');if(a.tagName.toLowerCase()!="div"||a.name!="foo"){throw"create element error"}return function(c,e){var f="<"+c;for(var d in e){f+=" "+d+'="'+e[d]+'"'}f+=">";if(c.toLowerCase()!="input"){f+="</"+c+">"}return document.createElement(f)}}catch(b){return function(c,e){var f=document.createElement(c);for(var d in e){f.setAttribute(d,e[d])}return f}}})(),sortNodes:(function(){var a=document.documentElement.firstChild;if(a.sourceIndex){return function(d,c){return d.sourceIndex-c.sourceIndex}}else{if(a.compareDocumentPosition){return function(d,c){return 3-(d.compareDocumentPosition(c)&6)}}}})(),createLI:function(b){var a=document.createElement("li");a.appendChild(document.createTextNode(b));return a},ISO8601RegExp:/^(?:(\d\d\d\d)-(W(0[1-9]|[1-4]\d|5[0-2])|(0\d|1[0-2])(-(0\d|[1-2]\d|3[0-1])(T(0\d|1\d|2[0-4]):([0-5]\d)(:([0-5]\d)(\.(\d+))?)?(Z)?)?)?)|(0\d|1\d|2[0-4]):([0-5]\d)(:([0-5]\d)(\.(\d+))?)?)$/,parseISO8601:function(f,b){var e=$wf2.validateDateTimeType(f,b);if(!e){return null}var a=new Date(0);var c=8;if(e[15]){if(b&&b!="time"){return null}c=15}else{a.setUTCFullYear(e[1]);if(e[3]){if(b&&b!="week"){return null}a.setUTCDate(a.getUTCDate()+((8-a.getUTCDay())%7)+(e[3]-1)*7);return a}else{a.setUTCMonth(e[4]-1);if(e[6]){a.setUTCDate(e[6])}}}if(e[c+0]){a.setUTCHours(e[c+0])}if(e[c+1]){a.setUTCMinutes(e[c+1])}if(e[c+2]){a.setUTCSeconds(e[c+3])}if(e[c+4]){a.setUTCMilliseconds(Math.round(Number(e[c+4])*1000))}if(e[4]&&e[c+0]&&!e[c+6]){a.setUTCMinutes(a.getUTCMinutes()+a.getTimezoneOffset())}return a},validateDateTimeType:function(c,b){var e=false;var f=$wf2.ISO8601RegExp.exec(c);if(!f||!b){return f}b=b.toLowerCase();if(b=="week"){e=(f[2].toString().indexOf("W")===0)}else{if(b=="time"){e=!!f[15]}else{if(b=="month"){e=!f[5]}else{if(f[6]){var a=new Date(f[1],f[4]-1,f[6]);if(a.getMonth()!=f[4]-1){e=false}else{switch(b){case"date":e=(f[4]&&!f[7]);break;case"datetime":e=!!f[14];break;case"datetime-local":e=(f[7]&&!f[14]);break}}}}}}return e?f:null},zeroPad:function(a,b){if(!b){b=2}var c=a.toString();while(c.length<b){c="0"+c}return c},dateToISO8601:function(b,c){c=String(c).toLowerCase();var a="";if(b.getUTCMilliseconds()){a="."+$wf2.zeroPad(b.getUTCMilliseconds(),3).replace(/0+$/,"")}switch(c){case"date":return b.getUTCFullYear()+"-"+$wf2.zeroPad(b.getUTCMonth()+1)+"-"+$wf2.zeroPad(b.getUTCDate());case"datetime-local":return b.getFullYear()+"-"+$wf2.zeroPad(b.getMonth()+1)+"-"+$wf2.zeroPad(b.getDate())+"T"+$wf2.zeroPad(b.getHours())+":"+$wf2.zeroPad(b.getMinutes())+":"+$wf2.zeroPad(b.getMinutes())+a+"Z";case"month":return b.getUTCFullYear()+"-"+$wf2.zeroPad(b.getUTCMonth()+1);case"week":var d=$wf2.parseISO8601(b.getUTCFullYear()+"-W01");return b.getUTCFullYear()+"-W"+$wf2.zeroPad(((b.valueOf()-d.valueOf())/(7*24*60*60*1000))+1);case"time":return $wf2.zeroPad(b.getUTCHours())+":"+$wf2.zeroPad(b.getUTCMinutes())+":"+$wf2.zeroPad(b.getUTCMinutes())+a;case"datetime":default:return b.getUTCFullYear()+"-"+$wf2.zeroPad(b.getUTCMonth()+1)+"-"+$wf2.zeroPad(b.getUTCDate())+"T"+$wf2.zeroPad(b.getUTCHours())+":"+$wf2.zeroPad(b.getUTCMinutes())+":"+$wf2.zeroPad(b.getUTCMinutes())+a+"Z"}},DOMException:function(c){var b="DOMException: ";switch(c){case 1:b+="INDEX_SIZE_ERR";break;case 9:b+="NOT_SUPPORTED_ERR";break;case 11:b+="INVALID_STATE_ERR";break;case 12:b+="SYNTAX_ERR";break;case 13:b+="INVALID_MODIFICATION_ERR";break}var a=new Error(b);a.code=c;a.name="DOMException";a.INDEX_SIZE_ERR=1;a.NOT_SUPPORTED_ERR=9;a.INVALID_STATE_ERR=11;a.SYNTAX_ERR=12;a.INVALID_MODIFICATION_ERR=13;return a}};var RepetitionElement={REPETITION_NONE:0,REPETITION_TEMPLATE:1,REPETITION_BLOCK:2};var RepetitionEvent={_upgradeEvent:function(){this.initRepetitionEvent=RepetitionEvent.initRepetitionEvent;this.initRepetitionEventNS=RepetitionEvent.initRepetitionEventNS},initRepetitionEvent:function(a,d,c,b){if(this.initEvent){this.initEvent(a,d,c)}else{this.type=a;if(!this.preventDefault){this.preventDefault=function(){this.returnValue=false}}if(!this.stopPropagation){this.stopPropagation=function(){this.cancelBubble=true}}}this.element=b;this.relatedNode=b},initRepetitionEventNS:function(e,a,d,c,b){throw Error("NOT IMPLEMENTED: RepetitionEvent.initRepetitionEventNS")}};if(window.Element&&Element.prototype){Element.prototype.REPETITION_NONE=RepetitionElement.REPETITION_NONE;Element.prototype.REPETITION_TEMPLATE=RepetitionElement.REPETITION_TEMPLATE;Element.prototype.REPETITION_BLOCK=RepetitionElement.REPETITION_BLOCK;Element.prototype.repetitionType=RepetitionElement.REPETITION_NONE;Element.prototype.repetitionIndex=0;Element.prototype.repetitionTemplate=null;Element.prototype.repetitionBlocks=null;Element.prototype.repeatStart=1;Element.prototype.repeatMin=0;Element.prototype.repeatMax=Number.MAX_VALUE;Element.prototype.addRepetitionBlock=$wf2.addRepetitionBlock;Element.prototype.addRepetitionBlockByIndex=$wf2.addRepetitionBlockByIndex;Element.prototype.moveRepetitionBlock=$wf2.moveRepetitionBlock;Element.prototype.removeRepetitionBlock=$wf2.removeRepetitionBlock}if(document.addEventListener){document.addEventListener("DOMNodeInsertedIntoDocument",function(a){if(a.target.nodeType==1&&a.target.hasAttribute("autofocus")){$wf2.initAutofocusElement(a.target)}},false);document.addEventListener("DOMAttrModified",function(a){if(a.attrName=="autofocus"){if(a.attrChange==a.ADDITION){$wf2.initAutofocusElement(a.target)}else{if(a.attrChange==a.REMOVAL){a.target.autofocus=false}}}},false)}(function(){var c;var a=document.documentElement.getElementsByTagName("script");for(var d=0;d<a.length;d++){if(c=a[d].src.match(/^(.*)webforms2[^\/]+$/)){$wf2.libpath=c[1]}}if(document.body){$wf2.onDOMContentLoaded();return}var f=0;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){$wf2.onDOMContentLoaded()},false);window.addEventListener("load",function(){$wf2.onDOMContentLoaded()},false);f=1}if(/WebKit/i.test(navigator.userAgent)){var e=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(e);delete e;$wf2.onDOMContentLoaded()}},10);f=1}else{if(/MSIE/i.test(navigator.userAgent)&&!document.addEventListener&&window.attachEvent){window.attachEvent("onload",function(){$wf2.onDOMContentLoaded()});document.write("<script defer src='"+$wf2.libpath+"webforms2-msie.js'><\/script>");document.write("<script id='__wf2_ie_onload' defer src='//:'><\/script>");var b=document.getElementById("__wf2_ie_onload");b.onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);$wf2.onDOMContentLoaded();if($wf2.repetitionTemplates.length==0){$wf2.isInitialized=false}}};b=null;f=1}}if(!f){if(window.onload){var g=window.onload;window.onload=function(){$wf2.onDOMContentLoaded();g()}}else{window.onload=function(){$wf2.onDOMContentLoaded()}}}})()}else{if(document.addEventListener&&($wf2.oldRepetitionEventModelEnabled===undefined||$wf2.oldRepetitionEventModelEnabled)){$wf2.oldRepetitionEventModelEnabled=true;(function(){var a={added:"onadd",removed:"onremove",moved:"onmove"};function b(e){if(!$wf2.oldRepetitionEventModelEnabled){return}if(!e.element&&e.relatedNode){e.element=e.relatedNode}if(!e.element||!e.element.repetitionTemplate){return}var d=e.element.repetitionTemplate;var f="on"+e.type;var c=d.getAttribute(f)||d.getAttribute(a[e.type]);if(c&&(!d[f]||typeof d[f]!="function")){d[f]=new Function("event",c)}if(e.element.repetitionTemplate[f]){e.element.repetitionTemplate[f](e)}else{if(e.element.repetitionTemplate[a[e.type]]){e.element.repetitionTemplate[a[e.type]](e)}}}document.addEventListener("added",b,false);document.addEventListener("removed",b,false);document.addEventListener("moved",b,false)})()}}};