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