anchor.diff:  // the user really intends to stop the component prior to any action.
   function promptIfUnsafeToStop(configId,expertConfig, type) {
       // if the component is a Geronimo "expert" service then provide a stern warning
  -    if ((type == 'SERVICE') && expertConfig) {
  +    if ((type == 'SERVICE') && (expertConfig == 'true')) {
           return confirm( configId + " is an Apache Geronimo service.\r\n \r\n" +
                          "Stopping this component may prevent the server or the "+
                          "administration console from functioning properly. " +
  
positive.code:                        "Are you certain you wish to proceed with this uninstall?");
      }
      // if the component is any other Apache Geronimo "expert" component then provide an appropriate warning
      if (expertConfig) {
          return confirm( configId + " is provided by Apache Geronimo and may be required by other " +
                         "modules (reference the 'Child Components' listed in the view). \r\n \r\n" +
                         "Are you certain you wish to proceed with this uninstall?");
  
negative.code:     return confirm("Are you certain you wish to uninstall " + configId + " ?");
  }
  
  // Toggle expert mode on and off with onClick
  function toggleExpertMode() {
      if (document.checkExpert.expertUser.checked) {
          var expertActions = getSpanElementsByName('expert');
          for( var i = 0; i < expertActions.length; ++i ) {
              expertActions[i].style.display='block' ;
          }
          var nonexpertActions = getSpanElementsByName('nonexpert');
          for( var i = 0; i < nonexpertActions.length; ++i ) {
              nonexpertActions[i].style.display='none' ;
          }
      }
      else {
          var expertActions = getSpanElementsByName('expert');
          for( var i = 0; i < expertActions.length; ++i ) {
              expertActions[i].style.display='none' ;
          }
          var nonexpertActions = getSpanElementsByName('nonexpert');
          for( var i = 0; i < nonexpertActions.length; ++i ) {
              nonexpertActions[i].style.display='block' ;
          }
      }
  }
  
  
  // work around since IE doesn't support document.getElementsByName
  function getSpanElementsByName(name) {
      var results = new Array();
      var spans = document.getElementsByTagName("span");
      for(i = 0,j = 0; i < spans.length; i++) {
          nameValue = spans[i].getAttribute("name");
          if(nameValue == name) {
            results[j] = spans[i];
            j++;
          }
      }
      return results;
  }
  </script>
  
  