anchor.diff:      return result.flat_map{|item| [item, "<br/>"]}[0...-1]
     end
   %>
  -
  -
   
   <div class="post">
       <table style="width: 100%;">
  
positive.code:     return ["<table style=\"margin-left: 20px; margin-top: 6px; margin-bottom: 20px;\"><tr><td><strong><em>Parameter für die Berechnung:</em></strong>&nbsp;&nbsp;&nbsp;</td><td></td></tr>",
          "<tr><td>Glättungsfaktor für die exponentielle Glättung:</td><td style=\"text-align: center\">#{text_field_tag :exponential_smoothing_factor, format("%.2f", exponential_smoothing_factor).to_s.sub(".", ","), size: 7}</td></tr>",
          "<tr><td>Schätzung für den Monat:</td><td style=\"text-align: center\">#{text_field_tag :target_date, get_german_month_from_date_ordinal(target_date).to_s, size: 7}</td></tr>",
          "<tr><td></td><td style=\"text-align: center\">#{submit_tag("Berechnen")}</td></tr></table>",
          "<span style=\"margin-left: 20px\"><strong><em>Ergebnisse der Berechnung:</em></strong></span><br/>",
          "<table border=\"1px\" bordercolor=\"#d3d7d9\" frame=\"void\" rules=\"rows\" style=\"margin-left: 20px; margin-top: 6px; width: 580px; border: solid 1px #d3d7d9\">",
          "<tr><td style=\"padding: 5px;\">Ist-Absätze für die vorhergenden Monate:</td><td></td style=\"text-align: center; width: 100px, padding: 5px;\"></tr>",
  
negative.code: <script type="text/javascript">
    function validateForm() {
        var result;
        var val_exponential_smoothing_factor = document.getElementById('exponential_smoothing_factor').value;
        var val_target_date = document.getElementById('target_date').value;
        
        val_exponential_smoothing_factor = val_exponential_smoothing_factor.replace(",", "."); 
        result = (!isNaN(val_exponential_smoothing_factor) && val_exponential_smoothing_factor.toString().indexOf('.') != -1) && (val_exponential_smoothing_factor >= 0.1) && (val_exponential_smoothing_factor <= 0.3);
        if (!result) {
          alert("Glättungsfaktor muss zwischen 0,10 und 0,30 liegen!");
          return false;
        }
        
        result = (val_target_date).match(/^((0\d)|(10)|(11)|(12))\.\d\d\d\d$/);
        if (!result) {
          alert("Monat muss im Format MM.JJJJ angegeben werden (z.B. 11.2014)!");
          return false;
        }
        
        document.getElementById('exponential_smoothing_factor').value = document.getElementById('exponential_smoothing_factor').value.replace(".", ",");
        return true;
    }
  </script>
  
  <%
    def product_structure_output(article, parent_amount, accu)
      lower_parts = ArticleStructure.where(upper_part: article)
  