anchor.diff:  <%@ page
   
  -	import="imcode.server.document.textdocument.TextDomainObject,
  -	        com.imcode.imcms.servlet.admin.ChangeText,
  -	        org.apache.commons.lang.StringEscapeUtils,
  -            org.apache.commons.lang.StringUtils"
  +	import="com.imcode.imcms.servlet.admin.ChangeText,
  +	        imcode.server.Imcms,
  +	        org.apache.commons.lang.StringEscapeUtils, imcode.util.Utility, imcode.server.LanguageMapper"
   
       contentType="text/html; charset=UTF-8"
   
  
positive.code: 	response.setContentType( "text/html; charset=" + Imcms.DEFAULT_ENCODING );
  ChangeText.TextEditPage textEditPage = (ChangeText.TextEditPage) request.getAttribute(ChangeText.TextEditPage.REQUEST_ATTRIBUTE__PAGE);
  
  boolean imcmsModeHtml    = (textEditPage.getType() == TextDomainObject.TEXT_TYPE_HTML) ;
  boolean imcmsModeText    = !imcmsModeHtml ;
  boolean showEditorCookie = !getCookie("imcms_hide_editor", request).equals("true") ;
  %>
  <%@ include file="../../htmlarea/_editor_scripts.jsp" %>
  <vel:velocity>
  <html>
  <head>
  <title><? templates/sv/change_text.html/1 ?></title>
  
  <link rel="stylesheet" type="text/css" href="$contextPath/imcms/css/imcms_admin.css.jsp">
  <script src="$contextPath/imcms/$language/scripts/imcms_admin.js.jsp" type="text/javascript"></script>
  
  </head>
  <body bgcolor="#FFFFFF" style="margin-bottom:0px;" onLoad="checkMode();<%=
  (isHtmlAreaSupported && showModeEditor) ? " checkEditor(" + ((imcmsModeText && !textEditPage.getTextString().equals("")) ? "true":"false") + ");" : "" %>"<%=
  (isHtmlAreaSupported) ? " onResize=\"setEditorSize()\"" : "" %>>
  
  <div id="theLabel" style="display:none"><i><%= StringEscapeUtils.escapeHtml( textEditPage.getLabel() ) %></i></div>
  
  
  #gui_outer_start()
  #gui_head( "<? global/imcms_administration ?>" )
  
  <table border="0" cellspacing="0" cellpadding="0" width="100%">
  <form method="POST" action="SaveText">
  <input type="hidden" name="meta_id"  value="<%= textEditPage.getDocumentId() %>">
  <input type="hidden" name="txt_no"   value="<%= textEditPage.getTextIndex() %>">
  <input type="hidden" name="type"     value="<%= textEditPage.getType() %>">
  <tr>
  	<td>
  	<table border="0" cellspacing="0" cellpadding="0">
  	<tr>
  		<td>
  		<input type="button" tabindex="10" value="<? global/back ?>" name="cancel" class="imcmsFormBtn"
  		 onClick="document.location = 'AdminDoc?meta_id=<%= textEditPage.getDocumentId() %>&flags=65536'"></td><%
  		if (isHtmlAreaSupported && showModeEditor) { %>
  		<td style="color:#ffffff;" nowrap><span id="editorOpenText" style="display:none">&nbsp; &nbsp; <? install/htdocs/sv/htmleditor/editor/editor.jsp/3000 ?> &nbsp;</span></td>
  		<td><span id="editorOpenBtn" style="display:none"><%
  			if (getCookie("imcms_hide_editor", request).equals("true")) { %>
  		<button tabindex="11" id="editorOnOffBtn0" onClick="toggleEditorOnOff(0); return false"
  			class="imcmsFormBtn" style="width:40"><? global/off ?></button>
  		<button tabindex="11" id="editorOnOffBtn1" onClick="toggleEditorOnOff(1); return false"
  			class="imcmsFormBtnActive" style="width:40; display:none"><? global/on ?></button><%
  			} else { %>
  		<button tabindex="11" id="editorOnOffBtn0" onClick="toggleEditorOnOff(0); return false"
  			class="imcmsFormBtn" style="width:40; display:none"><? global/off ?></button>
  		<button tabindex="11" id="editorOnOffBtn1" onClick="toggleEditorOnOff(1); return false"
  			class="imcmsFormBtnActive" style="width:40;"><? global/on ?></button><%
  			} %></span></td><%
  		} %>
  	</tr>
  	</table></td>
  
  
negative.code: </table>
  
  #gui_mid()
  <div id="theLabel"><%= StringEscapeUtils.escapeHtml( textEditPage.getLabel() ) %></div>
  
  <table border="0" cellspacing="0" cellpadding="2" width="660" align="center">
  </vel:velocity>
  <tr>
  	<td colspan="2" class="imcmsAdmForm">
  	<textarea name="text" tabindex="1" id="text" cols="125" rows="18" style="overflow: auto; width: 100%" wrap="virtual"><%= StringEscapeUtils.escapeHtml( textEditPage.getTextString() ) %></textarea></td>
  </tr>
  <vel:velocity>
  <tr>
  	<td colspan="2">
  	<table border="0" cellspacing="0" cellpadding="0" width="100%">
  	<tr>
  		<td align="right">
              <input type="hidden" name="format_type" value="1" />
              <input tabindex="2" type="SUBMIT" class="imcmsFormBtn" name="ok" value="  <? templates/sv/change_text.html/2006 ?>  ">
              <input tabindex="3" type="SUBMIT" class="imcmsFormBtn" name="save" value="  <? templates/sv/change_text.html/save ?>  ">
              <input tabindex="4" type="RESET" class="imcmsFormBtn" value="<? templates/sv/change_text.html/2007 ?>">
              <input tabindex="5" type="SUBMIT" class="imcmsFormBtn" name="cancel" value=" <? templates/sv/change_text.html/2008 ?> ">
          </td>
  	</tr>
  	</table></td>
  </tr>
  </table>
  #gui_bottom()
  #gui_outer_end()
  </form>
  </body>
  </html>
  </vel:velocity>
  