code: function dialogAlert(text, title) {
      title = title || '&nbsp';
      $('#alert').html(text.replace('\n', '<br>'));
      $dialogAlert.dialog('option', 'title', title);
      alertOpen = true;
      $dialogRpc.dialog('close');
      $dialogAlert.dialog('close');
      $dialogServicemessage.dialog('close');
      $dialogAlert.dialog('open');
  }
docs: Helper functions