  ///
  /// NetForce Tecnologia
  /// Biblioteca do Dialog
  ///

  /**
   * NDialog
   * Classe de controle do Dialog
   */
   function NDialog()
   {
     this.width     = 800;
     this.height    = 500;
     this.scroll    = false;
     this.resizable = false;
     this.titlebar  = false;
     this.menubar   = false;
     this.status    = false;
     this.url       = '';
     this.name      = '';

     /**
      * Exibir formulário
      */
     this.show = function(x, y)
     {
       // Parâmetros
       x = ((x == undefined) ? 'center' : x);
       y = ((y == undefined) ? 'center' : y);

       if (x == 'center')
         x = ((screen.width / 2) - (this.width / 2));
       if (y == 'center')
         y = ((screen.height / 2) - (this.height / 2));

       // Configurações
       var config = 'height='     + this.height + ',';
       config    += 'width='      + this.width + ',';
       config    += 'menubar='    + (this.menubar   ? 'yes' : 'no') + ',';
       config    += 'resizable='  + (this.resizable ? 'yes' : 'no') + ',';
       config    += 'scrollbars=' + (this.scroll    ? 'yes' : 'no') + ',';
       config    += 'status='     + (this.status    ? 'yes' : 'no') + ',';
       config    += 'titlebar='   + (this.titlebar  ? 'yes' : 'no') + ',';
       config    += 'toolbar=no,';
       config    += 'location=no,';
       config    += 'left=' + x + ',';
       config    += 'top=' + y + '';

       // Carregar
       var win = window.open(this.url, null, config);
       if (this.name != '')
         win.name = this.name;
       return win;
     };
   }
