﻿function GetRadSpell(o){return window[o]; } ; if (typeof(RadSpellNamespace)=="\x75\156d\x65\x66ined")RadSpellNamespace= {} ; RadSpellNamespace.RadSpell= function (t){ this.Id=t[0]; this.OnClientCheckStarted=t[1]; this.OnClientCheckFinished=t[2]; this.OnClientWordCorrected=t[3]; this.OnClientWordIgnored=t[4]; this.o3=t[5]; this.OnClientCheckCancelled=t[6]; this.OnClientDialogClosing=t[7]; this.OnClientCustomWordAdded=t[8]; this.ControlToCheck=t[9]; this.DictionaryLanguage=null; this.O3=t[10]; this.l3=t[11]; RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.LanguagesDropdown=document.getElementById(this.Id+RadSpellNamespace.RadSpell.LanguagesDropdownID); this.SpellCheckButton=document.getElementById(this.Id+RadSpellNamespace.RadSpell.SpellCheckButtonID); if (this.SpellCheckButton){ this.AttachDomEvent(this.SpellCheckButton,"c\x6c\151c\x6b","\x53tartSpell\x43\x68eck"); if (this.SpellCheckButton.tagName!="\151np\x75\x74"){ this.AttachDomEvent(this.SpellCheckButton,"\x6beypre\x73\x73","\x53tartSp\x65\x6clChec\x6b"); }} this.i3= false; this.AttachEvent("\x4f\x6eClient\x43\x68eckF\x69\x6ei\x73\150e\x64", function (I3,o4){ this.i3= true; } ); this.AttachEvent("OnClientChe\x63\x6bStar\x74\x65d", function (I3,o4){ this.i3= false; } ); };RadSpellNamespace.RadSpell.LanguagesDropdownID="_La\x6e\x67uage"; RadSpellNamespace.RadSpell.SpellCheckButtonID="_SpellChe\x63\x6b"; RadSpellNamespace.RadSpell.DialogOpenerID="_\x44\x69alogOpe\x6e\x65r"; RadSpellNamespace.RadSpell.O4="\x5fSpellC\x68\x65cked"; RadSpellNamespace.RadSpell.prototype= {StartSpellCheck:function (){var source=this.GetTextSource(); if (source!=null){ this.SpellCheck(source); }else {alert("Cannot fin\x64\x20a T\x65\x78tSo\x75\162c\x65\056\x20\120l\x65\x61\x73e, se\x74\040t\x68e Con\x74rolTo\x43\150e\x63k se\x72ver-\x73ide\x20pro\x70erty\x2c or \x75se t\x68e S\x65tTex\x74Sou\x72ce(\x29 cl\x69ent\x2dsi\x64e m\x65tho\x64."); }} ,SpellCheck:function (l4){if (this.RaiseEvent("O\x6e\103l\x69\x65ntChe\x63\x6bSt\x61\x72te\x64", {} )== false)return; var i4= {DictionaryLanguage: this.GetSelectedLanguage(),TextSource:l4,RadSpell: this } ; this.GetDialogOpener().Open("SpellC\x68\x65ckDi\x61\x6cog",i4); } ,GetSelectedLanguage:function (){if (this.DictionaryLanguage){return this.DictionaryLanguage; }if (!this.LanguagesDropdown){return null; }var I4=this.LanguagesDropdown.options[this.LanguagesDropdown.selectedIndex]; return I4!=null?I4.value:null; } ,GetTextSource:function (){if (this.o5==null){if (this.ControlToCheck){var O5=document.getElementById(this.ControlToCheck); this.SetTextSource(new HtmlElementTextSource(O5)); }else if (this.l3){ this.SetTextSource(eval(this.l3)); }}return this.o5; } ,IsSpellChecked:function (){return this.i3; } ,SetSpellChecked:function (l5){document.getElementById(this.Id+RadSpellNamespace.RadSpell.O4).value="t\x72ue"; this.i3=l5; } ,SetTextSource:function (source){ this.o5=source; } ,GetDialogOpener:function (){return window[this.Id+RadSpellNamespace.RadSpell.DialogOpenerID]; }};

if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();