anchor.diff:        comment.setAuthor(user.getId());
   
         if ("".equals(title)) {
  -        throw new BadInputException("     ");
  +        throw new BadInputException("заголовок сообщения не может быть пустым");
         }
   
         if ("".equals(msg)) {
  -        throw new BadInputException("    ");
  +        throw new BadInputException("комментарий не может быть пустым");
         }
   
         if (!preview && !Template.isSessionAuthorized(session)) {
  
positive.code:   }
  
    if (preview && comment!=null) {
      out.print("<p><b> </b></p>");
      out.print("<div class=messages>");
      CommentView view = new CommentView();
      out.print(view.printMessage(comment, tmpl, db, null, false, tmpl.isModeratorSession(), Template.getNick(session), false));
      out.print("</div>");
    }
  %>
  :
  <input type=text name=title size=40 value="<%= title %>"><br>
  
  :<br>
  <font size=2>(  <i>Tex paragraphs</i>   .<br>   (  Enter)   .<br>  '&gt;'       )</font><br>
  <textarea name="msg" cols="70" rows="20" onkeypress="return ctrl_enter(event, this.form);"><%= request.getParameter("msg")==null?"":HTMLFormatter.htmlSpecialChars(request.getParameter("msg")) %></textarea><br>
  
  <select name=mode>
  
negative.code: 
          int msgid = comment.saveNewMessage(db, request.getRemoteAddr(), request.getHeader("user-agent"));
  
          String logmessage = "Написан комментарий " + msgid + " ip:" + request.getRemoteAddr();
          if (request.getHeader("X-Forwarded-For") != null) {
            logmessage = logmessage + " XFF:" + request.getHeader(("X-Forwarded-For"));
          }
  