anchor.diff:     **********************************************************/
     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;
  
positive.code:     document.templateForm["attributeValues("+index+")"].disabled=useBag;
      document.templateForm["bag("+index+")"].disabled=!useBag;
      document.templateForm["bagOp("+index+")"].disabled=!useBag;
      if(document.getElementById('selectedBagName')){
        document.templateForm["bag("+index+")"].value=selectedBagName;
      }
    }
  
    /***********************************************************
  
negative.code:                 </c:if>
  
                  <script type="text/javascript">
                    var selectedBagName = '${selectedBagNames[con]}';
                    if(selectedBagName){
                            clickUseBag(${index});
                    }
                  </script>
                </c:if>
                <script type="text/javascript">
  