anchor.diff:  <script type="text/javascript">
   
   
  -  function update_chart(id) {
  +  function edit_field(id) {
       // using the same id for the editable field should make it easier to close, when we open 
       // different fields
   
  
positive.code:       <%= @row[@fname] %>  
        </span> 
  
        <input class="submit" type="button" value="Edit" onclick="update_chart('edit_<%= @fname %>')">
        <input class="submit" type="button" value="Close" onclick="close_chart('edit_<%= @fname %>')">
      </td>
    <% end %>
  
  
negative.code:     console.log( 'x is ' + x );
    };
  
    function close_field(id) {
   
      console.log( 'close !! ' + id );
      $( "#myresultform").remove();
  