if (typeof(window.RadControlsNamespace)=="u\x6e\x64efined"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O,o,I){if (!I){return; }if (!O){document.write("<"+"\x6c\x69nk"+" rel=\047style\x73\x68ee\x74\x27 \x74\x79pe=\x27\164e\x78\x74/cs\x73\047\x20hr\x65\146=\x27"+I+"\047\x20/>"); }else {var A=document.createElement("\114\x49\116K"); A.rel="\163ty\x6c\x65sheet"; A.type="t\x65\x78t/css"; A.href=I; document.getElementById(o+"StyleSheet\x48\x6flder").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+"\x5fDrop\x44\x6fwn").scrollTop; if (scrollTop>totalHeight){document.getElementById(this.ComboBox.ClientID+"_Dr\x6f\x70Down").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+"\137DropDown"; this.InputID=N+"_Inpu\x74"; this.ImageID=N+"_I\x6d\x61ge"; this.DropDownPlaceholderID=N+"_DropDownPl\x61\x63ehol\x64\x65r"; this.MoreResultsBoxID=N+"_MoreR\x65\x73ultsB\x6f\x78"; this.MoreResultsBoxImageID=N+"_MoreResult\x73\x42oxIm\x61\x67e"; this.MoreResultsBoxMessageID=N+"\x5fMoreRes\x75\x6ctsBox\x4d\x65ss\x61\x67e"; this.l=N+"_Header"; this.K=document.getElementById(this.InputID); this.k=document.getElementById(this.ImageID); this.J=document.getElementById(this.DropDownPlaceholderID); this.H=document.getElementById(this.ClientID+"_text"); this.h=document.getElementById(this.ClientID+"_value"); 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="Loadi\x6eg..."; 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="ComboBo\x78\x4coadin\x67\x4dess\x61ge"; 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.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("onblur",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("\x61\165t\x6f\x63ompl\x65\x74e","\x6f\x66f"); document.getElementById(this.DropDownPlaceholderID).onselectstart= function (){return false; } ; if (typeof(RadCallbackNamespace)!="u\x6e\x64efined"){window.setTimeout( function (){comboInstance.O1(document.getElementById(comboInstance.InputID));} ,100); }else {var l1= false; if (window.addEventListener){window.addEventListener("l\x6f\x61d", function (){comboInstance.O1(document.getElementById(comboInstance.InputID)); } , false); l1= true; }else {if (document.getElementById(this.ClientID).offsetWidth==0){window.attachEvent("on\x6c\x6fad", function (){comboInstance.O1(document.getElementById(comboInstance.InputID)); } ); }else if (!l1){ this.O1(document.getElementById(this.InputID)); }}}if (window.attachEvent){window.attachEvent("onunlo\x61\x64", function (){comboInstance.M(); } ); }else {window.addEventListener("unload", 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=="CSS\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!="\x42ODY" && parent.tagName!="\x48\x54ML"){O2.x-=parent.scrollLeft; O2.y-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName!="\x42ODY" && parent.tagName!="\x48TML"){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("\157n\x63lick",this.O0); }else {document.removeEventListener("\x63\154ick",this.O0, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("onblur",this.l0); }else {document.getElementById(this.InputID).removeEventListener("blu\x72",this.l0, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("onfocus",this.I0); }else {document.getElementById(this.InputID).removeEventListener("\x66\x6fcus",this.I0, false); }if (window.removeEventListener){window.removeEventListener("lo\x61\x64", 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="C\x6fmboBoxIte\x6d\x5f"+this.Skin; this.ItemCssClassHover="\x43omboBoxItem\x48\x6fver\x5f"+this.Skin; this.ItemCssClassDisabled="\x43omboBoxIte\x6d\x44isab\x6c\x65d_"+this.Skin; this.ImageCssClass="ComboBoxI\x6d\x61ge_"+this.Skin; this.ImageCssClassHover="\x43omboBoxImag\x65\x48over\x5f"+this.Skin; this.InputCssClass="ComboB\x6f\x78Input\x5f"+this.Skin; this.InputCssClassHover="\x43omboBoxInpu\x74\x48ove\x72\x5f"+this.Skin; this.LoadingMessageCssClass="Comb\x6f\x42oxLoad\x69\x6egMe\x73\163\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)!="\x66unction" && !(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){ this.Q(); }else { this.r= false; }}} ; RadComboBox.prototype.o1= function (e){ this.B=this.GetText(); this.o5(); };RadComboBox.prototype.O5= function (){var l5=document.getElementById(this.L); while (l5.tagName!="F\x4fRM"){l5=l5.parentNode; }return l5; } ; RadComboBox.prototype.i5= function (){var l2=document.getElementById(this.DropDownPlaceholderID); var I5=l2.getElementsByTagName("\x69nput"); return I5.length>0; };RadComboBox.prototype.o6= function (){if ((!document.readyState || document.readyState=="\x63\x6fmplete") && (!this.D)){var parentElement=document.body; if (this.i5()){parentElement=this.O5(); }var l2=document.getElementById(this.L).getElementsByTagName("div")[0]; l2.parentNode.removeChild(l2); l2.style.marginLeft="0"; var O6=document.getElementById(this.DropDownPlaceholderID); if (O6){O6.parentNode.removeChild(O6); }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.l6= function (text){var lastIndex=-1; for (var i=0; i<this.AutoCompleteSeparator.length; i++){var i6=this.AutoCompleteSeparator.charAt(i); var I6=text.lastIndexOf(i6); if (I6>lastIndex){lastIndex=I6; }}return lastIndex; } ; RadComboBox.prototype.i3= function (o7){var O7=-1; var l7=this.GetText(); if (this.AutoCompleteSeparator!=null){O7=this.l6(l7); }var I4=l7.substring(0,O7+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.SetText(item.Text); this.SetValue(item.Value); }}} ; RadComboBox.prototype.l3= function (){if (this.SelectedItem!=null){ this.SelectedItem.Highlight(); }else {var I7; var o8=this.GetValue(); I7=this.FindItemByValue(o8); if (I7==null){var l7=this.GetText(); I7=this.FindItemByText(l7); }if (I7!=null){ this.SelectedItem=I7; 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("\x6f\x6eload", function (){comboInstance.ShowDropDown(); } ); }else {window.addEventListener("\x6coad", function (){comboInstance.ShowDropDown(); } , false); }}} ; RadComboBox.prototype.O8= function (Z,l8){if (!l8){ 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()!="B\x4fD\x59" && parent.tagName.toUpperCase()!="\x48TML"){O2[0]-=parent.scrollLeft; O2[1]-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName.toUpperCase()!="\x42ODY" && parent.tagName.toUpperCase()!="HTML"){O2[0]-=parent.scrollLeft; O2[1]-=parent.scrollTop; parent=parent.parentNode; }}return O2; } ; RadComboBox.prototype.I8= function (x,y){if (document.readyState && document.readyState!="complete"){return; }var o9=(navigator.userAgent.toLowerCase().indexOf("safa\x72i")!=-1); var O9=window.opera; if (o9 || O9 || (!document.all)){return; }if (this.F==null){ this.F=document.createElement("\x49FRA\x4d\x45"); this.F.src="\x6aavascript\x3a\047\x27"; this.F.id=this.ClientID+"_Ov\x65\x72lay"; this.F.frameBorder=0; this.F.style.position="absolute"; this.F.style.display="none"; 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 l9=this.J.offsetWidth; var i9=this.J.offsetHeight; this.F.style.width=l9+"px"; this.F.style.height=i9+"px"; this.F.style.display=""; } ; RadComboBox.prototype.I9= function (){var o9=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); var O9=window.opera; if (o9 || O9 || (!document.all)){return; }if (this.F!=null){ this.F.style.display="non\x65"; }} ; 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+"_wrapp\x65\x72"); while (el.tagName.toLowerCase()!="\x68\x74ml"){if (el.dir){ this.Oa=(el.dir.toLowerCase()=="rtl"); return; }el=el.parentNode; } this.Oa= false; };RadComboBox.prototype.ShowDropDown= function (){if (this.la(this.OnClientDropDownOpening,this )== false){return; } this.oa(); this.o6(); var ia; (this.RadComboBoxImagePosition=="\122\x69ght" && !this.Oa)?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.Oa){ this.J.dir="rtl"; }var Ob=this.i1(); this.J.style.position="abs\x6f\x6cute"; this.J.style.width=ob-2+"\x70x"; 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+"px"; this.J.style.top=y+"\x70x"; this.I8(x+"px",y+"\x70\x78"); 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.la(this.OnClientDropDownClosing,this )== false){return; }document.getElementById(this.DropDownPlaceholderID).style.display="\x6e\x6f\x6ee"; this.I9(); this.DropDownVisible= false; this.lc(); }} ; RadComboBox.prototype.lc= function (){ this.la(this.OnClientBlur,this );};RadComboBox.prototype.o5= function (){ this.la(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.la(this.OnClientSelectedIndexChanging,of,eventArgs)== false){return; }of.Select(); this.la(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.la(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.la(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.la(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.Oh(); } ,20); } ; RadComboBox.prototype.lh= function (eventArgs){if (eventArgs.preventDefault){if (eventArgs.keyCode==13 || (eventArgs.keyCode==32 && (!this.EnableLoadOnDemand))){eventArgs.preventDefault(); }}} ; RadComboBox.prototype.ih= function (s){if (typeof(encodeURIComponent)!="\165ndefined"){return encodeURIComponent(this.Ih(s)); }if (escape){return escape(this.Ih(s)); }} ; RadComboBox.prototype.Ih= function (text){if (typeof(text)!="\x6e\x75\x6dber"){return text.replace(/\x27/g,"&\x73\x71uote"); }} ; RadComboBox.prototype.oi= function (){if (typeof(XMLHttpRequest)!="undefined"){return new XMLHttpRequest(); }if (typeof(ActiveXObject)!="\165\x6e\x64efin\x65\x64"){return new ActiveXObject("Microsoft.X\x4d\x4cHTTP"); }} ; RadComboBox.prototype.Oi= function (ii,Ii,oj,Oj){ii=ii.replace(/\x27/g,"\x26squote"); var url=window.unescape(this.LoadOnDemandUrl)+"\x26\x74ext="+this.ih(ii); url=url+"\x26combo\x54\x65xt="+this.ih(Ii); url=url+"\x26comboVa\x6c\x75e="+this.ih(oj); url=url+"&skin="+this.ih(this.Skin); if (Oj){url=url+"\x26\151te\x6d\x43ount="+this.Items.length; }if (this.ExternalCallBackPage!=null){url=url+"\x26extern\x61\x6c=tru\x65"; }if (this.ClientDataString!=null){url+="\x26clien\x74\x44ataSt\x72\x69ng="+this.ih(this.ClientDataString); }url=url+"\x26\x74imeSt\x61\x6dp="+encodeURIComponent((new Date()).getTime()); return url; } ; RadComboBox.prototype.lj= function (Oj,text,keyCode){if (!this.g){ this.g= true; var Ii=this.GetText(); var oj=this.GetValue(); var ii=(text)?text:Ii; var ij=this.Oi(ii,Ii,oj,Oj); var Ij=this ; var xmlRequest=this.oi(); xmlRequest.onreadystatechange= function (){if (xmlRequest.readyState!=4)return; Ij.ok(xmlRequest.responseText,Oj,ii,keyCode,xmlRequest.status,ij); } ; xmlRequest.open("GET",ij, true); xmlRequest.send(""); }} ; RadComboBox.prototype.ok= function (Ok,Oj,ii,keyCode,status,url){if (status==500){alert("\x72.a.d.co\x6d\x62obox\x3a\x20Se\x72ver err\x6f\x72 i\x6e\x20th\x65 I\x74\145\x6d\163R\x65quest\x65\144 \x65vent \x68andl\x65\162\x2c pr\x65ss o\x6b to \x76iew\x20the \x72esul\x74."); document.body.innerHTML=Ok; return; }if (status==404){alert("\x72.a.d.c\x6f\x6dbobo\x78\x3a Lo\x61\x64 On\x20\104e\x6d\141n\x64\040\x50age n\x6f\164 \x66ound:\x20"+url); var lk="r.a.\x64\x2ecombo\x62\x6fx: L\x6fad On D\x65\x6dan\x64\x20Pag\x65 not f\x6f\165n\x64: "+url+"\x3cbr/>"; lk+="Please\x2c\x20try u\x73\x69ng \x45\170t\x65\x72nal\x43\141l\x6c\102\x61\143k\x50\141g\x65 to m\x61\160 \x74o the\x20exac\x74\040\x6coca\x74ion \x6ff th\x65 cal\x6cbac\x6bpage\x20you\x20are\x20usi\x6eg.";document.body.innerHTML=lk; return; }eval("var ca\x6c\x6cBack\x44\x61ta =\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 ik=this.Items.length; this.O8(callBackData.Items,Oj); if (Oj){document.getElementById(this.DropDownID).removeChild(document.getElementById(this.ClientID+"_Loading\x44\x69v")); 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.I8(this.J.style.left,this.J.style.top); this.la(this.OnClientItemsRequested,this,ii,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.Oh(); };RadComboBox.prototype.ll= function (l7){var O7=-1; if (this.AutoCompleteSeparator!=null){O7=this.l6(l7); }var il=l7.substring(O7+1,l7.length); return il; } ; RadComboBox.prototype.Il= function (om,Om){if (!this.IsCaseSensitive){return (om.toLowerCase()==Om.toLowerCase()); }else {return (om==Om); }} ; RadComboBox.prototype.Oh= function (){if (!this.MarkFirstMatch)return; var l7=this.GetText(); var il=this.ll(l7); if (il.length==0){return; }for (var i=0; i<this.Items.length; i++){var Im=this.Items[i].Text; if (Im.length>=il.length){var On=Im.substring(0,il.length); if (this.Il(On,il)){var O7=-1; if (this.AutoCompleteSeparator!=null){O7=this.l6(l7); }var I4=l7.substring(0,O7+1)+Im; this.SetText(I4); this.SetValue(this.Items[i].Value); this.I3(this.Items[i].Index); if (this.la(this.OnClientSelectedIndexChanging,this.Items[i],null)== false){return; } this.Items[i].Highlight(); this.Items[i].W(); var In=O7+il.length+1; var oo=I4.length-In; if (document.all){var Oo=document.getElementById(this.InputID).createTextRange(); Oo.moveStart("\x63\x68aracter",In); Oo.moveEnd("\x63haracter",oo); Oo.select(); }else {document.getElementById(this.InputID).setSelectionRange(In,In+oo); }return; }else { this.SetValue(""); this.I3(-1); if (this.HighlightedItem!=null){ this.HighlightedItem.UnHighlight(); }}}} this.SetValue(""); this.I3("-1"); if (!this.AllowCustomText){var Io=l7.substring(0,l7.length-1); if (this.d!=null){ this.SetText(this.d); return; } this.SetText(Io); this.Oh(); }} ; RadComboBox.prototype.ig= function (l8,keyCode){if (!this.g){var comboInstance=this ; if (this.f){window.clearTimeout(this.f); this.f=0; } this.f=window.setTimeout( function (){comboInstance.Ib(l8,keyCode);} ,this.ItemRequestTimeout); }} ; RadComboBox.prototype.Ib= function (l8,keyCode){var ii=document.getElementById(this.InputID).value; if (ii=="")ii= false; if (this.la(this.OnClientItemsRequesting,this,ii,l8)== false){return; }if (!this.g){if (!document.getElementById(this.ClientID+"_\x4coadingD\x69\x76")){document.getElementById(this.DropDownID).innerHTML="\x3cdiv id=\x27"+this.ClientID+"\x5fLoading\x44\x69v\047"+" clas\x73\x3d\047"+this.LoadingMessageCssClass+"\x20\047>"+this.LoadingMessage+"\x3c/div>"+document.getElementById(this.DropDownID).innerHTML; }}var comboInstance=this ; window.setTimeout( function (){comboInstance.lj(l8,ii,keyCode);} ,20); } ; RadComboBox.prototype.RequestItems= function (text,l8){ this.lj(l8,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 Op=document.getElementById(this.ImageID); if (Op){Op.className=this.ImageCssClass; }} ; RadComboBox.prototype.lp= function (){document.getElementById(this.InputID).className=this.InputCssClassHover; var Op=document.getElementById(this.ImageID); if (Op){Op.className=this.ImageCssClassHover; }} ; RadComboBox.prototype.ip= 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="hand"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImage; } ; RadComboBox.prototype.oq= 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.la= function (lq,a,b,iq){if (!lq)return true; RadComboBoxGlobalFirstParam=a; RadComboBoxGlobalSecondParam=b; RadComboBoxGlobalThirdParam=iq; var s=lq; s=s+"(RadC\x6fmboBoxGlo\x62\141l\x46\151\x72\163t\x50\x61ra\x6d"; s=s+",Rad\x43\x6fmboBo\x78\x47loba\x6c\123e\x63\x6fndP\x61\x72am"; s=s+"\x2cRadComboB\x6f\x78Gl\x6fbalT\x68\x69rd\x50\x61ram"; s=s+");"; 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 "\x73howdropdown": this.Oq(eventArgs); this.ShowDropDown(); break; case "\x68\x69dedrop\x64\x6fwn": this.Oq(eventArgs); this.HideDropDown(); break; case "tog\x67\x6cedropd\x6f\x77n": this.Oq(eventArgs); this.ToggleDropDown(); break; case "m\x6f\x75seover":if (ie!=null)this.le(ie); break; case "\x6douseout":if (ie!=null)this.Ie(ie); break; case "\x6beypre\x73\x73": this.Og(this,eventArgs); break; case "keydown": this.lh(eventArgs); break; case "clic\x6b": this.HandleClick(eventArgs); break; case "\x69\156pu\x74\x63lick": this.Oq(eventArgs); document.getElementById(this.InputID).select(); this.ShowDropDown(); break; case "\151n\x70\x75timage\x6f\x75t": this.op(); break; case "\x69nputi\x6d\x61gehov\x65\x72": this.lp(); break; case "mo\x72\x65results\x69\x6dage\x63\154i\x63\x6b": this.Oq(eventArgs); this.oq(); break; case "\x6dorere\x73\x75ltsi\x6d\x61geh\x6f\x76er": this.Ip(); break; case "moreresults\x69\x6dageo\x75\x74": this.ip(); break; }} ; RadComboBox.prototype.Enable= function (){document.getElementById(this.InputID).disabled= false; this.Enabled= true; } ; RadComboBox.prototype.Disable= function (){document.getElementById(this.InputID).disabled="disable\x64"; 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.parentNode.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=="\103SS1C\x6f\x6dpat"){if (!isNaN(height)){Iq.style.height=height-paddingTop-paddingBottom-borderTop-borderBottom+"px"; }}if (!isNaN(width) && width){var or=0; var Op=Iq.parentNode.getElementsByTagName("img")[0]; if (Op){or=Op.offsetWidth; }if (document.compatMode && document.compatMode=="CSS1Compa\x74"){Iq.style.width=width-or-paddingLeft-paddingRight-borderLeft-borderRight+"px"; }else {Iq.style.width=width-or; }}}} ; 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)!="un\x64\x65fined"){comboInstance.HandleEvent(eventName,eventArgs); }} ; function rcbAppendStyleSheet(o,I){var Or=(navigator.appName=="\x4dicros\x6f\x66t In\x74\x65rne\x74 Explo\x72\x65r") && ((navigator.userAgent.toLowerCase().indexOf("m\x61\143")!=-1) || (navigator.appVersion.toLowerCase().indexOf("m\x61\x63")!=-1)); var o9=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); if (Or || o9){document.write("\x3c"+"link"+"\x20\x72el=\047\163t\x79\x6cesh\x65et\047\x20type=\x27\x74ext\x2fcss\x27 href\x3d\047"+I+"\047\x3e"); }else {var A=document.createElement("LINK"); A.rel="\x73tyleshee\x74"; A.type="text\x2f\x63ss"; A.href=I; document.getElementById(o+"\x53\x74yleShee\x74\x48old\x65\x72").appendChild(A); }} ;
