if (typeof(window.RadControlsNamespace)=="\x75\x6edefine\x64"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O,o,I){if (!I){return; }if (!O){document.write("\x3c"+"\x6cink"+"\x20\x72el=\047style\x73\150e\x65t\047\x20\164y\x70\x65=\047\x74\x65xt/cs\x73\047\x20\150r\x65f=\047"+I+"\047\x20/>"); }else {var A=document.createElement("\x4cINK"); A.rel="st\x79\x6cesheet"; A.type="text/\x63\x73s"; A.href=I; document.getElementById(o+"\x53tyleSheetH\x6f\x6cder").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+"_Dro\x70Down"); 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+"_Drop\x44\x6f\x77n").scrollTop; if (scrollTop>totalHeight){document.getElementById(this.ComboBox.ClientID+"_DropDown").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+"_\x44ro\x70\x44own"; this.InputID=N+"_Input"; this.ImageID=N+"_\x49\x6dage"; this.DropDownPlaceholderID=N+"_Dr\x6f\x70DownPl\x61\x63eho\x6cder"; this.MoreResultsBoxID=N+"_More\x52\x65sults\x42\x6fx"; this.MoreResultsBoxImageID=N+"\x5f\115o\x72\x65Resu\x6c\x74sBo\x78\x49mag\x65"; this.MoreResultsBoxMessageID=N+"_MoreResult\x73\x42oxM\x65\x73sag\x65"; this.l=N+"_He\x61\x64er"; 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+"\x5fvalue"); this.G=document.getElementById(this.ClientID+"\x5findex"); this.g=document.getElementById(this.ClientID+"\137cli\x65\x6etWidt\x68"); this.F=document.getElementById(this.ClientID+"\x5fclientHeigh\x74"); 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="Loa\x64\x69ng..."; this.ScrollDownImage=null; this.ScrollDownImageDisabled=null; this.D=null; this.RadComboBoxImagePosition="\x52ight"; this.ItemCssClass=null; this.ItemCssClassHover=null; this.ItemCssClassDisabled=null; this.ImageCssClass=null; this.ImageCssClassHover=null; this.InputCssClass=null; this.InputCssClassHover=null; this.LoadingMessageCssClass="\x43ombo\x42\x6fxLoad\x69\x6egMe\x73\163a\x67\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="Classic"; 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("\x6fnc\x6c\x69ck",this.o1); }else {document.addEventListener("\x63lick",this.o1, false); } this.O1= function (e){comboInstance.l1(e || event); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("\157\x6e\x62lur",this.O1); }else {document.getElementById(this.InputID).addEventListener("\x62lur",this.O1, false); } this.i1= function (){comboInstance.I1(); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("\x6fnfocus",this.i1); }else {document.getElementById(this.InputID).addEventListener("\x66\157cus",this.i1, false); }document.getElementById(this.InputID).setAttribute("a\x75\x74ocomple\x74\x65","o\x66\x66"); 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("\x6coad", 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("o\x6eunload", function (){comboInstance.Dispose( false); } ); }else {window.addEventListener("unload", 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=="CSS1Compat"){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!="BODY" && 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!="\x48\124ML"){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("\143\x6cick",this.o1, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("\x6fnblur",this.O1); }else {document.getElementById(this.InputID).removeEventListener("\x62lur",this.O1, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("onf\x6f\x63us",this.i1); }else {document.getElementById(this.InputID).removeEventListener("focus",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="Combo\x42oxItem_"+this.Skin; this.ItemCssClassHover="ComboBoxIte\x6d\x48ove\x72\x5f"+this.Skin; this.ItemCssClassDisabled="Combo\x42\x6fxItem\x44\x69sab\x6c\145\x64\x5f"+this.Skin; this.ImageCssClass="C\x6f\x6dboBoxIm\x61\x67e_"+this.Skin; this.ImageCssClassHover="\x43omboBoxIm\x61\x67eHo\x76\x65r_"+this.Skin; this.InputCssClass="ComboBox\x49\x6eput_"+this.Skin; this.InputCssClassHover="\x43\x6fmboBox\x49\x6eputH\x6f\x76er\x5f"+this.Skin; this.LoadingMessageCssClass="C\x6f\x6dboBoxLo\x61\x64ingM\x65ssage_"+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("\x2d1"); }} ; RadComboBox.prototype.Q= function (){if (this.AutoPostBack){if (this.CausesValidation){if (typeof(WebForm_DoPostBackWithOptions)!="f\x75\x6ection" && !(typeof(Page_ClientValidate)!="f\x75\x6ection" || 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!="F\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("div")[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("onload", function (){comboInstance.ShowDropDown(); } ); }else {window.addEventListener("load", 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()!="\x42\x4f\x44Y" && parent.tagName.toUpperCase()!="HTML"){o3[0]-=parent.scrollLeft; o3[1]-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName.toUpperCase()!="BODY" && parent.tagName.toUpperCase()!="\x48TML"){o3[0]-=parent.scrollLeft; o3[1]-=parent.scrollTop; parent=parent.parentNode; }}return o3; } ; RadComboBox.prototype.oa= function (x,y){if (document.readyState && document.readyState!="\x63omplete"){return; }var Oa=(navigator.userAgent.toLowerCase().indexOf("\x73afar\x69")!=-1); var la=window.opera; if (Oa || la || (!document.all)){return; }if (this.D==null){ this.D=document.createElement("IFRAME"); this.D.src="ja\x76\x61script\x3a\047\x27"; this.D.id=this.ClientID+"_Overlay"; this.D.frameBorder=0; this.D.style.position="absol\x75\x74e"; this.D.style.display="\156o\x6e\x65"; 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("\x73afar\x69")!=-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+"_wrappe\x72"); while (el.tagName.toLowerCase()!="ht\x6d\x6c"){if (el.dir){ this.lb=(el.dir.toLowerCase()=="\x72\x74l"); 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=="\x52ight" && !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="rtl"; }var Oc=this.GetViewPortSize(); this.J.style.position="\x61bsolute"; if (window.netscape || window.opera){oc-=2; } this.J.style.width=oc+"\x70x"; this.J.style.display="block"; 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+"px"; this.J.style.top=y+"px"; this.oa(x+"\x70x",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.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="n\x6fne"; 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)!="undefined"){return encodeURIComponent(this.oi(s)); }if (escape){return escape(this.oi(s)); }} ; RadComboBox.prototype.oi= function (text){if (typeof(text)!="num\x62er"){return text.replace(/\x27/g,"&squ\x6f\x74e"); }} ; RadComboBox.prototype.Oi= function (){if (typeof(XMLHttpRequest)!="\x75\x6edefined"){return new XMLHttpRequest(); }if (typeof(ActiveXObject)!="\x75ndefined"){return new ActiveXObject("Microso\x66\x74.XML\x48\x54TP"); }} ; RadComboBox.prototype.ii= function (Ii,oj,Oj,lj){Ii=Ii.replace(/\x27/g,"&squote"); var url=window.unescape(this.LoadOnDemandUrl)+"\x26text="+this.Ih(Ii); url=url+"\x26comboTex\x74\x3d"+this.Ih(oj); url=url+"\x26\x63omboValu\x65\x3d"+this.Ih(Oj); url=url+"\x26skin="+this.Ih(this.Skin); if (lj){url=url+"&itemCount="+this.Items.length; }if (this.ExternalCallBackPage!=null){url=url+"&exter\x6e\x61l=tru\x65"; }if (this.ClientDataString!=null){url+="\x26clien\x74\x44ataSt\x72\x69ng="+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("G\x45\x54",Ij, true); xmlRequest.setRequestHeader("C\x6f\x6etent-Ty\x70\x65","application\x2f\x6ason;\x20\x63ha\x72set=ut\x66\x2d8");xmlRequest.send(""); }} ; RadComboBox.prototype.Ok= function (lk,lj,Ii,keyCode,status,url){if (status==500){alert("\x52adCombo\x42\x6fx: S\x65\x72ve\x72\x20er\x72\x6fr i\x6e\040\x74h\x65 Items\x52\145q\x75ested\x20\145v\x65nt ha\x6edler\x2c\040\x70re\x73s ok\x20to v\x69ew t\x68e re\x73ult\x2e"); document.body.innerHTML=lk; return; }if (status==404){alert("RadComboB\x6f\x78: L\x6f\x61d On\x20Demand\x20\x50ag\x65 not f\x6fund: "+url); var ik="\x52adComboBox: \x4c\157ad\x20\x4fn \x44\145m\x61\156d\x20\120a\x67e not\x20\146o\x75\156d\x3a "+url+"\x3cbr/>"; ik+="\x50\x6cease, \x74\x72y u\x73\x69ng\x20\x45xte\x72\156a\x6c\103a\x6clBack\x50\141g\x65\040\x74\157 \x6dap to\x20the e\x78act \x6cocat\x69on o\x66 the\x20call\x62ack\x70age \x79ou \x61re \x75sing\x2e";document.body.innerHTML=ik; return; }try {eval("var callBa\x63\x6bDat\x61\x20= "+lk+"\073"); }catch (e){alert("Ra\x64\x43omboBo\x78\x3a loa\x64 on dem\x61\x6ed \x63\141l\x6cback \x65\162r\x6f\162.\x20Press\x20\105n\x74er fo\x72 more\x20info\x72mat\x69on"); var ik="\x49\x66 RadC\x6f\x6dboBo\x78\x20is\x20\x6eot \x69\156i\x74\151a\x6cly vi\x73\151b\x6c\145 \x6fn you\x72\040\x41SPX p\x61ge, y\x6fu m\x61y ne\x65d to\x20use \x73trea\x6ders\x20(the\x20Ext\x65rna\x6clCa\x6clBa\x63kPa\x67e \x70rop\x65rt\x79)"; ik+="\x3c\x62r/>Ple\x61\x73e, \x72\x65ad \x6f\165r\x20\x6fnl\x69\x6ee \x64ocume\x6e\x74at\x69\157n\x20on th\x69s pro\x62lem f\x6fr de\x74ails"; ik+="\x3cbr/><a href\x3d\x27htt\x70\x3a//w\x77\167.\x74\x65le\x72\151k\x2ecom/h\x65\x6cp/\x72adcom\x62\157b\x6fx/v2%\x35FNET2\x2f?com\x62o_ex\x74erna\x6ccall\x62ack\x70age.\x68tml\x27>htt\x70://\x77ww.\x74ele\x72ik.\x63om\x2fhel\x70/r\x61dco\x6dbo\x62ox\x2fv2%\x35F\x4eET\x32/c\x6fmb\x6f_e\x78t\x65rn\x61lc\x61ll\x62a\x63kp\x61g\x65.h\x74m\x6c</\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+"\x5fLoadingDiv")); 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("c\x68aracte\x72",oo); Io.moveEnd("\x63harac\x74\x65r",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+"_L\x6fadingDiv")){document.getElementById(this.DropDownID).innerHTML="\x3c\144\x69\x76 id=\x27"+this.ClientID+"_Loadi\x6e\x67Div\047"+" class=\047"+this.LoadingMessageCssClass+" \x27\x3e"+this.LoadingMessage+"</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="d\x65fault"; 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+"(R\x61dComboBoxG\x6c\x6fbal\x46\x69r\x73tParam"; s=s+",R\x61\x64ComboBo\x78\107\x6c\x6fba\x6c\x53eco\x6e\x64Pa\x72\x61\x6d"; s=s+"\x2c\x52adComb\x6f\x42oxGl\x6f\x62al\x54\x68ird\x50\141r\x61\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 "showd\x72opdo\x77n": this.lq(eventArgs); this.ShowDropDown(); break; case "\x68\x69dedropd\x6f\x77n": this.lq(eventArgs); this.HideDropDown(); break; case "toggledropd\x6f\x77n": this.lq(eventArgs); this.ToggleDropDown(); break; case "\x6d\x6f\x75seove\x72":if (Of!=null)this.of(Of); break; case "mouse\x6f\x75t":if (Of!=null)this.If(Of); break; case "\x6beypress": this.Ig(this,eventArgs); break; case "key\x64\x6fwn": this.ih(eventArgs); break; case "\x63lick": this.HandleClick(eventArgs); break; case "\x69nputclick":{ this.lq(eventArgs); document.getElementById(this.InputID).select(); if (this.ShowDropDownOnTextboxClick)this.ShowDropDown(); break; }case "inputima\x67\x65out": this.Op(); break; case "inpu\x74\x69mageh\x6f\x76er": this.ip(); break; case "\x6dorere\x73\x75ltsim\x61\x67ec\x6c\151\x63\x6b": this.lq(eventArgs); this.Oq(); break; case "\155or\x65\x72esults\x69\x6dageh\x6f\166e\x72": this.oq(); break; case "\x6d\x6freresu\x6c\x74sima\x67\x65ou\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="disa\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("i\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("\x6fnload", 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=="CSS1C\x6fmpat"){if (!isNaN(height) && (this.F.value=="")){or.style.height=height-paddingTop-paddingBottom-borderTop-borderBottom+"\x70\x78"; 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=="\x43SS1Compat"){var ir=width-lr-paddingLeft-paddingRight-borderLeft-borderRight; if (ir>=0)or.style.width=ir+"\x70\x78"; 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+"_wrappe\x72").style.visibility="visible"; } ; function rcbDispatcher(N,eventName,eventArgs){var comboInstance=null; try {comboInstance=window[N]; }catch (e){}if (typeof(comboInstance)=="undefine\x64" || 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("\x6dac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("mac")!=-1)); var Oa=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1); if (Ir || Oa){document.write("\x3c"+"link"+"\x20\x72el=\047styl\x65\x73hee\x74\047 \x74\171p\x65\075\x27\x74\x65xt/cs\x73\047\x20\150r\x65f=\047"+I+"\x27>"); }else {var A=document.createElement("\x4c\x49NK"); A.rel="\x73tylesh\x65\x65t"; A.type="text/css"; A.href=I; document.getElementById(o+"StyleSh\x65\x65tHold\x65\x72").appendChild(A); }} ;
