if (typeof(window.RadControlsNamespace)=="\165ndefin\x65\144"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O,o,I){if (!I){return; }if (!O){document.write("\x3c"+"\x6cink"+" r\x65\x6c=\047\x73tyl\x65\x73he\x65t\047\x20\164y\x70\x65=\047tex\x74/css\x27\x20hr\x65\146=\x27"+I+"\047\x20/>"); }else {var A=document.createElement("\x4cINK"); A.rel="st\x79\x6cesheet"; A.type="\x74ext/css"; A.href=I; document.getElementById(o+"S\x74\x79leSheet\x48\x6flde\x72").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+"\x5fDropDown"); 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+"\x5fD\x72\x6fpDown").scrollTop; if (scrollTop>totalHeight){document.getElementById(this.ComboBox.ClientID+"\x5fDropD\x6f\x77n").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+"_\x44\x72\x6fpDown"; this.InputID=N+"_In\x70\x75t"; this.ImageID=N+"\x5fImage"; this.DropDownPlaceholderID=N+"_\x44\x72opDownP\x6c\x61ceh\x6f\x6cde\x72"; this.MoreResultsBoxID=N+"_\x4d\x6freResul\x74\x73Box"; this.MoreResultsBoxImageID=N+"_MoreRe\x73\x75ltsBo\x78\x49mag\x65"; this.MoreResultsBoxMessageID=N+"_\x4d\x6freResul\x74\x73Box\x4d\x65ss\x61\x67e"; this.l=N+"\x5fHeade\x72"; 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+"\x5fclientW\x69\x64th"); this.F=document.getElementById(this.ClientID+"_clien\x74\x48eight"); 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="\x4c\x6fading..\x2e"; this.ScrollDownImage=null; this.ScrollDownImageDisabled=null; this.D=null; this.RadComboBoxImagePosition="\x52\151\x67\x68t"; this.ItemCssClass=null; this.ItemCssClassHover=null; this.ItemCssClassDisabled=null; this.ImageCssClass=null; this.ImageCssClassHover=null; this.InputCssClass=null; this.InputCssClassHover=null; this.LoadingMessageCssClass="\x43omb\x6f\x42oxLoad\x69\x6egMe\x73\x73age"; 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="\x43lassic"; 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("\x6fn\x63\x6cick",this.o1); }else {document.addEventListener("click",this.o1, false); } this.O1= function (e){comboInstance.l1(e || event); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("onblur",this.O1); }else {document.getElementById(this.InputID).addEventListener("blur",this.O1, false); } this.i1= function (){comboInstance.I1(); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("\x6f\x6efocus",this.i1); }else {document.getElementById(this.InputID).addEventListener("focu\x73",this.i1, false); }document.getElementById(this.InputID).setAttribute("autocom\x70\x6cete","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("onload", 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("\x75nload", 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=="\x43SS1Compa\x74"){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!="\x42O\x44\x59" && parent.tagName!="HTML"){o3.x-=parent.scrollLeft; o3.y-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName!="BOD\x59" && 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("o\x6eclick",this.o1); }else {document.removeEventListener("cl\x69\x63k",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("\x6fnfocus",this.i1); }else {document.getElementById(this.InputID).removeEventListener("focu\x73",this.i1, false); }if (window.removeEventListener){window.removeEventListener("load", 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="Comb\x6fBoxItem_"+this.Skin; this.ItemCssClassHover="\x43\x6fmboBo\x78\x49temH\x6f\x76er\x5f"+this.Skin; this.ItemCssClassDisabled="\x43omboBox\x49\x74emDi\x73\x61ble\x64\137"+this.Skin; this.ImageCssClass="\103om\x62\x6fBoxIm\x61\x67e_"+this.Skin; this.ImageCssClassHover="ComboBoxIma\x67\x65Hove\x72\x5f"+this.Skin; this.InputCssClass="ComboB\x6f\x78Input\x5f"+this.Skin; this.InputCssClassHover="Comb\x6f\x42oxInpu\x74\x48ove\x72\x5f"+this.Skin; this.LoadingMessageCssClass="\x43omboBo\x78\x4coadin\x67\x4des\x73\x61ge_"+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("-1"); }} ; RadComboBox.prototype.Q= function (){if (this.AutoPostBack){if (this.CausesValidation){if (typeof(WebForm_DoPostBackWithOptions)!="\x66unction" && !(typeof(Page_ClientValidate)!="fun\x63\x74ion" || 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!="\106\x4fRM"){i6=i6.parentNode; }return i6; } ; RadComboBox.prototype.I6= function (){var l3=document.getElementById(this.DropDownPlaceholderID); var o7=l3.getElementsByTagName("i\x6e\x70ut"); return o7.length>0; };RadComboBox.prototype.O7= function (){if ((!document.readyState || document.readyState=="complet\x65") && (!this.C)){var parentElement=document.body; if (this.I6()){parentElement=this.l6(); }var l3=document.getElementById(this.L).getElementsByTagName("\x64iv")[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("\157nload", 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()!="B\x4f\x44\x59" && parent.tagName.toUpperCase()!="\x48TML"){o3[0]-=parent.scrollLeft; o3[1]-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName.toUpperCase()!="\x42\117\x44\x59" && parent.tagName.toUpperCase()!="HTML"){o3[0]-=parent.scrollLeft; o3[1]-=parent.scrollTop; parent=parent.parentNode; }}return o3; } ; RadComboBox.prototype.oa= function (x,y){if (document.readyState && document.readyState!="comple\x74\x65"){return; }var Oa=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); var la=window.opera; if (Oa || la || (!document.all)){return; }if (this.D==null){ this.D=document.createElement("IFRAM\x45"); this.D.src="j\x61\x76ascript\x3a\047\x27"; this.D.id=this.ClientID+"_Overla\x79"; this.D.frameBorder=0; this.D.style.position="absolute"; 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+"px"; this.D.style.height=Ia+"px"; this.D.style.display=""; } ; RadComboBox.prototype.ob= function (){var Oa=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); var la=window.opera; if (Oa || la || (!document.all)){return; }if (this.D!=null){ this.D.style.display="non\x65"; }} ; 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+"_\x77rapper"); while (el.tagName.toLowerCase()!="html"){if (el.dir){ this.lb=(el.dir.toLowerCase()=="\x72tl"); 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=="Right" && !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="abso\x6c\x75te"; if (window.netscape || window.opera){oc-=2; } this.J.style.width=oc+"\x70x"; this.J.style.display="\x62\x6cock"; 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+"\x70x"; this.J.style.top=y+"px"; 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="\156\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)!="\165ndefi\x6e\x65d"){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("M\x69\x63rosoft.\x58\115\x4c\x48T\x54\x50"); }} ; RadComboBox.prototype.ii= function (Ii,oj,Oj,lj){Ii=Ii.replace(/\x27/g,"&sq\x75\x6fte"); var url=window.unescape(this.LoadOnDemandUrl)+"\x26text="+this.Ih(Ii); url=url+"\x26\x63omboT\x65\x78t="+this.Ih(oj); url=url+"\x26comboValu\x65\x3d"+this.Ih(Oj); url=url+"\x26skin="+this.Ih(this.Skin); if (lj){url=url+"&itemCou\x6e\x74="+this.Items.length; }if (this.ExternalCallBackPage!=null){url=url+"\x26extern\x61\x6c=tru\x65"; }if (this.ClientDataString!=null){url+="&cli\x65\x6etData\x53\x74ring\x3d"+this.Ih(this.ClientDataString); }url=url+"&\x74\x69meStamp="+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("GE\x54",Ij, true); xmlRequest.setRequestHeader("\x43onte\x6e\x74-Type","applicati\x6f\x6e/jso\x6e\x3b ch\x61rset=u\x74\x66-8");xmlRequest.send(""); }} ; RadComboBox.prototype.Ok= function (lk,lj,Ii,keyCode,status,url){if (status==500){alert("Ra\x64\x43omboBo\x78\x3a Se\x72\x76er\x20\x65rro\x72\x20in\x20\x74\x68e It\x65msRequ\x65\163\x74ed \x65\166e\x6et han\x64ler,\x20pre\x73s ok\x20to v\x69ew t\x68e re\x73ult\x2e"); document.body.innerHTML=lk; return; }if (status==404){alert("RadC\x6f\x6dboBox\x3a\x20Load\x20On Dema\x6e\x64 Pa\x67\x65 n\x6ft foun\x64\072\x20"+url); var ik="RadCombo\x42\x6fx: \x4c\x6fad O\x6e\040\x44\x65man\x64\x20Pa\x67\145 \x6e\157t\x20found:\x20"+url+"\x3c\x62r/>"; ik+="\120le\x61\x73e, try\x20\x75sin\x67\040E\x78\x74er\x6e\x61lCa\x6clBack\x50\141g\x65\040\x74\157 \x6d\141\x70\040\x74\157 \x74he \x65xact\x20loca\x74ion \x6ff th\x65 cal\x6cbac\x6bpag\x65 you\x20are\x20usi\x6eg.";document.body.innerHTML=ik; return; }try {eval("\x76ar callB\x61\x63kDat\x61\x20= "+lk+";"); }catch (e){alert("RadComboBox\x3a\x20load\x20\x6fn \x64\x65man\x64\x20cal\x6cback e\x72ror. P\x72\145s\x73 Ente\x72\040\x66or mo\x72\145\x20infor\x6dati\x6fn"); var ik="If RadC\x6f\x6dboBo\x78\x20is n\x6ft initi\x61\x6cly \x76\151s\x69ble on\x20\171o\x75\162 \x41SPX p\x61\147e\x2c you\x20\155\x61y ne\x65d to\x20use \x73trea\x6ders \x28the\x20Exte\x72nal\x6cCal\x6cBac\x6bPag\x65 pr\x6fpe\x72ty)"; ik+="<br/>Plea\x73\x65, re\x61\x64 ou\x72\040o\x6e\154in\x65\040d\x6fcument\x61tion o\x6e\040\x74\150i\x73 prob\x6c\145\x6d\040\x66or d\x65tail\x73"; ik+="\x3c\x62r/><a \x68\x72ef=\x27\x68t\x74\x70://\x77\167w\x2e\x74el\x65rik.c\x6f\155/\x68\145l\x70/radc\x6f\155\x62\157b\x6fx/v2\x255FNE\x542/?c\x6fmbo_\x65xte\x72nalc\x61llba\x63kpa\x67e.h\x74ml\047>ht\x74p:/\x2fwww\x2etel\x65ri\x6b.co\x6d/h\x65lp/\x72ad\x63o\x6dbo\x62ox\x2fv2\x255F\x4eET\x32/c\x6fm\x62o_\x65xt\x65r\x6eal\x63a\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+"\x5fLoadin\x67\x44iv")); 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\x68a\x72\x61cter",oo); Io.moveEnd("\x63haracter",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+"\x5fL\x6f\x61dingD\x69\x76")){document.getElementById(this.DropDownID).innerHTML="<d\x69\x76 id=\047"+this.ClientID+"_Loadin\x67\x44iv\047"+"\x20class=\x27"+this.LoadingMessageCssClass+"\x20\x27>"+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="\144\x65\x66ault"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImageDisabled; this.o0= false; } ; RadComboBox.prototype.oq= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="hand"; 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+"(\x52adComboBoxG\x6c\157b\x61\x6cF\x69\162st\x50\141r\x61\x6d"; s=s+",RadCo\x6d\x62oBoxG\x6c\x6fbalS\x65condPar\x61\x6d"; s=s+",RadComb\x6f\x42oxGl\x6f\x62alT\x68\151r\x64\x50ara\x6d"; s=s+");"; 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 "showdro\x70dow\x6e": this.lq(eventArgs); this.ShowDropDown(); break; case "\150\x69\x64edropd\x6f\x77n": this.lq(eventArgs); this.HideDropDown(); break; case "\x74oggledropd\x6f\x77n": this.lq(eventArgs); this.ToggleDropDown(); break; case "mouseo\x76\x65r":if (Of!=null)this.of(Of); break; case "m\x6f\x75seout":if (Of!=null)this.If(Of); break; case "keypress": this.Ig(this,eventArgs); break; case "keyd\x6f\x77n": this.ih(eventArgs); break; case "click": this.HandleClick(eventArgs); break; case "\x69nputcli\x63\x6b":{ this.lq(eventArgs); document.getElementById(this.InputID).select(); if (this.ShowDropDownOnTextboxClick)this.ShowDropDown(); break; }case "input\x69\x6dageou\x74": this.Op(); break; case "\x69nputima\x67\x65hove\x72": this.ip(); break; case "more\x72\x65sultsi\x6d\x61gecl\x69ck": this.lq(eventArgs); this.Oq(); break; case "\x6doreresultsi\x6d\x61geho\x76\x65r": this.oq(); break; case "\x6d\x6freresu\x6c\x74sima\x67\x65out": 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="\x64isabled"; 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("img")[0]; if (Or && lp && (lp.offsetWidth==0)){var comboInstance=this ; if (document.attachEvent){if (document.readyState=="c\x6f\x6dplete")window.setTimeout( function (){comboInstance.o2(or, false); } ,100); else window.attachEvent("onload", 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=="\x43SS1Compat"){if (!isNaN(height) && (this.F.value=="")){or.style.height=height-paddingTop-paddingBottom-borderTop-borderBottom+"\x70x"; 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=="CSS1C\x6f\x6dpat"){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+"_wrapper").style.visibility="vis\x69\x62le"; } ; function rcbDispatcher(N,eventName,eventArgs){var comboInstance=null; try {comboInstance=window[N]; }catch (e){}if (typeof(comboInstance)=="undefined" || comboInstance==null){return; }if (typeof(comboInstance.HandleEvent)!="undef\x69\x6eed"){comboInstance.HandleEvent(eventName,eventArgs); }} ; function rcbAppendStyleSheet(o,I){var Ir=(navigator.appName=="\x4dicrosoft \x49\x6etern\x65\x74 \x45xplorer") && ((navigator.userAgent.toLowerCase().indexOf("\x6dac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("\x6dac")!=-1)); var Oa=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); if (Ir || Oa){document.write("\x3c"+"\x6c\x69nk"+"\x20rel=\047styleshe\x65\x74\047\x20typ\x65\x3d\047\x74ext/\x63ss\047\040h\x72ef=\047"+I+"\047\x3e"); }else {var A=document.createElement("\x4cINK"); A.rel="\x73tylesheet"; A.type="\164ex\x74\x2fcss"; A.href=I; document.getElementById(o+"\x53tyleSheetHo\x6c\x64er").appendChild(A); }} ;
