anchor.diff:      document.templateForm["attributeValues("+index+")"].disabled=useBag;
       document.templateForm["bag("+index+")"].disabled=!useBag;
       document.templateForm["bagOp("+index+")"].disabled=!useBag;
  +  }
  +
  +  function initClickUseBag(index)
  +  {
  +    if(selectedBagName){
  +      document.templateForm["bag("+index+")"].value=selectedBagName;
  +      document.templateForm["useBagConstraint("+index+")"].checked = true;
  +    }
  +    clickUseBag(index);
     }
   
     /***********************************************************
  
positive.code:    **********************************************************/
    function clickUseBag(index)
    {
      if(selectedBagName){
        document.templateForm["bag("+index+")"].value=selectedBagName;
        document.templateForm["useBagConstraint("+index+")"].checked = true;
      }
  
      var useBag = document.templateForm["useBagConstraint("+index+")"].checked;
  
      document.templateForm["attributeOps("+index+")"].disabled=useBag;
  
negative.code:                 <script type="text/javascript">
                    var selectedBagName = '${selectedBagNames[con]}';
                    if(selectedBagName){
                            initClickUseBag(${index});
                    }
                  </script>
                </c:if>
  