anchor.diff:                  </c:if>
   
                   <script type="text/javascript">
  -                <!--
  -                  // var selectedBagName = '${selectedBagNames[con]}';
  -                  // if(selectedBagName){
  +                  var selectedBagName = '${selectedBagNames[con]}';
  +                  if(selectedBagName){
                             clickUseBag(${index});
  -                  // }
  -                //-->
  +                  }
                   </script>
                 </c:if>
                 <script type="text/javascript">
  
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:    **********************************************************/
    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;
  