docs: function (name)
          {
              for (var i=0; i<ModalDialog.events.length; ++i) {
                  if (typeof(ModalDialog.events[i][0]) == 'string' && ModalDialog.events[i][0] == name && typeof(ModalDialog.events[i][1]) == 'function') {
                      ModalDialog.events[i][1]();
                  }
              }
          }