function $LZ(){var text=this.textContent;if(text){text=text.replace(/
/g,"\n");};return text;};function $Tt(text){if(text&&typeof(text)=="string"){var $5J=text.split("\n");if($5J.length>1){this.innerHTML="";for(var $ze=0;$ze<$5J.length;$ze++){if($ze>0)this.appendChild(document.createElement("BR"));this.appendChild(document.createTextNode($5J[$ze]));}}else{this.textContent=text;}}else{this.textContent=text;}}(function(){try{if(typeof(HTMLElement)!="undefined"&&typeof(HTMLElement.prototype.innerText)=="undefined"){eval("HTMLElement.prototype.innerText getter = $LZ;");eval("HTMLElement.prototype.innerText setter = $Tt;");}}catch($p){}})();var $3j=0;var $7X=1;var $LB=2;var $Gs=$3j;function DoradoElement(){this.$WR=null;};function __DoradoElement_getTag(){return this.$WR;}
function __DoradoElement_setTag($9P){this.$WR=$9P;};DoradoElement.prototype.getTag=__DoradoElement_getTag;DoradoElement.prototype.setTag=__DoradoElement_setTag;function isDoradoComponent($Z){return($Z._doradoClass!=null&&$Z.getId==__DoradoComponent_getId);};function DoradoComponent(){};DoradoComponent.prototype=new DoradoElement();function __DoradoComponent_getId(){return this.id;};function __DoradoComponent_isActive(){return this.$yj;};function __DoradoComponent_activate(){if(!this.$yj){this.$yj=true;fireDoradoEvent(this,"onActive",[this]);}};function __DoradoComponent_getViewModel(){return this.$f;};DoradoComponent.prototype.getId=__DoradoComponent_getId;DoradoComponent.prototype.isActive=__DoradoComponent_isActive;DoradoComponent.prototype.activate=__DoradoComponent_activate;DoradoComponent.prototype.getViewModel=__DoradoComponent_getViewModel;function DoradoException(message){this._doradoClass="DoradoException";this.$DH=message;};DoradoException.prototype.getMessage=function(){return this.$DH;};DoradoException.prototype.toString=function(){return this.$DH;};function AbortException(){this.$DH="abort";};AbortException.prototype=new DoradoException();function $hT(e){switch(typeof(e)){
case"string":{if(e!="abort"){if(e){alert(e);}else{alert(__ERROR_UNKNOWN);}};break;};case"object":{if(e==null)return;if(e._doradoClass=="DoradoException"){if(e.$DH!="abort")alert(e);}else{if(browserType!=BROWSER_IE){alert("name: "+e.name+"\n"+"message: "+e.message+"\n"+"lineNumber: "+e.lineNumber+"\n"+"fileName: "+e.fileName+"\n"+"stack: "+e.stack);}else{alert("name: "+e.name+"\n"+"errorNumber: "+(e.number&0xFFFF)+"\n"+"message: "+e.message);}};break;}}};function getInstance(id){if(typeof(id)=="object"){return id;}else if(typeof(id)=="string"){return eval(id);}else{return null;
}};function $jZ(){return"__control_"+$Xz();};var $7s=new Array();var $Ev=new Array();function registerInitializeProcedure($cX){$7s.push($cX);};function registerFinalizeProcedure($cX){$Ev.push($cX);};function $27(){if(typeof(__startTime)=="object"&&typeof(__downloadTime)=="object"&&Debugger!=null){Debugger.log(__DBUGER_PAGE_DOWNLOAD_TIME+(__downloadTime.getTime()-__startTime.getTime())/1000+" sec.");};if(document.body){document.body.style.visibility="visible";for(var $ze=0;$ze<$7s.length;$ze++){$7s[$ze]();};var size=$s1.size();for(var $ze=0;$ze");var script=document.getElementById("__ie_onload");if(script!=null){script.onreadystatechange=function(){if(this.readyState=="complete"){script.onreadystatechange=null;$27();}};}else{EventManager.addSystemEvent(window,"onload",$27);}}else{EventManager.addSystemEvent(window,"onload",$27);};EventManager.addSystemEvent(window,"onunload",$W9);function $42(){for(var $ze=$R.length-1;$ze>=0;$ze--){var $G2=$R[$ze];$G2.destroy();delete $R[$ze];}};registerFinalizeProcedure($42);var $s1=new HashList();var $z="$";function ViewModel($s5,$Nl){this.$5L="default";this._doradoClass="ViewModel";this._namespace=$s5;this.$47=$Nl;this.$g=new ParameterSet();if(!$s5)$s5=$z;var $CI=$s1.get($s5);if($CI)this.$Cn=$CI;$s1.put($s5,this);};ViewModel.prototype.end=function(){if(!this.$Cn)return;var $s5=this._namespace;if(!$s5)$s5=$z;
$s1.put($s5,this.$Cn);this.$Cn=null;var $ze=2;var $jn=$s5+"$"+$ze;while($s1.indexOf($jn)>=0){$ze++;$jn=$s5+"$"+$ze;};$s1.put($jn,this);};ViewModel.prototype.destroy=function(){};ViewModel.prototype.getNamespace=function(){return this._namespace;};ViewModel.prototype.getInstanceId=function(){return this.$47;};ViewModel.prototype.registerDataset=function($cf){registerDataset($cf);};ViewModel.prototype.registerControl=function($2Q){registerControl($2Q);};ViewModel.prototype.getDataset=function(id){return getDataset(id,this._namespace);};ViewModel.prototype.getControl=function(id){return getControl(id,this._namespace);};ViewModel.prototype.properties=function(){return this.$g;};ViewModel.prototype.getSkin=function(){return this.$5L;};ViewModel.prototype.setSkin=function($9S){this.$5L=$9S;};function getViewModel($s5){if(!$s5)$s5=$z;return $s1.get($s5);};function getDataset(id,$s5){if(typeof(id)=="object"){return id;}else{if($s5)id=$s5+"$"+id;
return $QM.get(id);}};function getControl(id,$s5){if(typeof(id)=="object"){return id;}else{if($s5)id=$s5+"$"+id;return $OD.get(id);}};function $H(){var s="";for(var $ze=0;$ze0)s+="\n";s+=this[$ze];};return s;};function listDatasets(){var $Ih=new Array();var $wc=$QM.$6R;for(var $ze=0;$ze<$wc.length;$ze++){var $cf=$wc[$ze];$Ih.push($cf.id);};$Ih.toString=$H;return $Ih;};function listControls(type){var $Ih=new Array();var $wc=$OD.$6R;for(var $ze=0;$ze<$wc.length;$ze++){var $2Q=$wc[$ze];if(type&&$2Q.$NJ!=type)continue;$Ih.push($2Q.id);};$Ih.toString=$H;return $Ih;};$xv=new Array();$xv[0]="$fd";$xv[1]="string";$xv[2]="byte";$xv[3]="short";$xv[4]="int";$xv[5]="long";$xv[6]="float";$xv[7]="double";
$xv[8]="bigdecimal";$xv[9]="boolean";$xv[10]="date";$xv[11]="time";$xv[12]="datetime";function Parameter(name,$Aq){this.$eS=name;if($Aq){this.$H1=$Aq;}else{this.$H1=1;};this.$S=null;};Parameter.prototype.getName=function(){return this.$eS;};Parameter.prototype.getDataType=function(){return this.$H1;};Parameter.prototype.setDataType=function($Aq){this.$H1=$Aq;};Parameter.prototype.getValue=function(){return this.$S;};Parameter.prototype.setValue=function(value){this.$S=value;};function ParameterSet(){this.$$0=new HashList();};ParameterSet.prototype.toString=function(){var s="ParameterSet:\n";var $e9=this.$$0;for(var $ze=0;$ze<$e9.size();$ze++){var $D9=$e9.get($ze);s+=$D9.$eS+": "+$D9.$S+"\n";};return s;};ParameterSet.prototype.addParameter=function(name,$Aq){var $D9=new Parameter(name,$Aq);var $7v=name.toLowerCase();this.$$0.put($7v,$D9);return $D9;
};ParameterSet.prototype.removeParameter=function(name){if(typeof(name)=="number"){var $D9=this.$$0.get(name);this.$$0.remove(name);return $D9;}else{var $7v=name.toLowerCase();var $D9=this.$$0.get($7v);this.$$0.remove($7v);return $D9;}};ParameterSet.prototype.getParameter=function(name){var $$0=this.$$0;if(typeof(name)=="number"){var $D9=this.$$0.get(name);return $D9;}else{var $7v=name.toLowerCase();var $D9=this.$$0.get($7v);return $D9;}};ParameterSet.prototype.size=function(){return this.$$0.size();};ParameterSet.prototype.setValue=function(name,value){var $D9=this.getParameter(name);if(!$D9&&typeof(name)!="number"){$D9=this.addParameter(name);};if($D9!=null){if(value!=null){switch($D9.$H1){case 6:;case 7:;case 8:{if(typeof(value)!="number"){value=parseFloat(value);};break;};case 2:;case 3:;case 4:;case 5:{if(typeof(value)!="number"){value=parseInt(value);
};break;};case 9:{if(typeof(value)!="boolean"){value=parseBoolean(value);};break;};case 10:case 12:{if(typeof(value)!="number"){value=parseDate(value).getTime();};break;};case 11:{if(typeof(value)!="number"){value=parseTime(value).getTime();};break;}}};$D9.$S=value;}};ParameterSet.prototype.getValue=function(name){var $D9=this.getParameter(name);if($D9!=null){return $D9.$S;}};ParameterSet.prototype.setDataType=function(name,$Aq){var $D9=this.getParameter(name);if(!$D9&&typeof(name)!="number"){$D9=this.addParameter(name);};if($D9!=null){if(typeof($Aq)=="string")$Aq=name2DataType($Aq);$D9.$H1=$Aq;}};ParameterSet.prototype.getDataType=function(name){var $D9=this.getParameter(name);if($D9!=null){return $D9.$H1;}};ParameterSet.prototype.clear=function(){this.$$0.clear();
};ParameterSet.prototype.assign=function($Oi){var $wc=$Oi.$$0.$6R;for(var $ze=0;$ze<$wc.length;$ze++){var $YR=$wc[$ze];var name=$YR.$eS;if(this.getParameter(name)==null){this.setDataType(name,$YR.$H1);};this.setValue(name,$YR.$S);}};var DoradoFactory={$85:window,$VP:new Object(),$q:new Array(),registerComponentType:function(type,$Xs){this.$VP["_"+type]=$Xs;this.$q.push(type);},create:function(type,$s5,id,$sv,$p6,$FF){var $$f=false;if(!id){$$f=true;if($s5){$s5=null;alert("\""+id+"\" was created in default namespace!");}};var $EG=id;if($s5){id=$s5+"$"+$EG;};var $Xs=this.$VP["_"+type];if($Xs==null){alert("Component Type \""+type+"\" Undefined!");return null;}else{var $3K=getViewModel($s5);var $Z=$Xs(id,$3K,$sv,$p6,$FF);$Z.$f=$3K;$Z._originId=$EG;$Z.$85=this.$85;$Z.$NJ=type;
if(!$Z._doradoClass){$Z._doradoClass=type;};if($3K!=null){if(type=="Dataset"){$3K.registerDataset($Z);}else{$3K.registerControl($Z);if($$f)$Z.$hB=false;}};return $Z;}},toString:function(){var s="";for(var $ze=0;$ze0){clearInterval($7m);};var $wc;$wc=$OD.$6R;for(var $ze=$wc.length-1;$ze>=0;$ze--){var $2Q=$wc[$ze];if(typeof($2Q.destroy)=="function"){$2Q.$yj=false;$2Q.destroy();};delete $wc[$ze];};$OD.clear();$wc=$QM.$6R;for(var $ze=$wc.length-1;$ze>=0;$ze--){var $cf=$wc[$ze];if(typeof($cf.destroy)=="function"){$cf.destroy();};delete $wc[$ze];};$QM.clear();};registerFinalizeProcedure($2x);function $Zy($tb){switch($tb.keyCode){case 123:{if(__CLIENT_DEBUG&&$tb.ctrlKey&&$tb.shiftKey){Debugger.show();$tb.cancelBubble=true;return false;};break;
};case 122:{if(__CLIENT_DEBUG&&$tb.ctrlKey&&$tb.shiftKey){var script=prompt("JavaScript","");if(script){setTimeout("eval(unescape(\""+escape(script)+"\"));",0);};$tb.cancelBubble=true;return false;};break;}};var $m=($me!=null)?$me:$dY;if($m!=null){if(typeof($m.onKeyDown)=="function"){$m.onKeyDown($tb);}}};var $v0;function $1B($m){if($Gs!=$7X)return;if(browserType!=BROWSER_IE){if($v0)clearTimeout($v0);if($m&&$m.nodeName){$v0=setTimeout(function(){$8T($m)},200);}else{$v0=setTimeout("$8T(document.body)",200);}}};function $8T($m){var childNodes=$m.childNodes;for(var $ze=0;$ze=0;$ze--){var $pC=$8V[$ze];if($pC==this){$RW=true;}else{if($Nz($pC)){if($pC.$IF)$pC.$IF(null,true);}else{
$8V.splice($ze,1);}}};if(!$RW)$8V.push(this);}};var $pN=0;function $lr(){if($7m){clearTimeout($7m);$7m=0;$pN++;return($pN<=5);}else{$pN=0;return true;}};function $wB($m){var $5M=$m;while($5M!=null&&!$5M.$hB){$5M=$5M.parentNode;};return $5M;};function __Element_onFocus($m){$IF($m);};function $2i($m,$Q8){var $5M=$m;while($5M!=null&&$5M._doradoClass!=$Q8){$5M=$5M.parentNode;};return $5M;};function $7I($m,$dz){var $5M=$dz;while($5M!=null){if($5M==$m){return true;};$5M=$5M.parentNode;};return false;};function getAbsolutePosition($m,offsetElement){
var $KI=(offsetElement!=null)?offsetElement:document.body;var x=$m.offsetLeft;var y=$m.offsetTop;var $5M;if(browserType==BROWSER_IE){$5M=$m.offsetParent;while(($5M!=$KI)&&$5M!=null){x+=$5M.offsetLeft-$5M.scrollLeft;y+=$5M.offsetTop-$5M.scrollTop;if($5M.tagName!="TABLE"){x+=$5M.clientLeft;y+=$5M.clientTop;};$5M=$5M.offsetParent;}}else{$5M=$m.offsetParent;while(($5M!=$KI)&&$5M!=null){x+=$5M.offsetLeft;y+=$5M.offsetTop;if($5M.tagName!="TABLE"){x+=($5M.offsetWidth-$5M.clientWidth)/2;y+=($5M.offsetHeight-$5M.clientHeight)/2;};$5M=$5M.offsetParent;};$5M=$m.parentNode;while(($5M!=$KI)&&$5M!=null){if($5M.scrollLeft)x-=$5M.scrollLeft;if($5M.scrollTop)y-=$5M.scrollTop;$5M=$5M.parentNode;};$5M=$KI.offsetParent;while(($5M!=$KI)&&$5M!=null){x-=$5M.offsetLeft;y-=$5M.offsetTop;if($5M.tagName!="TABLE"){x+=($5M.offsetWidth-$5M.clientWidth)/2;y+=($5M.offsetHeight-$5M.clientHeight)/2;};$5M=$5M.offsetParent;};$5M=$KI.parentNode;while(($5M!=$KI)&&$5M!=null){if($5M.scrollLeft)x+=$5M.scrollLeft;
if($5M.scrollTop)y+=$5M.scrollTop;$5M=$5M.parentNode;}};return([x,y]);};var $zN=new Collection();function __setVisible($m,visible){if(visible){$m.style.visibility="visible";$m.$AO=true;var $B_=$zN.$I;while($B_!=null){var $2Q=$B_.$cJ;if($2Q.offsetWidth>0){var $5Q=$B_;$B_=$B_.$q$;$zN.removeElement($5Q);if(typeof($2Q.refresh)=="function"){$2Q.refresh();}}else{$B_=$B_.$q$;}}}else{$m.style.visibility="hidden";$m.$AO=false;if($me!=null&&$me!=$m&&$7I($m,$me)){$IF(null);}}};function __setDisplay($m,visible){if(visible){$m.style.display="";$m.$AO=true;var $B_=$zN.$I;while($B_!=null){var $2Q=$B_.$cJ;if($2Q.offsetWidth>0){var $5Q=$B_;$B_=$B_.$q$;$zN.removeElement($5Q);
if(typeof($2Q.refresh)=="function"){$2Q.refresh();}}else{$B_=$B_.$q$;}}}else{$m.style.display="none";$m.$AO=false;if($me!=null&&$me!=$m&&$7I($m,$me)){$IF(null);}}};var $gR=["DataTable","Tree","DataTree","TreeGrid","MenuBar","OutlookBar","ScrollBar","ProgressBar","Calendar","RadioGroup"];function $p_($2Q){var nodeName=$2Q.nodeName.toLowerCase();if(nodeName.charAt(0)=='#'||nodeName=="xml"||nodeName=="script")return false;if($2Q.disabled||$2Q.offsetWidth<=0)return false;var $Q8=$2Q._doradoClass;if($Q8&&$gR.indexOf($Q8)>=0)return false;return true;};function $OU($2Q){return(!$2Q.$MA&&$2Q._doradoClass&&$2Q.$hB&&!$2Q.disabled&&(!$2Q.readOnly||(typeof($2Q.getDropDown)=="function"&&$2Q.getDropDown()&&$2Q.getDropDown().$nl))&&(typeof($2Q.isReadOnly)!="function"||!$2Q.isReadOnly())&&typeof($2Q.$VF)=="function"&&$2Q.offsetWidth>0);};function $f6($2Q){function $Os($2Q,$aP){var $CJ=null;if($aP){$CJ=$2Q.lastChild;if(!$CJ)$CJ=$2Q.previousSibling;}else{$CJ=$2Q.previousSibling;}
if(!$CJ){var parentNode=$2Q;do{parentNode=parentNode.parentNode;if(!parentNode||parentNode==document.body)break;if(parentNode.previousSibling){$CJ=parentNode.previousSibling;break;}}while(true);if($CJ){$CJ=$Os($CJ,$p_($CJ));}};return $CJ;};var $CJ=$Os($2Q,false);do{if(!$CJ)break;if($OU($CJ))return $CJ;$CJ=$Os($CJ,$p_($CJ));}while(true);var $CJ=$Os(document.body,true);do{if(!$CJ)break;if($OU($CJ))return $CJ;$CJ=$Os($CJ,$p_($CJ));}while(true);return null;};function $mA($2Q){function $H5($2Q,$aP){var $Ks=null;if($aP){$Ks=$2Q.firstChild;if(!$Ks)$Ks=$2Q.nextSibling;}else{$Ks=$2Q.nextSibling;};if(!$Ks){var parentNode=$2Q;do{
parentNode=parentNode.parentNode;if(!parentNode||parentNode==document.body)break;if(parentNode.nextSibling){$Ks=parentNode.nextSibling;break;}}while(true);if($Ks){$Ks=$H5($Ks,$p_($Ks));}};return $Ks;};var $Ks=$H5($2Q,false);do{if(!$Ks)break;if($OU($Ks))return $Ks;$Ks=$H5($Ks,$p_($Ks));}while(true);var $Ks=$H5(document.body,true);do{if(!$Ks)break;if($OU($Ks))return $Ks;$Ks=$H5($Ks,$p_($Ks));}while(true);return null;};function $cx($2Q,$wA){if($2Q){setTimeout("try {"+"var $kX=document.getElementById(\""+$2Q.id+"\");"+"$kX.$VF();"+"}catch(e){}",(isNaN($wA))?0:$wA);}else{setTimeout("$IF();",(isNaN($wA))?0:$wA);}};function setFocusControl($2Q){$cx($2Q);};function getPreferenceSetting($r,$t8){
try{eval("var value = "+$r+";");return value;}catch(e){return $t8;}}
var $dropdownDate=null;function dataType2Name(type){switch(type){case 1:return"string";case 6:return"float";case 7:return"double";case 8:return"bigdecimal";case 2:return"byte";case 3:return"short";case 4:return"int";case 5:return"long";case 10:return"date";case 11:return"time";case 12:return"datetime";case 9:return"boolean";}};function name2DataType(name){switch(name){case"string":return 1;case"float":return 6;case"double":return 7;case"bigdecimal":return 8;case"byte":return 2;case"short":return 3;case"int":return 4;case"long":return 5;case"date":return 10;case"time":return 11;case"datetime":return 12;case"boolean":return 9;}};function getDefaultDateDropDown(){var $WQ=$dropdownDate;if($WQ==null){$WQ=DoradoFactory.create("DateDropDown",null,"$dropdownDate");$dropdownDate=$WQ;};return $WQ;};registerInitializeProcedure(getDefaultDateDropDown);function Field(name,$Aq){this.$eS=name;if($Aq){this.$H1=$Aq;}else{
this.$H1=1;};this.$68=name;this.$De=false;this.$II=null;this.$RJ=null;this.$rL=null;this.$Ta=null;this.$nx=null;this.$Q7=false;this.$AO=true;this.$OI=false;this.$sH=new Array();switch($Aq){case 4:;case 5:{if(__DEFAULT_INT_FORMAT!="#"){this.$II=__DEFAULT_INT_FORMAT;};break;};case 6:;case 7:;case 8:{this.$II=__DEFAULT_FLOAT_FORMAT;this.$l=2;break;};case 10:{this.$II="yyyy-MM-dd";this.$rL=getDefaultDateDropDown();break;};case 11:{this.$II="HH:mm:ss";break;};case 12:{this.$II="yyyy-MM-dd HH:mm:ss";this.$rL=getDefaultDateDropDown();break;}}};Field.prototype.getName=function(){return this.$eS;};Field.prototype.getDataType=function(){return this.$H1;}
Field.prototype.getLabel=function(){return this.$68;};Field.prototype.setLabel=function(label){this.$68=label;};Field.prototype.isReadOnly=function(){return this.$De;};Field.prototype.setReadOnly=function(readOnly){this.$De=readOnly;};Field.prototype.getFormat=function(){return this.$II;};Field.prototype.setFormat=function($qv){this.$II=$qv;if($qv){if(this.$H1>5&&this.$H1<9){var $1A=$RM($qv);this.$l=$1A.$$2;}}};Field.prototype.getEditorType=function(){return this.$RJ;};Field.prototype.setEditorType=function($s$){this.$RJ=$s$;};Field.prototype.getDropDown=function(){return this.$rL;};Field.prototype.setDropDown=function($m$){this.$rL=$m$;};Field.prototype.getDefaultValue=function(){return this.$Ta;};Field.prototype.setDefaultValue=function($t8){this.$Ta=$t8;};Field.prototype.getToolTip=function(){return this.$nx;};Field.prototype.setToolTip=function($4b){this.$nx=$4b;};Field.prototype.isValueProtected=function(){return this.$Q7;}
Field.prototype.setValueProtected=function($cA){this.$Q7=$cA;};Field.prototype.isVisible=function(){return this.$AO;};Field.prototype.setVisible=function(visible){this.$AO=visible;};Field.prototype.isSupportsSum=function(){return this.$OI;};Field.prototype.setSupportsSum=function($a8){this.$OI=$a8;};Field.prototype.addValidator=function($9H){this.$sH.push($9H);};Field.prototype.getValidators=function(){return this.$sH;};Field.prototype.getTag=__DoradoElement_getTag;Field.prototype.setTag=__DoradoElement_setTag;var $MX=0;function $U5(){return $MX++;};var $xB="none";var $Hs="new";var $KD="insert";var $8w="modify";var $U="delete";function Record($cf,$um){this.$cJ=[];this.$Gw=$U5();this.$x8=false;this.$kd=$cf;if($um==null){$um=$cf.$WC;};this.$WC=$um;this.$te=$um.$te;this._hashCode=$Xz();this.$hU=$xB;this.$aB=false;this.$iW=null;this.$S0=null;this.$KQ=null;
this.$9d=false;};Record.prototype=new Array();Record.prototype.getPrevious=Element.prototype.getPrevious;Record.prototype.getNext=Element.prototype.getNext;Record.prototype.setData=Element.prototype.setData;Record.prototype.getData=function(){if(!this.$9d)this.$7();return this.$cJ;};Record.prototype.toString=function(){var text="[Record]\n";text+="id: "+this._hashCode+"\n";text+="state: "+this.$hU+"\n";text+="isDirty: "+this.$aB+"\n";text+="\n";var $cf=this.$kd;var $Gb=$cf.getFieldCount();for(var $ze=0;$ze<$Gb;$ze++){var $fN=$cf.getField($ze);text+=$ze+"."+$fN.getName()+": "+this.getValue($ze)+"\n";};return text;};Record.prototype.destroy=function(){var $um=this.$lg;if($um!=null){var size=$um.size();for(var $ze=0;$ze0){value=$EH(value,$fN.$l);};if(isNaN(value)){throw __DATASET_INVALID_FLOAT.replace(/\$\{value\}/g,$Je);}};break;};case 2:;case 3:;case 4:;case 5:{if(value+""==""){value=null;}else if(typeof(value)!="number"){value=parseInt(parseFloat(value.replace(/,/g,"")));if(isNaN(value)){throw __DATASET_INVALID_INT.replace(/\$\{value\}/g,$Je);}};break;};case 10:case 12:{if(value+""==""){value=null;}else if(typeof(value)=="string"){value=parseDate(value);if(isNaN(value)){throw __DATASET_INVALID_DATE;}};break;};case 11:{if(value+""==""){value=null;}else if(typeof(value)=="string"){
value=parseTime(value);if(isNaN(value)){throw __DATASET_INVALID_TIME;}};break;};case 9:{if(typeof(value)!="boolean"){value=parseBoolean(value);};break;}}};if($cf.$YI<=0){var $eq=$fN.$sH;if($eq.length>0){for(var $J=0;$J<$eq.length;$J++){var $9H=$eq[$J];if($9H.$zy&&$9H.$XT){if(!$9H.validate(value)){if($cf.$hf<=0&&$9H._onValidateFailed!=null){if(!fireDoradoEvent($9H,"onValidateFailed",[$9H,$fN,value]))continue;};throw $9H.getFinalErrorMessage().replace(/\$\{field\}/g,$fN.getLabel());}}}}};this.$cJ[$xg]=value;this.$Gw=$U5();if($fN.$OI){var $um=this.$WC;var $22=$um.$5W;if($22==null){$22=new Object();$um.$5W=$22;};var $r="_"+$fN.$eS;var $tB=$22[$r];if(typeof($tB)!="number"){$tB=0;};var $1A=parseFloat($z9);if(!isNaN($1A))$tB-=$1A;$1A=parseFloat(value);
if(!isNaN($1A))$tB+=$1A;$22[$r]=$tB;};if(!this.$A){this.$aB=true;if($cf.$e7<=0){$cf.$e6(__Dataset_MSG_RECORD_STATE_CHANGED,[this]);}};if($cf.$e7<=0){$cf.$e6(__Dataset_MSG_DATA_CHANGED,[this,name,$z9]);};if($cf.$hf<=0&&$cf._afterChange!=null){fireDoradoEvent($cf,"afterChange",[$cf,this,$fN,$z9]);};if($cf.$hf<=0&&$cf._beforeSelectionChange!=null&&$fN.$eS=="select"){var $xc=fireDoradoEvent($cf,"afterSelectionChange",[$cf,this]);if($xc!=null)throw $xc;}}else{alert(__DATASET_FIELD_NOT_FOUND.replace(/\$\{field\}/g,$cf.id+"."+name));}};Record.prototype.setValue=function(name,value){try{if(!this.$aB){if(!this.$9d)this.$7();if(this.$iW==null){this.$q2();}else{var $Ol=this.$iW;$Ol.splice(0,$Ol.length,this);};if(this.$S0==null&&this.$hU==$xB){this.$n$();}};this.$ct(name,value);return true;}catch(e){$hT(e);return false;}
};Record.prototype.$Kg=function(){var $cf=this.$kd;$cf.$e6(__Dataset_MSG_GAINING_CHANGE,null);if(this.$hU!=$Hs){if(this.$aB){if($cf.$hf<=0){var $xc=fireDoradoEvent($cf,"beforeCancel",[$cf,this]);if($xc!=null)throw $xc;};var $Az=this.getValidRecord();this.$cJ=$Az.$cJ.slice();this.$aB=false;this.$hU=$xB;this.$Gw=$U5();var $um=$cf.$WC;if($um.$Zf>=0)$um.$Zf--;if($cf.$hf<=0){fireDoradoEvent($cf,"afterCancel",[$cf,this]);};$cf.$e6(__Dataset_MSG_REFRESH_RECORD,[this]);}}else{if($cf.$hf<=0){var $xc=fireDoradoEvent($cf,"beforeCancel",[$cf,this]);if($xc!=null)throw $xc;};var $GH=this.getNextRecord();if($GH==null){$GH=this.getPrevRecord();};$cf.__deleteRecord(this);if($cf.$hf<=0){fireDoradoEvent($cf,"afterCancel",[$cf,this]);};$cf.setCurrent($GH);$cf.$e6(__Dataset_MSG_RECORD_DELETED,[this]);this.destroy();}};Record.prototype.cancel=function(){try{this.$Kg();}catch(e){
$hT(e)}};Record.prototype.$_Z=function(){var $cf=this.$kd;if($cf.$YI>0)return;var $cj=$cf.$bX;var $Gb=$cj.size();for(var $ze=0;$ze<$Gb;$ze++){var $fN=$cj.get($ze);var $eq=$fN.$sH;if($eq.length>0){for(var $J=0;$J<$eq.length;$J++){var $9H=$eq[$J];if($9H.$zy&&!$9H.$XT){var value=this.getValue($ze);if(!$9H.validate(value)){if($cf.$hf<=0&&$9H._onValidateFailed!=null){if(!fireDoradoEvent($9H,"onValidateFailed",[$9H,$fN,value]))continue;};throw $9H.getFinalErrorMessage().replace(/\$\{field\}/g,$fN.getLabel());}}}}}};Record.prototype.$eA=function($1g){var $cf=this.$kd;if(this.$aB||this.$hU==$Hs){if($cf.$hf<=0){var $xc=fireDoradoEvent($cf,"beforePost",[$cf,this]);if($xc!=null)throw $xc;};if(!$1g)this.$_Z();this.$aB=false;if(this.$hU==$xB){this.setState($8w);}else if(this.$hU==$Hs){this.setState($KD);};if($cf.$e7<=0){$cf.$e6(__Dataset_MSG_REFRESH_RECORD,[this]);};if($cf.$hf<=0){
fireDoradoEvent($cf,"afterPost",[$cf,this]);}};return true;};Record.prototype.post=function(){try{this.$kd.$e6(__Dataset_MSG_GAINING_CHANGE,null);return this.$eA();}catch(e){$hT(e);return false;}};Record.prototype.getValidRecord=function(){return this.$iW;};Record.prototype.getOldRecord=function(){return this.$S0;};Record.prototype.$Xl=function(){this.$Kg();if(this.$hU==$KD){this.$WC.$tZ++;}else if(this.$hU==$U){this.$WC.$tZ--;};this.$hU=$xB;this.$S0=null;
};var $hQ=null;var $oF=null;var $oD=null;var $PC=null;var $pi=null;Record.prototype.copyRecord=function($Ol){var $eM;var $jE;var $Cb;if($hQ==this.$kd&&$oF==$Ol.$kd){$eM=$oD;$jE=$PC;$Cb=$pi;}else{$eM=[];$jE=[];$Cb=[];var $cj=this.$kd.$bX;var $FV=$cj.$6R;var $dC=$Ol.$kd.$bX;var $k1=$dC.$6R;if($FV.length<$k1.length){var $Ob=$FV.length;for(var $ze=0;$ze<$Ob;$ze++){var $xg=$dC.indexOf($FV[$ze].$eS.toLowerCase());if($xg>=0){$eM[$ze]=$ze;$jE[$ze]=$xg;var $fN=$k1[$xg];if($fN.$H1>=10&&$fN.$H1<=12){$Cb[$ze]=$xg;}}}}else{var $Ob=$k1.length;for(var $ze=0;$ze<$Ob;$ze++){var $fN=$k1[$ze];var $xg=$cj.indexOf($fN.$eS.toLowerCase());if($xg>=0){$eM[$ze]=$xg;$jE[$ze]=$ze;if($fN.$H1>=10&&$fN.$H1<=12){$Cb[$ze]=$xg;
}}}};$hQ=this.$kd;$oF=$Ol.$kd;$oD=$eM;$PC=$jE;$pi=$Cb;};$Ol.$7();var toArray=this.$cJ;var $iG=$Ol.$cJ;for(var $ze=0;$ze<$eM.length;$ze++){toArray[$eM[$ze]]=$iG[$jE[$ze]];};this.$Gw=$U5();if(this.$hU==$xB){this.$hU=$8w;}};function RecordSet($cf){this.$kd=$cf;this.$te=1;this.$jG=1;this.$yT=new Array();this.$Zf=0;this.$tZ=0;};RecordSet.prototype=new Collection();RecordSet.prototype.destroy=function(){this.$Er();};RecordSet.prototype.clearData=function(){this.$te=1;this.$jG=1;if(this==this.$kd.$WC){this.$yT=[0];}else{this.$yT=[];};this.$Zf=0;this.$tZ=0;this.$Er();this.$5W=null;
this.$y6();this.$I=null;this.$h=null;this.$hw=0;};RecordSet.prototype.$Er=function(){var $m=this.$I;while($m!=null){var $Ol=$m;if($Ol){$Ol.destroy();};$m=$m.$q$;}};RecordSet.prototype.$d1=function($ae){return this.$yT[$ae-1];};RecordSet.prototype.$0B=function($ae){var $ib=new Object();this.$yT[$ae-1]=$ib;return $ib;};function MasterDetailLink($zD,$8r){this.$5r=$zD;this.$0F=$8r;this.$Zd=true;this.setMasterKeyFields(null);this.setDetailKeyFields(null);this.setDetailKeyParameters(null);};MasterDetailLink.prototype.getDetailDataset=function(){return this.$0F;};MasterDetailLink.prototype.getMasterDataset=function(){return this.$5r;};MasterDetailLink.prototype.getDetailDataset=function(){return this.$0F;};MasterDetailLink.prototype.getMasterKeyFields=function(){return this.$As;};MasterDetailLink.prototype.setMasterKeyFields=function($eh){this.$As=$eh;if($eh!=null){this.$Im=$eh.split(",");}else{
this.$Im=new Array();}};MasterDetailLink.prototype.$7e=function(){return this.$yk;};MasterDetailLink.prototype.setDetailKeyFields=function($i_){this.$yk=$i_;if($i_!=null){this.$9=$i_.split(",");}else{this.$9=new Array();}};MasterDetailLink.prototype.getDetailKeyParameters=function(){return this.$jb;};MasterDetailLink.prototype.setDetailKeyParameters=function($yC){this.$jb=$yC;if($yC!=null){this.$ZP=$yC.split(",");}else{this.$ZP=new Array();}};MasterDetailLink.prototype.getMasterKeyFieldArray=function(){return this.$Im;};MasterDetailLink.prototype.$NQ=function(){return this.$9;};MasterDetailLink.prototype.getDetailKeyParameterArray=function(){return this.$ZP;};MasterDetailLink.prototype.isCachable=function(){return this.$Zd;};MasterDetailLink.prototype.setCachable=function($q0){this.$Zd=$q0;};var __Dataset_MSG_REFRESH=1;var __Dataset_MSG_REFRESH_RECORD=2;var __Dataset_MSG_DATA_CHANGED=3;var __Dataset_MSG_CURRENT_CHANGED=4;var __Dataset_MSG_GAINING_CHANGE=5;var __Dataset_MSG_RECORD_INSERTED=6;var __Dataset_MSG_RECORD_DELETED=7;var __Dataset_MSG_STATE_CHANGED=8;
var __Dataset_MSG_RECORD_STATE_CHANGED=9;var __Dataset_MSG_FIELD_STATE_CHANGED=10;function Dataset(id,$3K,type){if(!id)id=$jZ();this.id=id;this.$f=$3K;this.$3L=type;this.$bX=new HashList();this.$WC=new RecordSet(this);this.$$0=new ParameterSet();this.$ya=this.$WC;this.$0L=new Collection();this.$Vh=new Object();this.$De=false;this.$A8=false;this.$1v=false;this.$F2=10000;this.$w_=false;this.$Tq=true;this.$G=true;this.$y=null;this.$e7=0;this.$hf=0;this.$YI=0;this.$3c=false;this.$RE=null;this.$_C=false;this.$L0=null;this.$uB=false;this.$Nc=0;this.$ya.$0B(1);fireDoradoEvent(this,"onCreate",[this]);};Dataset.prototype=new DoradoComponent();DoradoFactory.registerComponentType("Dataset",function(id,$3K,type){return new Dataset(id,$3K,type);});Dataset.prototype.getType=function(){return this.$3L;};Dataset.prototype.toString=function(){var text="[Dataset]\n";text+="id: "+this.id+"\n";text+="master: "+((this.$5r==null)?"":this.$5r.id)+"\n";text+="\n";var $Gb=this.getFieldCount();
for(var $ze=0;$ze<$Gb;$ze++){var $fN=this.getField($ze);text+=$ze+"."+$fN.getName()+" ("+$xv[$fN.getDataType()]+")\n";};return text;};Dataset.prototype.destroy=function(){var $m=this.$0L.$I;while($m!=null){$m.$cJ=null;$m=$m.$q$;};this.$0L.clear();this.$$m=true;};Dataset.prototype.disableBinding=function(){this.$Nc++;};Dataset.prototype.enableBinding=function(){this.$Nc--;};Dataset.prototype.parameters=function(){return this.$$0;};Dataset.prototype.isReadOnly=function(){return this.$De;};Dataset.prototype.setReadOnly=function(readOnly){if(this.$De!=readOnly){this.$De=readOnly;this.refreshControls();}};Dataset.prototype.isAsync=function(){return this.$A8;};Dataset.prototype.setAsync=function(async){this.$A8=async;};Dataset.prototype.isAutoLoadPage=function(){return this.$1v;};Dataset.prototype.setAutoLoadPage=function($sm){this.$1v=$sm;};Dataset.prototype.getPageSize=function(){return this.$F2;};Dataset.prototype.setPageSize=function($6M){this.$F2=$6M;}
Dataset.prototype.getPossibleRecordCount=function(){return this.$WC.$tZ;};Dataset.prototype.isShowLoadingTip=function(){return this.$w_;};Dataset.prototype.setShowLoadingTip=function($mF){this.$w_=$mF;};Dataset.prototype.getObjectClazz=function(){return this.$8_;};Dataset.prototype.setObjectClazz=function($5e){this.$8_=$5e;};Dataset.prototype.getPageIndex=function(){return this.$WC.$te;};Dataset.prototype.setPageIndex=function($ae){this.$WC.$te=$ae;};Dataset.prototype.getPageCount=function(){return this.$WC.$jG;};Dataset.prototype.setPageCount=function($SZ){this.$WC.$jG=$SZ;};Dataset.prototype.getLoadDataAction=function(){return this.$RE;};Dataset.prototype.setLoadDataAction=function($jw){if($jw.length>0&&$jw.charAt(0)=='/'){$jw=__CONTEXT_PATH+$jw;};this.$RE=$jw;};Dataset.prototype.isInsertOnEmpty=function(){return this.$_C;};Dataset.prototype.setInsertOnEmpty=function($m1){this.$_C=$m1;};Dataset.prototype.addField=function(name,$Aq){if(name.toLowerCase()=="select")$Aq=9;var $fN=new Field(name,$Aq);this.$bX.put(name.toLowerCase(),$fN);return $fN;};Dataset.prototype.getField=function(name){if(typeof(name)=="string")name=name.toLowerCase();return this.$bX.get(name);
};Dataset.prototype.removeField=function(name){if(typeof(name)=="string")name=name.toLowerCase();return this.$bX.remove(name);};Dataset.prototype.getFieldCount=function(){return this.$bX.size();};Dataset.prototype.setMasterLink=function($zD,$eh,$yC){var $L0=this.$L0;if($L0!=null){var $5r=$L0.$5r;$5r.removeDetailLink($L0);};var $Js=null;if($zD!=null){$Js=new MasterDetailLink($zD,this);$Js.setMasterKeyFields($eh);$Js.setDetailKeyParameters($yC);this.$L0=$Js;$zD.addDetailLink($Js);}else{this.$L0=$Js;};return $Js;};Dataset.prototype.addDetailLink=function($Jj){if(this.$AG==null){this.$AG=new Collection();};this.$AG.insert($Jj);this.addObserver($Jj.$0F);};Dataset.prototype.removeDetailLink=function($Jj){if(this.$AG!=null){this.$AG.remove($Jj);}};Dataset.prototype.addObserver=function($2Q){this.$0L.insert($2Q);if(this.$e7>0||$2Q.$Nc>0||$2Q.$6K||!$2Q.$yj)return;$2Q.processDatasetMessage(__Dataset_MSG_REFRESH,this,null);};Dataset.prototype.removeObserver=function($2Q){this.$0L.remove($2Q);
};Dataset.prototype.clearData=function(){this.disableControls();try{this.$Er();this.moveFirst();}finally{this.enableControls();this.$e6(__Dataset_MSG_REFRESH,null);}};Dataset.prototype.$Er=function(){this.$WC.clearData();};Dataset.prototype.$09=function($um){if($um==null){this.$WC=this.$ya;}else{this.$WC=$um;};this.moveFirst();};Dataset.prototype.isRecordVisible=function($Ol){var $TU=($Ol.$kd==this&&$Ol.$hU!=$U&&!$Ol.$x8);if($TU){if(this.$hf<=0&&this._onFilterRecord!=null){$TU=fireDoradoEvent(this,"onFilterRecord",[this,$Ol]);}};return $TU;};Dataset.prototype.getCurrent=function(){return this.$y;};var $QI=false;Dataset.prototype.$2v=function($DM){var $y=this.$y;if($y==$DM)return;if($y!=null){if($y.$kd==null){this.$y=null;$y=null;}};if($QI){if(!this.$yB){if(this.$hf<=0){var $xc=fireDoradoEvent(this,"beforeScroll",[this]);
if($xc!=null)throw $xc;};this.$eY=this.$Tq;this.$Fr=this.$G;}}else{if(this.$hf<=0){var $xc=fireDoradoEvent(this,"beforeScroll",[this]);if($xc!=null)throw $xc;};var $Qi=this.$Tq;var $I2=this.$G;};if($y!=null){if(!$y.post())return;};if($DM!=null){$DM.$7();if(this.isRecordVisible($DM)){this.$y=$DM;this.$Tq=false;this.$G=false;}else{this.$y=null;this.$Tq=true;this.$G=true;};this.$WC.$te=$DM.$te;}else{this.$y=null;this.$Tq=true;this.$G=true;};if($QI){if(this.$yB){clearTimeout(this.$yB);this.$yB=0;};this.$yB=setTimeout("var $cf=getDataset(\""+this.id+"\");"+"if ($cf) $cf.$cy();",250);}else{
if(this.$hf<=0){fireDoradoEvent(this,"afterScroll",[this]);};this.$e6(__Dataset_MSG_CURRENT_CHANGED,null);if(this.$eY!=this.$Tq||this.$Fr!=this.$G){this.$e6(__Dataset_MSG_STATE_CHANGED,null);}}};Dataset.prototype.$cy=function(){$QI=false;this.$yB=0;if(this.$hf<=0){fireDoradoEvent(this,"afterScroll",[this]);};this.$e6(__Dataset_MSG_CURRENT_CHANGED,null);if(this.$eY!=this.$Tq||this.$Fr!=this.$G){this.$e6(__Dataset_MSG_STATE_CHANGED,null);}};Dataset.prototype.setCurrent=function($DM){try{this.$2v($DM);}catch(e){$hT(e);}};Dataset.prototype.getFirstRecord=function(){var $Ol=this.$WC.$I;while($Ol!=null){if($Ol!=null&&this.isRecordVisible($Ol)){return $Ol;};$Ol=$Ol.$q$;};return null;};Dataset.prototype.getLastRecord=function(){var $Ol=this.$WC.$h;while($Ol!=null){if($Ol!=null&&this.isRecordVisible($Ol)){return $Ol;};$Ol=$Ol.$KL;};return null;}
Dataset.prototype.$VG=function($ae,$zT){var $um=this.$WC;var $Ob;if($ae==$um.$jG){if(this.$WC.$Up==0&&this.$WC.$tZ>0){$Ob=this.$F2;}else{$Ob=this.$WC.$Up;}}else{$Ob=this.$F2;};for(var $ze=0;$ze<$Ob;$ze++){var $Ol=new Record(this);if($zT!=null){$um.insertElement($Ol,"before",$zT);}else{$um.insertElement($Ol);};$Ol.$x8=true;$Ol.$te=$ae;}};Dataset.prototype.isFirst=function(){return this.$Tq;};Dataset.prototype.isLast=function(){return this.$G;};Dataset.prototype.moveFirst=function(){try{if((this.$1v||this.$uB)&&!this.$3c&&!this.isPageLoaded(1)){this.$RT(1);};var $Ol=this.getFirstRecord();this.$2v($Ol);var $Qi=this.$Tq;this.$Tq=true;this.$G=($Ol==null);if(!$Qi){this.$e6(__Dataset_MSG_STATE_CHANGED,null);}}catch(e){$hT(e);
}};Dataset.prototype.movePrev=function(){try{var $DM=this.$y;var $Ol=null;if($DM){var $ae=$DM.$te;$Ol=$DM.getPrevRecord();if((this.$1v||this.$uB)&&!this.$3c){var $A2=false;if($Ol!=null){if($Ol.$te<$ae-1){$A2=true;}}else{if($ae>1){$A2=true;}};if($A2){this.$RT($ae-1);$Ol=$DM.getPrevRecord();}}};if($Ol==null){var $Qi=this.$Tq;this.$Tq=true;this.$G=(this.$y==null);if(!$Qi){this.$e6(__Dataset_MSG_STATE_CHANGED,null);}}else{this.$2v($Ol);}}catch(e){$hT(e);}};Dataset.prototype.moveNext=function(){try{var $DM=this.$y;var $Ol=null;
if($DM){var $ae=$DM.$te;$Ol=$DM.getNextRecord();if((this.$1v||this.$uB)&&!this.$3c){var $A2=false;if($Ol!=null){if($Ol.$te>$ae+1){$A2=true;}}else{var $SZ=this.$WC.$jG;if($ae<$SZ){$A2=true;}};if($A2){this.$RT($ae+1);$Ol=$DM.getNextRecord();}}};if($Ol==null){var $I2=this.$Lb;this.$Tq=(this.$y==null);this.$G=true;if(!$I2){this.$e6(__Dataset_MSG_STATE_CHANGED,null);}}else{this.$2v($Ol);}}catch(e){$hT(e);}};Dataset.prototype.moveLast=function(){try{var $SZ=this.$WC.$jG;if((this.$1v||this.$uB)&&!this.$3c&&!this.isPageLoaded($SZ)){var $K2=new Array();if(this.$WC.$Up0){for(var $ze=0;$ze<$Zr;$ze++){$Ol=$Ol.getNextRecord();if($Ol==null)break;};if($Ol!=null){this.setCurrent($Ol);}else{this.moveLast();}}else{$Zr=$Zr*(-1);for(var $ze=0;$ze<$Zr;$ze++){$Ol=$Ol.getPrevRecord();if($Ol==null)break;};if($Ol!=null){this.setCurrent($Ol);}else{this.moveFirst();}}}
else{var $ze,$ae=$Ol.$te;var $Cz=$Ol;if($Zr>0){for($ze=0;$ze<$Zr;$ze++){$Ol=$Ol.getNextRecord();if($Ol==null)break;if($Ol.$te-$ae>1){var $Cg=($Ol.$te-$ae)*this.$F2;if($ze+$Cg>$Zr){$Ol=null;break;}else{$ze+=$Cg;}};$ae=$Ol.$te;$Cz=$Ol;};if($Ol!=null){this.setCurrent($Ol);}else{$ae+=parseInt(($Zr-$ze-1)/this.$F2)+1;$Zr=($Zr-$ze-1)%this.$F2+1;var $Sh=$Zr;var $K2=new Array();if($Zr0&&!this.isPageLoaded($ae-1)){$Sh+=this.$F2;$K2.push($ae-1);};$K2.push($ae);if((this.$F2-$Zr)0){$hb=true;$Ol=$Cz;for($ze=0;$ze<$Sh;$ze++){var $cs=$Ol.getNextRecord();if($cs==null)break;$Ol=$cs;};this.setCurrent($Ol);
}else{this.moveLast();}}}else{$Zr=$Zr*(-1);for($ze=0;$ze<$Zr;$ze++){$Ol=$Ol.getPrevRecord();if($Ol==null)break;if($ae-$Ol.$te>1){var $Cg=($ae-$Ol.$te)*this.$F2;if($ze+$Cg>$Zr){$Ol=null;break;}else{$ze+=$Cg;}};$ae=$Ol.$te;$Cz=$Ol;};if($Ol!=null){this.setCurrent($Ol);}else{$ae-=parseInt(($Zr-$ze-1)/this.$F2)+1;$Zr=($Zr-$ze-1)%this.$F2+1;var $Sh=$Zr;var $K2=new Array();if($Zr0){$K2.push($ae-1);};$K2.push($ae);if((this.$F2-$Zr)0){$hb=true;$Ol=$Cz;for($ze=0;$ze<$Sh;$ze++){var $cs=$Ol.getPrevRecord();if($cs==null)break;
$Ol=$cs;};this.setCurrent($Ol);}else{this.moveFirst();}}}}};return $hb;};Dataset.prototype.isPageLoaded=function($ae){if($ae<=this.getPageCount()){var $ib=this.$WC.$d1($ae);return($ib!=null);}else{return false;}};Dataset.prototype.$h7=function($ae,$SZ,$yX,async,$mj){var $6M=this.$F2;if($6M<0)$6M=0;var $xK,$gY;if(browserType==BROWSER_IE){$xK=new ActiveXObject("Msxml.DOMDocument");$gY=$xK;}else{$xK=document.createElement("DOM");$gY=document;};var $Ml=$gY.createElement("rpc");$xK.appendChild($Ml);$Ml.setAttribute("id",this._originId);$Ml.setAttribute("type",this.$3L);$Ml.setAttribute("objectClazz",this.$8_);$Ml.setAttribute("pi",$ae);$Ml.setAttribute("ps",$6M);$Ml.setAttribute("pc",$SZ);$Ml.setAttribute("prc",$yX);var $4Y="";var $cj=this.$bX.$6R;
for(var $ze=0;$ze<$cj.length;$ze++){if($ze>0)$4Y+=",";$4Y+=$cj[$ze].$eS;};$Ml.setAttribute("fs",$4Y);var $Y0=$CZ($gY,this.$$0);if($Y0!=null)$Ml.appendChild($Y0);var $jY=$HF($gY,this.$f.$g);if($jY!=null)$Ml.appendChild($jY);var xml;if(browserType==BROWSER_IE){xml=$xK.xml;}else{xml=$xK.innerHTML;};delete $xK;$xK=null;var action=this.$RE;if(!action)action=__CONTEXT_PATH+__DEFAULT_LOADDATA_SERVICE;if(async){$xG(this.$f,action,"loadData",xml,this.$w_,$mj);return null;}else{return $R7(this.$f,action,"loadData",xml,this.$w_);}};Dataset.prototype.$M4=function($xK){var $YO=null;try{if($xK!=null){var $TQ=$xK.documentElement;this.__xml=$TQ;if(parseBoolean($TQ.getAttribute("succeed"))){$oZ($TQ,this.getViewModel().properties());var $Gb=this.$bX.size();for(var $ze=0;$ze<$Gb;$ze++){this.$bX.get($ze).$CF=null;};if(browserType==BROWSER_IE){$YO=$TQ.selectSingleNode("rs");}else{
$YO=$TQ.getElementsByTagName("rs")[0];}}else{var message;if(browserType==BROWSER_IE){message=$TQ.selectSingleNode("errorMessage").text;}else{var $NG=$TQ.getElementsByTagName("errorMessage")[0].firstChild;if($NG!=null)message=$NG.nodeValue;};throw __DATASET_LOADDATA_ERROR+"\n"+message;};delete $xK;}else{throw __DATASET_LOADDATA_ERROR;}}catch(e){$hT(e);};return $YO;};Dataset.prototype.loadData=function($In){var $SZ=this.$WC.$jG;var $yX=this.$WC.$tZ;var $Ob=-1;if(!this.$A8){var $xK=this.$h7(1,$SZ,$yX,false);if($xK!=null){var $YO=this.$M4($xK);if($YO!=null){$Ob=this.$0E($YO,true,null,$In);}}}else{var $cf=this;var $um=$cf.$WC;this.$h7(1,$SZ,$yX,true,function($Dm,$xK){if($Dm){var $YO=$cf.$M4($xK);if($YO!=null){$cf.$0E($YO,true,$um,$In);}}});}
return $Ob;};Dataset.prototype.loadPage=function($ae,$mj){return this.$RT($ae,false,true,$mj);};Dataset.prototype.$RT=function($ae,clearData,$6r,$mj){var $RH;if(typeof($ae)=="number"){$RH=[$ae];}else{$RH=$ae.split(",");};var $K2=new Array();var $um=this.$WC;var $SZ=$um.$jG;for(var $ze=0;$ze<$RH.length;$ze++){var $xg=parseInt($RH[$ze]);if($xg>0&&$xg<=$SZ){var $ib=$um.$d1($xg);if($ib==null){$K2.push($xg);}}};if($K2.length>0){if(typeof($6r)=="undefined"){$6r=true;};return this.$zv($K2.join(","),clearData,$6r,$mj);}else{return-1;}};Dataset.prototype.$zv=function($ae,clearData,$6r,$mj){var $SZ=this.$WC.$jG;var $yX=this.$WC.$tZ;if(clearData){var $db=this.getPageIndex();this.$Er();this.$y=null;this.$Tq=true;this.$G=true;this.setPageIndex($db);};var $Ob=-1;if(!this.$A8){
try{var $xK=this.$h7($ae,$SZ,$yX,false);if($xK!=null){var $YO=this.$M4($xK);if($YO!=null){$Ob=this.$0E($YO,$6r,null,null);}}}finally{if(clearData&&$Ob<1){this.setCurrent(null);}}}else{var $cf=this;var $um=$cf.$WC;this.$h7($ae,$SZ,$yX,true,function($Dm,$xK){if($Dm){if(clearData){$cf.$Er();$cf.$y=null;$cf.$Tq=true;$cf.$G=true;};var $YO=$cf.$M4($xK);if($YO!=null){$Ob=$cf.$0E($YO,$6r,$um,null);}};if(clearData&&$Ob<1){$cf.setCurrent(null);};if($mj!=null)$mj($Ob>=0);});};return $Ob;};Dataset.prototype.moveToPage=function($ae){if(this.$1v||this.$uB){this.$RT($ae);};var $Ol=this.getFirstRecord();while($Ol!=null){if($Ol.$te==$ae){
this.setCurrent($Ol);return;};$Ol=$Ol.getNextRecord();}};Dataset.prototype.getVisibleCount=function(){var $um=this.$WC;if($um.$Zf==-1||this._onFilterRecord!=null){var $Ob=0;var $Ol=this.getFirstRecord();while($Ol!=null){$Ol=$Ol.getNextRecord();$Ob++;};$um.$Zf=$Ob;};return $um.$Zf;};Dataset.prototype.$Z0=function($4){if(this.$y!=null){if(!this.postRecord())return;};if(this.$hf<=0){var $xc=fireDoradoEvent(this,"beforeInsert",[this]);if($xc!=null)throw $xc;};var $Ol=new Record(this);var $Gb=this.$bX.size();for(var $ze=0;$ze<$Gb;$ze++){var $fN=this.$bX.get($ze);if($fN.$Ta!=null){$Ol.$ct($fN.$eS,$fN.$Ta);}};var $Js=this.$L0;if($Js!=null){var $zD=$Js.$5r;var $EX=$zD.$y;var $iT=$Js.$Im;var $dh=$Js.$9;if($EX!=null&&($iT.length==$dh.length)){for(var $ze=0;$ze<$iT.length;$ze++){$Ol.$ct($dh[$ze],$EX.getValue($iT[$ze]));}}}
switch($4){case"before":;case"after":{$Ol.$te=this.$y.$te;break;};case"begin":{$Ol.$te=1;break;};default:{$Ol.$te=this.$WC.$jG;break;}};var $um=this.$WC;$um.insertElement($Ol,$4,this.$y);$Ol.setState($Hs);$Ol.$aB=true;if($um.$Zf>=0)$um.$Zf++;this.setCurrent($Ol);var $ae=$Ol.$te;if(!this.isPageLoaded($ae))$um.$0B($ae);if(this.$hf<=0){fireDoradoEvent(this,"afterInsert",[this]);};return $Ol;};Dataset.prototype.insertRecord=function($4){try{return this.$Z0($4);}catch(e){$hT(e)}};Dataset.prototype.insertRecords=function($Ud,$T3,$4){if($Ud.length==0)return;try{if(!$T3)$T3=$KD;var $iL=new Collection();var $Ol;for(var $ze=0;$ze<$Ud.length;$ze++){$Ol=$Ud[$ze];$Ol.setState($T3);$iL.insertElement($Ol);
};var $um=this.$WC;$um.insertCollection($iL,$4,this.$y);this.setCurrent($Ol);if($um.$Zf>=0)$um.$Zf+=$Ud.length;this.$e6(__Dataset_MSG_REFRESH,null);}catch(e){$hT(e)}};Dataset.prototype.__deleteRecord=function($Ol){var $um=$Ol.$WC;$Ol.$aB=false;if($Ol.$hU==$Hs||$Ol.$hU==$KD){$um.removeElement($Ol);$Ol.$hU=$U;}else{$Ol.setState($U);};if($um.$Zf>=0)$um.$Zf--;var $Gb=this.$bX.size();for(var $ze=0;$ze<$Gb;$ze++){var $fN=this.$bX.get($ze);if($fN.$OI){var $22=$um.$5W;if($22!=null){var $r="_"+$fN.$eS;var $tB=$22[$r];if(typeof($tB)!="number"){$tB=0;};var $1A=parseFloat($Ol.getValue($ze));if(!isNaN($1A))$tB-=$1A;$22[$r]=$tB;}}}};Dataset.prototype.$d5=function($Ol){if($Ol==null)$Ol=this.$y;if($Ol==null){throw __DATASET_ERR_NO_CURRENT.replace(/%s/g,this.id+".deleteRecord");return;
};if($Ol.$kd!=this)return;if(this.$hf<=0){var $xc=fireDoradoEvent(this,"beforeDelete",[this,$Ol]);if($xc!=null)throw $xc;};var $GH=null;if($Ol==this.$y){$GH=$Ol.getNextRecord();if($GH==null){$GH=$Ol.getPrevRecord();}}else{$GH=this.$y;};var $Db=($Ol.$hU==$Hs);this.__deleteRecord($Ol);if($GH!=this.$y){this.setCurrent($GH);};this.$e6(__Dataset_MSG_RECORD_DELETED,[$Ol]);if(this.$hf<=0){fireDoradoEvent(this,"afterDelete",[this,$Ol]);};if($Db)$Ol.destroy();};Dataset.prototype.deleteRecord=function($Ol){try{this.$d5($Ol);}catch(e){$hT(e)}};Dataset.prototype.cancelRecord=function(){var $DM=this.$y;if($DM==null){this.$e6(__Dataset_MSG_GAINING_CHANGE,null);$DM=this.$y;if($DM==null){alert(__DATASET_ERR_NO_CURRENT.replace(/%s/g,this.id+".cancelRecord"));return false;}
};$DM.cancel();};Dataset.prototype.postRecord=function(){var $DM=this.$y;if($DM==null){this.$e6(__Dataset_MSG_GAINING_CHANGE,null);$DM=this.$y;if($DM==null){alert(__DATASET_ERR_NO_CURRENT.replace(/%s/g,this.id+".postRecord"));return false;}};return $DM.post();};Dataset.prototype.getValue=function(name){var $DM=this.$y;if($DM==null){alert(__DATASET_ERR_NO_CURRENT.replace(/%s/g,this.id+".getValue"));return null;};return $DM.getValue(name);};Dataset.prototype.setValue=function(name,value){var $DM=this.$y;if($DM==null){alert(__DATASET_ERR_NO_CURRENT.replace(/%s/g,this.id+".setValue"));return false;};return $DM.setValue(name,value);};Dataset.prototype.getString=function(name){var $DM=this.$y;if($DM==null){alert(__DATASET_ERR_NO_CURRENT.replace(/%s/g,this.id+".getString"));return null;};return $DM.getString(name);};Dataset.prototype.getValidRecord=function($Ol){if($Ol==null){return this.getCurrent().getValidRecord();}else{return $Ol.getValidRecord();}};Dataset.prototype.getOldRecord=function($Ol){
if($Ol==null){return this.getCurrent().getOldRecord();}else{return $Ol.getOldRecord();}};Dataset.prototype.$e6=function(message,$sY){if(this.$e7>0)return;var $m=this.$0L.$I;while($m){var $2Q=$m.getData();if($2Q.$Nc<=0&&!$2Q.$6K){$2Q.processDatasetMessage(message,this,$sY);};$m=$m.$q$;}};Dataset.prototype.$Kj=function($zD,$EX){function $Cm($zw,$zD,$EX,$iT,$zw){for(var $ze=0;$ze<$iT.length;$ze++){var $66=$iT[$ze];var $vV=$zw[$ze];if($vV){if($e9.getParameter($vV)==null){var $fN=$zD.getField($66);$e9.setDataType($vV,$fN.$H1);};if($EX!=null){$e9.setValue($vV,$EX.getValue($66));}else{$e9.setValue($vV,null);}}}};var $uJ=this.$WC;var $Js=this.$L0;var $iT=$Js.$Im;var $zw=$Js.$ZP;var $e9=this.$$0;var $um=null;var $e9=this.$$0;if($EX!=null){$um=$EX.$xq(this.id);
if($EX.$hU==$Hs){$um.$0B(1);}};$Cm($zw,$zD,$EX,$iT,$zw);if($uJ!=$um){this.disableControls();if(!$Js.$Zd){$uJ.clearData();};this.$uB=true;this.$09($um);this.$uB=false;this.enableControls();}};Dataset.prototype.processDatasetMessage=function(message,$cf,$sY){if(message==__Dataset_MSG_REFRESH||message==__Dataset_MSG_CURRENT_CHANGED){var $Js=this.$L0;if($Js!=null){var $zD=$Js.$5r;if($zD==$cf)this.refresh();}}};Dataset.prototype.refresh=function(){var $Js=this.$L0;if($Js!=null){var $zD=$Js.$5r;this.$Kj($zD,$zD.$y);this.refreshControls();}};Dataset.prototype.validateCurrent=function(){if(this.$y==null||!this.isRecordVisible(this.$y)){this.setCurrent(this.getFirstRecord());}};Dataset.prototype.refreshControls=function(){this.validateCurrent();this.$e6(__Dataset_MSG_REFRESH,null);};Dataset.prototype.disableControls=function(){this.$e7++;};Dataset.prototype.enableControls=function(){if(this.$e7<1){
this.$e7=0;}else{this.$e7--;}};Dataset.prototype.disableEvents=function(){this.$hf++;};Dataset.prototype.enableEvents=function(){if(this.$hf<1){this.$hf=0;}else{this.$hf--;}};Dataset.prototype.disableValidators=function(){this.$YI++;};Dataset.prototype.enableValidators=function(){if(this.$YI<1){this.$YI=0;}else{this.$YI--;}};Dataset.prototype.flushData=function($mj){try{if(this.$hf<=0){var $xc=fireDoradoEvent(this,"beforeFlushData",[this]);if($xc!=null)throw $xc;};if(!this.$A8){var $Ob=this.$zv(this.$WC.$te,true,true);if(this.$hf<=0){fireDoradoEvent(this,"afterFlushData",[this]);};return $Ob;}else{var $cf=this;this.$zv(this.$WC.$te,true,true,function($Dm){if($Dm){if($cf.$hf<=0){fireDoradoEvent($cf,"afterFlushData",[$cf]);}};if($mj!=null)$mj($Dm);
});return-1;}}catch(e){$hT(e);}};Dataset.prototype.flushDataAsync=function($mj){var $cf=this;var async=this.$A8;this.$A8=true;this.flushData($mj);this.$A8=async;return-1;};Dataset.prototype.appendFromXml=function(){if(this.$iX)return;this.$iX=true;var $Hf=0;var $xK=document.getElementById("__"+this.id);if($xK!=null){var $TQ;if(browserType==BROWSER_IE){$TQ=$xK.documentElement;}else{$TQ=$xK.getElementsByTagName("rs")[0];};if($TQ!=null){$Hf=this.$0E($TQ,true,null,null);}};if(this.$_C&&$Hf<=0){this.insertRecord();}};Dataset.prototype.$0E=function($TQ,$6r,$um,$In){function $Zn($um,$FP,$xZ,$3J,$VX){var $Ol;if($3J==null){$Ol=$um.$I;}else{$Ol=$3J;};if($Ol!=null){
do{if($Ol.$te>=$FP&&$Ol.$te<=$xZ&&$Ol.$x8){$um.removeElement($Ol);$VX.push($Ol);}else if($Ol.$te>$xZ){return $Ol;};$Ol=$Ol.$q$;}while($Ol!=null);};return null;};var $3K=this.$f;var $4e=$3K.$1u;if(typeof($4e)=="undefined"&&$3K.$g.getValue("__recordMapRef")>0){$4e=new Object();$3K.$1u=$4e;};var $Ob=0;if($um==null)$um=this.$WC;var $SZ=parseInt($TQ.getAttribute("pageCount"));if($SZ>=0)$um.$jG=$SZ;var $NB=true;var $K8=parseInt($TQ.getAttribute("possibleCount"));if(isNaN($K8)){$um.$tZ=0;$um.$Zf=-1;$NB=false;}else if($K8>=0){if(this.$1v){if($um.$Zf>-1){$um.$Zf=$K8+($um.$Zf-$um.$tZ);}else{$um.$Zf=$K8;}}else{$NB=false;};$um.$tZ=$K8;
$um.$Up=$K8%this.$F2;};var $sK=$TQ.getAttribute("sums");if($sK){var $nL=new Array();var $Gb=this.$bX.size();for(var $ze=0;$ze<$Gb;$ze++){var $fN=this.$bX.get($ze);if($fN.$OI){$nL.push($fN.$eS);}};var $22=$um.$5W;if($22==null){$22=new Object();$um.$5W=$22;};var sums=$sK.split(",");for(var $ze=0;$ze0))$ae=1;var $Ol=null;if($VX){$3M=$VX[$kw];if($3M&&$3M.$te==$ae){$Ol=$3M;$Ol.$x8=false;$Ol.$9d=false;$Ol.$Gw=$U5();$kw++;}};if(!$Ol){$Ol=new Record(this,$um);var $I3=$jL.getAttribute("id");if($I3!=null){$Ol._hashCode=$I3;}};$Ol.$KQ=$jL;if($4e!=null){$4e[$Ol._hashCode]=$Ol;};if(parseBoolean($jL.getAttribute("isCurrent"))){$DM=$Ol;};$Ol.$te=$ae;
if($zT!=null){$um.insertElement($Ol,"before",$zT);}else{$um.insertElement($Ol);};$Ol.$hU=$jL.getAttribute("state");if($Ol.$hU!=null){if($Ol.$hU=="new"){$Ol.$aB=true;}else if($Ol.$hU=="modify"){$Ol.$aB=true;$Ol.$q2();}};if($Ol.$hU!=$U){$Ob++;if(!$NB)$um.$Zf++;}};if($6r){this.disableControls();if($DM!=null&&$um==this.$WC){this.setCurrent($DM);}else if(this.$y==null){var $Ol=this.getFirstRecord();this.$2v($Ol);this.$Tq=true;};this.enableControls();this.$e6(__Dataset_MSG_REFRESH,null);};return $Ob;};Dataset.prototype.$oy=function(){var $Ol=this.$WC.$I;while($Ol){$Ol.$Xl();$Ol=$Ol.$q$;}};Dataset.prototype.sort=function($WV){function $i8($MN,$bh,$uH,$t7){function $bP($Ol,$fj){if($bh.length>0){var $wt,$r3;
for(var $ze=0;$ze<$bh.length;$ze++){var $FB=$bh[$ze];if($FB.ascent){$wt=1;$r3=-1;}else{$wt=-1;$r3=1;};var value=$Ol.getValue($FB.$fN);var $zY=$fj.getValue($FB.$fN);if(value>$zY){return $wt;}else if(value<$zY){return $r3;}}}else{if($Ol.$te>$fj.$te){return 1;}else if($Ol.$te<$fj.$te){return-1;}else{if($Ol._hashCode>$fj._hashCode){return 1;}else if($Ol._hashCode<$fj._hashCode){return-1;}}};return 0;};var $oC=$uH;var $1e=$t7;var $gm=parseInt(($oC+$1e)/2);var $fj=$MN[$gm];do{while($bP($MN[$oC],$fj)<0)$oC++;while($bP($MN[$1e],$fj)>0)$1e--;if($oC<=$1e){var $di=$MN[$oC];$MN[$oC]=$MN[$1e];$MN[$1e]=$di;$oC++;$1e--;
}}while($oC<=$1e)if($1e>$uH)$i8($MN,$bh,$uH,$1e);if($t7>$oC)$i8($MN,$bh,$oC,$t7);};var $um=this.$WC;if(this.$1v&&$um.$jG>1){alert(__DATASET_SORT_NOT_SUPPORTED);return false;};var $bh=new Array();if($WV){var $5J=$WV.split(",");for(var $ze=0;$ze<$5J.length;$ze++){var $FB=new Object();var $wP=$5J[$ze];var $0Q=$wP.charAt(0);if($0Q=="+"){$FB.ascent=true;$FB.$fN=$wP.substring(1);}else if($0Q=="-"){$FB.ascent=false;$FB.$fN=$wP.substring(1);}else{$FB.ascent=true;$FB.$fN=$wP;};$bh.push($FB);}};if(this.getCurrent()!=null){var $MN=new Array();var $Ol=$um.$I;while($Ol!=null){$MN.push($Ol);$Ol=$Ol.$q$;};$i8($MN,$bh,0,$MN.length-1);$um.$y6();$um.$I=null;$um.$h=null;$um.$hw=0;for(var $ze=0;$ze<$MN.length;$ze++){$um.insertElement($MN[$ze]);}
this.$Tq=false;this.$G=false;};var $Gb=this.$bX.size();for(var $ze=0;$ze<$Gb;$ze++){this.$bX.get($ze).$CF=null;};for(var $ze=0;$ze<$bh.length;$ze++){var $FB=$bh[$ze];this.$bX.get($FB.$fN.toLowerCase()).$CF=(($FB.ascent)?"ascent":"descent");};this.$3c=($bh.length>0);this.$e6(__Dataset_MSG_REFRESH,null);};Dataset.prototype.copyRecord=function($Ol){if($Ol==null)return;if(this.$y==null){this.insertRecord();};var $DM=this.$y;$DM.copyRecord($Ol);this.$e6(__Dataset_MSG_REFRESH_RECORD,[$DM]);};Dataset.prototype.getSum=function($fN){var $22=this.$WC.$5W;if($22!=null){var $tB=$22["_"+$fN];if(typeof($tB)=="number"){return $tB;}};return 0;};Dataset.prototype.find=function($cj,$lo,$3J){if($cj.length>0&&$cj.length==$lo.length){var $eM=new Array();for(var $ze=0;$ze<$cj.length;$ze++){$eM.push(this.$bX.indexOf($cj[$ze].toLowerCase()));};var $Ol=(($3J!=null)?$3J:this.getFirstRecord());while($Ol!=null){$Ol.$7();var $BQ=true;var $n=$Ol.$cJ;for(var $ze=0;$ze<$eM.length;$ze++){if($n[$eM[$ze]]!=$lo[$ze]){$BQ=false;break;
}};if($BQ){return $Ol;};$Ol=$Ol.getNextRecord();}};return null;}
function Validator(){this.$zy=true;this.$XT=true;this.$IE=null;this.$WR;};Validator.prototype.isEnabled=function(){return this.$zy;};Validator.prototype.setEnabled=function($0m){this.$zy=$0m;};Validator.prototype.isValidateImmediately=function(){return this.$XT;};Validator.prototype.setValidateImmediately=function($4X){this.$XT=$4X;};Validator.prototype.getErrorMessage=function(){return this.$IE;};Validator.prototype.setErrorMessage=function($I$){this.$IE=$I$;};Validator.prototype.getFinalErrorMessage=function(){return this.$IE;};Validator.prototype.$Uw=function(){throw this.getFinalErrorMessage();};Validator.prototype.getTag=__DoradoElement_getTag;Validator.prototype.setTag=__DoradoElement_setTag;function RequiredValidator(){this._doradoClass="RequiredValidator";this.$XT=false;this.$IE=__VALIDATOR_REQUIRED_MESSAGE;};RequiredValidator.prototype=new Validator();RequiredValidator.prototype.validate=function(value){if(typeof(value)=="undefined"||value==null||value.length==0){return false;}else if(typeof(value)=="string"){var $xc=false;for(var $ze=0;$ze255)?2:1);}}else{$u7=new String(value).length;}};if(this.$fq>0&&$u70&&$u7>this.$RG){return false;};return true;};var $Bq="ignore";var $hJ="allow_equals";var $w7="not_allow_equals";function RangeValidator(){this._doradoClass="RangeValidator";this.$IE=__VALIDATOR_RANGE_MESSAGE;this.$7N=0;this.$Kt=$Bq;this.$rM=0;this.$Eb=$Bq;};RangeValidator.prototype=new Validator();RangeValidator.prototype.getMin=function(){return this.$7N;};RangeValidator.prototype.setMin=function($Tk){this.$7N=$Tk;};RangeValidator.prototype.getMinMatchRule=function(){return this.$Kt;};RangeValidator.prototype.setMinMatchRule=function($iO){this.$Kt=$iO;};RangeValidator.prototype.getMax=function(){return this.$rM;};RangeValidator.prototype.setMax=function($Tz){this.$rM=$Tz;};RangeValidator.prototype.getMaxMatchRule=function(){return this.$Eb;};RangeValidator.prototype.setMaxMatchRule=function($5z){this.$Eb=$5z;};RangeValidator.prototype.validate=function(value){var n=parseFloat(value);if(isNaN(n))n=0;var $dN=false;if(this.$Kt==$hJ){if(!(n>=this.$7N)){$dN=true;
}}else if(this.$Kt==$w7){if(!(n>this.$7N)){$dN=true;}};if(this.$Eb==$hJ){if(!(n<=this.$rM)){$dN=true;}}else if(this.$Eb==$w7){if(!(n0&&this.$wQ!=null&&this.$wQ.length>0){for(var $ze=0;$ze0&&$UI!=null){return $UI.test(s);}};return true;}