  function HelpWindow(title, message, height, width) {
    var output = "";

    if (height == null) height = 200;
    if (width == null) width = 300;

    var left = (screen.width - width) / 2;
    var top = (screen.height - height) / 2;

    var newWindow = window.open(
      "",
      "HelpWindow",
      "height=" + height + ",width=" + width + ",top=" + top + ",left=" + left + ",centered=yes,toolbar=no,directories=no,menubar=no,scrollbars=no"
    );

    if (newWindow == null) {
      newWindow.opener = self;
    }

    output += '<form>';
    output += '<table>' + '<tr>' + '<td width="200">';
    output += '<b>' + title + '</b>' + '<br />' + '<hr />';
    output += '</td>' + '</tr>' + '<tr>' + '<td>';
    output += message;
    output += '</td>' + '</tr>';
    output += '<tr>' + '<td align="right">';
    output += '<br />' + '<input type="button" value="Close" onClick="self.close()" />';
    output += '</td>' + '</tr>' + '</table>';
    output += '</form>';

    newWindow.document.write(output);
    newWindow.document.close();

    return false;
  }

