anchor.diff:      var tdTag2 = $('<td></td>').html(getResearchAreaCode(name));
       trTag2.html(tag2);
       tdTag2.appendTo(trTag2);
  -    tdTag2 = $('<td></td>').html($('<input type="text" name="m2" value="" style="width:100%;" />').attr("id","researchCode"+i));
  +    tdTag2 = $('<td></td>').html($('<input type="text" name="m2" value="" style="width:100%;" maxlength="8" size="8"/>').attr("id","researchCode"+i));
       tdTag2.appendTo(trTag2);
       tdTag2 = $('<td></td>').html($('<input type="text" name="m3" value="" style="width:100%;" />').attr("id","desc"+i));
       tdTag2.appendTo(trTag2);
  
positive.code:    // alert(id +"-"+$("ul#"+ulTagId).parents('li:eq(0)').size());
     // }
      if ($("ul#"+ulTagId).parents('li:eq(0)').size() == 0) {
        tdTag1 = $('<td></td>').html(getResearchAreaCode(name));
        //alert(getResearchAreaDescription(name));
      } else {
         // alert($("ul#"+ulTagId).parents('li:eq(0)').children('a:eq(0)').size());
  
negative.code:                       removedNode = $(liId).clone(true);
                        //removedNode = $(liId); // this will not work because event also lost
                        //alert("Remove node "+removedNode.attr("id"));
                        var parentRACode;
                        if ($(liId).parents('li:eq(0)').size() == 0) {
                           parentRACode = '000001';
                        } else {
                           parentRACode = getResearchAreaCode($(liId).parents('li:eq(0)').children('a:eq(0)').text());
                        }
                        alert (parentRACode);
                        sqlScripts = sqlScripts +"#;#"+getDeleteClause(getResearchAreaCode(removedNode.children('a:eq(0)').text()), parentRACode);
                        $(liId).remove();
                        alert (sqlScripts);
                        cutNode=null;
  