var RadSpellNamespace=new Object(); RadSpellNamespace.l1= function (){var i1=navigator.userAgent.toLowerCase(); I1=i1.indexOf("m\x73\x69\x65"); if (I1==-1){return true; } ++I1; var o2=/\x6d\x73\x69\x65\x20(\d+\x2e\d+)/; var O2=o2.exec(i1); if (O2.length<2){return true; }var l2=parseFloat(O2[1]); return l2<.55e1; } ; RadSpellNamespace.i2= function (I2,o3,dialogWidth,dialogHeight,O3,l3){try {if (RadSpellNamespace.l1()){l3= true; }var i3=new RadWindowInfo(); i3.Url=o3; i3.Width=dialogWidth; i3.Height=dialogHeight; i3.Caption=I2; i3.IsVisible= true; i3.Argument=O3; i3.Param=null; i3.CallbackFunc=null; i3.OnLoadFunc=null; i3.Resizable= false; i3.Movable= true; i3.UseClassicDialogs=l3; i3.BlankIFrameLocation="b\x6cank.htm"; var radWindow=GetRadWindowManager().ShowModalWindow(i3); }catch (I3){alert("Could \x6eot open\x20window\x3a "+I3.description); } ; } ; function RadSpell(){ this.window=window; } ; RadSpell.getSpellChecker= function (o4){var O4=document.getElementById(o4); if (O4!=null)return O4.l4; else return null; } ; RadSpell.prototype.setTextSource= function (source){ this.source=source; };RadSpell.prototype.spellChecked= function (){var i4=this.I4(); if (i4!=null){return i4.value.toLowerCase()=="true"; }return false; };RadSpell.prototype.setSpellChecked= function (r){var i4=this.I4(); if (i4!=null){i4.value=r.toString(); }};RadSpell.prototype.o5= function (){if (this.source==null){try { this.source=this.O5(); }catch (I3){alert("r.\x61.d.spe\x6cl: Erro\x72 gett\x69ng t\x65xt so\x75rce:\x0a"+I3.message); }}return this.source; };RadSpell.prototype.startSpellCheck= function (){ this.setSpellChecked( false); this.l5(); var url=this.i5+this.I5+"D\x69alogs/S\x70ellChec\x6b.aspx?\x73pellI\x44\075"+this.o6+"&DialogsS\x63heme="+this.dialogsScheme+"\x26Language\x3d"+this.language+"\x26pageID\x3d"+this.O6+"\x26useSe\x73\x73io\x6e\075"+this.l6+"&Ra\x64SessionDa\x74a="+this.i6+"&RadContr\x6flsDir="+this.i5; if (this.o5()==null){alert("r.a.d\x2espell: \x43ould n\x6f\164\x20find\x20\164\x61rget \x74e\x78t s\x6furce\x3a "+this.targetControlId); return; }if (this.I6!=null){var o7=document.getElementById(this.I6); if (o7!=null){ this.dictionaryLanguage=o7.value; } ; } ; if (this.dictionaryLanguage!=null){url+="\x26Dic\x74\x69on\x61\162\x79Langua\x67e="+this.dictionaryLanguage; } ; RadSpellNamespace.i2("",url,470,360,this,this.useClassicDialogs); } ; RadSpell.prototype.O7= function (l7){var i7="\x72adEdito\x72\x43on\x74ainer"+l7; var container=document.getElementById(i7); if (container!=null){var I7=this ; I7.O5= function (){return new HtmlElementTextSource(document.getElementById(i7)); } ; container.spellCheck= function (){I7.dictionaryLanguage=container.getAttribute("de\x66au\x6c\x74La\x6e\147"); I7.startSpellCheck(); } ; }else {alert("r.a\x2ed.spell c\x61nnot n\x6ft find\x20the r\x2ea.d.e\x64\151\x74or \x63onta\x69ner:\x20"+i7+"\x0aRem\x6f\x76e \x74\150\x65\040\x52adSpe\x6c\154\x20contr\x6fl fro\x6d the\x20form\x20if y\x6fu a\x72e us\x69ng \x72.a.\x64.ed\151\x74o\x72 5.\x78 o\x72 l\x61te\x72."); }} ; RadSpell.prototype.attachEvent= function (o8,O8){var l8=this.i8(O8); var I8= function (o9,O3){l8(o9,O3); };this[o8+"\x48\x61\x6edle\x72"]=I8; } ; RadSpell.prototype.i8= function (O9){var I8= function (o9,O3){} ; if (typeof(O9).toString().toLowerCase()=="\x66un\x63\x74ion"){I8=O9; }else if (typeof(O9).toString().toLowerCase()=="\x73tri\x6e\x67"){try {I8=eval(O9);}catch (I3){}}return I8; };RadSpell.prototype.l5= function (){if (this.CheckStartedHandler!=null){var I8=this.CheckStartedHandler; I8(this, {} ); }};RadSpell.prototype.l9= function (){if (this.CheckFinishedHandler!=null){var I8=this.CheckFinishedHandler; I8(this, {} ); }};RadSpell.prototype.i9= function (){if (this.CheckCancelledHandler!=null){var I8=this.CheckCancelledHandler; I8(this, {} ); }};RadSpell.prototype.I9= function (){if (this.DialogClosingHandler!=null){var I8=this.DialogClosingHandler; I8(this, {} ); }};RadSpell.prototype.oa= function (Oa,la,ia,changeAll){if (this.WordCorrectedHandler!=null){var I8=this.WordCorrectedHandler; I8(this, { "\x6frigina\x6c\x57or\x64":Oa,"newWo\x72d":la,"\x6ff\x66\x73ets":ia,"\x63h\x61\x6egeAl\x6c":changeAll } ); }};RadSpell.prototype.Ia= function (Oa,la,ia,ob){if (this.ChangeUndoneHandler!=null){var I8=this.ChangeUndoneHandler; I8(this, { "ori\x67ina\x6c\x57o\x72\x64":Oa,"ne\x77Word":la,"\x6fffse\x74\x73":ia,"\x75ndoAll":ob } ); }};RadSpell.prototype.Ob= function (ignoreWord,ia,ob){if (this.IgnoreUndoneHandler!=null){var I8=this.IgnoreUndoneHandler; I8(this, { "igno\x72eWord":ignoreWord,"offsets":ia,"undoA\x6cl":ob } ); }};RadSpell.prototype.lb= function (ignoreWord,ib,ignoreAll){if (this.WordIgnoredHandler!=null){var I8=this.WordIgnoredHandler; I8(this, { "i\x67noreWor\x64":ignoreWord,"offse\x74s":ib,"ignoreAl\x6c":ignoreAll } ); }};RadSpell.prototype.Ib= function (oc){if (this.CustomWordAddedHandler!=null){var I8=this.CustomWordAddedHandler; I8(this, { "customWor\x64":oc } ); }};function HtmlElementTextSource(o){if (o==null){alert("C\x6fuld not f\x69nd targ\x65t HTM\x4c elem\x65nt.  \x50lease\x20ve\x72ify\x20that\x20Cont\x72olT\x6fChec\x6b po\x69nts\x20to \x61\x20v\x61lid\x20co\x6etro\x6c."); this.o= {value: "" } ; }else if (o.nodeName=="\111\x46RAME"){var frame=new D(o,document); this.o=frame.C().body; }else { this.o=o; } ; }HtmlElementTextSource.Oc= function (text){var lc=text.replace(/\x0a/gi,"\x3c\x74\x65leri\x6bcr />"); lc=lc.replace(/\x0d/gi,"<tele\x72iklf />"); return lc; } ; HtmlElementTextSource.ic= function (text){var lc=text.replace(/\x3c\x74\x65\x6c\x65\x72\x69\x6b\x63\x72\s*\x2f\x3e/gi,"\x0a"); var lc=lc.replace(/\x3c\x74\x65\x6c\x65\x72\x69\x6b\x6c\x66\s*\x2f\x3e/gi,"\015"); return lc; } ; HtmlElementTextSource.Ic= function (od){var Od=new Array("&\x65\x75ro;","&cent;","\x26p\x6f\x75nd;","&y\x65n;","&curren;","\x26copy;","\x26reg;","\x26tr\x61\x64e;","&plusmn;","\046\x6ee;","&asymp;","\x26le;","\x26g\x65\x3b","&divide\x3b","\x26ti\x6d\x65s;","&infin;","&frac12;","\x26f\x72\x61c14\x3b","&\x66rac34;","&sup\x32;","\x26sup3;","\x26p\x65\x72mil;","&\x70ara;","\x26sect;","\046\x61lpha;","\x26be\x74\x61;","&Delta\x3b","\x26micr\x6f\x3b","\x26Ome\x67\x61;","&sum;","&Oslas\x68;","\046\x61ng;","\x26ordm;","\x26laquo;","&\x72aquo;","\x26middot\x3b","\x26bull;","\046\x64\141gg\x65r;","\x26Dagg\x65\x72;","&fnof;"); var ld=new Array("\342\202\xac","\302\xa2","\xc2\243","\xc2\245","\xc2\244","\xc2\251","\302\xae","\xe2\204\xa2","\302\xb1","\342\x89\240","\xe2\211\x88","\342\x89\244","\xe2\211\xa5","\xc3\267","\303\x97","\xe2\210\x9e","\302\xbd","\xc2\274","\302\xbe","\xc2\262","\xc2\263","\xe2\200\xb0","\302\xb6","\302\xa7","\xce\261","\316\xb2","\xce\224","\xc2\265","\xce\251","\xe2\210\x91","\xc3\230","\342\x88\240","\302\xba","\xc2\253","\302\xbb","\302\xb7","\xe2\200\xa2","\342\x80\240","\342\x80\241","\xc6\222"); for (var i=0; i<Od.length; i++){od=od.replace(new RegExp(ld[i]),Od[i],"\151\x67"); } ; return od; } ; HtmlElementTextSource.prototype.transformFromOriginal= function (text){return HtmlElementTextSource.Oc(HtmlElementTextSource.Ic(text)); };HtmlElementTextSource.prototype.transformToOriginal= function (text){return HtmlElementTextSource.ic(text); };HtmlElementTextSource.prototype.getText= function (){var text=""; if (this.o.value!=null){try {text=this.o.value; }catch (oe){alert("\105\x72r\x6f\x72 \x67\145t\x74ing \x74ext fr\x6fm con\x74rol.\x0a"+oe.message); } ; }else if (this.o.innerHTML!=null){try {text=this.o.innerHTML; }catch (oe){alert("\x45rror\x20\x67e\x74\x74in\x67 HTML \x66rom t\x68\145\x20cont\x72ol.\x0a"+oe.message); } ; }else {alert("\116\x6f value o\x72 innerH\x54ML att\x72ibute.\x20 Can\x6e\157\x74 acc\x65ss t\x65xt."); } ; return this.transformFromOriginal(text); };HtmlElementTextSource.prototype.setText= function (text){if (this.o.value!=null){ this.o.value=this.transformToOriginal(text); }else if (this.o.innerHTML!=null){ this.o.innerHTML=this.transformToOriginal(text); }else {alert("\116\x6f value o\x72 inner\x48\124\x4dL attr\x69bute.\x20\040\x43an\x6eot ac\x63ess \x74ext."); } ; };
