anchor.diff:  
     var tblTag = $('<table cellpadding="0" cellspacing="0" class="elementtable" width="100%"></table>')
     var tag=$('<th colspan="4"></th>');
  -  var image = $('<a href="#"><img src="static/images/tinybutton-removenode.gif" width="79" height="15" border="0" alt="Remove Node" title="Remove this node and its child groups/sponsors"></a>&nbsp').click(function() {
  +  var image = $('<a href="#"><img src="static/images/tinybutton-removenode.gif" width="79" height="15" border="0" alt="Remove Node" title="Remove this node and its child groups/sponsors"></a>&nbsp').attr("id","remove"+i).click(function() {
                         var liId="li#"+id;
  -                      removedNode = $(liId);
  +                      removedNode = $(liId).clone(true);
  +                      //removedNode = $(liId); // this will not work because event also lost
                         alert("Remove node "+removedNode.attr("id"));
                         $(liId).remove();
                       }); 
     tag.html(image);
  -  image = $('<a href="#"><img src="static/images/tinybutton-cutnode.gif" width="79" height="15" border="0" alt="Cut Node" title="Cut this node and its child roups/sponsors.  (Node will not be removed until you paste it.)"></a>&nbsp').click(function() {
  +  image = $('<a href="#"><img src="static/images/tinybutton-cutnode.gif" width="79" height="15" border="0" alt="Cut Node" title="Cut this node and its child roups/sponsors.  (Node will not be removed until you paste it.)"></a>&nbsp').attr("id","cut"+i).click(function() {
                         alert("Cut node");
                       }); 
     image.appendTo(tag);                  
  -  image = $('<a href="#"><img src="static/images/tinybutton-pastenode.gif" width="79" height="15" border="0" alt="Paste Node" title="Paste your previously cut node structure under this node"></a>').click(function() {
  +  image = $('<a href="#"><img src="static/images/tinybutton-pastenode.gif" width="79" height="15" border="0" alt="Paste Node" title="Paste your previously cut node structure under this node"></a>').attr("id","paste"+i).click(function() {
   
                   if (removedNode) {
                         var parentNode = $("#"+id);
  
positive.code:                       }   
                        removedNode.appendTo(ulTag);
                        ulTag.appendTo(parentNode);
                     }                         
                  }); 
                      
                      
  
negative.code:     var parentNode = $("#"+tagId);
      alert ("load subnodes for "+nodeName+"-"+parentNode.parents('li:eq(0)').attr("id")+"-" );
      var liNode = parentNode.parents('li:eq(0)');
      var ulNode = liNode.children('ul:eq(0)');
      var inputNodev;
  //    alert (ulNode);
  //    if (liNode.children('ul').size() > 0 ) {
  //        inputNodev = ulNode.children('input:eq(0)');
  //    }
      
      
      //if (liNode.children('ul').size() == 0 ) {
      if (liNode.children('ul').size() == 0 || ulNode.children('input').size() == 0 ) {
          alert(liNode.children('ul').size());
          $.ajax({
           url: 'researchAreasLoad.jsp',
           type: 'GET',
           dataType: 'html',
           data:'researchAreaCode='+getResearchAreaCode(nodeName),
           cache: false,
           timeout: 1000,
           error: function(){
              alert('Error loading XML document');
  