  var newWindow
  var newMessageWindow
  
  function makeNewWindow()
  {
    newWindow = window.open("","","height=820,width=1175")
  }

  function subWrite(pstrTitle, pstrMessage)
  {
    // make new window if someone has closed it
    if (!newWindow || newWindow.closed)
    {
      makeNewWindow()
    }
    newWindow.focus()
    
    // assemble content for new window
    var newContent = "<HTML><HEAD><TITLE>" + pstrTitle + "</TITLE></HEAD>"
    newContent += "<BODY BGCOLOR=#CCCCCC>" + pstrMessage
    newContent += "</BODY></HTML>"
    
    // write HTML to new window document
    newWindow.document.write(newContent)
    newWindow.document.close() // close layout stream
  }

