<!--
function submitToNewWindow(frm)
{
  // open a blank window
  windowOpen("", "submitNewWindow", 200, 270);

  // set the target to the blank window
  frm.target = "submitNewWindow";

  // submit
  frm.submit();
}

function windowOpen(fileName, name, width, height)
{
  windowOpen(fileName, name, width, height, false);
}

function windowOpen(fileName, name, width, height, scrollbars)
{
  var scrolltext = (scrollbars) ? 'scrollbars=yes' : 'scrollbars=no';

  aWindow = window.open(fileName, name, scrolltext + ',menubar=no,resizable=yes,toolbar=no,width=' + width + ',height=' + height);

  // IE has a js error if focus() is called without a delay
  // when the open window is being opened again from a window other than the originator.
  setTimeout('aWindow.focus();',200);
}

//-->

