/* GZIPPED d5d2413e2e9e4561e2979ba596d04d58 */ var spell_formname,spell_fieldname;function spellCheck(formName,fieldName) {var spellform=document.forms.spell_form;spell_formname=formName;spell_fieldname=fieldName;var regexpWordMatch=/(?:<[^>]+>)|(?:\[[^ ][^\]]*\])|(?:&[^; ]+;)|(?:[^0-9\s\]\[{};:"\\|,<.>\/?`~!@#$%^&*()_+=]+)/g;var aWordCharacters=['-','\''];var aWords=new Array(),aResult=new Array();var sText=document.forms[formName][fieldName].value;var bInCode=false;var iOffset1,iOffset2;while((aResult=regexpWordMatch.exec(sText))&&typeof(aResult)!='undefined') {iOffset1=0;iOffset2=aResult[0].length-1;while(in_array(aResult[0].charAt(iOffset1),aWordCharacters)&&iOffset1'+misps[wordindex].word+''+htmlspecialchars(strend);setInnerHTML(divptr,newValue.replace(/_\|_/g,'
'));var spellview_height=typeof(document.getElementById("spellview").currentStyle)!="undefined"?parseInt(document.getElementById("spellview").currentStyle.height):document.getElementById("spellview").offsetHeight;var word_position=document.getElementById("h1").offsetTop;var current_position=document.getElementById("spellview").scrollTop;if(spellview_height<=(word_position+current_position)) document.getElementById("spellview").scrollTop=word_position+current_position-spellview_height+32;} function nextWord(ignoreall) {if(ignoreall) ignoredWords[misps[wordindex].word]=true;if(wordindex>=0) {misps[wordindex].start+=offsetindex;misps[wordindex].end+=offsetindex;} wordindex++;if(misps.length<=wordindex) {var divptr;divptr=document.getElementById("spellview");setInnerHTML(divptr,htmlspecialchars(mispstr).replace(/_\|_/g,"
"));while(document.forms.spellingForm.suggestions.options.length>0) document.forms.spellingForm.suggestions.options[0]=null;alert(txt['done']);document.forms.spellingForm.change.disabled=true;document.forms.spellingForm.changeall.disabled=true;document.forms.spellingForm.ignore.disabled=true;document.forms.spellingForm.ignoreall.disabled=true;mispstr=mispstr.replace(/_\|_/g,"\n");window.opener.document.forms[spell_formname][spell_fieldname].value=mispstr;if(!window.opener.spellCheckDone) window.opener.document.forms[spell_formname][spell_fieldname].focus();else window.opener.spellCheckDone();window.close();return true;} if(typeof(ignoredWords[misps[wordindex].word])!="undefined") {nextWord(false);return false;} while(document.forms.spellingForm.suggestions.options.length>0) document.forms.spellingForm.suggestions.options[0]=null;if(misps[wordindex].suggestions.length) {for(var sugidx=0;sugidx/g,">");thetext=thetext.replace(/\n/g,"
");thetext=thetext.replace(/\ \ /g,"  ");return thetext;} function openSpellWin(width,height) {window.open("","spellWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+width+",height="+height);}