﻿/*--Keyoti js--*/
//Version 1.4 (RapidSpell Web assembly version 3.4.0 onwards)
//Copyright Keyoti Inc. 2005-2007
//This code is not to be modified, copied or used without a license in any form.

var rsS12=new Array("",
"rswinline",
"INACTIVE",
"RS_ContextMenuTable",
"RS_CMItemSeparator",
"RS_ContextMenuItem",
"RS_ContextMenuItem_AllSubItem",
"RS_ContextMenuItem_Disabled",
"oldBrowserBox",
"DIV",
"_D",
"class",
"style",
"display:none;width:1px; height:1px;position:absolute;",
"body",
"none",
"pwHtmlBox",
"div",
"__RSFIX",
"absolute",
"BackCompat",
"Gecko",
"px",
"scroll",
"textarea",
"paddingLeft",
"paddingRight",
"borderLeftWidth",
"borderRightWidth",
"paddingTop",
"paddingBottom",
"borderTopWidth",
"borderBottomWidth",
"zIndex",
"position",
"left",
"right",
"top",
"display",
"overflow",
"bottom",
"width",
"height",
"scrollbar",
"border",
"css",
"get",
"set",
"Moz",
"whiteSpace",
"word",
"text",
"remove",
"item",
"margin",
"clip",
"visibility",
"line",
"table",
"max",
"min",
"undefined",
"visible",
"backgroundColor",
"transparent",
"tEl.style.",
"=v",
"text/xml",
"Msxml2.XMLHTTP",
"Microsoft.XMLHTTP",
"POST",
"Content-Type",
"text/xml; charset=UTF-8",
"application/xml",
"<",
">",
"</",
"<input type=hidden name=",
" value='",
"'>",
"function",
"IgnoreXML",
"false",
"<form accept-charset='UTF-8' action='",
"' method='post'>",
"<input type='hidden' name='textToCheck' value=''><input type='hidden' name='IAW' value=''>",
"</form>",
"|",
"<r><resp>xml</resp><textToCheck>",
"</textToCheck><IAW>",
"</IAW>",
"</r>",
"Sorry, a textbox with ID=",
" couldn't be found - please check the TextComponentID or TextComponentName property.",
"_IF",
"Textbox with ID=",
" could not be found, please check the TextComponentID property in the control.",
"No suggestions",
"Ignore All",
"All",
"Add",
"Edit...",
"Remove duplicate word",
"Checking...",
"Resume Editing",
"Check Spelling",
"No Spelling Errors In Text.",
"Sorry the server has failed to respond to the spell check request. Please check the URL set in the RapidSpellWebInlinePage property in the RapidSpellWebInline ctrl.",
"regTB",
"rich",
"true",
"True",
"ACTIVE",
"spellcheckfinish",
"(true,-1)",
"EDITING",
"()",
"TRANSITION-CHECKING",
"block",
"overlay",
"CHECKING",
"(true,numberOfErrors)",
"id='resultContent'>",
"</div>",
"id='numberOfErrors'>",
"The page holding the RapidSpellWInlineHelper control couldn't be found, please check the URL in the RapidSpellWInlineHelperPage property, it should be set to the URL of the page holding RapidSpellWInlineHelperPage.",
"The page holding the RapidSpellWInlineHelper control returned a 500 server error - which means the page has an error, please visit the URL specified in the RapidSpellWInlineHelperPage to debug this page. (HINT: Most likely, you need to add validateRequest='false' to the Page directive if you are spell checking HTML content.)",
"There was a problem with the request, please check the URL set in the RapidSpellWInlineHelperPage property. Http Error Code: ",
"There was a problem with the request. Http Error Code: ",
"<fo",
"rm accept-charset='UTF-8' action='",
"<input type='hidden' name='action' value='add'>",
"UserDictionaryFile",
"<r><action>add</action><w>",
"</w><UserDictionaryFile>",
"</UserDictionaryFile></r>",
"id='errorContent'>",
"tbs.",
"=",
"MSIE",
"setTimeout( function() { rsw_onFinish(",
", ",
");}, 100 ); ",
"boolean",
"LINK",
"text/css",
"href",
"rel",
"stylesheet",
"head",
"rs_err_hl",
"className",
"onmouseup",
"correction",
"#edit",
"br",
"\r\n",
"input",
"p",
"&",
"&amp;",
"&lt;",
"&gt;",
"span",
"keypress",
"keydown",
"keyup",
"mousedown",
"mouseup",
"focus",
"blur",
"\n",
"\r",
"<P style='margin:0px;'>",
"</P>",
"<br>",
" ",
"&nbsp;",
"<nobr>",
"</nobr>",
"character",
"contextmenu",
"paste",
"setTimeout( function() { rsw_getTBSFromID('",
"').initialize(",
");}, ",
" ); ",
"contentEditable",
"g",
"firefox/1.0",
"firefox",
"[",
"]",
"UIEvents",
"change",
");}, 50 ); ",
"setTimeout( function() {try{ document.getElementById('",
"').contentDocument.designMode = 'on';} catch (exc){} }, 100 ); ",
"click",
"number",
"td",
"value",
"inlineTB",
"doubleclick",
"\t",
"<span class='tab'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>",
"#text",
"/",
"Opera 5",
"Opera/5",
"^apos^",
"'",
"^qt^",
"#",
"changeall",
"subitem",
"remove duplicate",
"no_suggestions",
"-",
"edit",
"ignore_all",
"add",
"RS_CM_DIV",
"RS_CM_IF",
"msie",
"hidden",
"<tr><td width='100%' ",
"colspan='1'",
"colspan='2'",
"</td>",
"<td>",
"</tr>",
"</table>",
"standard",
"', '",
"</span>",
"_Over",
"out",
"oncontextmenu",
"try{event.cancelBubble=true;event.preventDefault();}catch(e){}return false;",
"IFRAME",
"src",
"javascript: false;",
"scrolling",
"no",
"frameborder",
"0",
"position:absolute; top:0px; left:0px; display:none;",
"ayt_finished_initializing",
"TEXTAREA",
"INPUT",
" NODEid=",
" EDITABLE id=",
"designMode",
"on",
" -- has contentWindow.document ",
"*",
"rsw__init(true)");																																				var rs_s2=window;var rs_s3=document; var rsw_inline_script_loaded = true; var rsw_rs_styleURL = rsS12[0];var rsw_rs_menu_styleURL = rsS12[0]; var rsw_config = new Array();
																																						 var rsw_tbs = new Array(); var rsw_scs = new Array(); var rsw_aux_oninit_handlers = new Array(); var rsw_activeTextbox; var rsw_previouslyActiveTextbox; var rsw_ASPNETAJAX_OnHandlersAdded = false;
																																						 var rsw_contextMenu = null ; var rsw_lastRightClickedError; var rsw_comIF = rs_s2.frames[rsS12[1]]; var rsw_inProcessTB; var rsw_inProcessSC; var rsw_spellBoot=rsS12[0];
																																						 var rsw_channel_state = rsS12[2];var rsw_channel_timeout; var RS_ContextMenuTable_Class = rsS12[3]; var RS_CMItemSeparator_Class = rsS12[4]; var RS_ContextMenuItem_Class = rsS12[5];
																																						 var RS_ContextMenuItem_AllSubItem_Class = rsS12[6]; var RS_ContextMenuItem_Disabled_Class = rsS12[7]; var rsw_inProcessTBResetCaret = true; var rsw_id_waitingToInitialize = null;
																																						 var rsw_overlayCSSClassName=rsS12[8]; var rsw_MenuOnRightClick = false; function rsw_addTBConfig(config){ var found = false; for(var i=0; rsw_config!=null && i<rsw_config.length;
																																						 i++){ if(rsw_config[i].values[0] == config.values[0]){ found = true; rsw_config[i] = config; } } if(!found) rsw_config[rsw_config.length] = config; } function rsw_getTBSFromID(id, copyStyle){ for(var i=0;
																																						 i<rsw_tbs.length; i++){ if(rsw_tbs[i].shadowTBID==id){ return rsw_tbs[i]; } } rsw_tbs[rsw_tbs.length] = _createTBSForPlainTB(id, copyStyle); return rsw_tbs[rsw_tbs.length-1];
																																						 } function rsw_createBackUpPlainTBS(id){ var divElement = rs_s3.createElement(rsS12[9]); divElement.id = id+rsS12[10]; divElement.setAttribute(rsS12[11], rsw_overlayCSSClassName);
																																						 divElement.setAttribute(rsS12[12], rsS12[13]); rs_s3.getElementsByTagName(rsS12[14])[0].appendChild(divElement); var myIFrame = rs_s3.getElementById(id+rsS12[10]);
																																						 myIFrame.style.display = rsS12[15]; myIFrame.className = rsw_overlayCSSClassName; return myIFrame; } function _createTBSForPlainTB(id, copyStyle){ var myIFrame = rs_s3.getElementById(id+rsS12[10]);
																																						 if(myIFrame ==null) myIFrame = rsw_createBackUpPlainTBS(id); var ptb = new OldIETB(myIFrame); var theTB = rs_s3.getElementById(id); try{ if(theTB.name==rsS12[16] && theTB.parentNode.tagName.toLowerCase()==rsS12[17]){ theTB = theTB.parentNode;
																																						 theTB.id = id+rsS12[18]; } }catch (excep){} myIFrame.style.position = rsS12[19]; rsw_updatePosition(myIFrame, theTB); myIFrame.style.backgroundColor = theTB.style.backgroundColor;
																																						 if(theTB.style.fontFamily) myIFrame.style.fontFamily = theTB.style.fontFamily; if(theTB.style.fontSize) myIFrame.style.fontSize = theTB.style.fontSize; ptb.initialize();
																																						 if(copyStyle) rsw_copyComputedStyle(myIFrame, theTB); var tbWidth = rsw_getElementWidth(theTB.id); if((rs_s3.compatMode && rs_s3.compatMode!=rsS12[20]) || navigator.userAgent.indexOf(rsS12[21])>-1) tbWidth = rsw_adjustOffsetWidthForStrict(myIFrame, tbWidth);
																																						 myIFrame.style.width = tbWidth+rsS12[22]; var tbHeight = rsw_getElementHeight(theTB.id); if((rs_s3.compatMode && rs_s3.compatMode!=rsS12[20]) || navigator.userAgent.indexOf(rsS12[21])>-1) tbHeight = rsw_adjustOffsetHeightForStrict(myIFrame, tbHeight);
																																						 if(tbHeight < 26){ tbHeight = 50; myIFrame.style.overflowX=rsS12[23]; } if(theTB.tagName.toLowerCase()!=rsS12[24]) ptb.multiline = false; myIFrame.style.height = tbHeight+rsS12[22];
																																						 return ptb; } function rsw_updatePosition(targetElement, sourceElement){ targetElement.style.left = rsw_findPosX(sourceElement)+rsS12[22]; targetElement.style.top = rsw_findPosY(sourceElement)+rsS12[22];
																																						 } function rsw_adjustOffsetWidthForStrict(el, width){ try{ var tpLeft = rsw_getStyleProperty(el, rsS12[25]); var tpRight = rsw_getStyleProperty(el, rsS12[26]); var pX = parseInt(tpLeft.substring(0, tpLeft.length-2)) + parseInt(tpRight.substring(0, tpRight.length-2));
																																						 var tbLeft = rsw_getStyleProperty(el, rsS12[27]); var tbRight = rsw_getStyleProperty(el, rsS12[28]); var bX = parseInt(tbLeft.substring(0, tbLeft.length-2)) + parseInt(tbRight.substring(0, tbRight.length-2));
																																						 if(isNaN(pX) || isNaN(bX))return width; else return width - pX - bX; } catch (e){ return width; } } function rsw_adjustOffsetHeightForStrict(el, height){ try{ var tpTop = rsw_getStyleProperty(el, rsS12[29]);
																																						 var tpBottom = rsw_getStyleProperty(el, rsS12[30]); var pY = parseInt(tpTop.substring(0, tpTop.length-2)) + parseInt(tpBottom.substring(0, tpBottom.length-2)); var tbTop = rsw_getStyleProperty(el, rsS12[31]);
																																						 var tbBottom = rsw_getStyleProperty(el, rsS12[32]); var bY = parseInt(tbTop.substring(0, tbTop.length-2)) + parseInt(tbBottom.substring(0, tbBottom.length-2)); if(isNaN(pY) || isNaN(bY) )return height;
																																						 else return height - pY - bY; } catch (e){ return height; } } function rsw_getStyleProperty(obj, IEStyleProp) { if (obj.currentStyle) { return obj.currentStyle[IEStyleProp];
																																						 }else if (rs_s3.defaultView.getComputedStyle) { return rs_s3.defaultView.getComputedStyle(obj, null)[IEStyleProp]; }else{ return null; } } function rsw_copyComputedStyle(tEl, sEl){ var col;
																																						 if (sEl.currentStyle) col = sEl.currentStyle; else if (rs_s3.defaultView && rs_s3.defaultView.getComputedStyle) col = rs_s3.defaultView.getComputedStyle(sEl, null);
																																						 else return; for(sp in col) try{ if(sp!=rsS12[33]&&sp!=rsS12[34]&&sp!=rsS12[35]&&sp!=rsS12[36]&&sp!=rsS12[37]&&sp!=rsS12[38]&&sp!=rsS12[39] && sp!=rsS12[40]&& sp!=rsS12[41]&& sp!=rsS12[42]&& sp.indexOf(rsS12[43])==-1&& sp.indexOf(rsS12[44])==-1 && sp.indexOf(rsS12[45])==-1 && sp.indexOf(rsS12[11])==-1 && sp.indexOf(rsS12[46])==-1 && sp.indexOf(rsS12[47])==-1 && sp.indexOf(rsS12[48])==-1 && sp.indexOf(rsS12[49])==-1&& sp.indexOf(rsS12[50])==-1 && sp.indexOf(rsS12[51])==-1&& sp.indexOf(rsS12[52])==-1&& sp.indexOf(rsS12[53])==-1 && sp.indexOf(rsS12[54])==-1 && sp.indexOf(rsS12[55])==-1&& sp.indexOf(rsS12[56])==-1 && sp.indexOf(rsS12[57])==-1&& sp.indexOf(rsS12[58])==-1 && sp.indexOf(rsS12[59])==-1&& sp.indexOf(rsS12[60])==-1 ){ var v = rsw_getStyleProperty(sEl, sp);
																																						 if(typeof(v)!=rsS12[61] && v!=rsS12[0] && (sp.indexOf(rsS12[39])==-1 || v!=rsS12[62]) && (sp.indexOf(rsS12[63])==-1 || v!=rsS12[64]) ){eval(rsS12[65]+sp+rsS12[66]);
																																						 } } } catch (ex){ } } var rsw_http_request = false; function rsw_createRequest() { rsw_http_request = false; if (rs_s2.XMLHttpRequest) { rsw_http_request = new XMLHttpRequest();
																																						 if (rsw_http_request.overrideMimeType) { rsw_http_request.overrideMimeType(rsS12[67]); } } else if (rs_s2.ActiveXObject) { try { rsw_http_request = new ActiveXObject(rsS12[68]);
																																						 } catch (e) { try { rsw_http_request = new ActiveXObject(rsS12[69]); } catch (e) {} } } return rsw_http_request; } function rsw_sendRequest(req, url, paramXML, callBack, synchronous){ req.onreadystatechange = callBack;
																																						 req.open(rsS12[70], url, !synchronous); req.setRequestHeader(rsS12[71], rsS12[72]); if(typeof (DOMParser) != rsS12[61]){ var domParser = new DOMParser(); var xmlDocument = domParser.parseFromString(paramXML, rsS12[73]);
																																						 req.send(xmlDocument); } else{ req.send(paramXML); } if(synchronous){ } } function RapidSpellCheckerClient(helperPageURL){ this.Check = Check; this.AddWord = AddWord;
																																						 this.userCallback = null; this.result = null; this.generateResult = generateResult; this.textChecked=null; this.OnSpellCheckCallBack = OnSpellCheckCallBack; this.rapidSpellWebPage = helperPageURL;
																																						 this.getSpellBootString = getSpellBootString; this.config; this.useXMLHTTP = true; this.getParameterValue = getParameterValue; this.setParameterValue = setParameterValue;
																																						 function getParameterValue(param){ for(var pp=0; pp<this.config.keys.length; pp++){ if(this.config.keys[pp]==param) return this.config.values[pp]; } } function setParameterValue(param, value){ for(var pp=0;
																																						 pp<this.config.keys.length; pp++){ if(this.config.keys[pp]==param) this.config.values[pp] = value; } } function getSpellBootString(xml){ var res= new String(); if(xml) { for(var pp=0;
																																						 pp<this.config.keys.length; pp++){ var val = rsw_escapeHTML(this.config.values[pp]); res += rsS12[74]+this.config.keys[pp]+rsS12[75]+val+rsS12[76]+this.config.keys[pp]+rsS12[75];
																																						 } } else { for(var pp=0; pp<this.config.keys.length; pp++){ res += rsS12[77]+this.config.keys[pp]+rsS12[78]+this.config.values[pp]+rsS12[79]; } } return res; } function Check(text, asynchronousCallback){ var blocking = true;
																																						 if(typeof(asynchronousCallback) == rsS12[80]){ blocking = false; this.userCallback = asynchronousCallback; } else this.userCallback = null; rsw_inProcessSC = this;
																																						 this.textChecked = text; rsw_spellCheckText(text, true, blocking); if(blocking){ _rsXMLCallBack(); return this.result; } } function AddWord(word){ rsw_inProcessSC = this;
																																						 rsw_serverAdd(word); } function OnSpellCheckCallBack(response, numberOfErrors){ this.result = this.generateResult(response, numberOfErrors); if(this.userCallback != null) this.userCallback(this.result);
																																						 } function unescapeEntities(text){ return rsw_unescapeHTML(text); } function generateResult(response, numberOfErrors){ if(this.getParameterValue(rsS12[81]).toLowerCase()==rsS12[82]) response = unescapeEntities(response);
																																						 var result = new RapidSpellChecker_Result(); result.originalText = this.textChecked; result.numberOfErrors = numberOfErrors; var errorReg = /<span class=[^>]* onmouseup="rsw_showMenu\(([^\]]*\]),this,event\)[^>]*>([^<]*)<\/span>/g; var match; var lengthToDiscard = 0; var wordStart = 0; result.errorPositionArray = new Array(); while((match = errorReg.exec(response) )!= undefined){ var sugs = eval(match[1]); for(var s=0; s<sugs.length; s++){ sugs[s] = rsw_decodeSuggestionItem(sugs[s]); } wordStart = match.index - lengthToDiscard; result.errorPositionArray[result.errorPositionArray.length] = { start: wordStart, end: match[2].length + wordStart, word: match[2], suggestions: sugs}; lengthToDiscard += errorReg.lastIndex - match.index - match[2].length; } return result; } } function RapidSpellChecker_Result(){ this.originalText; this.numberOfErrors; this.errorPositionArray; } function rsw_spellCheck(){ rsw_spellCheckText(rsw_inProcessSC.tbInterface.getText(), rsw_inProcessSC.useXMLHTTP, false); } function rsw_spellCheckText(textToCheck, useXmlHttp, synchronous){ var rsw_useXMLHttpReq = useXmlHttp; var req = false; if(rsw_useXMLHttpReq ) req = rsw_createRequest(); if (!req){ rsw_comIF = rs_s2.frames[rsS12[1]]; rsw_spellBoot=rsS12[83]+rsw_inProcessSC.rapidSpellWebPage+rsS12[84]; rsw_spellBoot+= rsS12[85]; rsw_spellBoot+= rsw_inProcessSC.getSpellBootString(false); rsw_spellBoot+= rsS12[86]; if(rsw_comIF.document.body) rsw_comIF.document.body.innerHTML = rsw_spellBoot; else { rsw_comIF.document.open(); rsw_comIF.document.write(rsw_spellBoot); } rsw_comIF.document.forms[0].textToCheck.value = textToCheck; rsw_comIF.document.forms[0].IAW.value = rsw_ignoreAllWords.join(rsS12[87]); rsw_comIF.document.forms[0].submit(); } else { var paramString = new String(); var text = rsw_escapeHTML(textToCheck); paramString = rsS12[88]+text+rsS12[89]+rsw_ignoreAllWords.join(rsS12[87])+rsS12[90]+rsw_inProcessSC.getSpellBootString(true)+rsS12[91]; rsw_sendRequest(req, rsw_inProcessSC.rapidSpellWebPage, paramString, _rsXMLCallBack, synchronous); } } function RSStandardInterface(tbElementName){ this.tbName = tbElementName; this.getText = getText; this.setText = setText; function getText(){ return rs_s3.getElementById(tbElementName).value; } function setText(text){ rs_s3.getElementById(tbElementName).value = (text); if(rsw_tbs!=null){ for(var i=0; i<rsw_tbs.length; i++){ if(rsw_tbs[i].shadowTB.id==this.tbName){ if(rsw_tbs[i].updateIframe){rsw_tbs[i].updateIframe();rsw_tbs[i].focus();} } } } } } function RSAutomaticInterface(tbElementName){ this.tbName = tbElementName;this.getText = getText;this.setText = setText; this.identifyTarget = identifyTarget; this.target=null; this.targetContainer = null; this.searchedForTarget = false; this.targetIsPlain = true; this.showNoFindError = showNoFindError; this.finder = null; this.findContainer = findContainer; function findContainer(){ this.identifyTarget(); return this.targetContainer; } function showNoFindError(){ alert(rsS12[92]+this.tbName+rsS12[93]); } function identifyTarget(){ if(!this.searchedForTarget){ this.searchedForTarget = true; if(this.finder == null) this.finder = new RSW_EditableElementFinder(); var plain = this.finder.findPlainTargetElement(this.tbName); var richs = this.finder.findRichTargetElements(); if(plain==null && (richs==null || richs.length==0)) showNoFindError(); else{ if(richs==null || richs.length==0){ this.targetIsPlain = true; this.target = plain; this.targetContainer = plain; } else { if(plain==null && richs.length==1){ this.targetIsPlain = false; this.target = this.finder.obtainElementWithInnerHTML(richs[0][0]); this.targetContainer = richs[0][1]; } else { for (var rp = 0; rp < richs.length; rp ++){ if(typeof(richs[rp][1].id)!=rsS12[61] && richs[rp][1].id.indexOf(this.tbName)>-1){ if(plain!=null && richs[rp][1].id == plain.id+rsS12[94]){ this.targetIsPlain = true; this.target = plain; this.targetContainer = plain; break; } else { this.targetIsPlain = false; this.target = this.finder.obtainElementWithInnerHTML(richs[rp][0]); this.targetContainer = richs[rp][1]; break; } } } if(this.target==null){ this.target = plain; this.targetIsPlain = true; this.targetContainer = plain; } } } } } } function getText(){ this.identifyTarget(); if( this.targetIsPlain ) return this.target.value; else return this.target.innerHTML; } function setText(text){ this.identifyTarget(); if( this.targetIsPlain ) this.target.value= text; else this.target.innerHTML = text; if(typeof(rsw_tbs)!=rsS12[61]){ for(var i=0; i<rsw_tbs.length; i++){ if(rsw_tbs[i].shadowTB.id==this.tbName){ if(rsw_tbs[i].updateIframe){rsw_tbs[i].updateIframe();rsw_tbs[i].focus();} } } } } } function SpellChecker(textBoxID){ if(rs_s3.getElementById(textBoxID)==null) alert(rsS12[95]+textBoxID+rsS12[96]); this.state; this.getTBS = getTBS; this.textBoxID = textBoxID; this.rsw_tbs = null; this.OnSpellButtonClicked = OnSpellButtonClicked; this.OnSpellCheckCallBack = OnSpellCheckCallBack; this.finishedListener; this.leaveStaticSpellCheckListener; this.enterStaticSpellCheckListener; this.tbInterface = new RSStandardInterface(textBoxID); this.config; this.getSpellBootString = getSpellBootString; this.buttonID; this.getParameterValue = getParameterValue; this.setParameterValue = setParameterValue; this.showNoSpellingErrorsMesg = true; this.enterEditModeWhenNoErrors = true; this.noSuggestionsText = rsS12[97]; this.ignoreAllText = rsS12[98]; this.showChangeAllItem = false; this.changeAllText = rsS12[99]; this.addText = rsS12[100]; this.editText = rsS12[101]; this.removeDuplicateText = rsS12[102]; this.buttonTextSpellChecking = rsS12[103]; this.buttonTextSpellMode = rsS12[104]; this.buttonText = rsS12[105]; this.noSpellingErrorsText = rsS12[106]; this.changeButtonTextWithState = true; this.showAddMenuItem = true; this.responseTimeout = 20; this.responseTimeoutMessage = rsS12[107]; this.hasRunFieldID; this.OnTextBoxDoubleClicked = OnTextBoxDoubleClicked; this.doubleClickSwitchesMode = true; this.onLeaveEdit = onLeaveEdit; this.onEnterEdit = onEnterEdit; this.useXMLHTTP; this.ignoreXML = false; this.copyComputedStyleToOverlay = true; this.overlayCSSClassName = rsS12[8]; function OnTextBoxDoubleClicked(){ if(this.doubleClickSwitchesMode) this.OnSpellButtonClicked(true); } function getSpellBootString(xml){ var res= new String(); if(xml) { for(var pp=0; pp<this.config.keys.length; pp++){ var val = rsw_escapeHTML(this.config.values[pp]); res += rsS12[74]+this.config.keys[pp]+rsS12[75]+val+rsS12[76]+this.config.keys[pp]+rsS12[75]; } } else { for(var pp=0; pp<this.config.keys.length; pp++){ res += rsS12[77]+this.config.keys[pp]+rsS12[78]+this.config.values[pp]+rsS12[79]; } } return res; } function getParameterValue(param){ for(var pp=0; pp<this.config.keys.length; pp++){ if(this.config.keys[pp]==param) return this.config.values[pp]; } } function setParameterValue(param, value){ for(var pp=0; pp<this.config.keys.length; pp++){ if(this.config.keys[pp]==param) this.config.values[pp] = value; } } function getTBS(){ if(this.rsw_tbs==null){ rsw_overlayCSSClassName = this.overlayCSSClassName; this.rsw_tbs = rsw_getTBSFromID(this.textBoxID, this.copyComputedStyleToOverlay); this.rsw_tbs.spellChecker = this; if(this.rsw_tbs.isStatic){ this.state = rsS12[108]; }else this.state = rsS12[109]; } if(this.rsw_tbs.isStatic){ rsw_updatePosition(this.rsw_tbs.iframe, this.rsw_tbs.shadowTB); this.rsw_tbs.targetIsPlain = !this.ignoreXML; } return this.rsw_tbs; } function OnSpellButtonClicked(calledFromDoubleClick, dontResetCaretPosition){ if(this.hasRunFieldID && rs_s3.getElementById(this.hasRunFieldID)) rs_s3.getElementById(this.hasRunFieldID).value = rsS12[110]; if(typeof(this.tbInterface.findContainer)!=rsS12[61]){ this.textBoxID = this.tbInterface.findContainer().id; if (!this.tbInterface.targetIsPlain){ this.setParameterValue(rsS12[81], rsS12[111]); this.ignoreXML = true; } } rsw_inProcessTB=this.getTBS(); rsw_inProcessSC = this; if(this.state==rsS12[108] || this.state==rsS12[109]){ if(rsw_channel_state == rsS12[2]){ rsw_channel_state = rsS12[112]; clearTimeout(rsw_channel_timeout); rsw_channel_timeout = setTimeout('if(rsw_channel_state == "ACTIVE"){alert("'+this.responseTimeoutMessage+'");rsw_channel_state = "INACTIVE";}', this.responseTimeout*1000); rsw_inProcessTBResetCaret = !dontResetCaretPosition; if(typeof(rsw_inProcessTB.recordCaretPos)!=rsS12[61]) rsw_inProcessTB.recordCaretPos(); rsw_spellCheck(); if(this.state==rsS12[108]){ this.onLeaveEdit(); } } } else { rsw_inProcessTB.updateShadow(); rsw_inProcessTB.iframe.style.display = rsS12[15]; this.state = rsS12[108]; try{ if(typeof(rsw_inProcessTB.shadowTB.focus)!=rsS12[61]) rsw_inProcessTB.shadowTB.focus(); } catch (ee) { } this.onEnterEdit(); rsw_broadcastToListeners(rsS12[113]); if(this.finishedListener!=null && this.finishedListener!=rsS12[0] && !calledFromDoubleClick){ eval(this.finishedListener+rsS12[114]); } } rsw_hideCM(); } function onEnterEdit(){ if(rs_s2.rsw_inline_button_OnStateChanged && this.changeButtonTextWithState){ rsw_inline_button_OnStateChanged(rsS12[115],rsw_inProcessSC.buttonID, this.buttonTextSpellChecking, this.buttonTextSpellMode, this.buttonText); } if(this.leaveStaticSpellCheckListener!=null && this.leaveStaticSpellCheckListener!=rsS12[0]) eval(this.leaveStaticSpellCheckListener+rsS12[116]); } function onLeaveEdit(){ if(rs_s2.rsw_inline_button_OnStateChanged && this.changeButtonTextWithState){ rsw_inline_button_OnStateChanged(rsS12[117],rsw_inProcessSC.buttonID, this.buttonTextSpellChecking, this.buttonTextSpellMode, this.buttonText); } if(this.enterStaticSpellCheckListener!=null && this.enterStaticSpellCheckListener!=rsS12[0]) eval(this.enterStaticSpellCheckListener+rsS12[116]); } function OnSpellCheckCallBack(text, numberOfErrors){ rsw_channel_state = rsS12[2]; clearTimeout(rsw_channel_timeout); rsw_inProcessTB.isDirty = false; if(numberOfErrors>0){ rsw_inProcessTB.setContent(text); if (rsw_inProcessTB.isStatic){ rsw_inProcessTB.iframe.style.display = rsS12[118]; if(this.state==rsS12[108]){ this.state = rsS12[119]; if(rs_s2.rsw_inline_button_OnStateChanged && this.changeButtonTextWithState){ rsw_inline_button_OnStateChanged(rsS12[120],rsw_inProcessSC.buttonID, this.buttonTextSpellChecking, this.buttonTextSpellMode, this.buttonText); } } } } else { if(rsw_inProcessSC.showNoSpellingErrorsMesg) alert(this.noSpellingErrorsText); if(this.state==rsS12[108]){ this.onEnterEdit(); } } if (!rsw_inProcessTB.isStatic && !rsw_ayt_initializing && rsw_inProcessTBResetCaret){ rsw_inProcessTB.focus(); } if(typeof(rsw_inProcessTB.resetCaretPos)!=rsS12[61] && rsw_inProcessTBResetCaret) rsw_inProcessTB.resetCaretPos(); rsw_broadcastToListeners(rsS12[113]); if(this.finishedListener!=null && this.finishedListener!=rsS12[0]){ eval(this.finishedListener+rsS12[121]); } } } function _rsXMLCallBack(){ if (rsw_http_request.readyState == 4) { if (rsw_http_request.status == 200) { var responseText = rsw_http_request.responseText; rsw_showXMLResponseError(responseText); var rcs = responseText.indexOf(rsS12[122]) + 19; var rce = responseText.indexOf(rsS12[123], rcs); var rns = responseText.indexOf(rsS12[124]) + 20; var rne = responseText.indexOf(rsS12[123], rns); _rsCallBack(responseText.substring(rcs, rce), responseText.substring(rns, rne)); } else if (rsw_http_request.status == 404) { alert(rsS12[125]); } else if (rsw_http_request.status == 500) { alert(rsS12[126]); } else if (rsw_http_request.status == 405) { alert(rsS12[127]+rsw_http_request.status); } else { alert(rsS12[128]+rsw_http_request.status); } } } function _rsCallBack(text, numberOfErrors){ if(rsw_inProcessSC) rsw_inProcessSC.OnSpellCheckCallBack(text, numberOfErrors); } function rsw_getAbsSel(range, len, contentElements){ var i; var r = new Array(); r[0] = len; r[1] = false; for (i = 0; i < contentElements.length && contentElements[i]!=range.startContainer && !r[1] ; i++) { if(contentElements[i].nodeValue){ len += contentElements[i].nodeValue.length; } if (contentElements[i].childNodes.length>0){ r = rsw_getAbsSel(range, len, contentElements[i].childNodes); len = r[0]; } } if(contentElements[i]==range.startContainer){ len+=range.startOffset; r[1] = true; } r[0] = len; return r; } function rsw_getAbsRance(len, absStart, contentElements){ var i; var r = new Array(); r[0] = len; r[1] = false; for (i = 0; i < contentElements.length && !r[1]; i++) { if(contentElements[i].nodeValue){ if(contentElements[i].nodeValue.length + len >= absStart){ r[2] = contentElements[i]; r[3] = absStart - len; r[1] = true; return r; } else { len += contentElements[i].nodeValue.length; } } if (contentElements[i].childNodes.length>0){ r = rsw_getAbsRance(len, absStart, contentElements[i].childNodes); len = r[0]; } } r[0] = len; return r; } function rsw_serverAdd(word){ var rsw_useXMLHttpReq = rsw_inProcessSC.useXMLHTTP; var req = false; if(rsw_useXMLHttpReq ) req = rsw_createRequest(); if (!req){ rsw_comIF = rs_s2.frames[rsS12[1]]; var boot=rsS12[0]; boot += rsS12[129]+rsS12[130]+rsw_inProcessSC.rapidSpellWebPage+rsS12[84]+ rsS12[131]+ "<input type='hidden' name='w' value=''><input type='hidden' name='UserDictionaryFile' value=\"\"></form>";
																																						 if(rsw_comIF.document.body) rsw_comIF.document.body.innerHTML = boot; else { rsw_comIF.document.open(); rsw_comIF.document.write(boot); } rsw_comIF.document.forms[0].w.value = word;
																																						 rsw_comIF.document.forms[0].UserDictionaryFile.value= rsw_inProcessSC.getParameterValue(rsS12[132]); rsw_comIF.document.forms[0].submit(); } else { var paramString = new String();
																																						 paramString = rsS12[133]+rsw_escapeHTML(word)+rsS12[134]+rsw_escapeHTML(rsw_inProcessSC.getParameterValue(rsS12[132]))+rsS12[135]; rsw_sendRequest(req, rsw_inProcessSC.rapidSpellWebPage, paramString, rsw_serverAddCallback, false);
																																						 } } function rsw_serverAddCallback(){ if (rsw_http_request.readyState == 4) { if (rsw_http_request.status == 200) { rsw_showXMLResponseError(rsw_http_request.responseText);
																																						 } else if (rsw_http_request.status == 404) { alert(rsS12[125]); } else if (rsw_http_request.status == 500) { alert(rsS12[126]); } else if (rsw_http_request.status == 405) { alert(rsS12[127]+rsw_http_request.status);
																																						 } else { alert(rsS12[128]+rsw_http_request.status); } } } function rsw_showXMLResponseError(responseText){ var rcs = responseText.indexOf(rsS12[136]) + 18; if(rcs>17){ var rce = responseText.indexOf(rsS12[123], rcs);
																																						 alert(responseText.substring(rcs, rce)); } } function rsw_showMenu(menuItems, element, e){ function isRightClick(e) { var rightclick; if (!e) var e = rs_s2.event;
																																						 if (e.which) rightclick = (e.which == 3); else if (e.button) rightclick = (e.button == 2); return rightclick; } rsw_lastRightClickedError = element; var atbs = rsw_getTBSHoldingElement(element);
																																						 if(atbs.focus) atbs.focus(); else rsw_activeTextbox = atbs; if(!rsw_MenuOnRightClick && (e.button==1 || e.button==0)){ rsw_showCM(element , menuItems, e ); } else if(rsw_MenuOnRightClick && isRightClick(e)){ rsw_showCM(element , menuItems, e );
																																						 } return false; } function rsw_getTBSHoldingElement(element){ for (var i=0; i<rsw_tbs.length; i++) if(rsw_tbs[i].containsElement(element)) return rsw_tbs[i]; } function rsw_getScrollX(windowEl){ if (windowEl.pageYOffset) { return windowEl.pageXOffset;
																																						 } else if (windowEl.document.documentElement && windowEl.document.documentElement.scrollTop) { return windowEl.document.documentElement.scrollLeft; } else if (windowEl.document.body) { return windowEl.document.body.scrollLeft;
																																						 } } function rsw_getClientWidth(windowEl){ if (windowEl.innerHeight) return windowEl.innerWidth; else if (windowEl.document.documentElement && rs_s3.documentElement.clientHeight) return windowEl.document.documentElement.clientWidth;
																																						 else if (rs_s3.body) return windowEl.document.body.clientWidth; } function rsw_getClientHeight(windowEl){ if (windowEl.innerHeight) return windowEl.innerHeight; else if (windowEl.document.documentElement && rs_s3.documentElement.clientHeight) return windowEl.document.documentElement.clientHeight;
																																						 else if (rs_s3.body) return windowEl.document.body.clientHeight; } function rsw_getScrollY(windowEl){ if (windowEl.pageYOffset) return windowEl.pageYOffset; else if (windowEl.document.documentElement && windowEl.document.documentElement.scrollTop) return windowEl.document.documentElement.scrollTop;
																																						 else if (windowEl.document.body) { return windowEl.document.body.scrollTop; } } function rsw_showCM( element, menuItems, event ) { rsw_contextMenu = new RS_ContextMenu( element, menuItems, rsw_activeTextbox ) ;
																																						 rsw_contextMenu.x = rsw_activeTextbox.getAbsX(element, event) + 20; rsw_contextMenu.y = rsw_activeTextbox.getAbsY(element, event) + 20; var winWidth = rsw_getClientWidth(this) + rsw_getScrollX(this);
																																						 if (rsw_contextMenu.x + 220 > winWidth) rsw_contextMenu.x = winWidth-240-10; rsw_contextMenu.show() ; var menuHeight = rsw_getElementHeight(rsw_contextMenu.CMelement.id);
																																						 var winHeight = rsw_getClientHeight(this) + rsw_getScrollY(this); if (rsw_contextMenu.y + menuHeight > winHeight){ rsw_contextMenu.y = winHeight-menuHeight - 10; } if(rsw_contextMenu.x<=0) rsw_contextMenu.x=1;
																																						 if(rsw_contextMenu.y<=0) rsw_contextMenu.y=1; rsw_contextMenu.moveCMElement(); } function rsw__resize(){ for(var i=0; i<rsw_tbs.length; i++){ if(rsw_tbs[i].isStatic){ rsw_updatePosition(rs_s3.getElementById(rsw_tbs[i].iframe.id), rsw_tbs[i].shadowTB);
																																						 } } } function rsw_setSettings(tbs){ for(var pp=3; pp<tbs.tbConfig.keys.length; pp++){ eval(rsS12[137]+tbs.tbConfig.keys[pp]+rsS12[138]+tbs.tbConfig.values[pp]); } var tbHeight = rsw_getElementHeight(tbs.iframe.id);
																																						 if(tbHeight < 26 && tbs.multiline){ tbHeight = 36; tbs.iframe.style.height = tbHeight+rsS12[22]; } tbs.updateIframe(); tbs.iframe.contentWindow.rsw_showMenu=rsw_showMenu;
																																						 } function rsw__unhook(){ for(var i=0; rsw_tbs!=null && i < rsw_tbs.length; i++){ if(rsw_tbs[i]!=null) rsw_tbs[i].unhook(); } } function rsw__init(fromAJAXEnd){ mozly = navigator.userAgent.indexOf(rsS12[21])>-1;
																																						 msie = navigator.userAgent.indexOf(rsS12[139])>-1; compatibleBrowser = msie || mozly; for(var ptr=0; ptr<rsw_config.length; ptr++){ var tbConfig = rsw_config[ptr];
																																						 var myIFrame = rs_s3.getElementById(tbConfig.values[0]); if(myIFrame==null){ rsw_config.splice(ptr, 1); ptr--; continue; } if(mozly) rsw_tbs[ptr] = new MozlyTB(myIFrame, true);
																																						 else rsw_tbs[ptr] = new IETB(myIFrame, true); rsw_tbs[ptr].enabled = tbConfig.values[1]; rsw_tbs[ptr].CssSheetURL = tbConfig.values[2]; try{ rsw_tbs[ptr].tbConfig = tbConfig;
																																						 rsw_tbs[ptr].initialize(); } catch (ex){ } } rsw_activeTextbox = rsw_tbs[0]; rsw_onFinish(fromAJAXEnd, 0); } function rsw_onFinish(fromAJAXEnd, attempts){ if(!attempts) attempts=0;
																																						 if(rsw_id_waitingToInitialize!=null && attempts<100 ){ attempts++; eval(rsS12[140]+fromAJAXEnd+rsS12[141]+attempts+rsS12[142]); return; } if(fromAJAXEnd){ if(rsw_tbs.length>0){ var first = rsw_tbs[0];
																																						 first.focus(); } } if(rs_s2.RS_OnTextBoxesInitialized) RS_OnTextBoxesInitialized(); for(var h=0; h<rsw_aux_oninit_handlers.length; h++){ eval(rsw_aux_oninit_handlers[h]);
																																						 } } function rsw_spellCheckTextBox(textBox){ if(textBox!=null){ if(typeof (textBox.isStatic) == rsS12[143]){ for(var i=0; i<rsw_scs.length; i++){ if( rsw_scs[i].textBoxID == textBox.shadowTB.id && textBox.isDirty) rsw_scs[i].OnSpellButtonClicked();
																																						 } } else { for(var i=0; i<rsw_scs.length; i++){ if( rsw_scs[i].textBoxID == textBox.id ) rsw_scs[i].OnSpellButtonClicked(); } } } } function rsw_createLink(contentWindowDoc, CssSheetURL){ var linkElement = contentWindowDoc.createElement(rsS12[144]);
																																						 linkElement.type = rsS12[145]; var url = (typeof(CssSheetURL)==rsS12[61]||CssSheetURL==rsS12[0])?rsw_rs_styleURL:CssSheetURL; linkElement.setAttribute(rsS12[146], url);
																																						 linkElement.setAttribute(rsS12[147], rsS12[148]); contentWindowDoc.getElementsByTagName(rsS12[149])[0].appendChild(linkElement); } function rsw_updateActiveTextbox(activeElement){ var activeID=-1;
																																						 for(var i=0; i<rsw_tbs.length; i++){ if(activeElement == rsw_tbs[i].ifDoc || activeElement == rsw_tbs[i].iframe){ rsw_previouslyActiveTextbox = rsw_activeTextbox;
																																						 rsw_activeTextbox= rsw_tbs[i]; activeID = i; } } } function rsw_ignoreAll(error){ var errorText = error.innerHTML.replace(/<[^>]+>/g,rsS12[0]); var tError; var errors = rsw_activeTextbox.getSpanElements();
																																						 var changeIndexes = new Array(); for(var i=0; i<errors.length; i++){ tError = errors[i].innerHTML.replace(/<[^>]+>/g,rsS12[0]); if(errors[i].className==rsS12[150] && tError == errorText){ rsw_changeTo(errors[i], errorText);
																																						 i--; rsw_addIgnoreAllWord(errorText); } } } function rsw_dehighlight(errorNode){ errorNode.removeAttribute(rsS12[11]); errorNode.removeAttribute(rsS12[151]); errorNode.setAttribute(rsS12[152], rsS12[0]);
																																						 } function rsw_getTargetElement(e) { var relTarg; if (!e) var e = rs_s2.event; if (e.relatedTarget) relTarg = e.relatedTarget; else if (e.fromElement) relTarg = e.fromElement;
																																						 return relTarg; } function rsw_edit(error){ rsw_activeTextbox.createEditBox(error); rsw_activeTextbox.OnCorrection(new RSW_CorrectionEvent(rsS12[153], error.innerHTML.replace(/<[^>]+>/g,rsS12[0]), rsS12[154]));
																																						 } function rsw_inlineTB_onBlur(){ rsw_activeTextbox.updateShadow(); } function rsw_inlineTB_onkeypress(e){ var ev; if(typeof (e) != rsS12[61]) ev = e; else ev = event;
																																						 if(ev && ev.keyCode){ if (ev.keyCode == 13) { if(ev.preventDefault)ev.preventDefault(); return false; } } return true; } function rsw_add(error){ var errorText = rsw_innerHTMLToText(error.innerHTML);
																																						 rsw_ignoreAll(error); rsw_serverAdd(errorText); } function rsw_innerHTMLToText(html){ return html.replace(/<[^>]+>/g,rsS12[0]); } function rsw_innerText(node, lastElementInCollection){ var t = rsS12[0];
																																						 if (node.nodeName.toLowerCase()==rsS12[155]) t = rsS12[156]; if(node.childNodes.length==0) { if(node.nodeValue){ t += node.nodeValue; } } else{ for(var i=0; i<node.childNodes.length;
																																						 i++) t += rsw_innerText(node.childNodes[i]); } if(node.nodeName.toLowerCase()==rsS12[157]) t += node.value; if (node.nodeName.toLowerCase()==rsS12[158] && !lastElementInCollection) t += rsS12[156];
																																						 return t; } var rsw_ignoreAllWords = new Array(); function rsw_addIgnoreAllWord(word){ var found=false; for(var i=0; i<rsw_ignoreAllWords.length; i++) if (rsw_ignoreAllWords[i]==word) found = true;
																																						 if(!found) rsw_ignoreAllWords[rsw_ignoreAllWords.length] = word; } function rsw_changeTo(error, replacement){ rsw_activeTextbox.changeTo(error, replacement); rsw_activeTextbox.updateShadow();
																																						 rsw_activeTextbox.OnCorrection(new RSW_CorrectionEvent(rsS12[153], error.innerHTML.replace(/<[^>]+>/g,rsS12[0]), replacement)); } function rsw_changeAllTo(error, replacement){ var errorText = error.innerHTML.replace(/<[^>]+>/g,rsS12[0]);
																																						 var tError; var errors = rsw_activeTextbox.getSpanElements(); for(var i=0; i<errors.length; i++){ tError = errors[i].innerHTML.replace(/<[^>]+>/g,rsS12[0]); if(errors[i].className==rsS12[150] && tError == errorText){ rsw_changeTo(errors[i], replacement);
																																						 i--; } } } function rsw_escapeHTML(t){ var pos=-1; while( (pos=t.indexOf(rsS12[159], pos+1)) > -1) t = t.substring(0, pos)+rsS12[160] + t.substring(pos+1); var exp1 = new RegExp(rsS12[74]);
																																						 while(exp1.test(t)) t = t.replace(exp1, rsS12[161]); var exp2 = new RegExp(rsS12[75]); while(exp2.test(t)) t = t.replace(exp2, rsS12[162]); return t; } function rsw_unescapeHTML(t){ var pos=-1;
																																						 while( (pos=t.indexOf(rsS12[160], pos+1)) > -1) t = t.substring(0, pos)+rsS12[159] + t.substring(pos+1); var exp1 = new RegExp(rsS12[161]); while(exp1.test(t)) t = t.replace(exp1, rsS12[74]);
																																						 var exp2 = new RegExp(rsS12[162]); while(exp2.test(t)) t = t.replace(exp2, rsS12[75]); return t; } function RSWITextBox(controlClientID){ this.shadowTBID = controlClientID;
																																						 this._getTBS = _getTBS; this._onKeyDown = _onKeyDown; this._onKeyUp = _onKeyUp; this._onKeyPress = _onKeyPress; this._onCorrection = _onCorrection; this._onPaste = _onPaste;
																																						 this._onContextMenu = _onContextMenu; this._onBlur = _onBlur; this._onFocus = _onFocus; this._onMouseDown = _onMouseDown; this._onMouseUp = _onMouseUp; this.tbs = null;
																																						 function _getTBS(){ if(this.tbs == null){ this.tbs = rsw_getTBSFromID(this.shadowTBID, false); this.tbs.repObj = this; } return this.tbs; } function _onKeyDown(e){ if(typeof(this.OnKeyDown)==rsS12[80]) this.OnKeyDown(this, e);
																																						 } function _onKeyUp(e){ if(typeof(this.OnKeyUp)==rsS12[80]) this.OnKeyUp(this, e); } function _onKeyPress(e){ if(typeof(this.OnKeyPress)==rsS12[80]) this.OnKeyPress(this, e);
																																						 } function _onCorrection(e){ if(typeof(this.OnCorrection)==rsS12[80]) this.OnCorrection(this, e); } function _onPaste(e){ if(typeof(this.OnPaste)==rsS12[80]) this.OnPaste(this, e);
																																						 } function _onContextMenu(e){ if(typeof(this.OnContextMenu)==rsS12[80]) this.OnContextMenu(this, e); } function _onBlur(e){ if(typeof(this.OnBlur)==rsS12[80]) this.OnBlur(this, e);
																																						 } function _onFocus(e){ if(typeof(this.OnFocus)==rsS12[80]) this.OnFocus(this, e); } function _onMouseDown(e){ if(typeof(this.OnMouseDown)==rsS12[80]) this.OnMouseDown(this, e);
																																						 } function _onMouseUp(e){ if(typeof(this.OnMouseUp)==rsS12[80]) this.OnMouseUp(this, e); } this.GetText = GetText; this.SetText = SetText; this.OnKeyDown; this.OnKeyUp;
																																						 this.OnKeyPress; this.OnCorrection; this.OnPaste; this.OnContextMenu; this.OnBlur; this.OnFocus; this.OnMouseDown; this.OnMouseUp; this.GetNumberOfErrors = GetNumberOfErrors;
																																						 this.Focus = Focus; function GetText(){ var tbs = this._getTBS(); return tbs.shadowTB.value; } function SetText(text){ var tbs = this._getTBS(); tbs.shadowTB.value = text;
																																						 tbs.updateIframe(); } function GetNumberOfErrors(){ var tbs = this._getTBS(); return tbs.getNumberOfErrors(); } function Focus(){ var tbs = this._getTBS(); return tbs.focus();
																																						 } } function rsw_broadcastToListeners(eventType){ if (rs_s2._INT_notifyTextBoxListeners) _INT_notifyTextBoxListeners(eventType); if (rs_s2._notifyTextBoxListeners) _notifyTextBoxListeners(eventType);
																																						 } function RSW_IntEvent(eventType){ this.type = eventType;} function RSW_CorrectionEvent(eventType, errorWord, replacement){ this.type = eventType; this.errorWord = errorWord, this.replacement = replacement;
																																						} function IETB(iframeEl, editable){ this.iframe = iframeEl; this.editable = editable; this.ifDoc; this.initialize = initialize; this.ifDocElement; this.setContent = setContent;
																																						 this.getContent = getContent; this._onKeyPress = _onKeyPress; this._onKeyUp = _onKeyUp; this._onKeyDown = _onKeyDown; this._onPaste = _onPaste ; this._onMouseDown = _onMouseDown;
																																						 this._onMouseUp = _onMouseUp; this._onContextMenu = _onContextMenu; this._onFocus= _onFocus; this._onBlur= _onBlur; this.focus = focus; this.getSpanElements = getSpanElements;
																																						 this.changeTo = changeTo; this.getAbsY = getAbsY; this.getAbsX = getAbsX; this.isStatic = false; this.getContentText = getContentText; this.selectedErrorNode = selectedErrorNode;
																																						 this.containsElement = containsElement; this.multiline = true; this.enabled = true; this.maxlength=0; this.shadowTB; this.shadowTBID; this.updateIframe = updateIframe;
																																						 this.updateShadow = updateShadow; this.getShadowText = getShadowText; this.spellChecker; this.OnCorrection = OnCorrection; this.oldOnBlur; this.oldOnFocus; this.isDirty = false;
																																						 this.recordCaretPos=recordCaretPos; this.resetCaretPos=resetCaretPos; this.caretBL; this.caretBT; this.CssSheetURL; this.getNumberOfErrors = getNumberOfErrors; this.textIsXHTML;
																																						 this.unhook = unhook; this.repObj = null; function getNumberOfErrors(){ var errors = this.getSpanElements(); var numErrors=0; for(var i=0; i<errors.length; i++){ if(errors[i].className==rsS12[150]){ numErrors++;
																																						 } } return numErrors; } function recordCaretPos() { try { this.savedcaret = this.ifDoc.selection.createRange().getBookmark(); } catch (e) { } } function resetCaretPos() { try { var caret = this.ifDoc.selection.createRange();
																																						 caret.moveToBookmark(this.savedcaret); correctCaret(caret); } catch (e) { } } function OnCorrection(e){ if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onCorrection(e);
																																						 rsw_broadcastToListeners(rsS12[153]); } function focus(){ this.iframe.contentWindow.focus(); try{this.iframe.focus();}catch(e){} this.iframe.contentWindow.focus();
																																						 try{ var caret = this.ifDoc.selection.createRange(); correctCaret(caret); } catch (e) { } } function containsElement(element){ return element.ownerDocument == this.ifDoc;
																																						 } function selectedErrorNode(){ var selection = rsw_activeTextbox.ifDoc.selection; var parentEl = selection.createRange().parentElement(); if(parentEl.className == rsS12[150]) return parentEl;
																																						 else return null; } function getAbsX(element, event){ var obj = this.iframe; var curLeft = 0; var index = 0; if (obj.offsetParent) { while (obj.offsetParent) { index++;
																																						 var delta=0; if (!window.opera && index>1) delta = obj.scrollLeft ; curLeft += obj.offsetLeft - delta; obj = obj.offsetParent; } } else if (obj.clientY) curLeft += obj.clientY;
																																						 return curLeft + element.offsetLeft - this.ifDoc.body.scrollLeft; } function getAbsY(element, event){ var obj = this.iframe; var curtop = 0; var index = 0; if (obj.offsetParent) { while (obj.offsetParent) { index++;
																																						 var delta=0; if (!window.opera && index>1) delta = obj.scrollTop ; curtop += obj.offsetTop - delta; obj = obj.offsetParent; } } else if (obj.clientY) curtop += obj.clientY;
																																						 return curtop + element.offsetTop - this.ifDoc.body.scrollTop; } function changeTo(error, replacement){ var repl = this.ifDoc.createTextNode(replacement); error.parentNode.replaceChild(repl, error);
																																						 } function getSpanElements(){ return this.ifDoc.getElementsByTagName(rsS12[163]); } function _onKeyPress(){ rsw_hideCM(); var errorNode = rsw_activeTextbox.selectedErrorNode();
																																						 if(errorNode) rsw_dehighlight(errorNode); var evt = rsw_activeTextbox.iframe.contentWindow.event; if(evt!=null && evt.keyCode == 13 && !rsw_activeTextbox.multiline){ evt.returnValue = false;
																																						 } else if(evt!=null && evt.keyCode == 13){ } rsw_activeTextbox.isDirty = true; if(rsw_activeTextbox.maxlength>0 ){ if(rsw_activeTextbox.getContentText().replace(/\r/g, rsS12[0]).replace(/\n/g, rsS12[0]).length>=rsw_activeTextbox.maxlength) evt.returnValue = false;
																																						 } if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onKeyPress(rsw_activeTextbox.iframe.contentWindow.event); rsw_broadcastToListeners(rsS12[164]); } function _onKeyDown(){ if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onKeyDown(rsw_activeTextbox.iframe.contentWindow.event);
																																						 rsw_broadcastToListeners(rsS12[165]); } function _onKeyUp(){ rsw_hideCM(); var errorNode = rsw_activeTextbox.selectedErrorNode(); if(errorNode) rsw_dehighlight(errorNode);
																																						 rsw_activeTextbox.updateShadow(); if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onKeyUp(rsw_activeTextbox.iframe.contentWindow.event); rsw_broadcastToListeners(rsS12[166]);
																																						 } function _onMouseDown(){ if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onMouseDown(rsw_activeTextbox.iframe.contentWindow.event); rsw_hideCM(); rsw_broadcastToListeners(rsS12[167]);
																																						 rsw_activeTextbox.updateShadow(); } function _onMouseUp(){ if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onMouseUp(rsw_activeTextbox.iframe.contentWindow.event);
																																						 rsw_broadcastToListeners(rsS12[168]); } function _onFocus(event){ rsw_hideCM(); rsw_activeTextbox.updateShadow(); rsw_updateActiveTextbox(this); rsw_broadcastToListeners(rsS12[169]);
																																						 if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onFocus(new RSW_IntEvent(rsS12[169])); if(rsw_activeTextbox.oldOnFocus && rsw_activeTextbox.oldOnFocus!=rsw_activeTextbox._onFocus )rsw_activeTextbox.oldOnFocus();
																																						 } function _onBlur(event){ rsw_activeTextbox.updateShadow(); if(rsw_activeTextbox.shadowTB.onchange){ if(rsw_activeTextbox.shadowTB.defaultValue!=rsw_activeTextbox.shadowTB.value) rsw_activeTextbox.shadowTB.onchange();
																																						 } if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onBlur(new RSW_IntEvent(rsS12[170])); rsw_broadcastToListeners(rsS12[170]); if(rsw_activeTextbox.oldOnBlur && rsw_activeTextbox.oldOnBlur != rsw_activeTextbox._onBlur)rsw_activeTextbox.oldOnBlur(event);
																																						 } function setContent(content, contentIsFromShadow){ var pos=-1; var ppos=0; var t=rsS12[0]; while( (pos=content.indexOf(rsS12[171], pos+1)) > -1){ if(pos>ppos+2){ if(content.substring(pos-1, pos)==rsS12[172]) t += rsS12[173]+content.substring(ppos, pos-1)+rsS12[174];
																																						 else t += rsS12[173]+content.substring(ppos, pos)+rsS12[174]; } else t += content.substring(ppos, pos)+rsS12[175]; ppos = pos+1; } if (ppos < content.length-1 || ppos==0) t += rsS12[173]+content.substring(ppos, content.length)+rsS12[174];
																																						 if(!this.multiline){ var pos=-1; var ppos=0; var opener=-1; var closer=-1; while( (pos=t.indexOf(rsS12[176], pos+1)) > -1){ opener = t.lastIndexOf(rsS12[74], pos);
																																						 closer = t.lastIndexOf(rsS12[75], pos); if((opener==-1 && closer==-1) || opener==-1 || opener<closer) t = t.substring(0, pos)+rsS12[177] + t.substring(pos+1); ppos = pos;
																																						 } t = rsS12[178]+t+rsS12[179]; } else { var pos=-1; var ppos=0; var opener=-1; var closer=-1; var flag = true; while( (pos=t.indexOf(rsS12[176], pos+1)) > -1){ if(pos+1<t.length && t.charAt(pos+1)==rsS12[176]){ opener = t.lastIndexOf(rsS12[74], pos);
																																						 closer = t.lastIndexOf(rsS12[75], pos); if((opener==-1 && closer==-1) || opener==-1 || opener<closer){ if(flag) t = t.substring(0, pos)+rsS12[177] + t.substring(pos+1);
																																						 else t = t.substring(0, pos)+rsS12[176] + t.substring(pos+1); flag=!flag; } ppos = pos; } } } this.ifDoc.body.innerHTML = t; if(!contentIsFromShadow) this.updateShadow();
																																						 } function correctCaret(caret){ if(caret.text.length==0 && caret.moveStart(rsS12[180], -1)<0){ caret.select(); caret.moveStart(rsS12[180], 1); caret.select(); caret.collapse(true);
																																						 } caret.select(); } function getContent(){ return this.ifDoc.body.innerHTML; } function getContentText(){ var contentElements = this.ifDocElement.childNodes[1].childNodes;
																																						 var contents = rsS12[0]; for (var i = 0; i < contentElements.length; i++) { if(contentElements[i].nodeValue) contents += contentElements[i].nodeValue; else if(contentElements[i].nodeName.toLowerCase()==rsS12[155] && i < contentElements.length-1) contents += rsS12[156];
																																						 else if(contentElements[i].nodeName.toLowerCase()==rsS12[157]) contents += contentElements[i].value; else contents += rsw_innerText(contentElements[i], i==contentElements.length-1);
																																						 } return contents; } function _onContextMenu(){ if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onContextMenu(rsw_activeTextbox.iframe.contentWindow.event);
																																						 rsw_broadcastToListeners(rsS12[181]); } function _onPaste(){ if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onPaste(rsw_activeTextbox.iframe.contentWindow.event);
																																						 rsw_broadcastToListeners(rsS12[182]); } function initialize(attempts){ var ifID; if(!this.iframe) ifID = this.tbConfig.values[0]; else ifID = this.iframe.id; this.shadowTBID = ifID.substring(0, ifID.length-3);
																																						 this.shadowTB = rs_s3.getElementById(this.shadowTBID); if(rsw_id_waitingToInitialize==null) rsw_id_waitingToInitialize = ifID; if(!attempts) attempts = 0; if((!this.iframe.contentWindow.loaded && attempts<100 ) || attempts==0 || rsw_id_waitingToInitialize!=ifID){ var time = 50 + Math.floor(Math.random()*50);
																																						 attempts++; eval(rsS12[183]+this.shadowTBID+rsS12[184]+attempts+rsS12[185]+time+rsS12[186]); return; } rsw_id_waitingToInitialize = null; this.ifDoc = this.iframe.contentWindow.document;
																																						 this.ifDocElement = this.iframe.contentWindow.document.documentElement; rsw_createLink(this.ifDoc, this.CssSheetURL); if(this.enabled){ if(this.editable) this.ifDoc.body.setAttribute(rsS12[187], rsS12[110]);
																																						 if(this.ifDocElement.onmousedown != this._onMouseDown){ this.ifDocElement.onmousedown = this._onMouseDown ; this.ifDocElement.onmouseup = this._onMouseUp; this.ifDocElement.onkeypress = this._onKeyPress ;
																																						 this.ifDocElement.onkeydown = this._onKeyDown ; this.ifDocElement.onkeyup = this._onKeyUp; this.ifDocElement.onpaste = this._onPaste ; } if(this._onFocus != this.iframe.onfocus){ this.oldOnFocus = this.iframe.onfocus;
																																						 this.iframe.onfocus = this._onFocus ; this.oldOnBlur = this.iframe.onblur; this.iframe.onblur = this._onBlur ; this.ifDoc.oncontextmenu=this._onContextMenu; } } rsw_setSettings(this);
																																						 } function unhook(){ this.ifDoc.body.setAttribute(rsS12[187], rsS12[82]); this.ifDocElement.onmousedown = null ; this.ifDocElement.onmouseup = null; this.ifDocElement.onkeypress = null ;
																																						 this.ifDocElement.onkeydown = null ; this.ifDocElement.onkeyup = null; this.ifDocElement.onpaste = null; this.oldOnFocus = null; this.iframe.onfocus = null; this.oldOnBlur = null;
																																						 this.iframe.onblur = null; this.ifDoc.oncontextmenu=null; } function updateIframe(){ if(this.textIsXHTML) this.setContent((this.shadowTB.value), true); else this.setContent(rsw_escapeHTML(this.shadowTB.value), true);
																																						 } function updateShadow(){ var reg = new RegExp(String.fromCharCode(160),rsS12[188]); this.shadowTB.value = this.getContentText().replace(reg, rsS12[176]); } function getShadowText(){ return this.shadowTB.value;
																																						 } } function MozlyTB(iframeEl, editable){ this.iframe = iframeEl; this.editable = editable; this.ifDoc; this.designMode; this.initialize = initialize; this.ifDocElement;
																																						 this.setContent = setContent; this.getContent = getContent; this._onKeyPress = _onKeyPress; this._onKeyUp= _onKeyUp; this._onKeyDown= _onKeyDown; this._onMouseDown = _onMouseDown;
																																						 this._onMouseUp = _onMouseUp; this._onFocus = _onFocus; this._onBlur = _onBlur; this._onClick = _onClick; this._onContextMenu = _onContextMenu; this.getSpanElements = getSpanElements;
																																						 this.changeTo = changeTo; this.getAbsY = getAbsY; this.getAbsX = getAbsX; this.isStatic = false; this.getContentText = getContentText; this.selectedErrorNode = selectedErrorNode;
																																						 this.containsElement = containsElement; this.focus = focus; this.multiline = false; this.enabled = true; this.maxlength=0; this.shadowTB; this.updateIframe = updateIframe;
																																						 this.updateShadow = updateShadow; this.getShadowText = getShadowText; this.spellChecker; this.OnCorrection = OnCorrection; this.isWrappedInNOBR = false; this.oldOnBlur;
																																						 this.oldOnFocus; this.isDirty = false; this.recordCaretPos=recordCaretPos; this.resetCaretPos=resetCaretPos; this.selOffset; this.CssSheetURL; this.getNumberOfErrors = getNumberOfErrors;
																																						 this.textIsXHTML; this.unhook = unhook; this.repObj = null; function getNumberOfErrors(){ var errors = this.getSpanElements(); var numErrors=0; for(var i=0; i<errors.length;
																																						 i++){ if(errors[i].className==rsS12[150]){ numErrors++; } } return numErrors; } function recordCaretPos(){ try{ var sel = this.iframe.contentWindow.getSelection();
																																						 var range = sel.getRangeAt(0); var len = 0; var contentElements = this.ifDoc.body.childNodes; this.selOffset = rsw_getAbsSel(range, len, contentElements)[0]; } catch (e){} } function resetCaretPos(){ try{ var sel = this.iframe.contentWindow.getSelection();
																																						 var range = sel.getRangeAt(0); var contentElements =this.ifDoc.body.childNodes; var absRange = rsw_getAbsRance(0, this.selOffset, contentElements); range.setEnd(absRange[2], absRange[3]);
																																						 range.setStart(absRange[2], absRange[3]); } catch (e){ } } function OnCorrection(e){ if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onCorrection(e);
																																						 rsw_broadcastToListeners(rsS12[153]); } function focus(){ this.iframe.contentWindow.focus(); } function containsElement(element){ return element.ownerDocument == this.ifDoc;
																																						 } function selectedErrorNode (){ var selection = rsw_activeTextbox.iframe.contentWindow.getSelection(); if(selection.anchorNode.parentNode.className == rsS12[150]) return selection.anchorNode.parentNode;
																																						 else return null; } function getAbsX(element, event){ var obj = this.iframe; var curLeft = 0; var index = 0; if (obj.offsetParent) { while (obj.offsetParent) { index++;
																																						 var delta=0; if (!window.opera && index>1) delta = obj.scrollLeft ; curLeft += obj.offsetLeft - delta; obj = obj.offsetParent; } } else if (obj.clientY) curLeft += obj.clientY;
																																						 return curLeft + element.offsetLeft - this.iframe.scrollTop - this.ifDoc.body.scrollLeft; } function getAbsY(element, event){ var obj = this.iframe; var curtop = 0;
																																						 var index = 0; if (obj.offsetParent) { while (obj.offsetParent) { index++; var delta=0; if (!window.opera && index>1) delta = obj.scrollTop ; curtop += obj.offsetTop - delta;
																																						 obj = obj.offsetParent; } } else if (obj.clientY) curtop += obj.clientY; return curtop + element.offsetTop - this.iframe.scrollTop - this.ifDoc.body.scrollTop; } function changeTo(error, replacement){ var repl = this.ifDoc.createTextNode(replacement);
																																						 error.parentNode.replaceChild(repl, error); } function getSpanElements(){ return this.ifDoc.getElementsByTagName(rsS12[163]); } function getContentText(){ var contentElements =this.ifDoc.body.childNodes;
																																						 var contents = rsS12[0]; for (var i = 0; i < contentElements.length; i++) { if(contentElements[i].nodeName.toLowerCase()==rsS12[157]) contents += contentElements[i].value;
																																						 else if(contentElements[i].nodeName.toLowerCase()!=rsS12[155] || i < contentElements.length-1) contents += rsw_innerText(contentElements[i]); } var newlineexp = new RegExp(rsS12[171]);
																																						 var t = contents; while(newlineexp.test(t)) t = t.replace(newlineexp, rsS12[0]); contents = t; return contents; } function _onClick(event){ if(navigator.userAgent.toLowerCase().indexOf(rsS12[189])==-1 && navigator.userAgent.toLowerCase().indexOf(rsS12[190])>-1){ if(typeof event != rsS12[61]){ try{ var embedhandler=event.target.attributes[rsS12[152]].nodeValue;
																																						 var suggestionsString=rsS12[191]+embedhandler.substring(embedhandler.indexOf(rsS12[191])+1, embedhandler.indexOf(rsS12[192])+1); var suggestions = eval(suggestionsString);
																																						 rsw_showMenu(suggestions, event.target, event); } catch (ex) { } } } } function _onKeyPress(event){ rsw_hideCM(); var evt = event; if(evt!=null && evt.keyCode == 13 && !rsw_activeTextbox.multiline ){ event.preventDefault();
																																						 event.cancelBubble = true; } if(evt!=null && evt.keyCode == 9 ){ } rsw_activeTextbox.isDirty = true; if(rsw_activeTextbox.maxlength>0 ){ if( evt.keyCode!=8 && evt.keyCode!=46 && (evt.keyCode<37 || evt.keyCode>40) && rsw_activeTextbox.getContentText().replace(/\r/g, rsS12[0]).replace(/\n/g, rsS12[0]).length>=rsw_activeTextbox.maxlength){ event.preventDefault();
																																						 event.cancelBubble = true; } } if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onKeyPress(event); rsw_broadcastToListeners(rsS12[164]); } function _onKeyDown(event){ if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onKeyDown(event);
																																						 rsw_broadcastToListeners(rsS12[165]); } function _onFocus(event){ rsw_hideCM(); rsw_activeTextbox.updateShadow(); rsw_updateActiveTextbox(this); if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onFocus(event);
																																						 rsw_broadcastToListeners(rsS12[169]); } function _onBlur(event){ rsw_activeTextbox.updateShadow(); if(rsw_activeTextbox.shadowTB.onchange){ if(rsw_activeTextbox.shadowTB.defaultValue!=rsw_activeTextbox.shadowTB.value){ var evt = rs_s3.createEvent(rsS12[193]);
																																						 evt.initUIEvent(rsS12[194], event.canBubble, event.cancelable, event.view, event.detail); rsw_activeTextbox.shadowTB.dispatchEvent(evt); } } if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onBlur(event);
																																						 rsw_broadcastToListeners(rsS12[170]); } function _onKeyUp(event){ var errorNode = rsw_activeTextbox.selectedErrorNode(); if(errorNode) rsw_dehighlight(errorNode);
																																						 rsw_activeTextbox.updateShadow(); if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onKeyUp(event); rsw_broadcastToListeners(rsS12[166]); } function _onMouseDown(event){ rsw_hideCM();
																																						 if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onMouseDown(event); rsw_broadcastToListeners(rsS12[167]); rsw_activeTextbox.updateShadow(); } function _onMouseUp(event){ if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onMouseUp(event);
																																						 rsw_broadcastToListeners(rsS12[168]); } function setContent(content){ var t = content; if(this.multiline){ var newlineexp = new RegExp(rsS12[171]); while(newlineexp.test(t)) t = t.replace(newlineexp, rsS12[175]);
																																						 } if(!this.multiline){ var pos=-1; var ppos=0; var opener=-1; var closer=-1; while( (pos=t.indexOf(rsS12[176], pos+1)) > -1){ opener = t.lastIndexOf(rsS12[74], pos);
																																						 closer = t.lastIndexOf(rsS12[75], pos); if((opener==-1 && closer==-1) || opener==-1 || opener<closer) t = t.substring(0, pos)+rsS12[177] + t.substring(pos+1); ppos = pos;
																																						 } if(t.length==0) t = rsS12[0]; else { t = rsS12[178]+t+rsS12[179]; this.isWrappedInNOBR =true; } } else { var pos=-1; var ppos=0; var opener=-1; var closer=-1; var flag = true;
																																						 while( (pos=t.indexOf(rsS12[176], pos+1)) > -1){ if(pos+1<t.length && t.charAt(pos+1)==rsS12[176]){ opener = t.lastIndexOf(rsS12[74], pos); closer = t.lastIndexOf(rsS12[75], pos);
																																						 if((opener==-1 && closer==-1) || opener==-1 || opener<closer){ if(flag) t = t.substring(0, pos)+rsS12[177] + t.substring(pos+1); else t = t.substring(0, pos)+rsS12[176] + t.substring(pos+1);
																																						 flag=!flag; } ppos = pos; } } } this.ifDoc.body.innerHTML = t; this.updateShadow(); } function getContent(){ return this.ifDoc.body.innerHTML; } function _onContextMenu(e){ if(rsw_activeTextbox.repObj!=null) rsw_activeTextbox.repObj._onContextMenu(e);
																																						 if(rsw_MenuOnRightClick) { e.cancelBubble = true; e.preventDefault(); } rsw_broadcastToListeners(rsS12[181]); } function initialize(attempts){ var ifID = this.iframe.id;
																																						 this.shadowTBID = ifID.substring(0, ifID.length-3); this.shadowTB = rs_s3.getElementById(this.shadowTBID); if(!attempts) attempts = 0; if(!this.iframe.contentWindow.loaded && attempts<100){ eval(rsS12[183]+this.shadowTBID+rsS12[184]+attempts+rsS12[195]);
																																						 return; } this.ifDoc = this.iframe.contentWindow.document; this.ifDocElement = this.iframe.contentWindow.document.documentElement; rsw_createLink(this.ifDoc, this.CssSheetURL);
																																						 if(this.enabled){ if(this.editable){ eval(rsS12[196]+this.iframe.id+rsS12[197]); this.ifDoc.addEventListener(rsS12[167], this._onMouseDown, false); this.ifDoc.addEventListener(rsS12[168], this._onMouseUp, false);
																																						 this.ifDoc.addEventListener(rsS12[164], this._onKeyPress, false); this.ifDoc.addEventListener(rsS12[165], this._onKeyDown, false); this.ifDoc.addEventListener(rsS12[166], this._onKeyUp, false);
																																						 this.ifDoc.addEventListener(rsS12[181], this._onContextMenu, false); this.ifDoc.addEventListener(rsS12[169], this._onFocus, false); this.ifDoc.addEventListener(rsS12[170], this._onBlur, false);
																																						 this.ifDoc.addEventListener(rsS12[198], this._onClick, false); } } rsw_setSettings(this); } function unhook(){ this.ifDoc.removeEventListener(rsS12[167], this._onMouseDown, false);
																																						 this.ifDoc.removeEventListener(rsS12[168], this._onMouseUp, false); this.ifDoc.removeEventListener(rsS12[164], this._onKeyPress, false); this.ifDoc.removeEventListener(rsS12[165], this._onKeyDown, false);
																																						 this.ifDoc.removeEventListener(rsS12[166], this._onKeyUp, false); this.ifDoc.removeEventListener(rsS12[181], this._onContextMenu, false); this.ifDoc.removeEventListener(rsS12[169], this._onFocus, false);
																																						 this.ifDoc.removeEventListener(rsS12[170], this._onBlur, false); this.ifDoc.removeEventListener(rsS12[198], this._onClick, false); } function updateIframe(){ if(this.textIsXHTML) this.setContent((this.shadowTB.value), true);
																																						 else this.setContent(rsw_escapeHTML(this.shadowTB.value), true); } function updateShadow(){ this.shadowTB.value = this.getContentText(); } function getShadowText(){ return this.shadowTB.value;
																																						 } } function OldIETB(iframe){ this.iframe = iframe; this.ifDoc; this.initialize = initialize; this.ifDocElement; this.setContent = setContent; this.getContent = getContent;
																																						 this._onKeyPress = _onKeyPress; this._onPaste = _onPaste ; this._onMouseDown = _onMouseDown; this._onContextMenu = _onContextMenu; this._onDoubleClick = _onDoubleClick;
																																						 this.getSpanElements = getSpanElements; this.changeTo = changeTo; this.getAbsY = getAbsY; this.getAbsX = getAbsX; this.isStatic = true; this.createEditBox = createEditBox;
																																						 this.getContentText = getContentText; this.containsElement = containsElement; this.getShadowText = getShadowText; this.updateShadow = updateShadow; this.multiline = true;
																																						 this.spellChecker; this.OnCorrection = OnCorrection; this.getNumberOfErrors = getNumberOfErrors; this.getContentCleanHTML = getContentCleanHTML; this.targetIsPlain = true;
																																						 this.unhook = unhook; this.resetCaretPos = unimplementedFunction; this.recordCaretPos = unimplementedFunction; function unimplementedFunction(){} function containsElement(element){ var p;
																																						 if(element == this.iframe) return true; while( (p=element.parentNode) ){ if (p == this.iframe) return true; element = p; } return false; } function getAbsX(element, ev){ if(typeof ev.pageX == rsS12[199]){ return ev.pageX-15;
																																						 } else if (rs_s3.documentElement && rs_s3.documentElement.scrollLeft){ return (ev.clientX + rs_s3.documentElement.scrollLeft) - 15; }else if((ev.x)&&(ev.srcElement)&&(!top.opera)){ return (ev.clientX + self.document.body.scrollLeft)-15;
																																						 }else{ return ev.clientX-15; } } function getAbsY(element, ev){ if(typeof ev.pageY == rsS12[199]){ return ev.pageY-15; } else if (rs_s3.documentElement && rs_s3.documentElement.scrollTop){ return (ev.clientY + rs_s3.documentElement.scrollTop) - 15;
																																						 }else if ( (ev.y) && (ev.srcElement) && (!top.opera) ){ return (ev.clientY + self.document.body.scrollTop)-15; }else{ return ev.clientY-15; } } function changeTo(error, replacement){ var repl = rs_s3.createTextNode(replacement);
																																						 error.parentNode.replaceChild(repl, error); } function findElementsCell(element){ var p = element; while( (p=p.parentNode)!=null && p.tagName.toLowerCase()!=rsS12[200]){} return p;
																																						 } function createEditBox(error){ var width = error.offsetWidth; var repl = rs_s3.createElement(rsS12[157]); repl.setAttribute(rsS12[201], rsw_innerHTMLToText(error.innerHTML));
																																						 repl.setAttribute(rsS12[11], rsS12[202]); repl.onkeypress = rsw_inlineTB_onkeypress; repl.onblur=rsw_inlineTB_onBlur; repl.style.width = width * 1.8; error.parentNode.replaceChild(repl, error);
																																						 var scrollTop = this.iframe.scrollTop; repl.focus(); this.iframe.scrollTop = scrollTop; } function getSpanElements(){ return rs_s3.getElementsByTagName(rsS12[163]);
																																						 } function _onKeyPress(){ rsw_hideCM(); rsw_broadcastToListeners(rsS12[164]); } function _onMouseDown(){ rsw_hideCM(); rsw_broadcastToListeners(rsS12[167]); } function _onDoubleClick(){ rsw_getTBSHoldingElement(this).spellChecker.OnTextBoxDoubleClicked();
																																						 rsw_broadcastToListeners(rsS12[203]); } function setContent(content){ if(this.targetIsPlain){ var pos=-1; var ppos=0; var t=rsS12[0]; while( (pos=content.indexOf(rsS12[171], pos+1)) > -1){ if(pos>ppos+2){ if(content.substring(pos-1, pos)==rsS12[172]) t += rsS12[173]+content.substring(ppos, pos-1)+rsS12[174];
																																						 else t += rsS12[173]+content.substring(ppos, pos)+rsS12[174]; } else t += content.substring(ppos, pos)+rsS12[175]; ppos = pos; } if (ppos < content.length-1) t += rsS12[173]+content.substring(ppos, content.length)+rsS12[174];
																																						 var flag = false; if(!this.multiline){ var pos=-1; var ppos=0; var opener=-1; var closer=-1; while( (pos=t.indexOf(rsS12[176], pos+1)) > -1){ opener = t.lastIndexOf(rsS12[74], pos);
																																						 closer = t.lastIndexOf(rsS12[75], pos); if((opener==-1 && closer==-1) || opener==-1 || opener<closer) t = t.substring(0, pos)+rsS12[177] + t.substring(pos+1); ppos = pos;
																																						 } t = rsS12[178]+t+rsS12[179]; } else { var pos=-1; var ppos=0; var opener=-1; var closer=-1; var flag = true; while( (pos=t.indexOf(rsS12[176], pos+1)) > -1){ if(pos+1<t.length && t.charAt(pos+1)==rsS12[176]){ opener = t.lastIndexOf(rsS12[74], pos);
																																						 closer = t.lastIndexOf(rsS12[75], pos); if((opener==-1 && closer==-1) || opener==-1 || opener<closer){ if(flag) t = t.substring(0, pos)+rsS12[177] + t.substring(pos+1);
																																						 else t = t.substring(0, pos)+rsS12[176] + t.substring(pos+1); flag=!flag; } ppos = pos; } } } var tabexp = new RegExp(rsS12[204]); while(tabexp.test(t)) t = t.replace(tabexp, rsS12[205]);
																																						 this.iframe.innerHTML = t; }else this.iframe.innerHTML = content; } function getContent(){ return this.iframe.innerHTML; } function getContentCleanHTML(){ var nodes = this.iframe.childNodes;
																																						 var out = rsS12[0]; for(var i=0; i<nodes.length; i++){ out += rsw_cleanHTML(nodes[i]); } return out; } function rsw_cleanHTML(node){ var t = rsS12[0]; if(node.nodeName.toLowerCase()!=rsS12[206] && node.nodeName.toLowerCase()!=rsS12[157] && !(node.nodeName.toLowerCase()==rsS12[163] && node.className==rsS12[150] ) ){ t += rsS12[74]+node.nodeName +rsS12[176];
																																						 for (var att=0; att<node.attributes.length; att++){ if(node.attributes[att].nodeValue) t+= node.attributes[att].nodeName + "=\"" + node.attributes[att].nodeValue +"\" ";
																																						 } if(node.childNodes.length==0 && !node.nodeValue) t += rsS12[207]; t += rsS12[75]; } if(node.childNodes.length==0) { if(node.nodeValue) t += node.nodeValue; if(node.value) t += node.value;
																																						 } else{ for(var i=0; i<node.childNodes.length; i++) t += rsw_cleanHTML(node.childNodes[i]); } if(node.nodeName.toLowerCase()!=rsS12[206] && node.nodeName.toLowerCase()!=rsS12[157] && !(node.nodeName.toLowerCase()==rsS12[163] && node.className==rsS12[150] ) && !(node.childNodes.length==0 && !node.nodeValue) ) t += rsS12[76]+node.nodeName+rsS12[75];
																																						 return t; } function getContentText(){ var contentElements = this.iframe.childNodes; var contents = rsS12[0]; for (var i = 0; i < contentElements.length; i++) { if(contentElements[i].nodeValue){ contents += contentElements[i].nodeValue;
																																						 } else if(contentElements[i].nodeName.toLowerCase()==rsS12[155]) contents += rsS12[156]; else if(contentElements[i].nodeName.toLowerCase()==rsS12[157]){ contents += contentElements[i].value;
																																						 } else{ contents += rsw_innerText(contentElements[i]); } } var newlineexp = new RegExp(rsS12[171]); var t = contents; while(newlineexp.test(t)) t = t.replace(newlineexp, rsS12[0]);
																																						 contents = t; return contents; } function _onContextMenu(){ rsw_broadcastToListeners(rsS12[181]); return false; } function _onPaste(){ rsw_broadcastToListeners(rsS12[182]);
																																						 } function getShadowText(){ return this.shadowTB.value; } function updateShadow(){ if(this.targetIsPlain) this.spellChecker.tbInterface.setText(this.getContentText());
																																						 else this.spellChecker.tbInterface.setText(this.getContentCleanHTML()); } function initialize(){ this.iframe.onmousedown = this._onMouseDown ; this.iframe.ondblclick = this._onDoubleClick;
																																						 var ifID = this.iframe.id; this.shadowTBID = ifID.substring(0, ifID.length-2); this.shadowTB = rs_s3.getElementById(this.shadowTBID); } function unhook(){ this.iframe.onmousedown = null ;
																																						 this.iframe.ondblclick = null ; } function OnCorrection(e){ if(this.getNumberOfErrors()==0){ if(this.spellChecker.enterEditModeWhenNoErrors){ this.spellChecker.OnSpellButtonClicked();
																																						 } } rsw_broadcastToListeners(rsS12[153]); } function getNumberOfErrors(){ var errors = this.getSpanElements(); var numErrors=0; for(var i=0; i<errors.length; i++){ if(errors[i].className==rsS12[150]){ numErrors++;
																																						 } } return numErrors; } } function rsw_getElementHeight(Elem) { var op5 = (navigator.userAgent.indexOf(rsS12[208])!=-1) ||(navigator.userAgent.indexOf(rsS12[209])!=-1);
																																						 if (rs_s3.layers) { var elem = rsw_getObjNN4(document, Elem); return elem.clip.height; } else { if(rs_s3.getElementById) { var elem = rs_s3.getElementById(Elem); } else if (rs_s3.all){ var elem = rs_s3.all[Elem];
																																						 } if (op5) { xPos = elem.style.pixelHeight; } else { xPos = elem.offsetHeight; } return xPos; } } function rsw_getObjNN4(obj,name) { var x = obj.layers; var foundLayer;
																																						 for (var i=0;i<x.length;i++) { if (x[i].id == name) foundLayer = x[i]; else if (x[i].layers.length) var tmp = rsw_getObjNN4(x[i],name); if (tmp) foundLayer = tmp;
																																						 } return foundLayer; } function rsw_getElementWidth(Elem) { var op5 = (navigator.userAgent.indexOf(rsS12[208])!=-1) ||(navigator.userAgent.indexOf(rsS12[209])!=-1);
																																						 if (rs_s3.layers) { var elem = rsw_getObjNN4(document, Elem); return elem.clip.width; } else { if(rs_s3.getElementById) { var elem = rs_s3.getElementById(Elem); } else if (rs_s3.all){ var elem = rs_s3.all[Elem];
																																						 } if (op5) { xPos = elem.style.pixelWidth; } else { xPos = elem.offsetWidth; } return xPos; } } function rsw_findPosX(obj) { var curleft = 0; if (typeof(obj.offsetParent)!=rsS12[61] && obj.offsetParent) { while (obj.offsetParent) { curleft += obj.offsetLeft;
																																						 obj = obj.offsetParent; } curleft += obj.offsetLeft; } else if (obj.x) curleft += obj.x; return curleft; } function rsw_findPosY(obj) { var curtop = 0; if (typeof(obj.offsetParent)!=rsS12[61] && obj.offsetParent) { while (obj.offsetParent) { curtop += obj.offsetTop;
																																						 obj = obj.offsetParent; } curtop += obj.offsetTop; } else if (obj.y) curtop += obj.y; return curtop; } function rsw_decodeSuggestionItem(item){ return unescape(item).replace(rsS12[210], rsS12[211]).replace(rsS12[212], "\"");
																																						 } function RS_ContextMenu( errorElement, suggestions, textBox ) { this.suggestions = suggestions; this.CMItems = new Array() ; this.x = 0 ; this.y = 0 ; this.CMelement = null ;
																																						 this.textBox = textBox; this.show = show; this.setCMContent = setCMContent; this.hide = hide; this.setVisible = setVisible; this.moveCMElement = moveCMElement; this.getContentHtml = getContentHtml;
																																						 this.addItems = addItems; this.addItems(); function addItems(){ var isDuplicateWordErr = false; for( var i = 0; i < this.suggestions.length; i++ ) { if(this.suggestions[i].indexOf(rsS12[213])<0){ this.CMItems[this.CMItems.length] = new RS_ContextMenuItem( errorElement, rsw_decodeSuggestionItem(this.suggestions[i]), escape(this.suggestions[i]), rsS12[194] ) ;
																																						 if(this.textBox.spellChecker.showChangeAllItem){ this.CMItems[this.CMItems.length] = new RS_ContextMenuItem( errorElement, unescape(this.textBox.spellChecker.changeAllText), escape(this.suggestions[i]), rsS12[214], rsS12[215] ) ;
																																						 } } else { this.CMItems[this.CMItems.length] = new RS_ContextMenuItem( errorElement, this.textBox.spellChecker.removeDuplicateText, escape(this.suggestions[i].substring(1)), rsS12[216] ) ;
																																						 isDuplicateWordErr = true; } } if (this.suggestions.length == 0) { this.CMItems[0] = new RS_ContextMenuItem( errorElement, this.textBox.spellChecker.noSuggestionsText, rsS12[97], rsS12[217] ) ;
																																						 i=1; } else { i = this.CMItems.length; } if(!isDuplicateWordErr || this.textBox.isStatic){ this.CMItems[i] = new RS_ContextMenuItem( errorElement, rsS12[218], rsS12[218], rsS12[218] );
																																						 } if(this.textBox.isStatic){ this.CMItems[i+1] = new RS_ContextMenuItem( errorElement, this.textBox.spellChecker.editText, rsS12[101], rsS12[219] ) ; i++; } if(!isDuplicateWordErr){ this.CMItems[i+1] = new RS_ContextMenuItem( errorElement, this.textBox.spellChecker.ignoreAllText, rsS12[98], rsS12[220] ) ;
																																						 if(this.textBox.spellChecker.showAddMenuItem){ this.CMItems[i+2] = new RS_ContextMenuItem( errorElement, this.textBox.spellChecker.addText, rsS12[100], rsS12[221] );
																																						 } } if(rs_s3.getElementById(rsS12[222])==null) rsw_create_menu_div(); this.CMelement = rs_s3.getElementById(rsS12[222]) ; this.CMIFelement=document.getElementById(rsS12[223]) ;
																																						 this.setVisible( false ) ; } function show() { this.setVisible( true ) ; this.moveCMElement() ; this.setCMContent( this.getContentHtml() ) ; if(navigator.userAgent.toLowerCase().indexOf(rsS12[224])>-1){ this.CMIFelement.style.left = this.x+rsS12[22];
																																						 this.CMIFelement.style.top = this.y+rsS12[22]; this.CMIFelement.style.height= (rsw_getElementHeight(rsS12[222])-4)+rsS12[22]; this.CMIFelement.style.width= (rsw_getElementWidth(rsS12[222])-4)+rsS12[22];
																																						 } } function hide() { this.setVisible( false ) ; this.CMelement.innerHtml = rsS12[0] ; } function setCMContent (s) { this.CMelement.innerHTML = s ; } function setVisible(visible) { this.CMelement.style.visibility = visible ? rsS12[62] : rsS12[225] ;
																																						 if(navigator.userAgent.toLowerCase().indexOf(rsS12[224])>-1){ this.CMIFelement.style.visibility = visible ? rsS12[62] : rsS12[225] ; this.CMIFelement.style.display = visible ? rsS12[118] : rsS12[15] ;
																																						 } this.isVisible = visible ; } function moveCMElement () { this.CMelement.style.left = this.x+rsS12[22]; this.CMelement.style.top = this.y+rsS12[22]; if(navigator.userAgent.toLowerCase().indexOf(rsS12[224])>-1){ this.CMIFelement.style.left = this.x+rsS12[22];
																																						 this.CMIFelement.style.top = this.y+rsS12[22]; } } function getContentHtml() { var s = "<table class=\""+RS_ContextMenuTable_Class+"\" width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
																																						 var hasSubMenu = false; for( var i = 0; i < this.CMItems.length; i++ ) { hasSubMenu = i<this.CMItems.length-1 && this.CMItems[i+1].type==rsS12[215]; s += rsS12[226]+(hasSubMenu? rsS12[227]:rsS12[228] )+rsS12[75] ;
																																						 s += this.CMItems[i].getContentHtml() ; s += rsS12[229]; if(hasSubMenu){ i++; s += rsS12[230] + this.CMItems[i].getContentHtml() +rsS12[229]; } s+= rsS12[231] ; } s += rsS12[232] ;
																																						 return s ; } } function RS_ContextMenuItem( e, unescapedValue, escapedValue, action, type ) { this.unescapedValue = unescapedValue ; this.escapedValue = escapedValue ;
																																						 this.action = action; this.getContentHtml = getContentHtml; this.type = type?type:rsS12[233]; function getContentHtml() { var s; if(this.unescapedValue!=rsS12[218] && this.action!=rsS12[217] ){ s = "<span class=\""+ (this.type==rsS12[233] ? RS_ContextMenuItem_Class : RS_ContextMenuItem_AllSubItem_Class ) +"\" " + " onClick=\"RS_CMItemClicked( '"+this.escapedValue+rsS12[234]+this.action+"') ;\"" + " onMouseOut=\" RS_CMItemHighlight(this, 'out');\" " + " onMouseOver=\"RS_CMItemHighlight(this, 'over'); \" " + rsS12[75] + this.unescapedValue + rsS12[235] ;
																																						 } else if (this.action==rsS12[217]) { s = "<span class=\""+RS_ContextMenuItem_Disabled_Class+"\" " + rsS12[75] + this.unescapedValue + rsS12[235] ; } else { s = "<hr class=\""+RS_CMItemSeparator_Class+"\"/>";
																																						 } return s; } } function RS_CMItemHighlight( e, type ) { var p = e.className.indexOf(rsS12[236]); if(type == rsS12[237] ){ if(p>0) e.className = e.className.substring(0, p);
																																						 }else { if(p==-1)e.className = e.className + rsS12[236] ; } } function RS_CMItemClicked( replacement, action ) { replacement = unescape(replacement).replace(rsS12[210], rsS12[211]).replace(rsS12[212], "\"");
																																						 if(action==rsS12[220]){ rsw_ignoreAll(rsw_lastRightClickedError); } else if(action==rsS12[219]){ rsw_edit(rsw_lastRightClickedError); } else if(action==rsS12[221]){ rsw_add(rsw_lastRightClickedError);
																																						 } else if(action==rsS12[216]){ rsw_changeTo(rsw_lastRightClickedError, rsS12[0]); } else if(action==rsS12[214]){ rsw_changeAllTo(rsw_lastRightClickedError, replacement);
																																						 } else { rsw_changeTo(rsw_lastRightClickedError, replacement); } rsw_hideCM(); } function rsw_hideCM() { if(rsw_contextMenu) { rsw_contextMenu.hide() ; } } function rsw_create_menu_div(){ var divElement = rs_s3.createElement(rsS12[9]);
																																						 divElement.id = rsS12[222]; divElement.setAttribute(rsS12[238], rsS12[239]); try{ divElement.oncontextmenu= function(){try{event.cancelBubble=true;event.preventDefault();
																																						}catch(e){}return false;}; } catch (e){} rs_s3.getElementsByTagName(rsS12[14])[0].appendChild(divElement); if(navigator.userAgent.toLowerCase().indexOf(rsS12[224])>-1){ var ifElement = rs_s3.createElement(rsS12[240]);
																																						 ifElement.id = rsS12[223]; ifElement.setAttribute(rsS12[241], rsS12[242]); ifElement.setAttribute(rsS12[243], rsS12[244]); ifElement.setAttribute(rsS12[245], rsS12[246]);
																																						 ifElement.setAttribute(rsS12[12], rsS12[247]); rs_s3.getElementsByTagName(rsS12[14])[0].appendChild(ifElement); } } var rsw_ayt_initializing = false; function RapidSpell_Web_AsYouType(){ this.triggeredLast = false;
																																						 this.checkerCurrentlyInitializing = 0; this.onTextBoxesInit = onTextBoxesInit; this.checkNext = checkNext; this.onFinish = onFinish; this.onPause = onPause; function onPause(){ rsw_activeTextbox.recordCaretPos();
																																						 rsw_activeTextbox.spellChecker.OnSpellButtonClicked(); } function onTextBoxesInit(){ rsw_ayt_initializing = true; this.checkNext(); } function checkNext(){ if(rsw_scs.length>this.checkerCurrentlyInitializing){ rsw_scs[this.checkerCurrentlyInitializing].OnSpellButtonClicked();
																																						 this.checkerCurrentlyInitializing++; } return this.checkerCurrentlyInitializing < rsw_scs.length; } function onFinish(){ if(!rsw_ayt_initializing){ rsw_activeTextbox.resetCaretPos();
																																						 } if(rsw_ayt_initializing && this.triggeredLast){ rsw_ayt_initializing = false; if(typeof (_notifySpellCheckListeners) != rsS12[61]) _notifySpellCheckListeners(rsS12[248]);
																																						 } if(rsw_ayt_initializing){ this.triggeredLast = !this.checkNext(); } } } function RSW_EditableElementFinder(){ this.findPlainTargetElement = findPlainTargetElement;
																																						 this.findRichTargetElements = findRichTargetElements; this.obtainElementWithInnerHTML = obtainElementWithInnerHTML; this.findEditableElements = findEditableElements;
																																						 this.elementIsEditable = elementIsEditable; this.getEditableContentDocument = getEditableContentDocument; function findPlainTargetElement(elementID){ var rsw_elected = rs_s3.getElementById(elementID);
																																						 if(rsw_elected!=null && rsw_elected.tagName && (rsw_elected.tagName.toUpperCase()==rsS12[249] || rsw_elected.tagName.toUpperCase()==rsS12[250])){ return rsw_elected;
																																						 } else return null; } function findRichTargetElements(debugTextBox){ var editables = new Array(); this.findEditableElements(document, editables, window,rsS12[0], debugTextBox);
																																						 return editables; } function obtainElementWithInnerHTML(editable){ if(typeof(editable.innerHTML)!=rsS12[61]) return editable; else if(typeof(editable.documentElement)!=rsS12[61]) return editable.documentElement;
																																						 return null; } function findEditableElements(node, editables, parent, debugInset, debugTextBox){ var children = node.childNodes; var editableElement; if(debugTextBox) debugTextBox.value += debugInset + node.tagName +rsS12[251] + node.id+rsS12[176];
																																						 if( (editableElement=this.elementIsEditable(node))!=null || (editableElement=this.getEditableContentDocument(node, debugTextBox))!=null ){ if(debugTextBox) debugTextBox.value += rsS12[252]+editableElement[0].id+rsS12[207]+editableElement[1].id+rsS12[176];
																																						 editables[editables.length] = editableElement; } if(debugTextBox) debugTextBox.value += rsS12[156]; for (var i = 0; i < children.length; i++) { this.findEditableElements(children[i], editables, node, debugInset+rsS12[176], debugTextBox);
																																						 } } function elementIsEditable(element){ if ( ( typeof(element.getAttribute)!=rsS12[61] && ( element.getAttribute(rsS12[187])==rsS12[110] || element.getAttribute(rsS12[253])==rsS12[254] ) ) || ( (element.contentEditable && element.contentEditable==true) || (element.designMode && element.designMode.toLowerCase()==rsS12[254]) ) ) return [element, element];
																																						 else return null; } function getEditableContentDocument(element, debugTextBox){ if(element.tagName && element.tagName==rsS12[240]){ var kids = new Array(); if(element.contentWindow && element.contentWindow.document){ if(debugTextBox) debugTextBox.value += rsS12[255];
																																						 this.findEditableElements(element.contentWindow.document, kids, element, rsS12[256], debugTextBox); if(kids.length>0){ var editable = kids[0][0]; if(typeof(editable.body)!=rsS12[61]) editable = editable.body;
																																						 return [editable, element]; } } } return null; } } var rsw_require_init = true; function rsw_ASPNETAJAX_OnInitializeRequest(sender, eventArgs){ rsw_require_init=true;
																																						 for(var i=0; i<rsw_scs.length; i++){ if( rsw_scs[i].state==rsS12[119]) rsw_scs[i].OnSpellButtonClicked(true); rsw_scs[i].rsw_tbs = null; } rsw_tbs = new Array(); } function rsw_ASPNETAJAX_OnEndRequest(sender, eventArgs){ rsw_createLink(document, rsw_rs_menu_styleURL);
																																						 rsw_createLink(document, rsw_rs_styleURL); if(rsw_require_init){ setTimeout(rsS12[257], 200); } rsw_require_init = false; } if( typeof(Sys)!=rsS12[61] && typeof(Sys.Application)!=rsS12[61]) Sys.Application.notifyScriptLoaded();
																																						 
