if (typeof(window.RadControlsNamespace)=="\x75\x6edefined"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O,o,I){if (!I){return; }if (!O){document.write("<"+"\x6cink"+"\x20rel=\x27\x73tyl\x65\163\x68eet\047\040t\x79\160e\x3d\x27te\x78t/c\x73s\047\x20href\x3d\047"+I+"\x27 />"); }else {var A=document.createElement("\x4cINK"); A.rel="\x73tyleshe\x65\x74"; A.type="\164ex\x74\x2fcss"; A.href=I; document.getElementById(o+"\x53tyleSheetHo\x6c\x64er").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+"_D\x72opDown"); 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+"\137\x44ropD\x6f\x77n").scrollTop; if (scrollTop>totalHeight){document.getElementById(this.ComboBox.ClientID+"\137D\x72\x6fpDown").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){var n=window[N]; if (n!=null && !n.tagName){n.Dispose(); }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.m=N; this.DropDownID=N+"\x5fDropDown"; this.InputID=N+"\x5fInpu\x74"; this.ImageID=N+"\x5fImage"; this.DropDownPlaceholderID=N+"\x5f\104\x72\x6fpDow\x6e\x50lace\x68\157l\x64\x65r"; this.MoreResultsBoxID=N+"\x5fMoreResul\x74\x73Box"; this.MoreResultsBoxImageID=N+"_MoreR\x65\x73ultsB\x6f\x78Ima\x67\x65"; this.MoreResultsBoxMessageID=N+"\x5fMoreRes\x75\x6ctsBox\x4d\x65ss\x61\x67e"; this.L=N+"\x5fHeader"; this.l=document.getElementById(this.InputID); this.K=document.getElementById(this.ImageID); this.k=document.getElementById(this.DropDownPlaceholderID); this.J=document.getElementById(this.ClientID+"\x5f\x74ext"); this.H=document.getElementById(this.ClientID+"_value"); this.h=document.getElementById(this.ClientID+"_index"); 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.G= false; this.MarkFirstMatch= false; this.IsCaseSensitive= false; this.SelectOnTab= true; this.PostBackReference=null; this.LoadingMessage="Loading..."; this.ScrollDownImage=null; this.ScrollDownImageDisabled=null; this.g=null; this.RadComboBoxImagePosition="\x52\x69ght"; this.ItemCssClass=null; this.ItemCssClassHover=null; this.ItemCssClassDisabled=null; this.ImageCssClass=null; this.ImageCssClassHover=null; this.InputCssClass=null; this.InputCssClassHover=null; this.LoadingMessageCssClass="ComboBoxLoa\x64\x69ngMe\x73\x73ag\x65"; 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="Class\x69\x63"; this.HideTimeoutID=0; this.F=0; this.f= false; this.D=null; this.AllowCustomText= false; this.ExpandEffectString=null; this.HighlightTemplatedItems= false; this.CausesValidation= false; this.ClientDataString=null; this.r= false; this.d=-1; this.IsTemplated= false; this.C=null; this.OffsetX=0; this.OffsetY=0; var comboInstance=this ; this.B(); this.o0= function (){comboInstance.HideOnClick(); } ; if (document.attachEvent){document.attachEvent("\157\x6e\143lic\x6b",this.o0); }else {document.addEventListener("\x63lick",this.o0, false); } this.O0= function (e){comboInstance.l0(e || event); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("\x6fnblur",this.O0); }else {document.getElementById(this.InputID).addEventListener("b\x6c\x75r",this.O0, false); } this.i0= function (){comboInstance.I0(); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("\x6f\x6efocus",this.i0); }else {document.getElementById(this.InputID).addEventListener("\146oc\x75\x73",this.i0, false); }document.getElementById(this.InputID).setAttribute("auto\x63\x6fmplete","off"); document.getElementById(this.DropDownPlaceholderID).onselectstart= function (){return false; } ; if (typeof(RadCallbackNamespace)!="undef\x69\x6eed"){window.setTimeout( function (){comboInstance.o1(document.getElementById(comboInstance.InputID));} ,100); }else {var O1= false; if (window.addEventListener){ this.o1(document.getElementById(this.InputID));}else {if (document.getElementById(this.ClientID).offsetWidth==0){window.attachEvent("onload", function (){comboInstance.o1(document.getElementById(comboInstance.InputID)); } ); }else if (!O1){ this.o1(document.getElementById(this.InputID)); }}}if (window.attachEvent){window.attachEvent("\x6f\x6e\x75nloa\x64", function (){comboInstance.Dispose(); } ); }else {window.addEventListener("unload", function (){comboInstance.Dispose(); } , false); }} ; RadComboBox.prototype.ClearItems= function (){ this.Items=[]; document.getElementById(this.DropDownID).innerHTML=""; } ; RadComboBox.prototype.GetViewPortSize= function (){var width=0; var height=0; var l1=document.body; if (window.innerWidth){width=window.innerWidth; height=window.innerHeight; }else {if (document.compatMode && document.compatMode=="\x43SS1Compat"){l1=document.documentElement; }width=l1.clientWidth; height=l1.clientHeight; }width+=l1.scrollLeft; height+=l1.scrollTop; return {width:width-6,height:height-6 } ; } ; RadComboBox.prototype.i1= function (el){var parent=null; var I1= {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; I1.x=box.left+scrollLeft-2; I1.y=box.top+scrollTop-2; return I1; }else if (document.getBoxObjectFor){box=document.getBoxObjectFor(el); I1.x=box.x-2; I1.y=box.y-2; }else {I1.x=el.offsetLeft; I1.y=el.offsetTop; parent=el.offsetParent; if (parent!=el){while (parent){I1.x+=parent.offsetLeft; I1.y+=parent.offsetTop; parent=parent.offsetParent; }}}if (window.opera){parent=el.offsetParent; while (parent && parent.tagName!="BODY" && parent.tagName!="\x48TML"){I1.x-=parent.scrollLeft; I1.y-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName!="\x42ODY" && parent.tagName!="HTML"){I1.x-=parent.scrollLeft; I1.y-=parent.scrollTop; parent=parent.parentNode; }}return I1; } ; RadComboBox.prototype.Dispose= function (){try {tlrkComboBoxes[this.ID]=null; this.Items=null; this.l=null; this.K=null; this.k=null; this.J=null; this.H=null; this.h=null; this.g=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("\x6fnclic\x6b",this.o0); }else {document.removeEventListener("\143\x6c\x69ck",this.o0, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("\x6f\156bl\x75\x72",this.O0); }else {document.getElementById(this.InputID).removeEventListener("\x62lur",this.O0, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("onfocus",this.i0); }else {document.getElementById(this.InputID).removeEventListener("\x66ocus",this.i0, false); }if (window.removeEventListener){window.removeEventListener("\154oa\x64", function (){comboInstance.o1(document.getElementById(comboInstance.InputID)); } , false); }var input=document.getElementById(this.InputID); if (input!=null)input.onblur=null; input=null; var o2=document.getElementById(this.DropDownPlaceholderID); if (o2!=null){o2.onselectstart=null; }o2=null; }catch (e){}} ; RadComboBox.prototype.Initialize= function (O2,Z){ this.l2(O2); this.i2(Z); this.I2(); this.o3(); } ; RadComboBox.prototype.l2= function (O2){for (var z in O2){ this[z]=O2[z]; }} ; RadComboBox.prototype.I2= function (){ this.ItemCssClass="C\x6fmboBoxIt\x65\x6d_"+this.Skin; this.ItemCssClassHover="\103o\x6d\x62oBoxI\x74\x65mHov\x65r_"+this.Skin; this.ItemCssClassDisabled="\x43omboBoxIte\x6d\x44isab\x6c\x65d_"+this.Skin; this.ImageCssClass="\x43\x6fmboBox\x49\x6dage_"+this.Skin; this.ImageCssClassHover="Combo\x42\x6fxImag\x65\x48over\x5f"+this.Skin; this.InputCssClass="ComboB\x6f\x78Input\x5f"+this.Skin; this.InputCssClassHover="\x43\x6fmboBoxI\x6e\x70utH\x6f\x76er_"+this.Skin; this.LoadingMessageCssClass="\x43omboBo\x78\x4coadi\x6e\x67Mes\x73\141g\x65\x5f"+this.Skin; } ; RadComboBox.prototype.R= function (item){if (item!=null){ this.O3(item.Text); this.SetValue(item.Value); this.l3(item.Index); }else { this.SetText(""); this.SetValue(""); this.l3("-1"); }} ; RadComboBox.prototype.Q= function (){if (this.AutoPostBack){if (this.CausesValidation){if (typeof(WebForm_DoPostBackWithOptions)!="\x66unction" && !(typeof(Page_ClientValidate)!="function" || Page_ClientValidate())){return; }}eval(this.PostBackReference); }} ; RadComboBox.prototype.l0= function (e){var i3=this.SelectedItem; var I3=this.HighlightedItem; if (i3!=null && I3!=null && i3!=I3){if (this.o4(this.OnClientSelectedIndexChanging,I3,e)== false){return; } this.R(I3); this.O4(); }var l4=this.C; var i4=this.GetText(); if (l4!=i4 && this.AllowCustomText){ this.SetText(this.GetText()); if (!this.r){if (I3!=null || l4!=i4){if (this.o4(this.OnClientSelectedIndexChanging,I3,e)== false){return; }if (I3!=null && I3.Text!=this.GetText()){ this.SetText(I3.Text); this.SetValue(I3.Value); } this.Q(); }}else { this.r= false; }}} ; RadComboBox.prototype.I0= function (e){ this.C=this.GetText(); this.I4(); };RadComboBox.prototype.o5= function (){var O5=document.getElementById(this.m); while (O5.tagName!="FORM"){O5=O5.parentNode; }return O5; } ; RadComboBox.prototype.l5= function (){var o2=document.getElementById(this.DropDownPlaceholderID); var i5=o2.getElementsByTagName("inp\x75t"); return i5.length>0; };RadComboBox.prototype.I5= function (){if ((!document.readyState || document.readyState=="comp\x6c\x65te") && (!this.f)){var parentElement=document.body; if (this.l5()){parentElement=this.o5(); }var o2=document.getElementById(this.m).getElementsByTagName("\x64iv")[0]; o2.parentNode.removeChild(o2); o2.style.marginLeft="\x30"; var o6=document.getElementById(this.DropDownPlaceholderID); if (o6){o6.parentNode.removeChild(o6); }if (parentElement.firstChild){parentElement.insertBefore(o2,parentElement.firstChild); }else {parentElement.appendChild(o2); } this.f= true; this.k=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.O6= function (text){var lastIndex=-1; for (var i=0; i<this.AutoCompleteSeparator.length; i++){var l6=this.AutoCompleteSeparator.charAt(i); var i6=text.lastIndexOf(l6); if (i6>lastIndex){lastIndex=i6; }}return lastIndex; } ; RadComboBox.prototype.O3= function (I6){var o7=-1; var O7=this.GetText(); if (this.AutoCompleteSeparator!=null){o7=this.O6(O7); }var i4=O7.substring(0,o7+1)+I6; this.SetText(i4); } ; RadComboBox.prototype.ClearSelection= function (){ this.R(null); this.SelectedItem=null; this.l7=null; } ; RadComboBox.prototype.i2= 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.o3= function (){if (this.SelectedItem!=null){ this.SelectedItem.Highlight(); }else {var i7; var I7=this.GetValue(); i7=this.FindItemByValue(I7); if (i7==null){var O7=this.GetText(); i7=this.FindItemByText(O7); }if (i7!=null){ this.SelectedItem=i7; this.SelectedItem.Highlight(); }} this.M= true; if (this.SelectedItem==null && this.d==-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("o\x6e\x6c\x6fad", function (){comboInstance.ShowDropDown(); } ); }else {window.addEventListener("loa\x64", function (){comboInstance.ShowDropDown(); } , false); }}} ; RadComboBox.prototype.o8= function (Z,O8){if (!O8){ 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.D=this.GetText(); } this.i2(Z); } ; RadComboBox.prototype.SetText= function (I6){document.getElementById(this.InputID).value=I6; this.J.value=I6; } ; 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.l3= function (index){ this.h.value=index; } ; RadComboBox.prototype.l8= function (el){var parent=null; var I1=[]; 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); I1=[box.x-1,box.y-1]; }else {I1=[el.offsetLeft,el.offsetTop]; parent=el.offsetParent; if (parent!=el){while (parent){I1[0]+=parent.offsetLeft; I1[1]+=parent.offsetTop; parent=parent.offsetParent; }}}if (window.opera){parent=el.offsetParent; while (parent && parent.tagName.toUpperCase()!="\102\x4fDY" && parent.tagName.toUpperCase()!="HTML"){I1[0]-=parent.scrollLeft; I1[1]-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName.toUpperCase()!="B\x4f\x44Y" && parent.tagName.toUpperCase()!="\x48TML"){I1[0]-=parent.scrollLeft; I1[1]-=parent.scrollTop; parent=parent.parentNode; }}return I1; } ; RadComboBox.prototype.i8= function (x,y){if (document.readyState && document.readyState!="\x63omplete"){return; }var I8=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); var o9=window.opera; if (I8 || o9 || (!document.all)){return; }if (this.g==null){ this.g=document.createElement("\x49\x46RAME"); this.g.src="javascrip\x74\x3a\047\047"; this.g.id=this.ClientID+"_Overlay"; this.g.frameBorder=0; this.g.style.position="\x61bsolute"; this.g.style.display="\x6eone"; this.I5(); this.k.parentNode.insertBefore(this.g,this.k); this.g.style.zIndex=this.k.style.zIndex-1; } this.g.style.left=x; this.g.style.top=y; var O9=this.k.offsetWidth; var l9=this.k.offsetHeight; this.g.style.width=O9+"\x70x"; this.g.style.height=l9+"\x70x"; this.g.style.display=""; } ; RadComboBox.prototype.i9= function (){var I8=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); var o9=window.opera; if (I8 || o9 || (!document.all)){return; }if (this.g!=null){ this.g.style.display="\x6eone"; }} ; RadComboBox.prototype.I9= function (){for (var i=0; i<tlrkComboBoxes.length; i++){if (tlrkComboBoxes[i].ClientID!=this.ClientID){tlrkComboBoxes[i].HideDropDown(); }}} ; RadComboBox.prototype.B= function (){var el=document.getElementById(this.ClientID+"_wr\x61\x70per"); while (el.tagName.toLowerCase()!="html"){if (el.dir){ this.oa=(el.dir.toLowerCase()=="\x72tl"); return; }el=el.parentNode; } this.oa= false; };RadComboBox.prototype.ShowDropDown= function (){if (this.o4(this.OnClientDropDownOpening,this )== false){return; } this.I9(); this.I5(); var Oa; (this.RadComboBoxImagePosition=="Right" && !this.oa)?Oa=this.l:Oa=document.getElementById(this.ImageID); var position=this.l8(Oa); var x=position[0]+this.OffsetX; var y=position[1]+Oa.offsetHeight+this.OffsetY; var la=document.getElementById(this.m); ia=la.offsetWidth; if (this.ExpandEffectString!=null && document.all){try { this.k.style.filter=this.ExpandEffectString; this.k.filters[0].Apply(); this.k.filters[0].Play(); }catch (e){}}if (this.oa){ this.k.dir="rtl"; }var Ia=this.GetViewPortSize(); this.k.style.position="a\x62solut\x65"; if (window.netscape || window.opera){ia-=2; } this.k.style.width=ia+"px"; this.k.style.display="\x62lock"; if (this.ob(Ia,this.k,Oa)){var Ob=y-this.k.offsetHeight-Oa.offsetHeight; if (Ob>0){y=Ob; }} this.k.style.left=x+"\x70\x78"; this.k.style.top=y+"\x70\x78"; this.i8(x+"\x70\x78",y+"px"); 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.lb( true ,null); }if (this.SelectedItem!=null){ this.SelectedItem.Highlighted= false; this.SelectedItem.Highlight(); this.SelectedItem.T(); }} ; RadComboBox.prototype.ob= function (Ia,t,Oa){var ib=this.i1(Oa).y+t.offsetHeight; return ib>Ia.height; } ; RadComboBox.prototype.FindItemByText= function (I6){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Text==I6){return this.Items[i]; }}return null; } ; RadComboBox.prototype.FindItemByValue= function (Ib){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Value==Ib){return this.Items[i]; }}return null; } ; RadComboBox.prototype.HideDropDown= function (){if (this.DropDownVisible){if (this.o4(this.OnClientDropDownClosing,this )== false){return; }document.getElementById(this.DropDownPlaceholderID).style.display="n\x6fne"; this.i9(); this.DropDownVisible= false; this.oc(); }} ; RadComboBox.prototype.oc= function (){ this.o4(this.OnClientBlur,this );};RadComboBox.prototype.I4= function (){ this.o4(this.OnClientFocus,this );};function trace(Oc){document.body.appendChild(document.createTextNode(Oc)); document.body.appendChild(document.createElement("\x48R")); }RadComboBox.prototype.ToggleDropDown= function (){ (this.DropDownVisible)?this.HideDropDown(): this.ShowDropDown(); } ; RadComboBox.prototype.lc= function (ic){if (ic){while (ic!=null){if (ic.id && this.Ic(ic.id)){return ic; }ic=ic.parentNode; }}return null; } ; RadComboBox.prototype.Ic= function (od){for (var i=0; i<this.Items.length; i++){if (this.Items[i].ClientID==od){return true; }}return false; } ; RadComboBox.prototype.Od= 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.ld= function (oe){oe.Highlight(); } ; RadComboBox.prototype.Oe= function (oe){oe.UnHighlight(); } ; RadComboBox.prototype.O4= function (eventArgs){var le=this.HighlightedItem; if (le!=null){if (this.o4(this.OnClientSelectedIndexChanging,le,eventArgs)== false){return; }le.Select(); this.o4(this.OnClientSelectedIndexChanged,le,eventArgs); } this.HideDropDown(); } ; RadComboBox.prototype.HandleClick= function (eventArgs){ this.O4(eventArgs); } ; RadComboBox.prototype.ie= function (index){var i=index; var Ie= false; while (i<this.Items.length-1){i=i+1; if (this.Items[i].Enabled){Ie= true; break; }}if (Ie)return i; return index; } ; RadComboBox.prototype.of= function (index){var i=index; var Ie= false; while (i>0){i=i-1; if (this.Items[i].Enabled){Ie= true; break; }}if (Ie)return i; return index; } ; RadComboBox.prototype.Of= function (comboInstance,eventArgs){ this.o4(this.OnClientKeyPressing,this,eventArgs); var keyCode=eventArgs.keyCode; if (keyCode==46 && !this.EnableLoadOnDemand && !this.AllowCustomText){ this.If(eventArgs); }if (keyCode==40){if (eventArgs.altKey && (!this.DropDownVisible)){ this.ShowDropDown(); return; }var index=0; if (this.HighlightedItem!=null){index=this.ie(this.HighlightedItem.Index); }if (index>=0 && this.Items.length>0){if (this.o4(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].Highlight(); this.Items[index].W(); this.R(this.Items[index]); this.If(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.of(this.HighlightedItem.Index); }if (index>=0){if (this.o4(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].T(); this.Items[index].Highlight(); this.R(this.Items[index]); this.If(eventArgs); }return; }if ((keyCode==13 || keyCode==9) && this.DropDownVisible){if (keyCode==13){ this.If(eventArgs); }if (!this.SelectOnTab && keyCode==9){if (this.AutoPostBack){ this.Q(); } this.HideDropDown(); return; } this.O4(); return; }if (keyCode==9 && !this.DropDownVisible){ this.oc(); 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.og( false ,keyCode); return; }if ((keyCode<32 && keyCode!=8) || (keyCode>=33 && keyCode<=46) || (keyCode>=112 && keyCode<=123) || (eventArgs.altKey== true)){return; }var Og=this ; window.setTimeout( function (){Og.HighlightMatches();} ,20); } ; RadComboBox.prototype.lg= function (eventArgs){if (eventArgs.preventDefault){if (eventArgs.keyCode==13 || (eventArgs.keyCode==32 && (!this.EnableLoadOnDemand))){eventArgs.preventDefault(); }}} ; RadComboBox.prototype.ig= function (s){if (typeof(encodeURIComponent)!="\x75\x6edefined"){return encodeURIComponent(this.Ig(s)); }if (escape){return escape(this.Ig(s)); }} ; RadComboBox.prototype.Ig= function (text){if (typeof(text)!="\x6eumber"){return text.replace(/\x27/g,"\x26squote"); }} ; RadComboBox.prototype.oh= function (){if (typeof(XMLHttpRequest)!="\x75\x6edefined"){return new XMLHttpRequest(); }if (typeof(ActiveXObject)!="undefine\x64"){return new ActiveXObject("\x4dicrosoft.XM\x4c\x48TTP"); }} ; RadComboBox.prototype.Oh= function (lh,ih,Ih,oi){lh=lh.replace(/\x27/g,"\x26\x73quote"); var url=window.unescape(this.LoadOnDemandUrl)+"\x26text="+this.ig(lh); url=url+"\x26comboTe\x78\x74="+this.ig(ih); url=url+"&com\x62\x6fValue="+this.ig(Ih); url=url+"\x26\x73kin="+this.ig(this.Skin); if (oi){url=url+"&\x69\x74emCount\x3d"+this.Items.length; }if (this.ExternalCallBackPage!=null){url=url+"\x26external=tr\x75\x65"; }if (this.ClientDataString!=null){url+="&clie\x6e\x74DataS\x74\x72ing="+this.ig(this.ClientDataString); }url=url+"&timeStam\x70\x3d"+encodeURIComponent((new Date()).getTime()); return url; } ; RadComboBox.prototype.Oi= function (oi,text,keyCode){if (!this.G){ this.G= true; var ih=this.GetText(); var Ih=this.GetValue(); var lh=(text)?text:ih; var ii=this.Oh(lh,ih,Ih,oi); var Ii=this ; var xmlRequest=this.oh(); xmlRequest.onreadystatechange= function (){if (xmlRequest.readyState!=4)return; Ii.oj(xmlRequest.responseText,oi,lh,keyCode,xmlRequest.status,ii); } ; xmlRequest.open("GET",ii, true); xmlRequest.send(""); }} ; RadComboBox.prototype.oj= function (Oj,oi,lh,keyCode,status,url){if (status==500){alert("\x72\x2e\x61.d.com\x62\x6fbox\x3a Serve\x72\040\x65rro\x72\x20in\x20the\x20\111\x74\x65ms\x52eques\x74\145d\x20event\x20handl\x65r,\x20pres\x73 ok \x74o vi\x65w th\x65 re\x73ult."); document.body.innerHTML=Oj; return; }if (status==404){alert("\x72.a.d.com\x62\x6fbox:\x20\x4coa\x64\x20On D\x65\155\x61\x6ed \x50\141g\x65\040\x6e\157t\x20\146o\x75nd: "+url); var lj="\x72.a.d.c\x6f\x6dbobo\x78\x3a Lo\x61\x64 On\x20\x44ema\x6e\x64 P\x61\147e\x20not fo\x75\156d\x3a "+url+"\x3c\x62r/>"; lj+="Pl\x65\x61se, try\x20\x75sin\x67\040E\x78\x74ern\x61\x6cCa\x6c\x6cBa\x63kPage \x74\157 \x6dap to\x20\164h\x65 exac\x74 loca\x74ion\x20of t\x68e ca\x6c\154\x62ackp\x61ge \x79ou a\x72e u\x73ing\x2e";document.body.innerHTML=lj; return; }try {eval("var call\x42\x61ckDa\x74\x61 = "+Oj+";"); }catch (e){alert("r.\x61\x2ed.combo\x62\x6fx: \x6c\x6fad \x6f\x6e de\x6d\x61nd\x20\143\x61\154l\x62\141c\x6b\040\x65\162r\x6fr. Pr\x65ss En\x74er f\x6fr mo\x72e in\x66orma\x74ion"); var lj="If r.\x61\x2ed.com\x62\x6fbox \x69\163 n\x6f\x74 in\x69\164i\x61\154l\x79\x20vi\x73\151b\x6c\145 \x6fn you\x72 ASPX\x20page,\x20you\x20may n\x65ed t\x6f use\x20str\x65amer\x73 (t\x68e Ex\x74ern\x61llC\x61llB\x61ckP\x61ge \x70ro\x70ert\x79)"; lj+="<br/>Pl\x65\x61se, r\x65\x61d ou\x72 online\x20\x64ocu\x6d\145n\x74\141t\x69\157n\x20\157n\x20\164h\x69s pro\x62lem f\x6fr de\x74ails"; lj+="<br/><a h\x72\x65f=\047\150tt\x70://www.\x74\x65ler\x69\153.\x63\157m\x2f\150e\x6c\160/\x72adcom\x62\157b\x6fx/v2%\x35FNET\x32\057\x3fcom\x62\157\x5fexte\x72nalc\x61llb\x61ckpa\x67e.h\x74ml\047>htt\x70://\x77ww.\x74el\x65rik\x2ecom\x2fhe\x6cp/\x72adc\x6fmb\x6fb\x6fx/v\x32%5\x46N\x45T2\x2fco\x6dbo\x5fex\x74er\x6ea\x6cca\x6cl\x62ac\x6bp\x61ge\x2eh\x74ml\x3c/\x61>";document.body.innerHTML=lj; return; }if (this.GetText()!=callBackData.Text){ this.G= false; this.og( false ,null); return; }if (this.ShowMoreResultsBox){document.getElementById(this.MoreResultsBoxMessageID).innerHTML=callBackData.Message; }var ij=this.Items.length; this.o8(callBackData.Items,oi); if (oi){document.getElementById(this.DropDownID).removeChild(document.getElementById(this.ClientID+"_Lo\x61\x64ingDiv")); document.getElementById(this.DropDownID).innerHTML+=callBackData.DropDownHtml; if (this.Items[ij+1]!=null){ this.Items[ij+1].W(); }}else {document.getElementById(this.DropDownID).innerHTML=callBackData.DropDownHtml; } this.i8(this.k.style.left,this.k.style.top); this.o4(this.OnClientItemsRequested,this,lh,oi); this.G= false; var Ij=this.FindItemByText(this.GetText()); if (Ij!=null){Ij.Highlight(); Ij.W(); }if (!keyCode)return; if (keyCode<32 || (keyCode>=33 && keyCode<=46) || (keyCode>=112 && keyCode<=123) && keyCode!=8){return; } this.HighlightMatches(); };RadComboBox.prototype.ok= function (O7){var o7=-1; if (this.AutoCompleteSeparator!=null){o7=this.O6(O7); }var Ok=O7.substring(o7+1,O7.length); return Ok; } ; RadComboBox.prototype.lk= function (ik,Ik){if (!this.IsCaseSensitive){return (ik.toLowerCase()==Ik.toLowerCase()); }else {return (ik==Ik); }} ; RadComboBox.prototype.HighlightMatches= function (){if (!this.MarkFirstMatch)return; var O7=this.GetText(); var Ok=this.ok(O7); if (Ok.length==0){return; }for (var i=0; i<this.Items.length; i++){var ll=this.Items[i].Text; if (ll.length>=Ok.length){var il=ll.substring(0,Ok.length); if (this.lk(il,Ok)){var o7=-1; if (this.AutoCompleteSeparator!=null){o7=this.O6(O7); }var i4=O7.substring(0,o7+1)+ll; this.SetText(i4); this.SetValue(this.Items[i].Value); this.l3(this.Items[i].Index); if (this.o4(this.OnClientSelectedIndexChanging,this.Items[i],null)== false){return; } this.Items[i].Highlight(); this.Items[i].W(); var Il=o7+Ok.length+1; var om=i4.length-Il; if (document.all){var Om=document.getElementById(this.InputID).createTextRange(); Om.moveStart("\143\x68aract\x65\x72",Il); Om.moveEnd("character",om); Om.select(); }else {document.getElementById(this.InputID).setSelectionRange(Il,Il+om); }return; }else { this.SetValue(""); this.l3(-1); if (this.HighlightedItem!=null){ this.HighlightedItem.UnHighlight(); }}}} this.SetValue(""); this.l3("-1"); if (!this.AllowCustomText){var Im=O7.substring(0,O7.length-1); if (this.D!=null){ this.SetText(this.D); return; } this.SetText(Im); this.HighlightMatches(); }} ; RadComboBox.prototype.og= function (O8,keyCode){if (!this.G){var comboInstance=this ; if (this.F){window.clearTimeout(this.F); this.F=0; } this.F=window.setTimeout( function (){comboInstance.lb(O8,keyCode);} ,this.ItemRequestTimeout); }} ; RadComboBox.prototype.lb= function (O8,keyCode){var lh=document.getElementById(this.InputID).value; if (lh=="")lh= false; if (this.o4(this.OnClientItemsRequesting,this,lh,O8)== false){return; }if (!this.G){if (!document.getElementById(this.ClientID+"\x5f\x4coadingDi\x76")){document.getElementById(this.DropDownID).innerHTML="\x3cdiv id=\047"+this.ClientID+"\x5fLoad\x69\x6egDiv\x27"+"\040c\x6c\x61ss=\047"+this.LoadingMessageCssClass+"\x20\047\x3e"+this.LoadingMessage+"</div>"+document.getElementById(this.DropDownID).innerHTML; }}var comboInstance=this ; window.setTimeout( function (){comboInstance.Oi(O8,lh,keyCode);} ,20); } ; RadComboBox.prototype.RequestItems= function (text,O8){ this.Oi(O8,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.On= function (){document.getElementById(this.InputID).className=this.InputCssClass; var In=document.getElementById(this.ImageID); if (In){In.className=this.ImageCssClass; }} ; RadComboBox.prototype.oo= function (){document.getElementById(this.InputID).className=this.InputCssClassHover; var In=document.getElementById(this.ImageID); if (In){In.className=this.ImageCssClassHover; }} ; RadComboBox.prototype.Oo= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="\x64efaul\x74"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImageDisabled; } ; RadComboBox.prototype.Io= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="\x68and"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImage; } ; RadComboBox.prototype.op= function (){ this.UnHighlightAll(); this.og( true ,null); document.getElementById(this.InputID).focus(); } ; RadComboBox.prototype.Op= function (eventArgs){if (eventArgs.stopPropagation){eventArgs.stopPropagation(); }else {eventArgs.cancelBubble= true; }} ; RadComboBox.prototype.If= function (eventArgs){if (eventArgs.preventDefault){eventArgs.preventDefault(); }else {eventArgs.returnValue= false; }} ; RadComboBox.prototype.o4= function (lp,a,b,ip){if (!lp)return true; RadComboBoxGlobalFirstParam=a; RadComboBoxGlobalSecondParam=b; RadComboBoxGlobalThirdParam=ip; var s=lp; s=s+"\x28RadCom\x62\x6fBoxGl\x6f\142\x61lFirs\x74\120ar\x61\155"; s=s+",RadCo\x6d\x62oBoxG\x6c\x6fbal\x53\145co\x6e\144Pa\x72\141m"; s=s+"\x2c\122adC\x6f\x6dboBo\x78\x47lo\x62\x61lTh\x69\x72dP\x61\x72am"; s=s+"\x29\x3b"; return eval(s); } ; RadComboBox.prototype.HandleEvent= function (eventName,eventArgs){var oe; var srcElement=(document.all)?eventArgs.srcElement:eventArgs.target; var item=this.lc(srcElement); if (item!=null){oe=this.Od(item); }if (!this.Enabled){return; }switch (eventName){case "\x73howdropdo\x77\x6e": this.Op(eventArgs); this.ShowDropDown(); break; case "\x68idedr\x6f\x70down": this.Op(eventArgs); this.HideDropDown(); break; case "\x74oggledropdo\x77\x6e": this.Op(eventArgs); this.ToggleDropDown(); break; case "\x6d\x6fuseover":if (oe!=null)this.ld(oe); break; case "mouseout":if (oe!=null)this.Oe(oe); break; case "\153\x65ypress": this.Of(this,eventArgs); break; case "\x6beydown": this.lg(eventArgs); break; case "\x63lick": this.HandleClick(eventArgs); break; case "\x69nputcl\x69\x63k": this.Op(eventArgs); document.getElementById(this.InputID).select(); this.ShowDropDown(); break; case "inputimageo\x75\x74": this.On(); break; case "\x69\156put\x69\x6dageho\x76\x65\x72": this.oo(); break; case "\x6doreresu\x6c\x74simag\x65\x63lic\x6b": this.Op(eventArgs); this.op(); break; case "\x6doreresul\x74\x73imag\x65\x68ov\x65\x72": this.Io(); break; case "m\x6f\x72eresul\x74\x73imag\x65\x6fut": this.Oo(); 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.J.value=this.GetText(); } ; RadComboBox.prototype.o1= function (Ip){{var computedStyle=null; if (Ip.currentStyle){computedStyle=Ip.currentStyle; }else if (document.defaultView && document.defaultView.getComputedStyle){computedStyle=document.defaultView.getComputedStyle(Ip,null); }else {return; }var height=parseInt(computedStyle.height); var width=parseInt(Ip.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=="\x43SS1Comp\x61\x74"){if (!isNaN(height)){Ip.style.height=height-paddingTop-paddingBottom-borderTop-borderBottom+"\x70x"; }}if (!isNaN(width) && width){var oq=0; var In=Ip.parentNode.getElementsByTagName("img")[0]; if (In){oq=In.offsetWidth; }if (document.compatMode && document.compatMode=="CSS1\x43\x6fmpat"){Ip.style.width=width-oq-paddingLeft-paddingRight-borderLeft-borderRight+"p\x78"; if (parseInt(Ip.style.width)!=Ip.offsetWidth){Ip.style.width=parseInt(Ip.style.width)+parseInt(Ip.style.width)-Ip.offsetWidth+"px"; }}else {Ip.style.width=width-oq; }}}} ; function rcbDispatcher(N,eventName,eventArgs){var comboInstance=null; try {comboInstance=window[N]; }catch (e){}if (typeof(comboInstance)=="\x75ndefined" || comboInstance==null){return; }if (typeof(comboInstance.HandleEvent)!="\x75ndefi\x6e\x65d"){comboInstance.HandleEvent(eventName,eventArgs); }} ; function rcbAppendStyleSheet(o,I){var Oq=(navigator.appName=="Mi\x63\x72osoft I\x6e\164\x65\x72n\x65t Explo\x72\x65r") && ((navigator.userAgent.toLowerCase().indexOf("mac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("\x6dac")!=-1)); var I8=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1); if (Oq || I8){document.write("\x3c"+"\x6c\x69nk"+"\x20rel=\047\x73ty\x6c\x65shee\x74\047\x20\x74ype\x3d\047t\x65\170\x74/css\x27\x20hr\x65f=\047"+I+"\x27\x3e"); }else {var A=document.createElement("LINK"); A.rel="\x73tylesheet"; A.type="text/\x63\x73s"; A.href=I; document.getElementById(o+"StyleSheetH\x6f\x6cder").appendChild(A); }} ;
