<!--
//
// Window opening methods
//

// Open a new window using the _blank target functionality. Should open in new tab if browser supports it
function newWindow(aUrl) {
  var win = window.open(aUrl,"_blank");
  if ((win) && (window.focus)) {
    win.focus();
  }
  return false;
}

// Full screen window with as little navigation as possible for test administration
function adminWindow(aURL) {
  var xMax = screen.availWidth;
  var yMax = screen.availHeight
  var xPos = 0;
  var yPos = 0;
  var features = "width=" + xMax + "," +
                 "height=" + yMax + "," +
                 "left=" + xPos + "," +
                 "screenX=" + xPos + "," +
                 "top=" + yPos + "," +
                 "screenY=" + yPos + "," +
                 "toolbar=no,status=no,menubar=no,scrollbars=yes,location=no,directory=no,resizable=no,hotkeys=no";
  var win = window.open(aURL,"admin",features);
  if (win) {
    if (window.focus) { win.focus() };
    return win;
  }
  return null;
}

//-->
