if (typeof(window.RadControlsNamespace)=="u\x6e\x64efined"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O,o,I){if (!I){return; }if (!O){document.write("<"+"\x6cink"+" rel\x3d\x27styl\x65\x73hee\x74\047\x20typ\x65\075\047\x74ex\x74/cs\x73\047\x20\x68re\x66=\047"+I+"\x27 />"); }else {var A=document.createElement("\x4cINK"); A.rel="s\x74\x79lesheet"; A.type="\x74ext/c\x73\x73"; A.href=I; document.getElementById(o+"\x53tyleSh\x65\x65tHol\x64\x65r").appendChild(A); }} ; function RadComboItem(){ this.ComboBox=null; this.ClientID=null; this.Highlighted= false; this.Index=0; this.Enabled=1; this.Selected=0; this.Text=""; this.Value=null; this.U=new Array(); } ; RadComboItem.prototype.Initialize= function (Z){for (var z in Z){ this[z]=Z[z]; }} ; RadComboItem.prototype.W= function (){var w=0; var V=document.getElementById(this.ComboBox.ClientID+"\x5fD\x72\x6fpDown"); if (V.offsetWidth!=V.scrollWidth+16){w=16; }if (this.ComboBox.Items.length>0){var totalHeight=0; for (var i=0; i<=this.Index; i++){var v=document.getElementById(this.ComboBox.Items[i].ClientID); if (v){totalHeight+=v.offsetHeight; }}V.scrollTop=totalHeight-V.offsetHeight+w; }} ; RadComboItem.prototype.T= function (){if (this.ComboBox.Items.length>0){var totalHeight=0; for (var i=0; i<this.Index; i++){var v=document.getElementById(this.ComboBox.Items[i].ClientID); if (v){totalHeight+=v.offsetHeight; }}var scrollTop=document.getElementById(this.ComboBox.ClientID+"_\x44\x72\x6fpDown").scrollTop; if (scrollTop>totalHeight){document.getElementById(this.ComboBox.ClientID+"\x5f\x44ropDown").scrollTop=totalHeight; }}} ; RadComboItem.prototype.Highlight= function (){if (!this.Highlighted && this.Enabled){ this.ComboBox.UnHighlightAll(); if (!this.ComboBox.IsTemplated || this.ComboBox.HighlightTemplatedItems){var t=document.getElementById(this.ClientID); if (t){if (!this.ComboBox.HighlightedItem){if (t.className!=this.ComboBox.ItemCssClassHover){ this.S=t.className; }else { this.S=this.ComboBox.ItemCssClass; }}t.className=this.ComboBox.ItemCssClassHover; }} this.Highlighted= true; this.ComboBox.HighlightedItem=this ; }} ; RadComboItem.prototype.UnHighlight= function (){if (this.Highlighted && this.Enabled && document.getElementById(this.ClientID)){document.getElementById(this.ClientID).className=this.S; this.Highlighted= false; this.ComboBox.HighlightedItem=null; }} ; RadComboItem.prototype.Select= function (){ this.ComboBox.SelectedItem=this ; this.ComboBox.R(this ); this.ComboBox.HideDropDown(); this.ComboBox.r= true; this.ComboBox.Q(); } ; function RadComboBox(P,N,n){var M=window[N]; if (M!=null && !M.tagName){M.Dispose( true); }if (window.tlrkComboBoxes==null){window.tlrkComboBoxes=new Array(); }tlrkComboBoxes[tlrkComboBoxes.length]=this ; this.Items=new Array(); this.m= false; this.ID=P; this.ClientID=N; this.L=N; this.DropDownID=N+"\x5f\x44ropDow\x6e"; this.InputID=N+"\x5fInput"; this.ImageID=N+"\x5fImage"; this.DropDownPlaceholderID=N+"\x5fDropDown\x50\x6cace\x68\x6fld\x65\x72"; this.MoreResultsBoxID=N+"\x5fMoreRes\x75\x6ctsBo\x78"; this.MoreResultsBoxImageID=N+"\x5f\x4doreRe\x73\x75ltsB\x6f\x78Im\x61\x67e"; this.MoreResultsBoxMessageID=N+"_Mo\x72\x65Result\x73\x42oxM\x65\x73sag\x65"; this.l=N+"_Header"; this.K=document.getElementById(this.InputID); this.k=document.getElementById(this.ImageID); this.J=document.getElementById(this.DropDownPlaceholderID); this.H=document.getElementById(this.ClientID+"\x5ftext"); this.h=document.getElementById(this.ClientID+"_\x76\x61lue"); this.G=document.getElementById(this.ClientID+"\x5findex"); this.g=document.getElementById(this.ClientID+"\x5f\x63lientW\x69\x64th"); this.F=document.getElementById(this.ClientID+"_clientH\x65\x69ght"); this.Enabled= true; this.DropDownVisible= false; this.LoadOnDemandUrl=null; this.PollTimeOut=0; this.HighlightedItem=null; this.SelectedItem=null; this.ItemRequestTimeout=300; this.EnableLoadOnDemand= false; this.AutoPostBack= false; this.ShowMoreResultsBox= false; this.OpenDropDownOnLoad= false; this.f= false; this.MarkFirstMatch= false; this.IsCaseSensitive= false; this.SelectOnTab= true; this.PostBackReference=null; this.LoadingMessage="\x4coadi\x6e\x67..."; this.ScrollDownImage=null; this.ScrollDownImageDisabled=null; this.D=null; this.RadComboBoxImagePosition="Right"; this.ItemCssClass=null; this.ItemCssClassHover=null; this.ItemCssClassDisabled=null; this.ImageCssClass=null; this.ImageCssClassHover=null; this.InputCssClass=null; this.InputCssClassHover=null; this.LoadingMessageCssClass="Combo\x42\x6fxLoad\x69\x6egMes\x73\141\x67\145"; this.AutoCompleteSeparator=null; this.ExternalCallBackPage=null; this.OnClientSelectedIndexChanging=null; this.OnClientDropDownOpening=null; this.OnClientDropDownClosing=null; this.OnClientItemsRequesting=null; this.OnClientSelectedIndexChanged=null; this.OnClientItemsRequested=null; this.OnClientKeyPressing=null; this.Skin="Cla\x73\x73ic"; this.HideTimeoutID=0; this.d=0; this.C= false; this.B=null; this.AllowCustomText= false; this.ExpandEffectString=null; this.HighlightTemplatedItems= false; this.CausesValidation= false; this.ClientDataString=null; this.ShowDropDownOnTextboxClick= true; this.ShowWhileLoading=n; this.o0= false; this.r= false; this.O0=-1; this.IsTemplated= false; this.l0=null; this.OffsetX=0; this.OffsetY=0; this.i0= false; var comboInstance=this ; this.I0(); this.o1= function (){comboInstance.HideOnClick(); } ; if (document.attachEvent){document.attachEvent("o\x6eclick",this.o1); }else {document.addEventListener("clic\x6b",this.o1, false); } this.O1= function (e){comboInstance.l1(e || event); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("\x6fnblur",this.O1); }else {document.getElementById(this.InputID).addEventListener("\x62\x6cur",this.O1, false); } this.i1= function (){comboInstance.I1(); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("o\x6e\x66ocus",this.i1); }else {document.getElementById(this.InputID).addEventListener("f\x6f\x63us",this.i1, false); }document.getElementById(this.InputID).setAttribute("\x61utocompl\x65\x74e","off"); document.getElementById(this.DropDownPlaceholderID).onselectstart= function (){return false; } ; if (typeof(RadCallbackNamespace)!="\x75ndefined"){window.setTimeout( function (){comboInstance.o2(document.getElementById(comboInstance.InputID), true);} ,100); }else {var O2= false; if (window.addEventListener){if (window.opera)window.addEventListener("\154\x6f\141d", function (){comboInstance.o2(document.getElementById(comboInstance.InputID), true); } , false); else this.o2(document.getElementById(this.InputID), true); }else {if (document.getElementById(this.ClientID).offsetWidth==0){window.attachEvent("\x6fnload", function (){comboInstance.o2(document.getElementById(comboInstance.InputID), true); } ); }else if (!O2){ this.o2(document.getElementById(this.InputID), true); }else { this.l2(); }}}if (window.attachEvent){window.attachEvent("\x6fnunl\x6f\x61d", function (){comboInstance.Dispose( false); } ); }else {window.addEventListener("unl\x6f\x61d", function (){comboInstance.Dispose( false); } , false); }} ; RadComboBox.prototype.ClearItems= function (){ this.Items=[]; document.getElementById(this.DropDownID).innerHTML=""; } ; RadComboBox.prototype.GetViewPortSize= function (){var width=0; var height=0; var i2=document.body; if (window.innerWidth){width=window.innerWidth; height=window.innerHeight; }else {if (document.compatMode && document.compatMode=="\x43SS\x31\x43ompat"){i2=document.documentElement; }width=i2.clientWidth; height=i2.clientHeight; }width+=i2.scrollLeft; height+=i2.scrollTop; return {width:width-6,height:height-6 } ; } ; RadComboBox.prototype.I2= function (el){var parent=null; var o3= {x: 0,y: 0 } ; var box; if (el.getBoundingClientRect){box=el.getBoundingClientRect(); var scrollTop=document.documentElement.scrollTop || document.body.scrollTop; var scrollLeft=document.documentElement.scrollLeft || document.body.scrollLeft; o3.x=box.left+scrollLeft-2; o3.y=box.top+scrollTop-2; return o3; }else if (document.getBoxObjectFor){box=document.getBoxObjectFor(el); o3.x=box.x-2; o3.y=box.y-2; }else {o3.x=el.offsetLeft; o3.y=el.offsetTop; parent=el.offsetParent; if (parent!=el){while (parent){o3.x+=parent.offsetLeft; o3.y+=parent.offsetTop; parent=parent.offsetParent; }}}if (window.opera){parent=el.offsetParent; while (parent && parent.tagName!="\x42\x4fDY" && parent.tagName!="\x48TML"){o3.x-=parent.scrollLeft; o3.y-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName!="B\x4f\x44Y" && parent.tagName!="\x48TML"){o3.x-=parent.scrollLeft; o3.y-=parent.scrollTop; parent=parent.parentNode; }}return o3; } ; RadComboBox.prototype.Dispose= function (O3){try {if (O3){ this.HideDropDown(); }tlrkComboBoxes[this.ID]=null; this.Items=null; this.K=null; this.k=null; this.J=null; this.H=null; this.h=null; this.G=null; this.D=null; this.OnClientSelectedIndexChanging=null; this.OnClientDropDownOpening=null; this.OnClientDropDownClosing=null; this.OnClientItemsRequesting=null; this.OnClientSelectedIndexChanged=null; this.OnClientItemsRequested=null; this.OnClientKeyPressing=null; var comboInstance=this ; if (document.detachEvent){document.detachEvent("onclick",this.o1); }else {document.removeEventListener("\x63l\x69\x63k",this.o1, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("\x6fnblur",this.O1); }else {document.getElementById(this.InputID).removeEventListener("blur",this.O1, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("\x6fnfocus",this.i1); }else {document.getElementById(this.InputID).removeEventListener("\x66\x6fcus",this.i1, false); }if (window.removeEventListener){window.removeEventListener("\x6coad", function (){comboInstance.o2(document.getElementById(comboInstance.InputID), true); } , false); }var input=document.getElementById(this.InputID); if (input!=null)input.onblur=null; input=null; var l3=document.getElementById(this.DropDownPlaceholderID); if (l3!=null){l3.onselectstart=null; }l3=null; }catch (e){} this.i0= true; } ; RadComboBox.prototype.Initialize= function (i3,Z){ this.I3(i3); this.o4(Z); this.O4(); this.l4(); } ; RadComboBox.prototype.I3= function (i3){for (var z in i3){ this[z]=i3[z]; }} ; RadComboBox.prototype.O4= function (){ this.ItemCssClass="\103omboBoxItem\x5f"+this.Skin; this.ItemCssClassHover="\x43omboBoxItem\x48\x6fver\x5f"+this.Skin; this.ItemCssClassDisabled="ComboB\x6f\x78ItemD\x69\x73able\x64_"+this.Skin; this.ImageCssClass="C\x6f\x6dboBoxIm\x61\147e_"+this.Skin; this.ImageCssClassHover="\103omb\x6f\x42oxIma\x67\x65Hov\x65\162_"+this.Skin; this.InputCssClass="\103om\x62\x6fBoxInp\x75\x74_"+this.Skin; this.InputCssClassHover="\x43omboBo\x78\x49nputH\x6f\x76er\x5f"+this.Skin; this.LoadingMessageCssClass="\x43omboBoxLoad\x69\x6egMes\x73\x61ge\x5f"+this.Skin; } ; RadComboBox.prototype.R= function (item){if (item!=null){ this.i4(item.Text); this.SetValue(item.Value); this.I4(item.Index); }else { this.SetText(""); this.SetValue(""); this.I4("\x2d\061"); }} ; RadComboBox.prototype.Q= function (){if (this.AutoPostBack){if (this.CausesValidation){if (typeof(WebForm_DoPostBackWithOptions)!="function" && !(typeof(Page_ClientValidate)!="f\x75nction" || Page_ClientValidate())){return; }}eval(this.PostBackReference); }} ; RadComboBox.prototype.l1= function (e){var o5=this.SelectedItem; var O5=this.HighlightedItem; if (o5!=null && O5!=null && o5!=O5){if (this.l5(this.OnClientSelectedIndexChanging,O5,e)== false){return; } this.R(O5); this.i5(); if (this.HighlightedItem==null){O5.Select(); this.l5(this.OnClientSelectedIndexChanged,O5,e); }}if (this.o0)return; var I5=this.l0; var o6=this.GetText(); if (I5!=o6 && this.AllowCustomText){ this.SetText(this.GetText()); if (!this.r){if (O5!=null || I5!=o6){if (this.l5(this.OnClientSelectedIndexChanging,O5,e)== false){return; }if (O5!=null){ this.SetText(O5.Text); this.SetValue(O5.Value); } this.Q(); }}else { this.r= false; }}} ; RadComboBox.prototype.I1= function (e){ this.l0=this.GetText(); this.O6(); };RadComboBox.prototype.l6= function (){var i6=document.getElementById(this.L); while (i6.tagName!="\x46\x4fRM"){i6=i6.parentNode; }return i6; } ; RadComboBox.prototype.I6= function (){var l3=document.getElementById(this.DropDownPlaceholderID); var o7=l3.getElementsByTagName("input"); return o7.length>0; };RadComboBox.prototype.O7= function (){if ((!document.readyState || document.readyState=="\x63omplete") && (!this.C)){var parentElement=document.body; if (this.I6()){parentElement=this.l6(); }var l3=document.getElementById(this.L).getElementsByTagName("d\x69\x76")[0]; l3.parentNode.removeChild(l3); l3.style.marginLeft="0"; var l7=document.getElementById(this.DropDownPlaceholderID); if (l7){l7.parentNode.removeChild(l7); }if (parentElement.firstChild){parentElement.insertBefore(l3,parentElement.firstChild); }else {parentElement.appendChild(l3); } this.C= true; this.J=document.getElementById(this.DropDownPlaceholderID); }} ; RadComboBox.prototype.HideOnClick= function (){var comboInstance=this ; this.HideTimeoutID=window.setTimeout( function (){comboInstance.DoHideOnClick(); } ,5); } ; RadComboBox.prototype.DoHideOnClick= function (){if (this.HideTimeoutID){ this.HideDropDown(); }} ; RadComboBox.prototype.ClearHideTimeout= function (){ this.HideTimeoutID=0; } ; RadComboBox.prototype.i7= function (text){var lastIndex=-1; for (var i=0; i<this.AutoCompleteSeparator.length; i++){var I7=this.AutoCompleteSeparator.charAt(i); var o8=text.lastIndexOf(I7); if (o8>lastIndex){lastIndex=o8; }}return lastIndex; } ; RadComboBox.prototype.i4= function (O8){var l8=-1; var i8=this.GetText(); if (this.AutoCompleteSeparator!=null){l8=this.i7(i8); }var o6=i8.substring(0,l8+1)+O8; this.SetText(o6); } ; RadComboBox.prototype.ClearSelection= function (){ this.R(null); this.SelectedItem=null; this.I8=null; } ; RadComboBox.prototype.o4= function (Z){for (var i=0; i<Z.length; i++){var item=new RadComboItem(); item.ComboBox=this ; item.Index=this.Items.length; item.Initialize(Z[i]); this.Items[this.Items.length]=item; if (item.Selected && !this.AllowCustomText){ this.SetText(item.Text); this.SetValue(item.Value); }}} ; RadComboBox.prototype.l4= function (){if (this.SelectedItem!=null){ this.SelectedItem.Highlight(); }else {var o9; var O9=this.GetValue(); o9=this.FindItemByValue(O9); if (o9==null){var i8=this.GetText(); o9=this.FindItemByText(i8); }if (o9!=null){ this.SelectedItem=o9; this.SelectedItem.Highlight(); }} this.m= true; if (this.SelectedItem==null && this.O0==-1 && this.Items.length>0){ this.SelectedItem=this.Items[0]; this.Items[0].Selected= true; this.SelectedItem.Highlight(); }var comboInstance=this ; if (this.OpenDropDownOnLoad){if (window.attachEvent){window.attachEvent("\x6f\x6eload", function (){comboInstance.ShowDropDown(); } ); }else {window.addEventListener("\x6c\x6fad", function (){comboInstance.ShowDropDown(); } , false); }}} ; RadComboBox.prototype.l9= function (Z,i9){if (!i9){ this.Items.length=0; } this.HighlightedItem=null; this.SelectedItem=null; this.m= false; if (this.Items.length>0){if (this.Items[0].Text==document.getElementById(this.InputID).value){ this.SetValue(this.Items[0].Value); }else { this.SetValue(""); } this.B=this.GetText(); } this.o4(Z); } ; RadComboBox.prototype.SetText= function (O8){document.getElementById(this.InputID).value=O8; this.H.value=O8; } ; RadComboBox.prototype.GetText= function (){return document.getElementById(this.InputID).value; } ; RadComboBox.prototype.SetValue= function (value){if (value || value==""){ this.h.value=value; }} ; RadComboBox.prototype.GetValue= function (){return this.h.value; } ; RadComboBox.prototype.I4= function (index){ this.G.value=index; } ; RadComboBox.prototype.I9= function (el){var parent=null; var o3=[]; var box; if (el.getBoundingClientRect){box=el.getBoundingClientRect(); var scrollTop=document.documentElement.scrollTop || document.body.scrollTop; var scrollLeft=document.documentElement.scrollLeft || document.body.scrollLeft; var x=box.left+scrollLeft-2; var y=box.top+scrollTop-2; return [x,y]; }else if (document.getBoxObjectFor){box=document.getBoxObjectFor(el); o3=[box.x-1,box.y-1]; }else {o3=[el.offsetLeft,el.offsetTop]; parent=el.offsetParent; if (parent!=el){while (parent){o3[0]+=parent.offsetLeft; o3[1]+=parent.offsetTop; parent=parent.offsetParent; }}}if (window.opera){parent=el.offsetParent; while (parent && parent.tagName.toUpperCase()!="BODY" && parent.tagName.toUpperCase()!="\x48\x54ML"){o3[0]-=parent.scrollLeft; o3[1]-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName.toUpperCase()!="\102\x4f\x44Y" && parent.tagName.toUpperCase()!="HT\x4d\x4c"){o3[0]-=parent.scrollLeft; o3[1]-=parent.scrollTop; parent=parent.parentNode; }}return o3; } ; RadComboBox.prototype.oa= function (x,y){if (document.readyState && document.readyState!="co\x6d\x70lete"){return; }var Oa=(navigator.userAgent.toLowerCase().indexOf("sa\x66ari")!=-1); var la=window.opera; if (Oa || la || (!document.all)){return; }if (this.D==null){ this.D=document.createElement("\x49FRAME"); this.D.src="\x6a\x61vascri\x70\164:\x27\047"; this.D.id=this.ClientID+"_\x4f\x76erlay"; this.D.frameBorder=0; this.D.style.position="\x61\x62solute"; this.D.style.display="\x6eone"; this.O7(); this.J.parentNode.insertBefore(this.D,this.J); this.D.style.zIndex=this.J.style.zIndex-1; } this.D.style.left=x; this.D.style.top=y; var ia=this.J.offsetWidth; var Ia=this.J.offsetHeight; this.D.style.width=ia+"\x70x"; this.D.style.height=Ia+"\x70x"; this.D.style.display=""; } ; RadComboBox.prototype.ob= function (){var Oa=(navigator.userAgent.toLowerCase().indexOf("\163\x61\x66ari")!=-1); var la=window.opera; if (Oa || la || (!document.all)){return; }if (this.D!=null){ this.D.style.display="\x6eone"; }} ; RadComboBox.prototype.Ob= function (){for (var i=0; i<tlrkComboBoxes.length; i++){if (tlrkComboBoxes[i].ClientID!=this.ClientID){tlrkComboBoxes[i].HideDropDown(); }}} ; RadComboBox.prototype.I0= function (){var el=document.getElementById(this.ClientID+"\x5fwrapper"); while (el.tagName.toLowerCase()!="html"){if (el.dir){ this.lb=(el.dir.toLowerCase()=="rtl"); return; }el=el.parentNode; } this.lb= false; };RadComboBox.prototype.ShowDropDown= function (){if (this.l5(this.OnClientDropDownOpening,this )== false){return; } this.Ob(); this.O7(); var ib; (this.RadComboBoxImagePosition=="\x52\x69\x67ht" && !this.lb)?ib=this.K:ib=document.getElementById(this.ImageID); var position=this.I9(ib); var x=position[0]+this.OffsetX; var y=position[1]+ib.offsetHeight+this.OffsetY; var Ib=document.getElementById(this.L); oc=Ib.offsetWidth; if (this.ExpandEffectString!=null && document.all){try { this.J.style.filter=this.ExpandEffectString; this.J.filters[0].Apply(); this.J.filters[0].Play(); }catch (e){}}if (this.lb){ this.J.dir="\x72tl"; }var Oc=this.GetViewPortSize(); this.J.style.position="absol\x75\x74e"; if (window.netscape || window.opera){oc-=2; } this.J.style.width=oc+"px"; this.J.style.display="b\x6c\x6fck"; if (this.lc(Oc,this.J,ib)){var ic=y-this.J.offsetHeight-ib.offsetHeight; if (ic>0){y=ic; }} this.J.style.left=x+"\x70\170"; this.J.style.top=y+"\x70\x78"; this.oa(x+"px",y+"\x70x"); if (this.HighlightedItem!=null){ this.HighlightedItem.W(); }if (this.SelectedItem!=null){ this.SelectedItem.W(); } this.ClearHideTimeout(); this.DropDownVisible= true; try {document.getElementById(this.InputID).focus(); }catch (e){} ; if ((this.EnableLoadOnDemand) && (this.Items.length==0)){ this.Ic( true ,null); }if (this.SelectedItem!=null){ this.SelectedItem.Highlighted= false; this.SelectedItem.Highlight(); this.SelectedItem.T(); }} ; RadComboBox.prototype.lc= function (Oc,t,ib){var od=this.I2(ib).y+t.offsetHeight; return od>Oc.height; } ; RadComboBox.prototype.FindItemByText= function (O8){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Text==O8){return this.Items[i]; }}return null; } ; RadComboBox.prototype.FindItemByValue= function (Od){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Value==Od){return this.Items[i]; }}return null; } ; RadComboBox.prototype.HideDropDown= function (){if (this.DropDownVisible){if (this.l5(this.OnClientDropDownClosing,this )== false){return; }document.getElementById(this.DropDownPlaceholderID).style.display="none"; this.ob(); this.DropDownVisible= false; this.ld(); }} ; RadComboBox.prototype.ld= function (){ this.l5(this.OnClientBlur,this );};RadComboBox.prototype.O6= function (){ this.l5(this.OnClientFocus,this );};RadComboBox.prototype.ToggleDropDown= function (){ (this.DropDownVisible)?this.HideDropDown(): this.ShowDropDown(); } ; RadComboBox.prototype.oe= function (Oe){if (Oe){while (Oe!=null){if (Oe.id && this.le(Oe.id)){return Oe; }Oe=Oe.parentNode; }}return null; } ; RadComboBox.prototype.le= function (ie){for (var i=0; i<this.Items.length; i++){if (this.Items[i].ClientID==ie){return true; }}return false; } ; RadComboBox.prototype.Ie= function (item){for (var i=0; i<this.Items.length; i++){if (this.Items[i].ClientID==item.id){return this.Items[i]; }}return null; } ; RadComboBox.prototype.of= function (Of){Of.Highlight(); } ; RadComboBox.prototype.If= function (Of){Of.UnHighlight(); } ; RadComboBox.prototype.i5= function (eventArgs){var og=this.HighlightedItem; if (og!=null){if (this.l5(this.OnClientSelectedIndexChanging,og,eventArgs)== false){return; }og.Select(); this.l5(this.OnClientSelectedIndexChanged,og,eventArgs); } this.HideDropDown(); } ; RadComboBox.prototype.HandleClick= function (eventArgs){ this.i5(eventArgs); } ; RadComboBox.prototype.Og= function (index){var i=index; var lg= false; while (i<this.Items.length-1){i=i+1; if (this.Items[i].Enabled){lg= true; break; }}if (lg)return i; return index; } ; RadComboBox.prototype.ig= function (index){var i=index; var lg= false; while (i>0){i=i-1; if (this.Items[i].Enabled){lg= true; break; }}if (lg)return i; return index; } ; RadComboBox.prototype.Ig= function (comboInstance,eventArgs){ this.l5(this.OnClientKeyPressing,this,eventArgs); var keyCode=eventArgs.keyCode; if (keyCode==40){if (eventArgs.altKey && (!this.DropDownVisible)){ this.ShowDropDown(); return; }var index=0; if (this.HighlightedItem!=null){index=this.Og(this.HighlightedItem.Index); }if (index>=0 && this.Items.length>0){if (this.l5(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].Highlight(); this.Items[index].W(); this.R(this.Items[index]); this.oh(eventArgs); }return; }if (keyCode==27 && this.DropDownVisible){ this.HideDropDown(); return; }if (keyCode==38){if (eventArgs.altKey && this.DropDownVisible){ this.HideDropDown(); return; }var index=-1; if (this.HighlightedItem!=null){index=this.ig(this.HighlightedItem.Index); }if (index>=0){if (this.l5(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].T(); this.Items[index].Highlight(); this.R(this.Items[index]); this.oh(eventArgs); }return; }if ((keyCode==13 || keyCode==9) && this.DropDownVisible){if (keyCode==13){ this.oh(eventArgs); }if (!this.SelectOnTab && keyCode==9){if (this.AutoPostBack){ this.Q(); } this.HideDropDown(); return; } this.i5(); return; }if (keyCode==9 && !this.DropDownVisible){ this.ld(); return; }if (keyCode==35 || keyCode==36 || keyCode==37 || keyCode==39){return; }if (this.EnableLoadOnDemand && (!eventArgs.altKey) && (!eventArgs.ctrlKey) && (!(keyCode==16))){if (!this.DropDownVisible){ this.ShowDropDown(); } this.Oh( false ,keyCode); return; }if ((keyCode<32) || (keyCode>=33 && keyCode<=46) || (keyCode>=112 && keyCode<=123) || (eventArgs.altKey== true)){return; }var lh=this ; window.setTimeout( function (){lh.HighlightMatches();} ,20); } ; RadComboBox.prototype.ih= function (eventArgs){if (eventArgs.preventDefault){if (eventArgs.keyCode==13 || (eventArgs.keyCode==32 && (!this.EnableLoadOnDemand))){eventArgs.preventDefault(); }}} ; RadComboBox.prototype.Ih= function (s){if (typeof(encodeURIComponent)!="undef\x69ne\x64"){return encodeURIComponent(this.oi(s)); }if (escape){return escape(this.oi(s)); }} ; RadComboBox.prototype.oi= function (text){if (typeof(text)!="n\x75mber"){return text.replace(/\x27/g,"&squote"); }} ; RadComboBox.prototype.Oi= function (){if (typeof(XMLHttpRequest)!="\x75ndefined"){return new XMLHttpRequest(); }if (typeof(ActiveXObject)!="undefi\x6e\x65d"){return new ActiveXObject("Microsoft.XM\x4c\110\x54\124P"); }} ; RadComboBox.prototype.ii= function (Ii,oj,Oj,lj){Ii=Ii.replace(/\x27/g,"\x26squ\x6f\x74e"); var url=window.unescape(this.LoadOnDemandUrl)+"&text="+this.Ih(Ii); url=url+"&\x63\x6fmboTex\x74\x3d"+this.Ih(oj); url=url+"\046\x63\x6fmboVa\x6c\x75e="+this.Ih(Oj); url=url+"\x26\x73kin="+this.Ih(this.Skin); if (lj){url=url+"&itemCount\x3d"+this.Items.length; }if (this.ExternalCallBackPage!=null){url=url+"\x26\x65xterna\x6c\x3dtru\x65"; }if (this.ClientDataString!=null){url+="\x26clientDa\x74\x61Stri\x6e\x67\x3d"+this.Ih(this.ClientDataString); }url=url+"\x26timeStamp\x3d"+encodeURIComponent((new Date()).getTime()); return url; } ; RadComboBox.prototype.ij= function (lj,text,keyCode){if (!this.f){if (this.i0)return; this.f= true; var oj=this.GetText(); var Oj=this.GetValue(); var Ii=(text)?text:oj; var Ij=this.ii(Ii,oj,Oj,lj); var ok=this ; var xmlRequest=this.Oi(); xmlRequest.onreadystatechange= function (){if (xmlRequest.readyState!=4)return; ok.Ok(xmlRequest.responseText,lj,Ii,keyCode,xmlRequest.status,Ij); } ; xmlRequest.open("GET",Ij, true); xmlRequest.setRequestHeader("Con\x74ent-\x54\x79pe","\x61pplic\x61\x74ion/j\x73\x6fn;\x20charset\x3d\x75tf\x2d\x38");xmlRequest.send(""); }} ; RadComboBox.prototype.Ok= function (lk,lj,Ii,keyCode,status,url){if (status==500){alert("\x52\141dC\x6f\x6dboBox\x3a\x20Se\x72\x76er \x65\x72ro\x72\x20in\x20the\x20\111\x74\145m\x73\122e\x71ueste\x64 even\x74 hand\x6cer,\x20pre\x73s ok\x20to v\x69ew t\x68e re\x73ult\x2e"); document.body.innerHTML=lk; return; }if (status==404){alert("\x52adComboB\x6f\x78: L\x6f\x61d O\x6e\040\x44emand \x50\x61ge\x20not fo\x75\156d\x3a "+url); var ik="\122ad\x43\x6fmboBox\x3a\x20Loa\x64\040O\x6e\040D\x65\155an\x64 Page\x20\x6eot\x20\146o\x75nd: "+url+"<br/>"; ik+="\x50leas\x65\x2c try \x75\x73ing\x20\x45xt\x65\x72nal\x43\x61ll\x42ackPag\x65 to ma\x70 to t\x68\145 \x65xact \x6cocat\x69\157\x6e of \x74he c\x61llba\x63kpag\x65 yo\x75 are\x20usi\x6eg.";document.body.innerHTML=ik; return; }try {eval("va\x72\x20callBa\x63\x6bData\x20= "+lk+"\x3b"); }catch (e){alert("Ra\x64\x43omboBo\x78\x3a loa\x64 on dema\x6e\144 \x63\141ll\x62ack e\x72\162o\x72\056\x20\120r\x65ss En\x74\145\x72\040\x66or mo\x72e i\x6eform\x61tion"); var ik="If Ra\x64\x43omboBo\x78\x20is \x6e\157t\x20\x69nit\x69\x61ll\x79 visib\x6c\145 \x6f\156 \x79our A\x53\120X\x20page,\x20you \x6day n\x65ed t\x6f use\x20stre\x61mers\x20(th\x65 Ext\x65rna\x6clCa\x6clBa\x63kPa\x67e p\x72op\x65rty\x29"; ik+="\x3cbr/>Please,\x20\x72ead\x20\x6fur \x6f\x6elin\x65\040d\x6f\143\x75\155e\x6e\164a\x74ion o\x6e\040t\x68is pr\x6fblem \x66or d\x65tail\x73"; ik+="<br/\x3e\x3ca hre\x66\x3d\047\x68ttp:\x2f\057w\x77\167.\x74\x65l\x65\162i\x6b.com/h\x65lp/ra\x64\143o\x6dbobox\x2fv2%5F\x4eET2/\x3fcomb\x6f_ext\x65rnal\x63all\x62ackp\x61ge.\x68tml\x27\076\x68ttp\x3a//\x77ww.\x74ele\x72ik.\x63om\x2fhel\x70/r\x61dc\x6fmb\x6fbo\x78/v\x32%5\x46NE\x542/\x63om\x62o\x5fex\x74er\x6ea\x6cca\x6clb\x61c\x6bpa\x67e\x2eh\x74ml\x3c/\x61>";document.body.innerHTML=ik; return; }if (this.GetText()!=callBackData.Text){ this.f= false; this.Oh( false ,null); return; }if (this.ShowMoreResultsBox){document.getElementById(this.MoreResultsBoxMessageID).innerHTML=callBackData.Message; }var Ik=this.Items.length; this.l9(callBackData.Items,lj); if (lj){document.getElementById(this.DropDownID).removeChild(document.getElementById(this.ClientID+"_L\x6fadingDiv")); document.getElementById(this.DropDownID).innerHTML+=callBackData.DropDownHtml; if (this.Items[Ik+1]!=null){ this.Items[Ik+1].W(); }}else {document.getElementById(this.DropDownID).innerHTML=callBackData.DropDownHtml; } this.oa(this.J.style.left,this.J.style.top); this.l5(this.OnClientItemsRequested,this,Ii,lj); this.f= false; var ll=this.FindItemByText(this.GetText()); if (ll!=null){ll.Highlight(); ll.W(); }if (!keyCode)return; if (keyCode<32 || (keyCode>=33 && keyCode<=46) || (keyCode>=112 && keyCode<=123) && keyCode!=8){return; } this.HighlightMatches(); };RadComboBox.prototype.il= function (i8){var l8=-1; if (this.AutoCompleteSeparator!=null){l8=this.i7(i8); }var Il=i8.substring(l8+1,i8.length); return Il; } ; RadComboBox.prototype.om= function (Om,Im){if (!this.IsCaseSensitive){return (Om.toLowerCase()==Im.toLowerCase()); }else {return (Om==Im); }} ; RadComboBox.prototype.HighlightMatches= function (){if (!this.MarkFirstMatch)return; var i8=this.GetText(); var Il=this.il(i8); if (Il.length==0){return; }for (var i=0; i<this.Items.length; i++){var On=this.Items[i].Text; if (On.length>=Il.length){var In=On.substring(0,Il.length); if (this.om(In,Il)){var l8=-1; if (this.AutoCompleteSeparator!=null){l8=this.i7(i8); }var o6=i8.substring(0,l8+1)+On; this.SetText(o6); this.SetValue(this.Items[i].Value); this.I4(this.Items[i].Index); if (this.l5(this.OnClientSelectedIndexChanging,this.Items[i],null)== false){return; } this.Items[i].Highlight(); this.Items[i].W(); var oo=l8+Il.length+1; var Oo=o6.length-oo; if (document.all){var Io=document.getElementById(this.InputID).createTextRange(); Io.moveStart("\143haracter",oo); Io.moveEnd("character",Oo); Io.select(); }else {document.getElementById(this.InputID).setSelectionRange(oo,oo+Oo); }return; }else { this.SetValue(""); this.I4(-1); if (this.HighlightedItem!=null){ this.HighlightedItem.UnHighlight(); }}}} this.SetValue(""); this.I4("\x2d1"); if (!this.AllowCustomText){var op=i8.substring(0,i8.length-1); if (this.B!=null){ this.SetText(this.B); return; } this.SetText(op); this.HighlightMatches(); }} ; RadComboBox.prototype.Oh= function (i9,keyCode){if (!this.f){var comboInstance=this ; if (this.d){window.clearTimeout(this.d); this.d=0; } this.d=window.setTimeout( function (){comboInstance.Ic(i9,keyCode);} ,this.ItemRequestTimeout); }} ; RadComboBox.prototype.Ic= function (i9,keyCode){var Ii=document.getElementById(this.InputID).value; if (Ii=="")Ii= false; if (this.l5(this.OnClientItemsRequesting,this,Ii,i9)== false){return; }if (!this.f){if (!document.getElementById(this.ClientID+"\x5f\x4coadingDi\x76")){document.getElementById(this.DropDownID).innerHTML="<div id=\047"+this.ClientID+"\x5f\x4coading\x44\x69v\047"+" class=\047"+this.LoadingMessageCssClass+"\x20\047\x3e"+this.LoadingMessage+"\x3c/div>"+document.getElementById(this.DropDownID).innerHTML; }}var comboInstance=this ; window.setTimeout( function (){comboInstance.ij(i9,Ii,keyCode);} ,20); } ; RadComboBox.prototype.RequestItems= function (text,i9){ this.ij(i9,text,null); } ; RadComboBox.prototype.UnHighlightAll= function (){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Highlighted){ this.Items[i].UnHighlight(); }}} ; RadComboBox.prototype.Op= function (){document.getElementById(this.InputID).className=this.InputCssClass; var lp=document.getElementById(this.ImageID); if (lp){lp.className=this.ImageCssClass; }} ; RadComboBox.prototype.ip= function (){document.getElementById(this.InputID).className=this.InputCssClassHover; var lp=document.getElementById(this.ImageID); if (lp){lp.className=this.ImageCssClassHover; }} ; RadComboBox.prototype.Ip= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="default"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImageDisabled; this.o0= false; } ; RadComboBox.prototype.oq= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="\x68\x61nd"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImage; this.o0= true; } ; RadComboBox.prototype.Oq= function (){ this.UnHighlightAll(); this.Oh( true ,null); document.getElementById(this.InputID).focus(); } ; RadComboBox.prototype.lq= function (eventArgs){if (eventArgs.stopPropagation){eventArgs.stopPropagation(); }else {eventArgs.cancelBubble= true; }} ; RadComboBox.prototype.oh= function (eventArgs){if (eventArgs.preventDefault){eventArgs.preventDefault(); }else {eventArgs.returnValue= false; }} ; RadComboBox.prototype.l5= function (iq,a,b,Iq){if (!iq)return true; RadComboBoxGlobalFirstParam=a; RadComboBoxGlobalSecondParam=b; RadComboBoxGlobalThirdParam=Iq; var s=iq; s=s+"(Rad\x43omboBoxG\x6c\x6fbalF\x69rstPara\x6d"; s=s+"\x2cRadCom\x62\x6fBoxGl\x6f\x62al\x53\x65con\x64\x50ara\x6d"; s=s+",RadCo\x6d\x62oBoxG\x6c\x6fbalT\x68\151r\x64\x50ara\x6d"; s=s+"\x29;"; return eval(s); } ; RadComboBox.prototype.HandleEvent= function (eventName,eventArgs){var Of; var srcElement=(document.all)?eventArgs.srcElement:eventArgs.target; var item=this.oe(srcElement); if (item!=null){Of=this.Ie(item); }if (!this.Enabled){return; }switch (eventName){case "\x73\150o\x77\x64ropd\x6f\x77n": this.lq(eventArgs); this.ShowDropDown(); break; case "hidedro\x70\x64own": this.lq(eventArgs); this.HideDropDown(); break; case "t\x6f\x67gledro\x70\x64own": this.lq(eventArgs); this.ToggleDropDown(); break; case "\x6douseover":if (Of!=null)this.of(Of); break; case "mouseout":if (Of!=null)this.If(Of); break; case "\x6beypress": this.Ig(this,eventArgs); break; case "k\x65\x79down": this.ih(eventArgs); break; case "click": this.HandleClick(eventArgs); break; case "\x69nputc\x6c\x69ck":{ this.lq(eventArgs); document.getElementById(this.InputID).select(); if (this.ShowDropDownOnTextboxClick)this.ShowDropDown(); break; }case "i\x6e\x70utimage\x6f\x75t": this.Op(); break; case "\x69nputi\x6d\x61gehov\x65\x72": this.ip(); break; case "\x6doreresu\x6c\x74simag\x65\x63li\x63\153": this.lq(eventArgs); this.Oq(); break; case "moreres\x75\x6ctsima\x67\x65hove\x72": this.oq(); break; case "\x6doreresults\x69\x6dageo\x75\x74": this.Ip(); break; }} ; RadComboBox.prototype.Enable= function (){document.getElementById(this.InputID).disabled= false; this.Enabled= true; } ; RadComboBox.prototype.Disable= function (){document.getElementById(this.InputID).disabled="\x64isa\x62\x6ced"; this.Enabled= false; this.H.value=this.GetText(); } ; RadComboBox.prototype.o2= function (or,Or){{if ((this.g.value!="") && (this.F.value!="")){if (or.style.width!=this.g.value)or.style.width=this.g.value; if (or.style.height!=this.F.value)or.style.height=this.F.value; this.l2(); return; }var lp=or.parentNode.getElementsByTagName("\151\x6dg")[0]; if (Or && lp && (lp.offsetWidth==0)){var comboInstance=this ; if (document.attachEvent){if (document.readyState=="\x63omplete")window.setTimeout( function (){comboInstance.o2(or, false); } ,100); else window.attachEvent("\x6f\156loa\x64", function (){comboInstance.o2(or, false); } ); }else {window.addEventListener("\x6coad", function (){comboInstance.o2(or, false); } , false); }return; }var computedStyle=null; if (or.currentStyle){computedStyle=or.currentStyle; }else if (document.defaultView && document.defaultView.getComputedStyle){computedStyle=document.defaultView.getComputedStyle(or,null); }if (computedStyle==null){ this.l2(); return; }var height=parseInt(computedStyle.height); var width=parseInt(or.offsetWidth); var paddingTop=parseInt(computedStyle.paddingTop); var paddingBottom=parseInt(computedStyle.paddingBottom); var paddingLeft=parseInt(computedStyle.paddingLeft); var paddingRight=parseInt(computedStyle.paddingRight); var borderTop=parseInt(computedStyle.borderTopWidth); if (isNaN(borderTop)){borderTop=0; }var borderBottom=parseInt(computedStyle.borderBottomWidth); if (isNaN(borderBottom)){borderBottom=0; }var borderLeft=parseInt(computedStyle.borderLeftWidth); if (isNaN(borderLeft)){borderLeft=0; }var borderRight=parseInt(computedStyle.borderRightWidth); if (isNaN(borderRight)){borderRight=0; }if (document.compatMode && document.compatMode=="\103SS1Compat"){if (!isNaN(height) && (this.F.value=="")){or.style.height=height-paddingTop-paddingBottom-borderTop-borderBottom+"px"; this.F.value=or.style.height; }}if (!isNaN(width) && width && (this.g.value=="")){var lr=0; if (lp){lr=lp.offsetWidth; }if (document.compatMode && document.compatMode=="CSS1Comp\x61t"){var ir=width-lr-paddingLeft-paddingRight-borderLeft-borderRight; if (ir>=0)or.style.width=ir+"px"; this.g.value=or.style.width; }else {or.style.width=width-lr; }} this.l2(); }} ; RadComboBox.prototype.l2= function (){if (!this.ShowWhileLoading)document.getElementById(this.ClientID+"_\x77rapp\x65\x72").style.visibility="\x76isible"; } ; function rcbDispatcher(N,eventName,eventArgs){var comboInstance=null; try {comboInstance=window[N]; }catch (e){}if (typeof(comboInstance)=="\x75ndefi\x6e\x65d" || comboInstance==null){return; }if (typeof(comboInstance.HandleEvent)!="\x75ndefi\x6e\x65d"){comboInstance.HandleEvent(eventName,eventArgs); }} ; function rcbAppendStyleSheet(o,I){var Ir=(navigator.appName=="Microsoft \x49\x6etern\x65\x74 Ex\x70lorer") && ((navigator.userAgent.toLowerCase().indexOf("mac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("\x6dac")!=-1)); var Oa=(navigator.userAgent.toLowerCase().indexOf("\163\x61\x66ari")!=-1); if (Ir || Oa){document.write("<"+"\x6cink"+"\x20rel=\047\x73tyl\x65\163h\x65et\047\x20type=\x27\x74ex\x74\x2f\x63ss\047\x20hre\x66=\047"+I+"\047\x3e"); }else {var A=document.createElement("LINK"); A.rel="styleshee\x74"; A.type="tex\x74\x2fcss"; A.href=I; document.getElementById(o+"\x53tyleSheet\x48\x6flde\x72").appendChild(A); }} ;
