code: function ()
          {
              if (ModalDialog.dialog) {
                  // February 2012 - now remove the dialog node from the DOM
                  if (document.getElementById(ModalDialog.dialog.id)) {
                      document.body.removeChild(ModalDialog.dialog);
                  }
      
                  ModalDialog.dialog.style.visibility = 'hidden';
                  ModalDialog.dialog.style.opacity = 0;
              }
      
              if (ModalDialog.background) {
                  ModalDialog.background.style.visibility = 'hidden';
                  ModalDialog.background.style.opacity = 0;
                  
                  // February 2012 - now remove the dialog node from the DOM
                  if (document.getElementById(ModalDialog.background.id)) {
                      document.body.removeChild(ModalDialog.background);
                  }
              }        
          }
docs: Hides everything