/g, '>');pasteText = pasteText.replace(/\'/g, '#APOSTROPHE#');pasteText = pasteText.replace(/\r/g,'');pasteText = pasteText.replace(/\n/g,'#ENTER#');hideTextRichPasteTextWindow();eval(onEndTextRichPasteTextFunction + '(\'' + pasteText + '\')');}function onClickTextRichPasteTextCancelButton(){hideTextRichPasteTextWindow();}var onEndTextRichInsertImageFunction = null;var textRichInsertImageFolder = null;var textRichInsertImageSrc = '';function onClickTextRichUploadMainImage(){elem('textRichUploadImageInput').click();}function onChangeTextRichUploadImage(){var mainImageValue = elem('textRichUploadImageInput').value;if (mainImageValue.length > 0){showWaitMessage('Subiendo imagen. Espere, por favor...');elem('textRichUploadImageFolder').value = textRichInsertImageFolder;elem('textRichUploadImagesForm').submit();}}function onEndTextRichUploadImages(r, rf){hideWaitMessage();elem('textRichUploadImagesForm').reset();if (r == 'OK'){textRichInsertImageSrc = rf[0][0];elem('textRichUploadImageImg').src = rf[0][1];}else{if (r == 'KO-INV'){showErrorMessage('Formato de imagen no válido');return;}if (r == 'KO-SIZ'){showErrorMessage('La imagen es demasiado grande');return;}showErrorMessage('Se ha producido un error al subir la imagen');}}function onClickTextRichInsertImageAcceptButton(){if (textRichInsertImageSrc == ''){showErrorMessage('Debe seleccionar una imagen');return;}var altText = obtainTextRichInsertImageAltInput();if (altText == ''){errorMessageFunction = 'focusTextRichInsertImageAltInput(true)';showErrorMessage('Debe rellenar el texto alternativo');return;}altText = altText.replace(/\'/g, '#APOSTROPHE#');altText = altText.replace(/"/g, '#APOSTROPHE#');hideTextRichInsertImageWindow();eval(onEndTextRichInsertImageFunction + '(\'' + textRichInsertImageSrc + '\', \'' + altText + '\')');}function onClickTextRichInsertImageCancelButton(){hideTextRichInsertImageWindow();}var onEndTextRichCreateLinkFunction = null;function onClickTextRichCreateLinkAcceptButton(){var linkUrl = obtainTextRichCreateLinkUrlInput();if (linkUrl == ''){errorMessageFunction = 'focusTextRichCreateLinkUrlInput(true)';showErrorMessage('Debe rellenar la dirección web');return;}var isExternal = obtainTextRichCreateLinkExternalCheckBox();hideTextRichCreateLinkWindow();eval(onEndTextRichCreateLinkFunction + '(\'' + linkUrl + '\', ' + isExternal + ')');}function onClickTextRichCreateLinkCancelButton(){hideTextRichCreateLinkWindow();}function obtainEmailInput(){return elem('emailInput').value.replace(/^\s*|\s*$/g,'');}function changeEmailInput(v){elem('emailInput').value = v;}function focusEmailInput(s){if (elem('emailInput').disabled==false){elem('emailInput').focus();if ((typeof(s) == 'undefined') || (s)){elem('emailInput').select();}}}function __$onKeyUpInputEmailInput$(e){var k=gkey(e);var c=gctrl(e);if (c){k=17;}onKeyUpEmailInput(k);}function obtainPasswordInput(){return elem('passwordInput').value.replace(/^\s*|\s*$/g,'');}function changePasswordInput(v){elem('passwordInput').value = v;}function focusPasswordInput(s){if (elem('passwordInput').disabled==false){elem('passwordInput').focus();if ((typeof(s) == 'undefined') || (s)){elem('passwordInput').select();}}}function __$onKeyUpInputPasswordInput$(e){var k=gkey(e);var c=gctrl(e);if (c){k=17;}onKeyUpPasswordInput(k);}function obtainRememberCheckBox(){return elem('rememberCheckBox').checked;}function __$onChangeRememberCheckBox$(){var c=elem('rememberCheckBox').checked;onChangeRememberCheckBox(c);}function changeResultText(c){elem('resultText').innerHTML=c;}function showWaitMessageWindow(){if (elem('__$windowWaitMessageWindow$').style.display == 'none'){elem('__$windowWaitMessageWindow$').style.display='inline';var t=window.pageYOffset || document.documentElement['scrollTop'] || document.body.scrollTop;elem('__$containerWaitMessageWindow$').style.top=(t+15)+'px';elem('__$containerWaitMessageWindow$').style.display='table';doPageOnResize();setTimeout(function() { __$endShowWaitMessageWindow$(); }, 10);}}function __$endShowWaitMessageWindow$(){elem('__$windowWaitMessageWindow$').className='window-messageWindow-on';elem('__$wrapperWaitMessageWindow$').className='wrapper-messageWindow-on';}function hideWaitMessageWindow(){__$hideWaitMessageWindow$();}function __$hideWaitMessageWindow$(){if (elem('__$windowWaitMessageWindow$').style.display == 'inline'){elem('__$wrapperWaitMessageWindow$').className='wrapper-messageWindow-off';elem('__$windowWaitMessageWindow$').className='window-messageWindow-off';setTimeout(function() { __$endHideWaitMessageWindow$(); }, 300);}}function __$endHideWaitMessageWindow$(){elem('__$containerWaitMessageWindow$').style.display='none';elem('__$windowWaitMessageWindow$').style.display='none';}function changeWaitMessageText(c){elem('waitMessageText').innerHTML=c;}function showInformationMessageWindow(){if (elem('__$windowInformationMessageWindow$').style.display == 'none'){elem('__$windowInformationMessageWindow$').style.display='inline';var t=window.pageYOffset || document.documentElement['scrollTop'] || document.body.scrollTop;elem('__$containerInformationMessageWindow$').style.top=(t+15)+'px';elem('__$containerInformationMessageWindow$').style.display='table';doPageOnResize();setTimeout(function() { __$endShowInformationMessageWindow$(); }, 10);}}function __$endShowInformationMessageWindow$(){elem('__$windowInformationMessageWindow$').className='window-messageWindow-on';elem('__$wrapperInformationMessageWindow$').className='wrapper-messageWindow-on';}function hideInformationMessageWindow(){__$hideInformationMessageWindow$();}function __$hideInformationMessageWindow$(){if (elem('__$windowInformationMessageWindow$').style.display == 'inline'){elem('__$wrapperInformationMessageWindow$').className='wrapper-messageWindow-off';elem('__$windowInformationMessageWindow$').className='window-messageWindow-off';setTimeout(function() { __$endHideInformationMessageWindow$(); }, 300);}}function __$endHideInformationMessageWindow$(){elem('__$containerInformationMessageWindow$').style.display='none';elem('__$windowInformationMessageWindow$').style.display='none';}function changeInformationMessageText(c){elem('informationMessageText').innerHTML=c;}function showConfirmationMessageWindow(){if (elem('__$windowConfirmationMessageWindow$').style.display == 'none'){elem('__$windowConfirmationMessageWindow$').style.display='inline';var t=window.pageYOffset || document.documentElement['scrollTop'] || document.body.scrollTop;elem('__$containerConfirmationMessageWindow$').style.top=(t+15)+'px';elem('__$containerConfirmationMessageWindow$').style.display='table';doPageOnResize();setTimeout(function() { __$endShowConfirmationMessageWindow$(); }, 10);}}function __$endShowConfirmationMessageWindow$(){elem('__$windowConfirmationMessageWindow$').className='window-messageWindow-on';elem('__$wrapperConfirmationMessageWindow$').className='wrapper-messageWindow-on';}function hideConfirmationMessageWindow(){__$hideConfirmationMessageWindow$();}function __$hideConfirmationMessageWindow$(){if (elem('__$windowConfirmationMessageWindow$').style.display == 'inline'){elem('__$wrapperConfirmationMessageWindow$').className='wrapper-messageWindow-off';elem('__$windowConfirmationMessageWindow$').className='window-messageWindow-off';setTimeout(function() { __$endHideConfirmationMessageWindow$(); }, 300);}}function __$endHideConfirmationMessageWindow$(){elem('__$containerConfirmationMessageWindow$').style.display='none';elem('__$windowConfirmationMessageWindow$').style.display='none';}function changeConfirmationMessageText(c){elem('confirmationMessageText').innerHTML=c;}function showErrorMessageWindow(){if (elem('__$windowErrorMessageWindow$').style.display == 'none'){elem('__$windowErrorMessageWindow$').style.display='inline';var t=window.pageYOffset || document.documentElement['scrollTop'] || document.body.scrollTop;elem('__$containerErrorMessageWindow$').style.top=(t+15)+'px';elem('__$containerErrorMessageWindow$').style.display='table';doPageOnResize();setTimeout(function() { __$endShowErrorMessageWindow$(); }, 10);}}function __$endShowErrorMessageWindow$(){elem('__$windowErrorMessageWindow$').className='window-messageWindow-on';elem('__$wrapperErrorMessageWindow$').className='wrapper-messageWindow-on';}function hideErrorMessageWindow(){__$hideErrorMessageWindow$();}function __$hideErrorMessageWindow$(){if (elem('__$windowErrorMessageWindow$').style.display == 'inline'){elem('__$wrapperErrorMessageWindow$').className='wrapper-messageWindow-off';elem('__$windowErrorMessageWindow$').className='window-messageWindow-off';setTimeout(function() { __$endHideErrorMessageWindow$(); }, 300);}}function __$endHideErrorMessageWindow$(){elem('__$containerErrorMessageWindow$').style.display='none';elem('__$windowErrorMessageWindow$').style.display='none';}function changeErrorMessageText(c){elem('errorMessageText').innerHTML=c;}function showTextRichPasteTextWindow(){if (elem('__$windowTextRichPasteTextWindow$').style.display == 'none'){elem('__$windowTextRichPasteTextWindow$').style.display='inline';var t=window.pageYOffset || document.documentElement['scrollTop'] || document.body.scrollTop;elem('__$containerTextRichPasteTextWindow$').style.top=(t+15)+'px';elem('__$containerTextRichPasteTextWindow$').style.display='table';doPageOnResize();setTimeout(function() { __$endShowTextRichPasteTextWindow$(); }, 10);}}function __$endShowTextRichPasteTextWindow$(){elem('__$windowTextRichPasteTextWindow$').className='window-window-on';elem('__$wrapperTextRichPasteTextWindow$').className='wrapper-window-on';}function hideTextRichPasteTextWindow(){__$hideTextRichPasteTextWindow$();}function __$hideTextRichPasteTextWindow$(){if (elem('__$windowTextRichPasteTextWindow$').style.display == 'inline'){elem('__$wrapperTextRichPasteTextWindow$').className='wrapper-window-off';elem('__$windowTextRichPasteTextWindow$').className='window-window-off';setTimeout(function() { __$endHideTextRichPasteTextWindow$(); }, 300);}}function __$endHideTextRichPasteTextWindow$(){elem('__$containerTextRichPasteTextWindow$').style.display='none';elem('__$windowTextRichPasteTextWindow$').style.display='none';}function obtainTextRichPasteTextTextTextArea(){return elem('textRichPasteTextTextTextArea').value.replace(/^\s*|\s*$/g,'');}function changeTextRichPasteTextTextTextArea(v){elem('textRichPasteTextTextTextArea').value=v;}function focusTextRichPasteTextTextTextArea(s){if (elem('textRichPasteTextTextTextArea').readOnly==false){elem('textRichPasteTextTextTextArea').focus();if ((typeof(s)=='undefined') || (s)){elem('textRichPasteTextTextTextArea').select();}}}function showTextRichInsertImageWindow(){if (elem('__$windowTextRichInsertImageWindow$').style.display == 'none'){elem('__$windowTextRichInsertImageWindow$').style.display='inline';var t=window.pageYOffset || document.documentElement['scrollTop'] || document.body.scrollTop;elem('__$containerTextRichInsertImageWindow$').style.top=(t+15)+'px';elem('__$containerTextRichInsertImageWindow$').style.display='table';doPageOnResize();setTimeout(function() { __$endShowTextRichInsertImageWindow$(); }, 10);}}function __$endShowTextRichInsertImageWindow$(){elem('__$windowTextRichInsertImageWindow$').className='window-window-on';elem('__$wrapperTextRichInsertImageWindow$').className='wrapper-window-on';}function hideTextRichInsertImageWindow(){__$hideTextRichInsertImageWindow$();}function __$hideTextRichInsertImageWindow$(){if (elem('__$windowTextRichInsertImageWindow$').style.display == 'inline'){elem('__$wrapperTextRichInsertImageWindow$').className='wrapper-window-off';elem('__$windowTextRichInsertImageWindow$').className='window-window-off';setTimeout(function() { __$endHideTextRichInsertImageWindow$(); }, 300);}}function __$endHideTextRichInsertImageWindow$(){elem('__$containerTextRichInsertImageWindow$').style.display='none';elem('__$windowTextRichInsertImageWindow$').style.display='none';}function obtainTextRichInsertImageAltInput(){return elem('textRichInsertImageAltInput').value.replace(/^\s*|\s*$/g,'');}function changeTextRichInsertImageAltInput(v){elem('textRichInsertImageAltInput').value = v;}function focusTextRichInsertImageAltInput(s){if (elem('textRichInsertImageAltInput').disabled==false){elem('textRichInsertImageAltInput').focus();if ((typeof(s) == 'undefined') || (s)){elem('textRichInsertImageAltInput').select();}}}function showTextRichCreateLinkWindow(){if (elem('__$windowTextRichCreateLinkWindow$').style.display == 'none'){elem('__$windowTextRichCreateLinkWindow$').style.display='inline';var t=window.pageYOffset || document.documentElement['scrollTop'] || document.body.scrollTop;elem('__$containerTextRichCreateLinkWindow$').style.top=(t+15)+'px';elem('__$containerTextRichCreateLinkWindow$').style.display='table';doPageOnResize();setTimeout(function() { __$endShowTextRichCreateLinkWindow$(); }, 10);}}function __$endShowTextRichCreateLinkWindow$(){elem('__$windowTextRichCreateLinkWindow$').className='window-window-on';elem('__$wrapperTextRichCreateLinkWindow$').className='wrapper-window-on';}function hideTextRichCreateLinkWindow(){__$hideTextRichCreateLinkWindow$();}function __$hideTextRichCreateLinkWindow$(){if (elem('__$windowTextRichCreateLinkWindow$').style.display == 'inline'){elem('__$wrapperTextRichCreateLinkWindow$').className='wrapper-window-off';elem('__$windowTextRichCreateLinkWindow$').className='window-window-off';setTimeout(function() { __$endHideTextRichCreateLinkWindow$(); }, 300);}}function __$endHideTextRichCreateLinkWindow$(){elem('__$containerTextRichCreateLinkWindow$').style.display='none';elem('__$windowTextRichCreateLinkWindow$').style.display='none';}function obtainTextRichCreateLinkUrlInput(){return elem('textRichCreateLinkUrlInput').value.replace(/^\s*|\s*$/g,'');}function changeTextRichCreateLinkUrlInput(v){elem('textRichCreateLinkUrlInput').value = v;}function focusTextRichCreateLinkUrlInput(s){if (elem('textRichCreateLinkUrlInput').disabled==false){elem('textRichCreateLinkUrlInput').focus();if ((typeof(s) == 'undefined') || (s)){elem('textRichCreateLinkUrlInput').select();}}}function uncheckTextRichCreateLinkExternalCheckBox(){elem('textRichCreateLinkExternalCheckBox').checked=false;}function obtainTextRichCreateLinkExternalCheckBox(){return elem('textRichCreateLinkExternalCheckBox').checked;}