function tf_CreateOpt(e,t,n){var r=n?!0:!1,i=r?tf_CreateElm("option",["value",t],["selected","true"]):tf_CreateElm("option",["value",t]);return i.appendChild(tf_CreateText(e)),i}TF.prototype.PopulateSelect=function(e,t,n){this.EvtManager(this.Evt.name.populateselect,{slcIndex:e,slcExternal:t,slcId:n})},TF.prototype._PopulateSelect=function(e,t,n,r){function k(){if(a=="innerhtml")l+='";else{var e=tf_CreateOpt(o.enableSlcResetFilter?o.displayAllText:"","");o.enableSlcResetFilter||(e.style.display="none"),s.appendChild(e);if(o.enableEmptyOption){var t=tf_CreateOpt(o.emptyText,o.emOperator);s.appendChild(t)}if(o.enableNonEmptyOption){var n=tf_CreateOpt(o.nonEmptyText,o.nmOperator);s.appendChild(n)}}}function L(){var n=s.value;s.innerHTML="",k();for(var r=0;r"+u+""}else{var y;o.fillSlcOnDemand&&n==f[r]&&o["col"+e]==o.fltTypeSlc?y=tf_CreateOpt(u,i,!0):o["col"+e]!=o.fltTypeMulti?y=tf_CreateOpt(u,i,v[e]!=" "&&i==v[e]?!0:!1):y=tf_CreateOpt(u,i,m.tf_Has(f[r].tf_MatchCase(o.matchCase),o.matchCase)||m.toString().indexOf(i)!=-1?!0:!1),c&&(y.disabled=!0),s.appendChild(y)}}a=="innerhtml"&&(s.innerHTML+=l),s.setAttribute("filled","1")}n=n==undefined?!1:n;var i=this.fltIds[e];if(tf_Id(i)==null&&!n)return;if(tf_Id(r)==null&&n)return;var s=n?tf_Id(r):tf_Id(i),o=this,u=this.tbl.rows,a=this.slcFillingMethod.tf_LCase(),f=[],l="",c,h=this.hasCustomSlcOptions&&this.customSlcOptions.cols.tf_Has(e),p=[],d;t&&this.activeFilterId&&(d=this.activeFilterId.split("_")[0],d=d.split(this.prfxFlt)[1]);var v=[],m=[];this.rememberGridValues&&(v=tf_CookieValueArray(this.fltsValuesCookie,this.separator),v!=undefined&&v.toString().tf_Trim()!=""&&(this.hasCustomSlcOptions&&this.customSlcOptions.cols.tf_Has(e)?m.push(v[e]):m=v[e].split(" "+o.orOperator+" ")));var g=null,y=null;t&&this.disableExcludedOptions&&(g=[],y=[]);for(var b=this.refRow;b