code: public String buildRemoveElement(String elementName, int index, boolean enabled) {
  
          if (enabled) {
              StringBuffer href = new StringBuffer(4);
              href.append("javascript:removeElement('");
              href.append(elementName);
              href.append("', ");
              href.append(index);
              href.append(");");
              return button(href.toString(), null, "deletecontent.png", Messages.GUI_DIALOG_BUTTON_DELETE_0, 0);
          } else {
              return "";
          }
      }
docs: Returns the html for a button to remove an optional element.<p>
  
  @param elementName name of the element
  @param index the element index of the element to remove
  @param enabled if true, the button to remove an element is shown, otherwise a spacer is returned
  @return the html for a button to remove an optional element