<!--
// Focus window
function focusWindow(urlString, windowName) {
  windowHandle = window.open(urlString,
                             windowName);
  if (windowHandle) {
    windowHandle.focus();
  } else {
    alert("Unable to create " + aName + " window. Please disable pop-up blocking, then try again.");
  }
  return false;
}
// Open window, no menu etc.
function openWindow(urlString, windowName) {
  windowHandle = window.open(urlString,
                 windowName,
                 "status=yes,scrollbars=yes,resizable=yes," +
                 "directories=no,toolbar=no,menubar=no,location=no,systemMenu=no");
  if (windowHandle) {
    windowHandle.focus();
  } else {
    alert("Unable to create " + aName + " window. Please disable pop-up blocking, then try again.");
  }
  return false;
}
// Open a centered window. Note that aFeatures won't work under Netscape if it contains spaces
function openCenteredWindow(aURL, aName, aWidth, aHeight, aFeatures) {
  var xMax = screen.availWidth;
  var yMax = screen.availHeight;
  var xPos = (xMax - aWidth) / 2;
  var yPos = (yMax - aHeight) / 2;
  var features = "width=" + aWidth + "," +
                 "height=" + aHeight + "," +
                 "left=" + xPos + "," +
                 "screenX=" + xPos + "," +
                 "top=" + yPos + "," +
                 "screenY=" + yPos;
  if (aFeatures != "") {
    features = features + "," + aFeatures;
  }
  var win = window.open(aURL,aName,features);
  if (win) {
    win.focus();
  } else {
    alert("Unable to create " + aName + " window. Please disable pop-up blocking, then try again.");
  }
}
// Open a centered, 640x480 lookup window
function openLookupWindow(aURL, aName) {
  // Note that features won't work under Netscape if there are spaces
  var features = "status=yes,scrollbars=yes,resizable=yes," +
                 "directories=no,toolbar=no,menubar=no,location=no,systemMenu=no";
  openCenteredWindow(aURL, aName, 800, 600, features);
}
// Open admin window, return false for onClick handler
function adminWindow(aURL) {
  openLookupWindow(aURL, "Admin");
  return false;
}
// Open description window, return false for onClick handler
function descriptionWindow(aURL) {
  openLookupWindow(aURL, "Description");
  return false;
}
// Open report window, return false for onClick handler
function reportWindow(aURL) {
  openLookupWindow(aURL, "Report");
  return false;
}
// Open window for outside site, return false for onClick handler
function outsideWindow(aURL) {
  openLookupWindow(aURL, "Outside");
  return false;
}
//-->

