if (typeof(window.RadControlsNamespace)=="\165ndefi\x6e\x65d"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O,o,I){if (!I){return; }if (!O){document.write("<"+"\x6cink"+"\040\x72\x65l=\047\x73tyl\x65\x73h\x65\145t\x27\x20typ\x65\075\x27text/\x63ss\047\x20hre\x66\075\x27"+I+"\047 \x2f\x3e"); }else {var A=document.createElement("LINK"); A.rel="sty\x6c\x65sheet"; A.type="\x74ext/c\x73\x73"; A.href=I; document.getElementById(o+"\x53tyleShee\x74\x48old\x65\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+"_Dr\x6fpDown"); if (V.offsetWidth!=V.scrollWidth+16){w=16; }if (this.ComboBox.Items.length>0){var totalHeight=0; for (var i=0; i<=this.Index; i++){var v=document.getElementById(this.ComboBox.Items[i].ClientID); if (v){totalHeight+=v.offsetHeight; }}V.scrollTop=totalHeight-V.offsetHeight+w; }} ; RadComboItem.prototype.T= function (){if (this.ComboBox.Items.length>0){var totalHeight=0; for (var i=0; i<this.Index; i++){var v=document.getElementById(this.ComboBox.Items[i].ClientID); if (v){totalHeight+=v.offsetHeight; }}var scrollTop=document.getElementById(this.ComboBox.ClientID+"\x5fDro\x70\x44own").scrollTop; if (scrollTop>totalHeight){document.getElementById(this.ComboBox.ClientID+"\x5fDropDown").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){ this.S=t.className; }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.M(); }if (window.tlrkComboBoxes==null){window.tlrkComboBoxes=new Array(); }tlrkComboBoxes[tlrkComboBoxes.length]=this ; this.Items=new Array(); this.m= false; this.ID=P; this.ClientID=N; this.L=N; this.DropDownID=N+"\x5f\x44ropDown"; this.InputID=N+"_Input"; this.ImageID=N+"\x5fImage"; this.DropDownPlaceholderID=N+"\x5fDropDo\x77\x6ePlac\x65\x68ol\x64\145\x72"; this.MoreResultsBoxID=N+"_M\x6f\x72eResul\x74\x73Box"; this.MoreResultsBoxImageID=N+"\x5f\x4doreRes\x75\x6ctsBo\x78\x49ma\x67\x65"; this.MoreResultsBoxMessageID=N+"\x5f\x4doreRes\x75\x6ctsB\x6f\x78Mes\x73\x61ge"; this.l=N+"_Head\x65\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+"\x5f\164ext"); this.h=document.getElementById(this.ClientID+"_v\x61\x6cue"); this.G=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.PostBackReference=null; this.LoadingMessage="\x4coading\x2e\x2e."; this.ScrollDownImage=null; this.ScrollDownImageDisabled=null; this.F=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="ComboB\x6f\x78Loadi\x6e\x67Mes\x73\141g\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="Cla\x73\x73ic"; this.HideTimeoutID=0; this.f=0; this.D= false; this.d=null; this.AllowCustomText= false; this.ExpandEffectString=null; this.HighlightTemplatedItems= false; this.CausesValidation= false; this.ClientDataString=null; this.r= false; this.C=-1; this.IsTemplated= false; this.B=null; this.OffsetX=0; this.OffsetY=0; var comboInstance=this ; this.o0(); this.O0= function (){comboInstance.HideOnClick(); } ; if (document.attachEvent){document.attachEvent("\x6fnclick",this.O0); }else {document.addEventListener("\x63lick",this.O0, false); } this.l0= function (e){comboInstance.i0(e || event); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("\x6fnblur",this.l0); }else {document.getElementById(this.InputID).addEventListener("blur",this.l0, false); } this.I0= function (){comboInstance.o1(); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("\x6fnfocus",this.I0); }else {document.getElementById(this.InputID).addEventListener("focus",this.I0, false); }document.getElementById(this.InputID).setAttribute("\x61utocomp\x6c\x65te","off"); document.getElementById(this.DropDownPlaceholderID).onselectstart= function (){return false; } ; if (typeof(RadCallbackNamespace)!="\165\x6e\x64efined"){window.setTimeout( function (){comboInstance.O1(document.getElementById(comboInstance.InputID));} ,100); }else {var l1= false; if (window.addEventListener){ this.O1(document.getElementById(this.InputID));}else {if (document.getElementById(this.ClientID).offsetWidth==0){window.attachEvent("\x6fnloa\x64", function (){comboInstance.O1(document.getElementById(comboInstance.InputID)); } ); }else if (!l1){ this.O1(document.getElementById(this.InputID)); }}}if (window.attachEvent){window.attachEvent("\x6f\x6eunloa\x64", function (){comboInstance.M(); } ); }else {window.addEventListener("unl\x6f\x61d", function (){comboInstance.M(); } , false); }} ; RadComboBox.prototype.ClearItems= function (){ this.Items=[]; document.getElementById(this.DropDownID).innerHTML=""; } ; RadComboBox.prototype.i1= function (){var width=0; var height=0; var I1=document.body; if (window.innerWidth){width=window.innerWidth; height=window.innerHeight; }else {if (document.compatMode && document.compatMode=="\x43SS\x31\x43ompat"){I1=document.documentElement; }width=I1.clientWidth; height=I1.clientHeight; }width+=I1.scrollLeft; height+=I1.scrollTop; return {width:width-6,height:height-6 } ; } ; RadComboBox.prototype.o2= function (el){var parent=null; var O2= {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; O2.x=box.left+scrollLeft-2; O2.y=box.top+scrollTop-2; return O2; }else if (document.getBoxObjectFor){box=document.getBoxObjectFor(el); O2.x=box.x-2; O2.y=box.y-2; }else {O2.x=el.offsetLeft; O2.y=el.offsetTop; parent=el.offsetParent; if (parent!=el){while (parent){O2.x+=parent.offsetLeft; O2.y+=parent.offsetTop; parent=parent.offsetParent; }}}if (window.opera){parent=el.offsetParent; while (parent && parent.tagName!="BODY" && parent.tagName!="HTML"){O2.x-=parent.scrollLeft; O2.y-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName!="BODY" && parent.tagName!="HTML"){O2.x-=parent.scrollLeft; O2.y-=parent.scrollTop; parent=parent.parentNode; }}return O2; } ; RadComboBox.prototype.M= function (){try {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.F=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("\157nclic\x6b",this.O0); }else {document.removeEventListener("c\x6c\x69ck",this.O0, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("o\x6e\x62lur",this.l0); }else {document.getElementById(this.InputID).removeEventListener("\x62lur",this.l0, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("\x6fnfocus",this.I0); }else {document.getElementById(this.InputID).removeEventListener("focus",this.I0, false); }if (window.removeEventListener){window.removeEventListener("\x6coad", function (){comboInstance.O1(document.getElementById(comboInstance.InputID)); } , false); }var input=document.getElementById(this.InputID); if (input!=null)input.onblur=null; input=null; var l2=document.getElementById(this.DropDownPlaceholderID); if (l2!=null){l2.onselectstart=null; }l2=null; }catch (e){}} ; RadComboBox.prototype.Initialize= function (i2,Z){ this.I2(i2); this.o3(Z); this.O3(); this.l3(); } ; RadComboBox.prototype.I2= function (i2){for (var z in i2){ this[z]=i2[z]; }} ; RadComboBox.prototype.O3= function (){ this.ItemCssClass="ComboBoxIt\x65m_"+this.Skin; this.ItemCssClassHover="C\x6f\x6dboBoxI\x74\x65mHo\x76\x65r_"+this.Skin; this.ItemCssClassDisabled="C\x6f\x6dboBoxI\x74\x65mDi\x73\x61bl\x65\144\x5f"+this.Skin; this.ImageCssClass="\x43omboBoxIm\x61\x67e_"+this.Skin; this.ImageCssClassHover="Combo\x42\x6fxImag\x65\x48ove\x72\137"+this.Skin; this.InputCssClass="ComboBoxInp\x75\x74_"+this.Skin; this.InputCssClassHover="Co\x6d\x62oBoxIn\x70\x75tHo\x76\x65r_"+this.Skin; this.LoadingMessageCssClass="ComboB\x6f\x78Loadi\x6e\x67Mess\x61ge_"+this.Skin; } ; RadComboBox.prototype.R= function (item){if (item!=null){ this.i3(item.Text); this.SetValue(item.Value); this.I3(item.Index); }else { this.SetText(""); this.SetValue(""); this.I3("\x2d1"); }} ; RadComboBox.prototype.Q= function (){if (this.AutoPostBack){if (this.CausesValidation){if (typeof(WebForm_DoPostBackWithOptions)!="\146\x75\x6ection" && !(typeof(Page_ClientValidate)!="\x66unction" || Page_ClientValidate())){return; }}eval(this.PostBackReference); }} ; RadComboBox.prototype.i0= function (e){var o4=this.SelectedItem; var O4=this.HighlightedItem; if (o4!=null && O4!=null && o4!=O4){ this.R(O4); this.l4(); }var i4=this.B; var I4=this.GetText(); if (i4!=I4 && this.AllowCustomText){ this.SetText(this.GetText()); if (!this.r){if (O4!=null){if (this.o5(this.OnClientSelectedIndexChanging,O4,e)== false){return; } this.Q(); }}else { this.r= false; }}} ; RadComboBox.prototype.o1= function (e){ this.B=this.GetText(); this.O5(); };RadComboBox.prototype.l5= function (){var i5=document.getElementById(this.L); while (i5.tagName!="F\x4fRM"){i5=i5.parentNode; }return i5; } ; RadComboBox.prototype.I5= function (){var l2=document.getElementById(this.DropDownPlaceholderID); var o6=l2.getElementsByTagName("\x69\x6eput"); return o6.length>0; };RadComboBox.prototype.O6= function (){if ((!document.readyState || document.readyState=="comple\x74\x65") && (!this.D)){var parentElement=document.body; if (this.I5()){parentElement=this.l5(); }var l2=document.getElementById(this.L).getElementsByTagName("div")[0]; l2.parentNode.removeChild(l2); l2.style.marginLeft="\x30"; var l6=document.getElementById(this.DropDownPlaceholderID); if (l6){l6.parentNode.removeChild(l6); }if (parentElement.firstChild){parentElement.insertBefore(l2,parentElement.firstChild); }else {parentElement.appendChild(l2); } this.D= 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.i6= function (text){var lastIndex=-1; for (var i=0; i<this.AutoCompleteSeparator.length; i++){var I6=this.AutoCompleteSeparator.charAt(i); var o7=text.lastIndexOf(I6); if (o7>lastIndex){lastIndex=o7; }}return lastIndex; } ; RadComboBox.prototype.i3= function (O7){var l7=-1; var i7=this.GetText(); if (this.AutoCompleteSeparator!=null){l7=this.i6(i7); }var I4=i7.substring(0,l7+1)+O7; this.SetText(I4); } ; RadComboBox.prototype.ClearSelection= function (){ this.R(null); this.SelectedItem=null; this.I7=null; } ; RadComboBox.prototype.o3= 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.l3= function (){if (this.SelectedItem!=null){ this.SelectedItem.Highlight(); }else {var o8; var O8=this.GetValue(); o8=this.FindItemByValue(O8); if (o8==null){var i7=this.GetText(); o8=this.FindItemByText(i7); }if (o8!=null){ this.SelectedItem=o8; this.SelectedItem.Highlight(); }} this.m= true; if (this.SelectedItem==null && this.C==-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("load", function (){comboInstance.ShowDropDown(); } , false); }}} ; RadComboBox.prototype.l8= function (Z,i8){if (!i8){ 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.o3(Z); } ; RadComboBox.prototype.SetText= function (O7){document.getElementById(this.InputID).value=O7; this.H.value=O7; } ; 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.I3= function (index){ this.G.value=index; } ; RadComboBox.prototype.I8= function (el){var parent=null; var O2=[]; 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); O2=[box.x-1,box.y-1]; }else {O2=[el.offsetLeft,el.offsetTop]; parent=el.offsetParent; if (parent!=el){while (parent){O2[0]+=parent.offsetLeft; O2[1]+=parent.offsetTop; parent=parent.offsetParent; }}}if (window.opera){parent=el.offsetParent; while (parent && parent.tagName.toUpperCase()!="BO\x44Y" && parent.tagName.toUpperCase()!="H\x54\x4dL"){O2[0]-=parent.scrollLeft; O2[1]-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName.toUpperCase()!="BODY" && parent.tagName.toUpperCase()!="HTML"){O2[0]-=parent.scrollLeft; O2[1]-=parent.scrollTop; parent=parent.parentNode; }}return O2; } ; RadComboBox.prototype.o9= function (x,y){if (document.readyState && document.readyState!="complete"){return; }var O9=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1); var l9=window.opera; if (O9 || l9 || (!document.all)){return; }if (this.F==null){ this.F=document.createElement("\x49\x46\x52AME"); this.F.src="j\x61\x76ascript\x3a\047\x27"; this.F.id=this.ClientID+"_Over\x6c\x61y"; this.F.frameBorder=0; this.F.style.position="absolute"; this.F.style.display="\x6eone"; this.O6(); this.J.parentNode.insertBefore(this.F,this.J); this.F.style.zIndex=this.J.style.zIndex-1; } this.F.style.left=x; this.F.style.top=y; var i9=this.J.offsetWidth; var I9=this.J.offsetHeight; this.F.style.width=i9+"\x70x"; this.F.style.height=I9+"px"; this.F.style.display=""; } ; RadComboBox.prototype.oa= function (){var O9=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1); var l9=window.opera; if (O9 || l9 || (!document.all)){return; }if (this.F!=null){ this.F.style.display="\156\x6f\x6ee"; }} ; RadComboBox.prototype.Oa= function (){for (var i=0; i<tlrkComboBoxes.length; i++){if (tlrkComboBoxes[i].ClientID!=this.ClientID){tlrkComboBoxes[i].HideDropDown(); }}} ; RadComboBox.prototype.o0= function (){var el=document.getElementById(this.ClientID+"\x5fwrapp\x65\x72"); while (el.tagName.toLowerCase()!="html"){if (el.dir){ this.la=(el.dir.toLowerCase()=="r\x74\x6c"); return; }el=el.parentNode; } this.la= false; };RadComboBox.prototype.ShowDropDown= function (){if (this.o5(this.OnClientDropDownOpening,this )== false){return; } this.Oa(); this.O6(); var ia; (this.RadComboBoxImagePosition=="Right" && !this.la)?ia=this.K:ia=document.getElementById(this.ImageID); var position=this.I8(ia); var x=position[0]+this.OffsetX; var y=position[1]+ia.offsetHeight+this.OffsetY; var Ia=document.getElementById(this.L); ob=Ia.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.la){ this.J.dir="\x72tl"; }var Ob=this.i1(); this.J.style.position="absolute"; if (window.netscape || window.opera){ob-=2; } this.J.style.width=ob+"px"; this.J.style.display="\x62lock"; if (this.lb(Ob,this.J,ia)){var ib=y-this.J.offsetHeight-ia.offsetHeight; if (ib>0){y=ib; }} this.J.style.left=x+"\x70x"; this.J.style.top=y+"\x70x"; this.o9(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.Ib( true ,null); }if (this.SelectedItem!=null){ this.SelectedItem.Highlighted= false; this.SelectedItem.Highlight(); this.SelectedItem.T(); }} ; RadComboBox.prototype.lb= function (Ob,t,ia){var oc=this.o2(ia).y+t.offsetHeight; return oc>Ob.height; } ; RadComboBox.prototype.FindItemByText= function (O7){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Text==O7){return this.Items[i]; }}return null; } ; RadComboBox.prototype.FindItemByValue= function (Oc){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Value==Oc){return this.Items[i]; }}return null; } ; RadComboBox.prototype.HideDropDown= function (){if (this.DropDownVisible){if (this.o5(this.OnClientDropDownClosing,this )== false){return; }document.getElementById(this.DropDownPlaceholderID).style.display="n\x6fne"; this.oa(); this.DropDownVisible= false; this.lc(); }} ; RadComboBox.prototype.lc= function (){ this.o5(this.OnClientBlur,this );};RadComboBox.prototype.O5= function (){ this.o5(this.OnClientFocus,this );};function ic(Ic){document.body.appendChild(document.createTextNode(Ic)); document.body.appendChild(document.createElement("\x48R")); }RadComboBox.prototype.ToggleDropDown= function (){ (this.DropDownVisible)?this.HideDropDown(): this.ShowDropDown(); } ; RadComboBox.prototype.od= function (Od){if (Od){while (Od!=null){if (Od.id && this.ld(Od.id)){return Od; }Od=Od.parentNode; }}return null; } ; RadComboBox.prototype.ld= function (oe){for (var i=0; i<this.Items.length; i++){if (this.Items[i].ClientID==oe){return true; }}return false; } ; RadComboBox.prototype.Oe= 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.le= function (ie){ie.Highlight(); } ; RadComboBox.prototype.Ie= function (ie){ie.UnHighlight(); } ; RadComboBox.prototype.l4= function (eventArgs){var of=this.HighlightedItem; if (of!=null){if (this.o5(this.OnClientSelectedIndexChanging,of,eventArgs)== false){return; }of.Select(); this.o5(this.OnClientSelectedIndexChanged,of,eventArgs); } this.HideDropDown(); } ; RadComboBox.prototype.HandleClick= function (eventArgs){ this.l4(eventArgs); } ; RadComboBox.prototype.Of= function (index){var i=index; var If= false; while (i<this.Items.length-1){i=i+1; if (this.Items[i].Enabled){If= true; break; }}if (If)return i; return index; } ; RadComboBox.prototype.og= function (index){var i=index; var If= false; while (i>0){i=i-1; if (this.Items[i].Enabled){If= true; break; }}if (If)return i; return index; } ; RadComboBox.prototype.Og= function (comboInstance,eventArgs){ this.o5(this.OnClientKeyPressing,this,eventArgs); if (eventArgs.keyCode==46){if (!this.EnableLoadOnDemand && !this.AllowCustomText){ this.lg(eventArgs); }}if (eventArgs.keyCode==40){if (eventArgs.altKey && (!this.DropDownVisible)){ this.ShowDropDown(); return; }var index=0; if (this.HighlightedItem!=null){index=this.Of(this.HighlightedItem.Index); }if (index>=0 && this.Items.length>0){if (this.o5(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].Highlight(); this.Items[index].W(); this.R(this.Items[index]); this.lg(eventArgs); }return; }if (eventArgs.keyCode==27 && this.DropDownVisible){ this.HideDropDown(); return; }if (eventArgs.keyCode==38){if (eventArgs.altKey && this.DropDownVisible){ this.HideDropDown(); return; }var index=-1; if (this.HighlightedItem!=null){index=this.og(this.HighlightedItem.Index); }if (index>=0){if (this.o5(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].T(); this.Items[index].Highlight(); this.R(this.Items[index]); this.lg(eventArgs); }return; }if ((eventArgs.keyCode==13 || eventArgs.keyCode==9) && this.DropDownVisible){if (eventArgs.keyCode==13){ this.lg(eventArgs); } this.l4(); return; }if (eventArgs.keyCode==9 && !this.DropDownVisible){ this.lc(); return; }if (eventArgs.keyCode==35 || eventArgs.keyCode==36 || eventArgs.keyCode==37 || eventArgs.keyCode==39){return; }if (this.EnableLoadOnDemand && (!eventArgs.altKey) && (!eventArgs.ctrlKey) && (!(eventArgs.keyCode==16))){if (!this.DropDownVisible){ this.ShowDropDown(); } this.ig( false ,eventArgs.keyCode); return; }var Ig=eventArgs.keyCode; if ((Ig<32) || (Ig>=33 && Ig<=46) || (Ig>=112 && Ig<=123) || (eventArgs.altKey== true)){return; }var oh=this ; window.setTimeout( function (){oh.HighlightMatches(); } ,20); } ; RadComboBox.prototype.Oh= function (eventArgs){if (eventArgs.preventDefault){if (eventArgs.keyCode==13 || (eventArgs.keyCode==32 && (!this.EnableLoadOnDemand))){eventArgs.preventDefault(); }}} ; RadComboBox.prototype.lh= function (s){if (typeof(encodeURIComponent)!="\x75\x6edefined"){return encodeURIComponent(this.ih(s)); }if (escape){return escape(this.ih(s)); }} ; RadComboBox.prototype.ih= function (text){if (typeof(text)!="\x6e\x75mber"){return text.replace(/\x27/g,"\x26squote"); }} ; RadComboBox.prototype.Ih= function (){if (typeof(XMLHttpRequest)!="\x75ndefined"){return new XMLHttpRequest(); }if (typeof(ActiveXObject)!="\165\x6e\x64efine\x64"){return new ActiveXObject("\x4dicrosoft.XML\x48\x54TP"); }} ; RadComboBox.prototype.oi= function (Oi,ii,Ii,oj){Oi=Oi.replace(/\x27/g,"&squ\x6f\x74e"); var url=window.unescape(this.LoadOnDemandUrl)+"&tex\x74\x3d"+this.lh(Oi); url=url+"\046\x63\x6fmboTex\x74\x3d"+this.lh(ii); url=url+"&comboValu\x65\x3d"+this.lh(Ii); url=url+"\x26skin="+this.lh(this.Skin); if (oj){url=url+"&itemCo\x75\x6et="+this.Items.length; }if (this.ExternalCallBackPage!=null){url=url+"&external=\x74\x72ue"; }if (this.ClientDataString!=null){url+="\046\x63\x6cientDa\x74\x61Stri\x6eg="+this.lh(this.ClientDataString); }url=url+"&timeSta\x6d\x70="+encodeURIComponent((new Date()).getTime()); return url; } ; RadComboBox.prototype.Oj= function (oj,text,keyCode){if (!this.g){ this.g= true; var ii=this.GetText(); var Ii=this.GetValue(); var Oi=(text)?text:ii; var lj=this.oi(Oi,ii,Ii,oj); var ij=this ; var xmlRequest=this.Ih(); xmlRequest.onreadystatechange= function (){if (xmlRequest.readyState!=4)return; ij.Ij(xmlRequest.responseText,oj,Oi,keyCode,xmlRequest.status,lj); } ; xmlRequest.open("G\x45T",lj, true); xmlRequest.send(""); }} ; RadComboBox.prototype.Ij= function (ok,oj,Oi,keyCode,status,url){if (status==500){alert("\x72.a.\x64\x2ecombo\x62\x6fx: S\x65rver e\x72\x72or \x69\156\x20the\x20Items\x52\145\x71\x75es\x74ed ev\x65nt ha\x6edler,\x20pre\x73s o\x6b to \x76iew \x74he r\x65sult\x2e"); document.body.innerHTML=ok; return; }if (status==404){alert("\162.\x61\x2ed.com\x62\x6fbox:\x20\114o\x61\x64 On\x20\x44em\x61nd Pag\x65 not f\x6f\165n\x64: "+url); var Ok="r.a.d.c\x6f\x6dbobox\x3a\x20Loa\x64\040\x4f\x6e D\x65\x6dand\x20Page n\x6ft foun\x64\072\x20"+url+"<br/>"; Ok+="P\x6c\x65ase, tr\x79\x20usi\x6e\x67 Ex\x74\x65rn\x61\x6cCal\x6c\102\x61ckPage\x20\164o\x20map t\x6f\040\x74\150e\x20exac\x74\040\x6coca\x74ion \x6ff th\x65 cal\x6cback\x70age\x20you \x61re \x75sin\x67.";document.body.innerHTML=Ok; return; }eval("\x76\x61r callB\x61\x63kDa\x74\x61 =\x20"+ok+"\x3b"); if (this.GetText()!=callBackData.Text){ this.g= false; this.ig( false ,null); return; }if (this.ShowMoreResultsBox){document.getElementById(this.MoreResultsBoxMessageID).innerHTML=callBackData.Message; }var lk=this.Items.length; this.l8(callBackData.Items,oj); if (oj){document.getElementById(this.DropDownID).removeChild(document.getElementById(this.ClientID+"_L\x6f\x61dingDi\x76")); document.getElementById(this.DropDownID).innerHTML+=callBackData.DropDownHtml; if (this.Items[lk+1]!=null){ this.Items[lk+1].W(); }}else {document.getElementById(this.DropDownID).innerHTML=callBackData.DropDownHtml; } this.o9(this.J.style.left,this.J.style.top); this.o5(this.OnClientItemsRequested,this,Oi,oj); this.g= false; var ik=this.FindItemByText(this.GetText()); if (ik!=null){ik.Highlight(); ik.W(); }if (!keyCode)return; if (keyCode<32 || (keyCode>=33 && keyCode<=46) || (keyCode>=112 && keyCode<=123)){return; } this.HighlightMatches(); };RadComboBox.prototype.Ik= function (i7){var l7=-1; if (this.AutoCompleteSeparator!=null){l7=this.i6(i7); }var ll=i7.substring(l7+1,i7.length); return ll; } ; RadComboBox.prototype.il= function (Il,om){if (!this.IsCaseSensitive){return (Il.toLowerCase()==om.toLowerCase()); }else {return (Il==om); }} ; RadComboBox.prototype.HighlightMatches= function (){if (!this.MarkFirstMatch)return; var i7=this.GetText(); var ll=this.Ik(i7); if (ll.length==0){return; }for (var i=0; i<this.Items.length; i++){var Om=this.Items[i].Text; if (Om.length>=ll.length){var Im=Om.substring(0,ll.length); if (this.il(Im,ll)){var l7=-1; if (this.AutoCompleteSeparator!=null){l7=this.i6(i7); }var I4=i7.substring(0,l7+1)+Om; this.SetText(I4); this.SetValue(this.Items[i].Value); this.I3(this.Items[i].Index); if (this.o5(this.OnClientSelectedIndexChanging,this.Items[i],null)== false){return; } this.Items[i].Highlight(); this.Items[i].W(); var On=l7+ll.length+1; var In=I4.length-On; if (document.all){var oo=document.getElementById(this.InputID).createTextRange(); oo.moveStart("c\x68\x61\x72acter",On); oo.moveEnd("\x63haract\x65\x72",In); oo.select(); }else {document.getElementById(this.InputID).setSelectionRange(On,On+In); }return; }else { this.SetValue(""); this.I3(-1); if (this.HighlightedItem!=null){ this.HighlightedItem.UnHighlight(); }}}} this.SetValue(""); this.I3("-1"); if (!this.AllowCustomText){var Oo=i7.substring(0,i7.length-1); if (this.d!=null){ this.SetText(this.d); return; } this.SetText(Oo); this.HighlightMatches(); }} ; RadComboBox.prototype.ig= function (i8,keyCode){if (!this.g){var comboInstance=this ; if (this.f){window.clearTimeout(this.f); this.f=0; } this.f=window.setTimeout( function (){comboInstance.Ib(i8,keyCode);} ,this.ItemRequestTimeout); }} ; RadComboBox.prototype.Ib= function (i8,keyCode){var Oi=document.getElementById(this.InputID).value; if (Oi=="")Oi= false; if (this.o5(this.OnClientItemsRequesting,this,Oi,i8)== false){return; }if (!this.g){if (!document.getElementById(this.ClientID+"_Loadin\x67Div")){document.getElementById(this.DropDownID).innerHTML="\x3c\x64iv id\x3d\x27"+this.ClientID+"_Loadi\x6e\x67Div\047"+" class=\x27"+this.LoadingMessageCssClass+"\x20\047\x3e"+this.LoadingMessage+"</div>"+document.getElementById(this.DropDownID).innerHTML; }}var comboInstance=this ; window.setTimeout( function (){comboInstance.Oj(i8,Oi,keyCode);} ,20); } ; RadComboBox.prototype.RequestItems= function (text,i8){ this.Oj(i8,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.Io= function (){document.getElementById(this.InputID).className=this.InputCssClass; var op=document.getElementById(this.ImageID); if (op){op.className=this.ImageCssClass; }} ; RadComboBox.prototype.Op= function (){document.getElementById(this.InputID).className=this.InputCssClassHover; var op=document.getElementById(this.ImageID); if (op){op.className=this.ImageCssClassHover; }} ; RadComboBox.prototype.lp= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="de\x66ault"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImageDisabled; } ; RadComboBox.prototype.ip= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="ha\x6e\x64"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImage; } ; RadComboBox.prototype.Ip= function (){ this.UnHighlightAll(); this.ig( true ,null); document.getElementById(this.InputID).focus(); } ; RadComboBox.prototype.oq= function (eventArgs){if (eventArgs.stopPropagation){eventArgs.stopPropagation(); }else {eventArgs.cancelBubble= true; }} ; RadComboBox.prototype.lg= function (eventArgs){if (eventArgs.preventDefault){eventArgs.preventDefault(); }else {eventArgs.returnValue= false; }} ; RadComboBox.prototype.o5= function (Oq,a,b,lq){if (!Oq)return true; RadComboBoxGlobalFirstParam=a; RadComboBoxGlobalSecondParam=b; RadComboBoxGlobalThirdParam=lq; var s=Oq; s=s+"\x28RadComboB\x6f\x78Glo\x62\x61l\x46irstPar\x61\x6d"; s=s+"\x2cRadComboB\x6f\x78Glob\x61\x6cSe\x63\x6fndP\x61\x72am"; s=s+",RadC\x6f\x6dboBox\x47\x6cobal\x54\150\x69\x72dP\x61\x72am"; s=s+"\x29\x3b"; return eval(s); } ; RadComboBox.prototype.HandleEvent= function (eventName,eventArgs){var ie; var srcElement=(document.all)?eventArgs.srcElement:eventArgs.target; var item=this.od(srcElement); if (item!=null){ie=this.Oe(item); }if (!this.Enabled){return; }switch (eventName){case "\163\x68\x6fwdrop\x64\157wn": this.oq(eventArgs); this.ShowDropDown(); break; case "\x68\151ded\x72\x6fpdown": this.oq(eventArgs); this.HideDropDown(); break; case "\x74oggledropdow\x6e": this.oq(eventArgs); this.ToggleDropDown(); break; case "\x6douseo\x76\x65r":if (ie!=null)this.le(ie); break; case "mou\x73\x65out":if (ie!=null)this.Ie(ie); break; case "keyp\x72\x65ss": this.Og(this,eventArgs); break; case "k\x65ydown": this.Oh(eventArgs); break; case "click": this.HandleClick(eventArgs); break; case "inputcl\x69\x63k": this.oq(eventArgs); document.getElementById(this.InputID).select(); this.ShowDropDown(); break; case "\x69\x6eputima\x67\x65out": this.Io(); break; case "inputimag\x65\x68over": this.Op(); break; case "moreresu\x6c\x74sima\x67\x65clic\x6b": this.oq(eventArgs); this.Ip(); break; case "\x6d\x6freresul\x74\x73imag\x65\x68ov\x65\x72": this.ip(); break; case "mo\x72\x65results\x69\x6dageo\x75\164": this.lp(); break; }} ; RadComboBox.prototype.Enable= function (){document.getElementById(this.InputID).disabled= false; this.Enabled= true; } ; RadComboBox.prototype.Disable= function (){document.getElementById(this.InputID).disabled="d\x69\x73abled"; this.Enabled= false; this.H.value=this.GetText(); } ; RadComboBox.prototype.O1= function (iq){{var computedStyle=null; if (iq.currentStyle){computedStyle=iq.currentStyle; }else if (document.defaultView && document.defaultView.getComputedStyle){computedStyle=document.defaultView.getComputedStyle(iq,null); }else {return; }var height=parseInt(computedStyle.height); var width=parseInt(iq.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=="\103SS1Comp\x61\164"){if (!isNaN(height)){iq.style.height=height-paddingTop-paddingBottom-borderTop-borderBottom+"px"; }}if (!isNaN(width) && width){var Iq=0; var op=iq.parentNode.getElementsByTagName("img")[0]; if (op){Iq=op.offsetWidth; }if (document.compatMode && document.compatMode=="C\x53\1231Co\x6d\x70at"){iq.style.width=width-Iq-paddingLeft-paddingRight-borderLeft-borderRight+"\x70x"; if (parseInt(iq.style.width)!=iq.offsetWidth){iq.style.width=parseInt(iq.style.width)+parseInt(iq.style.width)-iq.offsetWidth+"\x70x"; }}else {iq.style.width=width-Iq; }}}} ; 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)!="undefine\x64"){comboInstance.HandleEvent(eventName,eventArgs); }} ; function rcbAppendStyleSheet(o,I){var or=(navigator.appName=="\x4dicroso\x66\x74 Inte\x72\x6eet\x20Explore\x72") && ((navigator.userAgent.toLowerCase().indexOf("\x6dac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("\x6d\x61c")!=-1)); var O9=(navigator.userAgent.toLowerCase().indexOf("s\x61\x66ari")!=-1); if (or || O9){document.write("<"+"link"+" \x72\x65l=\047\163t\x79\x6cesh\x65\145t\x27\x20ty\x70\x65=\047text\x2fcss\047\x20hre\x66=\047"+I+"\047\x3e"); }else {var A=document.createElement("LIN\x4b"); A.rel="\x73tylesheet"; A.type="\x74ext/css"; A.href=I; document.getElementById(o+"\x53tyleShe\x65\x74Hold\x65\x72").appendChild(A); }} ; if (typeof(Or)!="undefined"){if (Or.lr!=null && Or.lr.ir!=null){Or.lr.ir(); }}
