if (typeof(window.RadControlsNamespace)=="und\x65\x66ined"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O,o,I){if (!I){return; }if (!O){document.write("<"+"li\x6e\153"+" rel=\047\x73tyle\x73\x68eet\x27 type\x3d\x27te\x78\x74/c\x73\x73\x27 href\x3d\047"+I+"\x27 />"); }else {var A=document.createElement("\x4cINK"); A.rel="s\x74\x79lesheet"; A.type="\x74ext/css"; A.href=I; document.getElementById(o+"\x53tyleShe\x65\x74Holde\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+"_\x44ropDown"); if (V.offsetWidth!=V.scrollWidth+16){w=16; }if (this.ComboBox.Items.length>0){var totalHeight=0; for (var i=0; i<=this.Index; i++){var v=document.getElementById(this.ComboBox.Items[i].ClientID); if (v){totalHeight+=v.offsetHeight; }}V.scrollTop=totalHeight-V.offsetHeight+w; }} ; RadComboItem.prototype.T= function (){if (this.ComboBox.Items.length>0){var totalHeight=0; for (var i=0; i<this.Index; i++){var v=document.getElementById(this.ComboBox.Items[i].ClientID); if (v){totalHeight+=v.offsetHeight; }}var scrollTop=document.getElementById(this.ComboBox.ClientID+"_Drop\x44\157\x77\x6e").scrollTop; if (scrollTop>totalHeight){document.getElementById(this.ComboBox.ClientID+"_DropDown").scrollTop=totalHeight; }}} ; RadComboItem.prototype.Highlight= function (){if (!this.Highlighted && this.Enabled){ this.ComboBox.UnHighlightAll(); if (!this.ComboBox.IsTemplated || this.ComboBox.HighlightTemplatedItems){var t=document.getElementById(this.ClientID); if (t){if (!this.ComboBox.HighlightedItem){if (t.className!=this.ComboBox.ItemCssClassHover){ this.S=t.className; }else { this.S=this.ComboBox.ItemCssClass; }}t.className=this.ComboBox.ItemCssClassHover; }} this.Highlighted= true; this.ComboBox.HighlightedItem=this ; }} ; RadComboItem.prototype.UnHighlight= function (){if (this.Highlighted && this.Enabled && document.getElementById(this.ClientID)){document.getElementById(this.ClientID).className=this.S; this.Highlighted= false; this.ComboBox.HighlightedItem=null; }} ; RadComboItem.prototype.Select= function (){ this.ComboBox.SelectedItem=this ; this.ComboBox.R(this ); this.ComboBox.HideDropDown(); this.ComboBox.r= true; this.ComboBox.Q(); } ; function RadComboBox(P,N){var n=window[N]; if (n!=null && !n.tagName){n.Dispose(); }if (window.tlrkComboBoxes==null){window.tlrkComboBoxes=new Array(); }tlrkComboBoxes[tlrkComboBoxes.length]=this ; this.Items=new Array(); this.M= false; this.ID=P; this.ClientID=N; this.m=N; this.DropDownID=N+"\x5f\x44ropDown"; this.InputID=N+"_Inpu\x74"; this.ImageID=N+"_\x49\x6dage"; this.DropDownPlaceholderID=N+"\x5f\x44ropDown\x50\x6cace\x68\x6fld\x65\x72"; this.MoreResultsBoxID=N+"\x5f\x4doreRes\x75\x6ctsB\x6f\x78"; this.MoreResultsBoxImageID=N+"\x5fMoreResult\x73\x42oxIm\x61\x67e"; this.MoreResultsBoxMessageID=N+"\x5f\x4doreRe\x73\x75ltsB\x6f\x78Mes\x73\x61ge"; this.L=N+"_He\x61\x64er"; this.l=document.getElementById(this.InputID); this.K=document.getElementById(this.ImageID); this.k=document.getElementById(this.DropDownPlaceholderID); this.J=document.getElementById(this.ClientID+"_text"); this.H=document.getElementById(this.ClientID+"\x5fvalue"); this.h=document.getElementById(this.ClientID+"\x5findex"); this.G=document.getElementById(this.ClientID+"\x5f\x63lientW\x69\x64th"); this.g=document.getElementById(this.ClientID+"_clientH\x65\x69ght"); 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="Loading..."; 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="\x43omboB\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="Classic"; this.HideTimeoutID=0; this.D=0; this.d= false; this.C=null; this.AllowCustomText= false; this.ExpandEffectString=null; this.HighlightTemplatedItems= false; this.CausesValidation= false; this.ClientDataString=null; this.ShowDropDownOnTextboxClick= true; this.ShowWhileLoading= true; this.B= false; this.r= false; this.o0=-1; this.IsTemplated= false; this.O0=null; this.OffsetX=0; this.OffsetY=0; var comboInstance=this ; this.l0(); this.i0= function (){comboInstance.HideOnClick(); } ; if (document.attachEvent){document.attachEvent("onclick",this.i0); }else {document.addEventListener("\x63lick",this.i0, false); } this.I0= function (e){comboInstance.o1(e || event); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("onb\x6c\x75r",this.I0); }else {document.getElementById(this.InputID).addEventListener("\142lu\x72",this.I0, false); } this.O1= function (){comboInstance.l1(); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("onfocus",this.O1); }else {document.getElementById(this.InputID).addEventListener("\x66ocus",this.O1, false); }document.getElementById(this.InputID).setAttribute("\x61utocomple\x74\x65","off"); document.getElementById(this.DropDownPlaceholderID).onselectstart= function (){return false; } ; if (typeof(RadCallbackNamespace)!="\x75ndef\x69\x6eed"){window.setTimeout( function (){comboInstance.i1(document.getElementById(comboInstance.InputID), true);} ,100); }else {var I1= false; if (window.addEventListener){ this.i1(document.getElementById(this.InputID), true); }else {if (document.getElementById(this.ClientID).offsetWidth==0){window.attachEvent("\x6fnl\x6f\x61d", function (){comboInstance.i1(document.getElementById(comboInstance.InputID), true); } ); }else if (!I1){ this.i1(document.getElementById(this.InputID), true); }else { this.o2(); }}}if (window.attachEvent){window.attachEvent("onunlo\x61d", function (){comboInstance.Dispose(); } ); }else {window.addEventListener("un\x6c\x6fad", function (){comboInstance.Dispose(); } , false); }} ; RadComboBox.prototype.ClearItems= function (){ this.Items=[]; document.getElementById(this.DropDownID).innerHTML=""; } ; RadComboBox.prototype.GetViewPortSize= function (){var width=0; var height=0; var O2=document.body; if (window.innerWidth){width=window.innerWidth; height=window.innerHeight; }else {if (document.compatMode && document.compatMode=="\x43SS1Comp\x61\x74"){O2=document.documentElement; }width=O2.clientWidth; height=O2.clientHeight; }width+=O2.scrollLeft; height+=O2.scrollTop; return {width:width-6,height:height-6 } ; } ; RadComboBox.prototype.l2= function (el){var parent=null; var i2= {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; i2.x=box.left+scrollLeft-2; i2.y=box.top+scrollTop-2; return i2; }else if (document.getBoxObjectFor){box=document.getBoxObjectFor(el); i2.x=box.x-2; i2.y=box.y-2; }else {i2.x=el.offsetLeft; i2.y=el.offsetTop; parent=el.offsetParent; if (parent!=el){while (parent){i2.x+=parent.offsetLeft; i2.y+=parent.offsetTop; parent=parent.offsetParent; }}}if (window.opera){parent=el.offsetParent; while (parent && parent.tagName!="B\x4fDY" && parent.tagName!="HTML"){i2.x-=parent.scrollLeft; i2.y-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName!="\x42ODY" && parent.tagName!="\x48\x54ML"){i2.x-=parent.scrollLeft; i2.y-=parent.scrollTop; parent=parent.parentNode; }}return i2; } ; RadComboBox.prototype.Dispose= function (){try {tlrkComboBoxes[this.ID]=null; this.Items=null; this.l=null; this.K=null; this.k=null; this.J=null; this.H=null; this.h=null; this.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("\x6f\x6e\x63lick",this.i0); }else {document.removeEventListener("\x63lick",this.i0, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("\x6fnblur",this.I0); }else {document.getElementById(this.InputID).removeEventListener("blur",this.I0, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("onfocus",this.O1); }else {document.getElementById(this.InputID).removeEventListener("\x66ocus",this.O1, false); }if (window.removeEventListener){window.removeEventListener("\x6coad", function (){comboInstance.i1(document.getElementById(comboInstance.InputID), true); } , false); }var input=document.getElementById(this.InputID); if (input!=null)input.onblur=null; input=null; var I2=document.getElementById(this.DropDownPlaceholderID); if (I2!=null){I2.onselectstart=null; }I2=null; }catch (e){}} ; RadComboBox.prototype.Initialize= function (o3,Z){ this.O3(o3); this.l3(Z); this.i3(); this.I3(); } ; RadComboBox.prototype.O3= function (o3){for (var z in o3){ this[z]=o3[z]; }} ; RadComboBox.prototype.i3= function (){ this.ItemCssClass="\x43omboBo\x78\x49tem_"+this.Skin; this.ItemCssClassHover="\x43omboB\x6f\x78ItemH\x6f\x76er\x5f"+this.Skin; this.ItemCssClassDisabled="\x43omboBoxIte\x6d\x44isab\x6c\x65d_"+this.Skin; this.ImageCssClass="\103\x6f\155boB\x6f\x78Imag\x65\x5f"+this.Skin; this.ImageCssClassHover="Com\x62\x6fBoxIma\x67\x65Hove\x72_"+this.Skin; this.InputCssClass="\x43omboBoxIn\x70\x75t_"+this.Skin; this.InputCssClassHover="ComboBox\x49\x6eputH\x6f\x76er_"+this.Skin; this.LoadingMessageCssClass="\x43omboBoxLoad\x69\x6egMes\x73\x61ge\x5f"+this.Skin; } ; RadComboBox.prototype.R= function (item){if (item!=null){ this.o4(item.Text); this.SetValue(item.Value); this.O4(item.Index); }else { this.SetText(""); this.SetValue(""); this.O4("-1"); }} ; RadComboBox.prototype.Q= function (){if (this.AutoPostBack){if (this.CausesValidation){if (typeof(WebForm_DoPostBackWithOptions)!="fun\x63\x74ion" && !(typeof(Page_ClientValidate)!="\x66unct\x69\x6fn" || Page_ClientValidate())){return; }}eval(this.PostBackReference); }} ; RadComboBox.prototype.o1= function (e){var l4=this.SelectedItem; var i4=this.HighlightedItem; if (l4!=null && i4!=null && l4!=i4){if (this.I4(this.OnClientSelectedIndexChanging,i4,e)== false){return; } this.R(i4); this.o5(); }if (this.B)return; var O5=this.O0; var l5=this.GetText(); if (O5!=l5 && this.AllowCustomText){ this.SetText(this.GetText()); if (!this.r){if (i4!=null || O5!=l5){if (this.I4(this.OnClientSelectedIndexChanging,i4,e)== false){return; }if (i4!=null){ this.SetText(i4.Text); this.SetValue(i4.Value); } this.Q(); }}else { this.r= false; }}} ; RadComboBox.prototype.l1= function (e){ this.O0=this.GetText(); this.i5(); };RadComboBox.prototype.I5= function (){var o6=document.getElementById(this.m); while (o6.tagName!="\x46\x4f\x52M"){o6=o6.parentNode; }return o6; } ; RadComboBox.prototype.O6= function (){var I2=document.getElementById(this.DropDownPlaceholderID); var l6=I2.getElementsByTagName("inpu\x74"); return l6.length>0; };RadComboBox.prototype.i6= function (){if ((!document.readyState || document.readyState=="compl\x65\x74e") && (!this.d)){var parentElement=document.body; if (this.O6()){parentElement=this.I5(); }var I2=document.getElementById(this.m).getElementsByTagName("\x64iv")[0]; I2.parentNode.removeChild(I2); I2.style.marginLeft="0"; var I6=document.getElementById(this.DropDownPlaceholderID); if (I6){I6.parentNode.removeChild(I6); }if (parentElement.firstChild){parentElement.insertBefore(I2,parentElement.firstChild); }else {parentElement.appendChild(I2); } this.d= true; this.k=document.getElementById(this.DropDownPlaceholderID); }} ; RadComboBox.prototype.HideOnClick= function (){var comboInstance=this ; this.HideTimeoutID=window.setTimeout( function (){comboInstance.DoHideOnClick(); } ,5); } ; RadComboBox.prototype.DoHideOnClick= function (){if (this.HideTimeoutID){ this.HideDropDown(); }} ; RadComboBox.prototype.ClearHideTimeout= function (){ this.HideTimeoutID=0; } ; RadComboBox.prototype.o7= function (text){var lastIndex=-1; for (var i=0; i<this.AutoCompleteSeparator.length; i++){var O7=this.AutoCompleteSeparator.charAt(i); var l7=text.lastIndexOf(O7); if (l7>lastIndex){lastIndex=l7; }}return lastIndex; } ; RadComboBox.prototype.o4= function (i7){var I7=-1; var o8=this.GetText(); if (this.AutoCompleteSeparator!=null){I7=this.o7(o8); }var l5=o8.substring(0,I7+1)+i7; this.SetText(l5); } ; RadComboBox.prototype.ClearSelection= function (){ this.R(null); this.SelectedItem=null; this.O8=null; } ; RadComboBox.prototype.l3= 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.I3= function (){if (this.SelectedItem!=null){ this.SelectedItem.Highlight(); }else {var l8; var i8=this.GetValue(); l8=this.FindItemByValue(i8); if (l8==null){var o8=this.GetText(); l8=this.FindItemByText(o8); }if (l8!=null){ this.SelectedItem=l8; 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("\x6f\x6eload", function (){comboInstance.ShowDropDown(); } ); }else {window.addEventListener("\x6coad", function (){comboInstance.ShowDropDown(); } , false); }}} ; RadComboBox.prototype.I8= function (Z,o9){if (!o9){ 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.C=this.GetText(); } this.l3(Z); } ; RadComboBox.prototype.SetText= function (i7){document.getElementById(this.InputID).value=i7; this.J.value=i7; } ; 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.O4= function (index){ this.h.value=index; } ; RadComboBox.prototype.O9= function (el){var parent=null; var i2=[]; 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); i2=[box.x-1,box.y-1]; }else {i2=[el.offsetLeft,el.offsetTop]; parent=el.offsetParent; if (parent!=el){while (parent){i2[0]+=parent.offsetLeft; i2[1]+=parent.offsetTop; parent=parent.offsetParent; }}}if (window.opera){parent=el.offsetParent; while (parent && parent.tagName.toUpperCase()!="BODY" && parent.tagName.toUpperCase()!="H\x54ML"){i2[0]-=parent.scrollLeft; i2[1]-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName.toUpperCase()!="BODY" && parent.tagName.toUpperCase()!="\x48TML"){i2[0]-=parent.scrollLeft; i2[1]-=parent.scrollTop; parent=parent.parentNode; }}return i2; } ; RadComboBox.prototype.l9= function (x,y){if (document.readyState && document.readyState!="\x63omplete"){return; }var i9=(navigator.userAgent.toLowerCase().indexOf("s\x61fari")!=-1); var I9=window.opera; if (i9 || I9 || (!document.all)){return; }if (this.f==null){ this.f=document.createElement("IFRAME"); this.f.src="\x6a\x61vascrip\x74\x3a\047\047"; this.f.id=this.ClientID+"_Overl\x61\x79"; this.f.frameBorder=0; this.f.style.position="absolute"; this.f.style.display="\x6eone"; this.i6(); this.k.parentNode.insertBefore(this.f,this.k); this.f.style.zIndex=this.k.style.zIndex-1; } this.f.style.left=x; this.f.style.top=y; var oa=this.k.offsetWidth; var Oa=this.k.offsetHeight; this.f.style.width=oa+"p\x78"; this.f.style.height=Oa+"\x70x"; this.f.style.display=""; } ; RadComboBox.prototype.la= function (){var i9=(navigator.userAgent.toLowerCase().indexOf("sa\x66\x61ri")!=-1); var I9=window.opera; if (i9 || I9 || (!document.all)){return; }if (this.f!=null){ this.f.style.display="\x6eone"; }} ; RadComboBox.prototype.ia= function (){for (var i=0; i<tlrkComboBoxes.length; i++){if (tlrkComboBoxes[i].ClientID!=this.ClientID){tlrkComboBoxes[i].HideDropDown(); }}} ; RadComboBox.prototype.l0= function (){var el=document.getElementById(this.ClientID+"_wrap\x70\x65r"); while (el.tagName.toLowerCase()!="html"){if (el.dir){ this.Ia=(el.dir.toLowerCase()=="\x72tl"); return; }el=el.parentNode; } this.Ia= false; };RadComboBox.prototype.ShowDropDown= function (){if (this.I4(this.OnClientDropDownOpening,this )== false){return; } this.ia(); this.i6(); var ob; (this.RadComboBoxImagePosition=="\x52ight" && !this.Ia)?ob=this.l:ob=document.getElementById(this.ImageID); var position=this.O9(ob); var x=position[0]+this.OffsetX; var y=position[1]+ob.offsetHeight+this.OffsetY; var Ob=document.getElementById(this.m); lb=Ob.offsetWidth; if (this.ExpandEffectString!=null && document.all){try { this.k.style.filter=this.ExpandEffectString; this.k.filters[0].Apply(); this.k.filters[0].Play(); }catch (e){}}if (this.Ia){ this.k.dir="\x72tl"; }var ib=this.GetViewPortSize(); this.k.style.position="a\x62\x73olute"; if (window.netscape || window.opera){lb-=2; } this.k.style.width=lb+"\160\x78"; this.k.style.display="block"; if (this.Ib(ib,this.k,ob)){var oc=y-this.k.offsetHeight-ob.offsetHeight; if (oc>0){y=oc; }} this.k.style.left=x+"\160x"; this.k.style.top=y+"\x70x"; this.l9(x+"px",y+"px"); if (this.HighlightedItem!=null){ this.HighlightedItem.W(); }if (this.SelectedItem!=null){ this.SelectedItem.W(); } this.ClearHideTimeout(); this.DropDownVisible= true; try {document.getElementById(this.InputID).focus(); }catch (e){} ; if ((this.EnableLoadOnDemand) && (this.Items.length==0)){ this.Oc( true ,null); }if (this.SelectedItem!=null){ this.SelectedItem.Highlighted= false; this.SelectedItem.Highlight(); this.SelectedItem.T(); }} ; RadComboBox.prototype.Ib= function (ib,t,ob){var lc=this.l2(ob).y+t.offsetHeight; return lc>ib.height; } ; RadComboBox.prototype.FindItemByText= function (i7){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Text==i7){return this.Items[i]; }}return null; } ; RadComboBox.prototype.FindItemByValue= function (ic){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Value==ic){return this.Items[i]; }}return null; } ; RadComboBox.prototype.HideDropDown= function (){if (this.DropDownVisible){if (this.I4(this.OnClientDropDownClosing,this )== false){return; }document.getElementById(this.DropDownPlaceholderID).style.display="\x6e\x6f\x6ee"; this.la(); this.DropDownVisible= false; this.Ic(); }} ; RadComboBox.prototype.Ic= function (){ this.I4(this.OnClientBlur,this );};RadComboBox.prototype.i5= function (){ this.I4(this.OnClientFocus,this );};function trace(od){document.body.appendChild(document.createTextNode(od)); document.body.appendChild(document.createElement("\x48\122")); }RadComboBox.prototype.ToggleDropDown= function (){ (this.DropDownVisible)?this.HideDropDown(): this.ShowDropDown(); } ; RadComboBox.prototype.Od= function (ld){if (ld){while (ld!=null){if (ld.id && this.oe(ld.id)){return ld; }ld=ld.parentNode; }}return null; } ; RadComboBox.prototype.oe= function (Oe){for (var i=0; i<this.Items.length; i++){if (this.Items[i].ClientID==Oe){return true; }}return false; } ; RadComboBox.prototype.le= 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.ie= function (Ie){Ie.Highlight(); } ; RadComboBox.prototype.of= function (Ie){Ie.UnHighlight(); } ; RadComboBox.prototype.o5= function (eventArgs){var Of=this.HighlightedItem; if (Of!=null){if (this.I4(this.OnClientSelectedIndexChanging,Of,eventArgs)== false){return; }Of.Select(); this.I4(this.OnClientSelectedIndexChanged,Of,eventArgs); } this.HideDropDown(); } ; RadComboBox.prototype.HandleClick= function (eventArgs){ this.o5(eventArgs); } ; RadComboBox.prototype.If= function (index){var i=index; var og= false; while (i<this.Items.length-1){i=i+1; if (this.Items[i].Enabled){og= true; break; }}if (og)return i; return index; } ; RadComboBox.prototype.Og= function (index){var i=index; var og= false; while (i>0){i=i-1; if (this.Items[i].Enabled){og= true; break; }}if (og)return i; return index; } ; RadComboBox.prototype.lg= function (comboInstance,eventArgs){ this.I4(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.If(this.HighlightedItem.Index); }if (index>=0 && this.Items.length>0){if (this.I4(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].Highlight(); this.Items[index].W(); this.R(this.Items[index]); this.ig(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.Og(this.HighlightedItem.Index); }if (index>=0){if (this.I4(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].T(); this.Items[index].Highlight(); this.R(this.Items[index]); this.ig(eventArgs); }return; }if ((keyCode==13 || keyCode==9) && this.DropDownVisible){if (keyCode==13){ this.ig(eventArgs); }if (!this.SelectOnTab && keyCode==9){if (this.AutoPostBack){ this.Q(); } this.HideDropDown(); return; } this.o5(); return; }if (keyCode==9 && !this.DropDownVisible){ this.Ic(); 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.Ig( false ,keyCode); return; }if ((keyCode<32) || (keyCode>=33 && keyCode<=46) || (keyCode>=112 && keyCode<=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)!="undefi\x6e\x65\x64"){return encodeURIComponent(this.ih(s)); }if (escape){return escape(this.ih(s)); }} ; RadComboBox.prototype.ih= function (text){if (typeof(text)!="number"){return text.replace(/\x27/g,"\x26squot\x65"); }} ; RadComboBox.prototype.Ih= function (){if (typeof(XMLHttpRequest)!="\x75ndefined"){return new XMLHttpRequest(); }if (typeof(ActiveXObject)!="\x75ndefine\x64"){return new ActiveXObject("Micro\x73\x6fft.XM\x4c\x48TTP"); }} ; RadComboBox.prototype.oi= function (Oi,ii,Ii,oj){Oi=Oi.replace(/\x27/g,"&s\x71\x75ote"); var url=window.unescape(this.LoadOnDemandUrl)+"\x26\x74ext="+this.lh(Oi); url=url+"\x26comboText="+this.lh(ii); url=url+"\x26\143o\x6d\x62oVal\x75\x65="+this.lh(Ii); url=url+"&skin="+this.lh(this.Skin); if (oj){url=url+"\x26itemCo\x75\x6et="+this.Items.length; }if (this.ExternalCallBackPage!=null){url=url+"\x26\x65xterna\x6c\x3dtrue"; }if (this.ClientDataString!=null){url+="&c\x6c\x69entData\x53\x74rin\x67="+this.lh(this.ClientDataString); }url=url+"\x26timeSt\x61\x6dp="+encodeURIComponent((new Date()).getTime()); return url; } ; RadComboBox.prototype.Oj= function (oj,text,keyCode){if (!this.F){ this.F= 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("\x47ET",lj, true); xmlRequest.send(""); }} ; RadComboBox.prototype.Ij= function (ok,oj,Oi,keyCode,status,url){if (status==500){alert("\x72.a.\x64\x2ecombob\x6f\x78: S\x65rver e\x72\x72or \x69\156\x20th\x65 Item\x73\x52eq\x75ested\x20\145\x76\145n\x74 han\x64\154\x65r, \x70ress\x20ok t\x6f vi\x65w th\x65 re\x73ult."); document.body.innerHTML=ok; return; }if (status==404){alert("r.a.d.c\x6f\x6dbobo\x78\x3a Loa\x64 On Dem\x61\x6ed P\x61\147e\x20not f\x6f\165n\x64\072\x20"+url); var Ok="\162.a\x2e\x64.comb\x6f\x62ox: \x4c\157ad\x20\117n \x44\145m\x61nd Pag\x65\040\x6e\x6ft \x66ound:\x20"+url+"\x3cbr/>"; Ok+="\x50lease, try u\x73\x69ng \x45\x78te\x72\x6ealC\x61\x6clB\x61\143\x6b\x50ag\x65\040\x74\157 \x6dap to\x20the e\x78\141\x63t loc\x61tio\x6e of \x74he c\x61llba\x63kpa\x67e yo\x75 ar\x65 us\x69ng.";document.body.innerHTML=Ok; return; }try {eval("\x76ar call\x42\x61ckDa\x74\x61 = "+ok+";"); }catch (e){alert("\x72.a.d.combo\x62\x6fx: \x6c\x6fad \x6f\x6e de\x6d\141n\x64\040\x63allbac\x6b\040\x65\162r\x6fr. Pr\x65\163s\x20Ente\x72\040\x66or m\x6fre \x69\156\x66orma\x74ion"); var Ok="\x49\x66 r.a.d.\x63\x6fmbo\x62\x6fx \x69\x73 no\x74\x20in\x69\x74ia\x6cly vis\x69ble on\x20your \x41\123P\x58 pag\x65\054\x20you \x6day n\x65ed t\x6f us\x65 str\x65amer\x73 (t\x68e E\x78ter\x6eall\x43all\x42ack\x50age\x20pr\x6fper\x74y)"; Ok+="\x3cbr/>Pleas\x65\x2c rea\x64\x20ou\x72\x20onl\x69\x6ee d\x6f\143\x75\155e\x6e\164a\x74\151o\x6e on t\x68\151s\x20prob\x6c\145m\x20for\x20deta\x69ls"; Ok+="\x3cbr/><a hr\x65\x66=\047\x68ttp\x3a\057/\x77\x77w.\x74\x65le\x72\151k\x2ecom/he\x6cp/rad\x63\157m\x62obox/\x762%5FN\x45T2/?\x63ombo\x5fexte\x72nalc\x61llba\x63kpa\x67e.ht\x6dl\047\x3eh\x74tp:\x2f/ww\x77.te\x6cer\x69k.c\x6fm/h\x65lp\x2fra\x64com\x62ob\x6fx/\x762%\x35FN\x45T2\x2fco\x6db\x6f_e\x78te\x72na\x6cc\x61ll\x62a\x63kp\x61g\x65.h\x74m\x6c<\x2fa>";document.body.innerHTML=Ok; return; }if (this.GetText()!=callBackData.Text){ this.F= false; this.Ig( false ,null); return; }if (this.ShowMoreResultsBox){document.getElementById(this.MoreResultsBoxMessageID).innerHTML=callBackData.Message; }var lk=this.Items.length; this.I8(callBackData.Items,oj); if (oj){document.getElementById(this.DropDownID).removeChild(document.getElementById(this.ClientID+"\x5fLoadi\x6e\x67Div")); 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.l9(this.k.style.left,this.k.style.top); this.I4(this.OnClientItemsRequested,this,Oi,oj); this.F= 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) && keyCode!=8){return; } this.HighlightMatches(); };RadComboBox.prototype.Ik= function (o8){var I7=-1; if (this.AutoCompleteSeparator!=null){I7=this.o7(o8); }var ll=o8.substring(I7+1,o8.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 o8=this.GetText(); var ll=this.Ik(o8); 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 I7=-1; if (this.AutoCompleteSeparator!=null){I7=this.o7(o8); }var l5=o8.substring(0,I7+1)+Om; this.SetText(l5); this.SetValue(this.Items[i].Value); this.O4(this.Items[i].Index); if (this.I4(this.OnClientSelectedIndexChanging,this.Items[i],null)== false){return; } this.Items[i].Highlight(); this.Items[i].W(); var On=I7+ll.length+1; var In=l5.length-On; if (document.all){var oo=document.getElementById(this.InputID).createTextRange(); oo.moveStart("c\x68\x61\x72acter",On); oo.moveEnd("\x63\x68aracte\x72",In); oo.select(); }else {document.getElementById(this.InputID).setSelectionRange(On,On+In); }return; }else { this.SetValue(""); this.O4(-1); if (this.HighlightedItem!=null){ this.HighlightedItem.UnHighlight(); }}}} this.SetValue(""); this.O4("-1"); if (!this.AllowCustomText){var Oo=o8.substring(0,o8.length-1); if (this.C!=null){ this.SetText(this.C); return; } this.SetText(Oo); this.HighlightMatches(); }} ; RadComboBox.prototype.Ig= function (o9,keyCode){if (!this.F){var comboInstance=this ; if (this.D){window.clearTimeout(this.D); this.D=0; } this.D=window.setTimeout( function (){comboInstance.Oc(o9,keyCode);} ,this.ItemRequestTimeout); }} ; RadComboBox.prototype.Oc= function (o9,keyCode){var Oi=document.getElementById(this.InputID).value; if (Oi=="")Oi= false; if (this.I4(this.OnClientItemsRequesting,this,Oi,o9)== false){return; }if (!this.F){if (!document.getElementById(this.ClientID+"_\x4coa\x64\x69ngDiv")){document.getElementById(this.DropDownID).innerHTML="\x3cdiv i\x64\x3d\047"+this.ClientID+"_Loading\x44\x69v\047"+"\x20class=\047"+this.LoadingMessageCssClass+" \047\x3e"+this.LoadingMessage+"</div\x3e"+document.getElementById(this.DropDownID).innerHTML; }}var comboInstance=this ; window.setTimeout( function (){comboInstance.Oj(o9,Oi,keyCode);} ,20); } ; RadComboBox.prototype.RequestItems= function (text,o9){ this.Oj(o9,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="\144\x65fault"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImageDisabled; this.B= false; } ; RadComboBox.prototype.ip= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="\x68and"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImage; this.B= true; } ; 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.ig= function (eventArgs){if (eventArgs.preventDefault){eventArgs.preventDefault(); }else {eventArgs.returnValue= false; }} ; RadComboBox.prototype.I4= function (Oq,a,b,lq){if (!Oq)return true; RadComboBoxGlobalFirstParam=a; RadComboBoxGlobalSecondParam=b; RadComboBoxGlobalThirdParam=lq; var s=Oq; s=s+"\x28RadComboB\x6f\x78Glo\x62\x61lF\x69rstPara\x6d"; s=s+"\x2cRadCombo\x42\x6fxGlo\x62\x61lS\x65\x63ond\x50\x61ram"; s=s+"\x2cRadComboBox\x47\x6cobal\x54\150i\x72\x64Par\x61\155"; 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.le(item); }if (!this.Enabled){return; }switch (eventName){case "\x73howdropd\x6f\x77n": this.oq(eventArgs); this.ShowDropDown(); break; case "hidedropdown": this.oq(eventArgs); this.HideDropDown(); break; case "\x74ogg\x6c\x65dropd\x6f\x77n": this.oq(eventArgs); this.ToggleDropDown(); break; case "\x6douseov\x65\x72":if (Ie!=null)this.ie(Ie); break; case "mouseout":if (Ie!=null)this.of(Ie); break; case "keypress": this.lg(this,eventArgs); break; case "\x6beydown": this.Oh(eventArgs); break; case "click": this.HandleClick(eventArgs); break; case "input\x63\x6cick":{ this.oq(eventArgs); document.getElementById(this.InputID).select(); if (this.ShowDropDownOnTextboxClick)this.ShowDropDown(); break; }case "inputi\x6d\x61geout": this.Io(); break; case "inputimag\x65\x68over": this.Op(); break; case "\x6doreresult\x73\x69mage\x63\x6ci\x63\153": this.oq(eventArgs); this.Ip(); break; case "morere\x73\x75ltsim\x61\x67ehov\x65\162": this.ip(); break; case "moreresult\x73\x69mage\x6f\x75t": 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="\144i\x73\x61bled"; this.Enabled= false; this.J.value=this.GetText(); } ; RadComboBox.prototype.i1= function (iq,Iq){{if ((this.G.value!="") && (this.g.value!="")){ this.o2(); return; }var op=iq.parentNode.getElementsByTagName("\x69mg")[0]; if (Iq && op && (op.offsetWidth==0)){var comboInstance=this ; if (document.attachEvent){if (document.readyState=="complete")window.setTimeout( function (){comboInstance.i1(iq, false); } ,100); else op.attachEvent("onload", function (){comboInstance.i1(iq, false); } ); }else {op.addEventListener("load", function (){comboInstance.i1(iq, false); } , false); }return; }var computedStyle=null; if (iq.currentStyle){computedStyle=iq.currentStyle; }else if (document.defaultView && document.defaultView.getComputedStyle){computedStyle=document.defaultView.getComputedStyle(iq,null); }if (computedStyle==null){ this.o2(); 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=="\103SS1Compat"){if (!isNaN(height) && (this.g.value=="")){iq.style.height=height-paddingTop-paddingBottom-borderTop-borderBottom+"px"; this.g.value=iq.style.height; }}if (!isNaN(width) && width && (this.G.value=="")){var or=0; if (op){or=op.offsetWidth; }if (document.compatMode && document.compatMode=="\x43SS1Compat"){var Or=width-or-paddingLeft-paddingRight-borderLeft-borderRight; if (Or>=0)iq.style.width=Or+"\160x"; this.G.value=iq.style.width; }else {iq.style.width=width-or; }} this.o2(); }} ; RadComboBox.prototype.o2= function (){if (!this.ShowWhileLoading)document.getElementById(this.ClientID+"\x5f\167rap\x70\x65r").style.visibility="visible"; } ; 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)!="undefined"){comboInstance.HandleEvent(eventName,eventArgs); }} ; function rcbAppendStyleSheet(o,I){var lr=(navigator.appName=="\x4dicrosof\x74\x20Inte\x72\x6eet\x20\105x\x70\x6cor\x65\x72") && ((navigator.userAgent.toLowerCase().indexOf("mac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("ma\x63")!=-1)); var i9=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1); if (lr || i9){document.write("\x3c"+"link"+" rel=\x27\x73tyle\x73\150e\x65\164\x27\x20typ\x65\x3d\047\x74ex\x74/css\x27 href\x3d\047"+I+"\x27>"); }else {var A=document.createElement("LINK"); A.rel="\x73tylesheet"; A.type="\x74ext/css"; A.href=I; document.getElementById(o+"\x53\x74yleShe\x65\x74Hol\x64\x65r").appendChild(A); }} ;
