if (typeof(window.RadControlsNamespace)=="\165nd\x65\x66ined"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O,o,I){if (!I){return; }if (!O){document.write("\x3c"+"\154in\x6b"+" rel=\047\x73tyl\x65\x73he\x65\x74\047\x20typ\x65\075\047\x74ex\x74/css\x27 href\x3d\047"+I+"\047 \x2f\x3e"); }else {var A=document.createElement("\x4cINK"); A.rel="styleshe\x65\x74"; A.type="text/css"; A.href=I; document.getElementById(o+"\x53tyleSheetH\x6f\x6cder").appendChild(A); }} ; function RadComboItem(){ this.ComboBox=null; this.ClientID=null; this.Highlighted= false; this.Index=0; this.Enabled=1; this.Selected=0; this.Text=""; this.Value=null; this.U=new Array(); } ; RadComboItem.prototype.Initialize= function (Z){for (var z in Z){ this[z]=Z[z]; }} ; RadComboItem.prototype.W= function (){if (this.ComboBox.Items.length>0){var totalHeight=0; for (var i=0; i<=this.Index; i++){var w=document.getElementById(this.ComboBox.Items[i].ClientID); if (w){totalHeight+=w.offsetHeight; }}document.getElementById(this.ComboBox.ClientID+"_D\x72opDown").scrollTop=totalHeight-document.getElementById(this.ComboBox.ClientID+"_DropDown").offsetHeight; }} ; RadComboItem.prototype.V= function (){if (this.ComboBox.Items.length>0){var totalHeight=0; for (var i=0; i<this.Index; i++){var w=document.getElementById(this.ComboBox.Items[i].ClientID); if (w){totalHeight+=w.offsetHeight; }}var scrollTop=document.getElementById(this.ComboBox.ClientID+"\137\x44ropDown").scrollTop; if (scrollTop>totalHeight){document.getElementById(this.ComboBox.ClientID+"\x5f\x44ropDow\x6e").scrollTop=totalHeight; }}} ; RadComboItem.prototype.Highlight= function (){if (!this.Highlighted && this.Enabled){ this.ComboBox.UnHighlightAll(); if (!this.ComboBox.IsTemplated || this.ComboBox.HighlightTemplatedItems){if (document.getElementById(this.ClientID)){document.getElementById(this.ClientID).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.ComboBox.ItemCssClass; this.Highlighted= false; this.ComboBox.HighlightedItem=null; }} ; RadComboItem.prototype.Select= function (){ this.ComboBox.SelectedItem=this ; this.ComboBox.v(this ); this.ComboBox.HideDropDown(); this.ComboBox.T(); } ; function RadComboBox(t,S){var R=window[S]; if (R!=null && !R.tagName){R.r(); }if (window.tlrkComboBoxes==null){window.tlrkComboBoxes=new Array(); }tlrkComboBoxes[tlrkComboBoxes.length]=this ; this.Items=new Array(); this.Q= false; this.ID=t; this.ClientID=S; this.P=S; this.DropDownID=S+"_Dr\x6fp\x44\x6fwn"; this.InputID=S+"_Input"; this.ImageID=S+"\x5fImage"; this.DropDownPlaceholderID=S+"_D\x72\x6fpDownP\x6c\x61ceh\x6f\154\x64er"; this.MoreResultsBoxID=S+"_MoreResul\x74\x73Box"; this.MoreResultsBoxImageID=S+"\x5fMor\x65\x52esult\x73\x42oxIm\x61ge"; this.MoreResultsBoxMessageID=S+"_MoreRes\x75\x6ctsBo\x78\x4dessa\x67\145"; this.N=S+"_Header"; this.n=document.getElementById(this.InputID); this.M=document.getElementById(this.ImageID); this.m=document.getElementById(this.DropDownPlaceholderID); this.L=document.getElementById(this.ClientID+"\x5ftext"); this.l=document.getElementById(this.ClientID+"_value"); this.K=document.getElementById(this.ClientID+"_\x69\x6edex"); 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.k= false; this.MarkFirstMatch= false; this.IsCaseSensitive= false; this.PostBackReference=null; this.LoadingMessage="\x4coading.\x2e\x2e"; this.ScrollDownImage=null; this.ScrollDownImageDisabled=null; this.J=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="ComboBoxL\x6f\x61ding\x4d\x65ssa\x67\x65"; this.AutoCompleteSeparator=null; this.ExternalCallBackPage=null; this.OnClientSelectedIndexChanging=null; this.OnClientDropDownOpening=null; this.OnClientDropDownClosing=null; this.OnClientItemsRequesting=null; this.OnClientSelectedIndexChanged=null; this.OnClientItemsRequested=null; this.OnClientKeyPressing=null; this.Skin="\x43lassi\x63"; this.HideTimeoutID=0; this.H=0; this.h= false; this.G=null; this.AllowCustomText= false; this.ExpandEffectString=null; this.HighlightTemplatedItems= false; this.CausesValidation= false; this.ClientDataString=null; this.g= false; this.F=-1; this.IsTemplated= false; this.f=null; var comboInstance=this ; this.D= function (){comboInstance.HideOnClick(); } ; if (document.attachEvent){document.attachEvent("\x6fnclick",this.D); }else {document.addEventListener("click",this.D, false); } this.d= function (e){comboInstance.C(e || event); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("\x6fn\x62\x6cur",this.d); }else {document.getElementById(this.InputID).addEventListener("bl\x75\x72",this.d, false); } this.B= function (){comboInstance.o0(); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("onfo\x63\x75s",this.B); }else {document.getElementById(this.InputID).addEventListener("\x66ocus",this.B, false); }document.getElementById(this.InputID).setAttribute("autocompl\x65\x74e","\x6fff"); document.getElementById(this.DropDownPlaceholderID).onselectstart= function (){return false; } ; if (typeof(RadCallbackNamespace)!="\x75ndefin\x65\x64"){window.setTimeout( function (){comboInstance.O0(document.getElementById(comboInstance.InputID));} ,100); }else {var l0= false; if (window.addEventListener){window.addEventListener("\x6coad", function (){comboInstance.O0(document.getElementById(comboInstance.InputID)); } , false); l0= true; }else {if (!l0){ this.O0(document.getElementById(this.InputID)); }}}if (window.attachEvent){window.attachEvent("on\x75\x6eload", function (){comboInstance.r(); } ); }else {window.addEventListener("\x75nload", function (){comboInstance.r(); } , false); }} ; RadComboBox.prototype.r= function (){try {tlrkComboBoxes[this.ID]=null; this.Items=null; this.n=null; this.M=null; this.m=null; this.L=null; this.l=null; this.K=null; this.J=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("\x6fnclick",this.D); }else {document.removeEventListener("cl\x69\x63k",this.D, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("onblu\x72",this.d); }else {document.getElementById(this.InputID).removeEventListener("blur",this.d, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("onfocus",this.B); }else {document.getElementById(this.InputID).removeEventListener("\x66ocus",this.B, false); }if (window.removeEventListener){window.removeEventListener("load", function (){comboInstance.O0(document.getElementById(comboInstance.InputID)); } , false); }var input=document.getElementById(this.InputID); if (input!=null)input.onblur=null; input=null; var i0=document.getElementById(this.DropDownPlaceholderID); if (i0!=null){i0.onselectstart=null; }i0=null; }catch (e){}} ; RadComboBox.prototype.Initialize= function (I0,Z){ this.o1(I0); this.O1(Z); this.l1(); this.i1(); } ; RadComboBox.prototype.o1= function (I0){for (var z in I0){ this[z]=I0[z]; }} ; RadComboBox.prototype.l1= function (){ this.ItemCssClass="\x43ombo\x42\x6fxIte\x6d\x5f"+this.Skin; this.ItemCssClassHover="ComboBo\x78\x49temHo\x76\x65r_"+this.Skin; this.ItemCssClassDisabled="Combo\x42\x6fxItem\x44\x69sabl\x65d_"+this.Skin; this.ImageCssClass="ComboBoxImag\x65\137"+this.Skin; this.ImageCssClassHover="ComboBox\x49\x6dageH\x6f\x76er_"+this.Skin; this.InputCssClass="ComboB\x6f\x78Input\x5f"+this.Skin; this.InputCssClassHover="Co\x6d\x62oBoxInp\x75\x74Hov\x65\162_"+this.Skin; this.LoadingMessageCssClass="\x43omboBox\x4c\x6fadin\x67\x4dess\x61\x67e_"+this.Skin; } ; RadComboBox.prototype.v= function (item){if (item!=null){ this.I1(item.Text); this.SetValue(item.Value); this.o2(item.Index); }else { this.SetText(""); this.SetValue(""); this.o2("\x2d1"); }} ; RadComboBox.prototype.T= function (){if (this.AutoPostBack){if (this.CausesValidation){if (typeof(WebForm_DoPostBackWithOptions)!="\x66unct\x69\x6fn" && !(typeof(Page_ClientValidate)!="\x66unctio\x6e" || Page_ClientValidate())){return; }}eval(this.PostBackReference); }} ; RadComboBox.prototype.C= function (e){var O2=this.SelectedItem; var l2=this.HighlightedItem; if (O2!=null && l2!=null && O2!=l2){ this.v(l2); this.i2(); }var I2=this.f; var o3=this.GetText(); if (I2!=o3 && this.AllowCustomText){ this.SetText(this.GetText()); this.T();}} ; RadComboBox.prototype.o0= function (e){ this.f=this.GetText(); this.O3(); };RadComboBox.prototype.l3= function (){var i3=document.getElementById(this.P); while (i3.tagName!="F\x4fRM"){i3=i3.parentNode; }return i3; } ; RadComboBox.prototype.I3= function (){var i0=document.getElementById(this.DropDownPlaceholderID); var o4=i0.getElementsByTagName("input"); return o4.length>0; };RadComboBox.prototype.O4= function (){if ((!document.readyState || document.readyState=="\x63omplete") && (!this.h)){var parentElement=document.body; if (this.I3()){parentElement=this.l3(); }var i0=document.getElementById(this.P).getElementsByTagName("\x44IV")[0]; i0.parentNode.removeChild(i0); i0.style.marginLeft="0"; var l4=document.getElementById(this.DropDownPlaceholderID); if (l4){l4.parentNode.removeChild(l4); }if (parentElement.firstChild){parentElement.insertBefore(i0,parentElement.firstChild); }else {parentElement.appendChild(i0); } this.h= true; this.m=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.i4= function (text){var lastIndex=-1; for (var i=0; i<this.AutoCompleteSeparator.length; i++){var I4=this.AutoCompleteSeparator.charAt(i); var o5=text.lastIndexOf(I4); if (o5>lastIndex){lastIndex=o5; }}return lastIndex; } ; RadComboBox.prototype.I1= function (O5){var l5=-1; var i5=this.GetText(); if (this.AutoCompleteSeparator!=null){l5=this.i4(i5); }var o3=i5.substring(0,l5+1)+O5; this.SetText(o3); } ; RadComboBox.prototype.ClearSelection= function (){ this.v(null); this.SelectedItem=null; this.I5=null; } ; RadComboBox.prototype.O1= 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; }} ; RadComboBox.prototype.i1= function (){if (this.SelectedItem!=null){ this.SelectedItem.Highlight(); }else {var i5=this.GetText(); var o6=this.FindItemByText(i5); if (o6!=null){ this.SelectedItem=o6; this.SelectedItem.Highlight(); }} this.Q= true; if (this.SelectedItem==null && this.F==-1 && this.Items.length>0){ this.SelectedItem=this.Items[0]; this.Items[0].Selected= true; this.SelectedItem.Highlight(); }var comboInstance=this ; if (this.OpenDropDownOnLoad){if (window.attachEvent){window.attachEvent("onload", function (){comboInstance.ShowDropDown(); } ); }else {window.addEventListener("\x6c\x6f\x61d", function (){comboInstance.ShowDropDown(); } , false); }}} ; RadComboBox.prototype.O6= function (Z,l6){if (!l6){ this.Items.length=0; } this.HighlightedItem=null; this.SelectedItem=null; this.Q= 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.G=this.GetText(); } this.O1(Z); } ; RadComboBox.prototype.SetText= function (O5){document.getElementById(this.InputID).value=O5; this.L.value=O5; } ; RadComboBox.prototype.GetText= function (){return document.getElementById(this.InputID).value; } ; RadComboBox.prototype.SetValue= function (value){if (value || value==""){ this.l.value=value; }} ; RadComboBox.prototype.GetValue= function (){return this.l.value; } ; RadComboBox.prototype.o2= function (index){ this.K.value=index; } ; RadComboBox.prototype.i6= function (el){var parent=null; var I6=[]; 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); I6=[box.x-2,box.y-2]; }else {I6=[el.offsetLeft,el.offsetTop]; parent=el.offsetParent; if (parent!=el){while (parent){I6[0]+=parent.offsetLeft; I6[1]+=parent.offsetTop; parent=parent.offsetParent; }}}if (window.opera){parent=el.offsetParent; while (parent && parent.tagName!="BO\x44Y" && parent.tagName!="\x48\124M\x4c"){I6[0]-=parent.scrollLeft; I6[1]-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName!="\x42ODY" && parent.tagName!="HTML"){I6[0]-=parent.scrollLeft; I6[1]-=parent.scrollTop; parent=parent.parentNode; }}return I6; } ; RadComboBox.prototype.o7= function (x,y){if (document.readyState && document.readyState!="complete"){return; }var O7=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1); var l7=window.opera; if (O7 || l7 || (!document.all)){return; }if (this.J==null){ this.J=document.createElement("IFRAME"); this.J.src="javascript:\x27\047"; this.J.id=this.ClientID+"\x5fOverlay"; this.J.frameBorder=0; this.J.style.position="a\x62\x73olute"; this.J.style.visibility="\x68\x69dden"; this.m.parentNode.insertBefore(this.J,this.m); this.J.style.zIndex=this.m.style.zIndex-1; } this.J.style.left=x; this.J.style.top=y; var i7=this.m.offsetWidth; var I7=this.m.offsetHeight; this.J.style.width=i7+"p\x78"; this.J.style.height=I7+"\x70\170"; this.J.style.visibility="\x76isible"; } ; RadComboBox.prototype.o8= function (){var O7=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1); var l7=window.opera; if (O7 || l7 || (!document.all)){return; }if (this.J!=null){ this.J.style.visibility="\x68idden"; }} ; RadComboBox.prototype.O8= function (){for (var i=0; i<tlrkComboBoxes.length; i++){if (tlrkComboBoxes[i].ClientID!=this.ClientID){tlrkComboBoxes[i].HideDropDown(); }}} ; RadComboBox.prototype.ShowDropDown= function (){if (this.l8(this.OnClientDropDownOpening,this )== false){return; } this.O8(); this.O4(); var i8; (this.RadComboBoxImagePosition=="\x52igh\x74")?i8=this.n:i8=document.getElementById(this.ImageID); var position=this.i6(i8); var x=position[0]; var y=position[1]+i8.offsetHeight; var I8=document.getElementById(this.P); o9=I8.offsetWidth; if (this.ExpandEffectString!=null && document.all){ this.m.style.filter=this.ExpandEffectString; this.m.filters[0].Apply(); this.m.filters[0].Play(); } this.m.style.position="a\x62\163\x6f\x6cute"; this.m.style.left=x+"\x70x"; this.m.style.top=y+"\x70x"; this.m.style.width=o9-2+"px"; this.m.style.display="\x62lock"; this.o7(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.O9( true ,null); }if (this.SelectedItem!=null){ this.SelectedItem.Highlighted= false; this.SelectedItem.Highlight(); this.SelectedItem.V(); }} ; RadComboBox.prototype.FindItemByText= function (O5){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Text==O5){return this.Items[i]; }}return null; } ; RadComboBox.prototype.FindItemByValue= function (l9){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Value==l9){return this.Items[i]; }}return null; } ; RadComboBox.prototype.HideDropDown= function (){if (this.DropDownVisible){if (this.l8(this.OnClientDropDownClosing,this )== false){return; }document.getElementById(this.DropDownPlaceholderID).style.display="\x6e\x6f\x6ee"; this.o8(); this.DropDownVisible= false; this.i9(); }} ; RadComboBox.prototype.i9= function (){ this.l8(this.OnClientBlur,this );};RadComboBox.prototype.O3= function (){ this.l8(this.OnClientFocus,this );};function I9(oa){document.body.appendChild(document.createTextNode(oa)); document.body.appendChild(document.createElement("\x48\x52")); }RadComboBox.prototype.ToggleDropDown= function (){ (this.DropDownVisible)?this.HideDropDown(): this.ShowDropDown(); } ; RadComboBox.prototype.Oa= function (la){if (la){while (la!=null){if (la.id && this.ia(la.id)){return la; }la=la.parentNode; }}return null; } ; RadComboBox.prototype.ia= function (Ia){for (var i=0; i<this.Items.length; i++){if (this.Items[i].ClientID==Ia){return true; }}return false; } ; RadComboBox.prototype.ob= 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.Ob= function (lb){lb.Highlight(); } ; RadComboBox.prototype.ib= function (lb){lb.UnHighlight(); } ; RadComboBox.prototype.i2= function (eventArgs){var Ib=this.HighlightedItem; if (Ib!=null){if (this.l8(this.OnClientSelectedIndexChanging,Ib,eventArgs)== false){return; }Ib.Select(); this.l8(this.OnClientSelectedIndexChanged,Ib,eventArgs); } this.HideDropDown(); } ; RadComboBox.prototype.HandleClick= function (eventArgs){ this.i2(eventArgs); } ; RadComboBox.prototype.oc= function (index){var i=index; var Oc= false; while (i<this.Items.length-1){i=i+1; if (this.Items[i].Enabled){Oc= true; break; }}if (Oc)return i; return index; } ; RadComboBox.prototype.lc= function (index){var i=index; var Oc= false; while (i>0){i=i-1; if (this.Items[i].Enabled){Oc= true; break; }}if (Oc)return i; return index; } ; RadComboBox.prototype.ic= function (comboInstance,eventArgs){ this.l8(this.OnClientKeyPressing,this,eventArgs); if (eventArgs.keyCode==46){if (!this.EnableLoadOnDemand && !this.AllowCustomText){ this.Ic(eventArgs); }}if (eventArgs.keyCode==40){if (eventArgs.altKey && (!this.DropDownVisible)){ this.ShowDropDown(); return; }var index=-1; if (this.HighlightedItem==null && this.Items.length>0){index=0; }if (this.HighlightedItem!=null){index=this.oc(this.HighlightedItem.Index); }else {index=this.oc(0); }if (index>=0 && this.Items.length>0){if (this.l8(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].Highlight(); this.Items[index].W(); this.v(this.Items[index]); this.Ic(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.lc(this.HighlightedItem.Index); }if (index>=0){if (this.l8(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].V(); this.Items[index].Highlight(); this.v(this.Items[index]); this.Ic(eventArgs); }return; }if ((eventArgs.keyCode==13 || eventArgs.keyCode==9) && this.DropDownVisible){if (eventArgs.keyCode==13){ this.Ic(eventArgs); } this.i2(); return; }if (eventArgs.keyCode==9 && !this.DropDownVisible){ this.i9(); 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.od( false ,eventArgs.keyCode); return; }var Od=eventArgs.keyCode; if ((Od<32) || (Od>=33 && Od<=46) || (Od>=112 && Od<=123)){return; }var ld=this ; window.setTimeout( function (){ld.oe(); } ,20); } ; RadComboBox.prototype.Oe= function (eventArgs){if (eventArgs.preventDefault){if (eventArgs.keyCode==13 || (eventArgs.keyCode==32 && (!this.EnableLoadOnDemand))){eventArgs.preventDefault(); }}} ; RadComboBox.prototype.le= function (s){if (typeof(encodeURIComponent)!="\x75\x6e\x64efine\x64"){return encodeURIComponent(this.ie(s)); }if (escape){return escape(this.ie(s)); }} ; RadComboBox.prototype.ie= function (text){if (typeof(text)!="\156\x75mber"){return text.replace(/\x27/g,"&squote"); }} ; RadComboBox.prototype.Ie= function (of,text,keyCode){if (!this.k){ this.k= true; var Of=(text)?text:document.getElementById(this.InputID).value; var If=this.GetValue(); Of=Of.replace(/\x27/g,"\x26squote"); var url=this.LoadOnDemandUrl+"\x26\x74ext="+this.le(Of); url=url+"&co\x6d\x62oValue="+this.le(If); url=(of)?url+"\x26itemCount="+this.Items.length:url; url=url+"\x26\x73kin="+this.le(this.Skin); if (this.ExternalCallBackPage!=null){url=url+"\x26externa\x6c\x3dtrue"; }if (this.ClientDataString!=null){url+="\x26client\x44\x61taStr\x69\x6eg="+this.le(this.ClientDataString); }url=url+"\x26\x74imeSta\x6d\x70="+encodeURIComponent((new Date()).getTime()); var xmlRequest=null; if (typeof(XMLHttpRequest)!="\x75ndefined"){xmlRequest=new XMLHttpRequest(); }if (typeof(ActiveXObject)!="un\x64\x65fined"){xmlRequest=new ActiveXObject("\x4dicrosof\x74\x2eXMLHT\x54\x50"); }xmlRequest.open("GET",url, true); var og=this ; xmlRequest.onreadystatechange= function (){if (xmlRequest.readyState!=4)return; og.Og(xmlRequest.responseText,of,Of,keyCode,xmlRequest.status,url); } ; xmlRequest.send(""); }} ; RadComboBox.prototype.Og= function (lg,of,Of,keyCode,status,url){if (status==500){alert("\162\x2ea.d.combob\x6f\x78: S\x65\162ve\x72\x20err\x6f\x72 i\x6e the\x20Items\x52\x65qu\x65sted \x65\166\x65\156\x74\040\x68andl\x65r,\x20pres\x73 ok \x74o vi\x65w th\x65 re\x73ult."); document.body.innerHTML=lg; return; }if (status==404){alert("r.a.d\x2e\x63ombob\x6f\x78: Lo\x61d On De\x6d\x61nd \x50\141g\x65 not f\x6fund: "+url); var ig="\x72.a.d.combo\x62\x6fx: L\x6f\x61d O\x6e\x20Dem\x61\156d\x20\x50ag\x65\040\x6e\157t\x20\146o\x75nd: "+url+"\x3cbr/>"; ig+="Please, t\x72\x79 usi\x6e\x67 Ext\x65\162n\x61\x6cCal\x6c\x42ac\x6b\120a\x67\145 \x74\157 \x6dap to\x20\164h\x65 exac\x74 loc\x61tion\x20of t\x68e ca\x6clbac\x6bpage\x20you\x20are \x75sin\x67.";document.body.innerHTML=ig; return; }eval("var call\x42\x61ckDa\x74\x61 = "+lg+"\x3b"); if (this.ShowMoreResultsBox){document.getElementById(this.MoreResultsBoxMessageID).innerHTML=callBackData.Message; }var Ig=this.Items.length; this.O6(callBackData.Items,of); if (of){document.getElementById(this.DropDownID).removeChild(document.getElementById(this.ClientID+"_LoadingDiv")); document.getElementById(this.DropDownID).innerHTML+=callBackData.DropDownHtml; if (this.Items[Ig+1]!=null){ this.Items[Ig+1].W(); }}else {document.getElementById(this.DropDownID).innerHTML=callBackData.DropDownHtml; } this.o7(this.m.style.left,this.m.style.top); this.l8(this.OnClientItemsRequested,this,Of,of); this.k= false; var oh=this.FindItemByText(this.GetText()); if (oh!=null){oh.Highlight(); oh.W(); }if (!keyCode)return; if (keyCode<32 || (keyCode>=33 && keyCode<=46) || (keyCode>=112 && keyCode<=123)){return; } this.oe(); };RadComboBox.prototype.Oh= function (i5){var l5=-1; if (this.AutoCompleteSeparator!=null){l5=this.i4(i5); }var lh=i5.substring(l5+1,i5.length); return lh; } ; RadComboBox.prototype.ih= function (Ih,oi){if (!this.IsCaseSensitive){return (Ih.toLowerCase()==oi.toLowerCase()); }else {return (Ih==oi); }} ; RadComboBox.prototype.oe= function (){if (!this.MarkFirstMatch)return; var i5=this.GetText(); var lh=this.Oh(i5); if (lh.length==0){return; }for (var i=0; i<this.Items.length; i++){var Oi=this.Items[i].Text; if (Oi.length>=lh.length){var ii=Oi.substring(0,lh.length); if (this.ih(ii,lh)){var l5=-1; if (this.AutoCompleteSeparator!=null){l5=this.i4(i5); }var o3=i5.substring(0,l5+1)+Oi; this.SetText(o3); this.SetValue(this.Items[i].Value); this.o2(this.Items[i].Index); if (this.l8(this.OnClientSelectedIndexChanging,this.Items[i],null)== false){return; } this.Items[i].Highlight(); this.Items[i].W(); var Ii=l5+lh.length+1; var oj=o3.length-Ii; if (document.all){var Oj=document.getElementById(this.InputID).createTextRange(); Oj.moveStart("\143haracter",Ii); Oj.moveEnd("\x63har\x61\x63ter",oj); Oj.select(); }else {document.getElementById(this.InputID).setSelectionRange(Ii,Ii+oj); }return; }else { this.SetValue(""); this.o2(-1); if (this.HighlightedItem!=null){ this.HighlightedItem.UnHighlight(); }}}} this.SetValue(""); this.o2("-1"); if (!this.AllowCustomText){var lj=i5.substring(0,i5.length-1); if (this.G!=null){ this.SetText(this.G); return; } this.SetText(lj); this.oe(); }} ; RadComboBox.prototype.od= function (l6,keyCode){if (!this.k && (!document.getElementById(this.ClientID+"\137\x4c\x6fading\x44\x69v"))){var comboInstance=this ; if (this.H){window.clearTimeout(this.H); this.H=0; } this.H=window.setTimeout( function (){comboInstance.O9(l6,keyCode);} ,this.ItemRequestTimeout); }} ; RadComboBox.prototype.O9= function (l6,keyCode){var Of=document.getElementById(this.InputID).value; if (Of=="")Of= false; if (this.l8(this.OnClientItemsRequesting,this,Of,l6)== false){return; }if (!this.k){document.getElementById(this.DropDownID).innerHTML="<div id="+this.ClientID+"\x5fLoading\x44\x69v"+" cla\x73\x73=\047"+this.LoadingMessageCssClass+"\x20\x27>"+this.LoadingMessage+"\074/\x64\x69v>"+document.getElementById(this.DropDownID).innerHTML; }var comboInstance=this ; window.setTimeout( function (){comboInstance.Ie(l6,Of,keyCode);} ,20); } ; RadComboBox.prototype.RequestItems= function (text,l6){ this.Ie(l6,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.ij= function (){document.getElementById(this.InputID).className=this.InputCssClass; var Ij=document.getElementById(this.ImageID); if (Ij){Ij.className=this.ImageCssClass; }} ; RadComboBox.prototype.ok= function (){document.getElementById(this.InputID).className=this.InputCssClassHover; var Ij=document.getElementById(this.ImageID); if (Ij){Ij.className=this.ImageCssClassHover; }} ; RadComboBox.prototype.Ok= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="\x64efault"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImageDisabled; } ; RadComboBox.prototype.lk= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="\150\x61\x6ed"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImage; } ; RadComboBox.prototype.ik= function (){ this.UnHighlightAll(); this.od( true ,null); document.getElementById(this.InputID).focus(); } ; RadComboBox.prototype.Ik= function (eventArgs){if (eventArgs.stopPropagation){eventArgs.stopPropagation(); }else {eventArgs.cancelBubble= true; }} ; RadComboBox.prototype.Ic= function (eventArgs){if (eventArgs.preventDefault){eventArgs.preventDefault(); }else {eventArgs.returnValue= false; }} ; RadComboBox.prototype.l8= function (ll,a,b,il){if (!ll)return true; RadComboBoxGlobalFirstParam=a; RadComboBoxGlobalSecondParam=b; RadComboBoxGlobalThirdParam=il; var s=ll; s=s+"\050RadCom\x62\x6fBox\x47\x6coba\x6cFirstP\x61\x72am"; s=s+"\x2cRadComboBo\x78\x47lob\x61\x6cSe\x63\x6fndP\x61\x72am"; s=s+",RadCombo\x42\x6fxGlo\x62\x61lThi\x72\144Pa\x72\141m"; s=s+"\x29;"; return eval(s); } ; RadComboBox.prototype.HandleEvent= function (eventName,eventArgs){var lb; var srcElement=(document.all)?eventArgs.srcElement:eventArgs.target; var item=this.Oa(srcElement); if (item!=null){lb=this.ob(item); }if (!this.Enabled){return; }switch (eventName){case "\x73howdropd\x6f\167n": this.Ik(eventArgs); this.ShowDropDown(); break; case "hidedro\x70\x64own": this.Ik(eventArgs); this.HideDropDown(); break; case "toggl\x65\x64ropdo\x77\x6e": this.Ik(eventArgs); this.ToggleDropDown(); break; case "mouseover":if (lb!=null)this.Ob(lb); break; case "\x6douseout":if (lb!=null)this.ib(lb); break; case "\153e\x79\x70ress": this.ic(this,eventArgs); break; case "keydown": this.Oe(eventArgs); break; case "click": this.HandleClick(eventArgs); break; case "input\x63\x6cick": this.Ik(eventArgs); document.getElementById(this.InputID).select(); this.ShowDropDown(); break; case "in\x70\x75timageo\x75\x74": this.ij(); break; case "\x69nputim\x61\x67ehove\x72": this.ok(); break; case "\x6doreresults\x69\x6dagec\x6c\x69ck": this.Ik(eventArgs); this.ik(); break; case "\x6d\x6freresu\x6c\x74sima\x67\x65hov\x65\162": this.lk(); break; case "\x6doreresult\x73\x69mage\x6f\x75t": this.Ok(); break; }} ; RadComboBox.prototype.Enable= function (){document.getElementById(this.InputID).disabled= false; this.Enabled= true; } ; RadComboBox.prototype.Disable= function (){document.getElementById(this.InputID).disabled="disa\x62\x6ced"; this.Enabled= false; this.L.value=this.GetText(); } ; RadComboBox.prototype.O0= function (Il){if (window.opera)return; if (document.compatMode && document.compatMode=="CSS1Com\x70\x61t"){var computedStyle=null; if (Il.currentStyle){computedStyle=Il.currentStyle; }else if (document.defaultView && document.defaultView.getComputedStyle){computedStyle=document.defaultView.getComputedStyle(Il,null); }else {return; }var height=parseInt(computedStyle.height); var width=parseInt(computedStyle.width); 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 (!isNaN(height)){Il.style.height=height-paddingTop-paddingBottom-borderTop-borderBottom+"px"; }if (!isNaN(width)){Il.style.width=width-paddingLeft-paddingRight-borderLeft-borderRight+"px"; }}} ; function rcbDispatcher(S,eventName,eventArgs){var comboInstance=null; try {comboInstance=window[S]; }catch (e){}if (typeof(comboInstance)=="\x75\x6e\x64efine\x64" || comboInstance==null){return; }if (typeof(comboInstance.HandleEvent)!="\x75ndefined"){comboInstance.HandleEvent(eventName,eventArgs); }} ; function rcbAppendStyleSheet(o,I){var om=(navigator.appName=="Microsoft \x49\x6etern\x65\x74 E\x78\x70lor\x65\162") && ((navigator.userAgent.toLowerCase().indexOf("\x6dac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("\x6d\x61c")!=-1)); var O7=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1); if (om || O7){document.write("<"+"\x6cink"+"\x20rel=\047\x73ty\x6c\x65she\x65t\047\x20\164y\x70\x65=\047\x74\x65xt/cs\x73\047 \x68ref=\047"+I+"\047\x3e"); }else {var A=document.createElement("LINK"); A.rel="stylesheet"; A.type="te\x78\x74/css"; A.href=I; document.getElementById(o+"\x53\x74yleSheet\x48older").appendChild(A); }} ;
