
suitClass.prototype.windowDialog = function(url, strName, w, h)  //version 1.2
{
  if (!w) w = 350;
  if (!h) h = 250;
  if (!strName) strName = "SUITDialog";

  var win, winleft, wintop, winprops, strBr;
  strBr = suit.pBrowser();

  winleft = (screen.availWidth - w)/2;
  wintop = (screen.availHeight - h)/2;

  winprops = "height=" + h + ",width=" + w;
  if (strBr == "ns4")
  {
    winprops += ",screenX=" + winleft + ",screenY=" + wintop;
  }
  else
  {
    winprops += ",left=" + winleft + ",top=" + wintop;
  }

  winprops += ",scrollbars=yes,resizable,dependent";

  win = window.open(url, strName, winprops);
  win.focus();
}
