code: protected void openDialog(CmsBasicDialog dialog, String windowCaption) {
  
          if (m_dialogWindow != null) {
              m_dialogWindow.close();
          }
  
          m_dialogWindow = CmsBasicDialog.prepareWindow(DialogWidth.wide);
          m_dialogWindow.setContent(dialog);
          m_dialogWindow.setCaption(windowCaption);
  
          A_CmsUI.get().addWindow(m_dialogWindow);
          m_dialogWindow.center();
      }
docs: Opens a given dialog.<p>
  
  @param dialog to be shown
  @param windowCaption caption of window