/*
 * Receives the tab forward event supplied from the previous window supplied.
 */
function receiveTabForwardEvent(theFromWindow, theEvent) {
  window.setTimeout("setFocusToBackLink()", 10);
}

/*
 * Receives the tab backward event supplied from the previous window supplied.
 */
function receiveTabBackwardEvent(theFromWindow, theEvent) {
  window.setTimeout("setFocusToPrintLink()", 10);
}

/*
 * Sets focus to the back link.
 */
function setFocusToBackLink() {
  window.focus();
  var backLink = xGetElementById("backLink");

  if (backLink != null) {
    backLink.focus();
  }
}

/*
 * Sets focus to the print link.
 */
function setFocusToPrintLink() {
  window.focus();
  var printLink = xGetElementById("printLink");

  if (printLink != null) {
    printLink.focus();
  }
}

/*
 * Back link has been hot keyed.
 */
function backLinkHotKeyed() {
  top.history.back();
  setTimeout("setFocusToBackLink()", 10);
}

/*
 * Print link has been hot keyed.
 */
function printLinkHotKeyed() {
  contentPrint();
  setTimeout("setFocusToPrintLink()", 10);
}

/*
 * Initialize the page with registering hot keys.
 */
function initializePage() {
}

/*
 * Cleanup the page with unregistering hot keys.
 */
function cleanupPage() {
}
