<!--// Hide Javascript

//file anchskeystroke1.js
//amended 08/02/05

function getKey(keyStroke){
  if(document.all){
    eventChooser = event.keyCode;
    which = String.fromCharCode(eventChooser).toLowerCase();
  }
  else{
    if(document.getElementById){
      eventChooser = keyStroke.which;
      which = String.fromCharCode(eventChooser).toLowerCase();
    }
    if(document.layers){
      eventChooser = keyStroke.which;
      which = String.fromCharCode(eventChooser).toLowerCase();
    }
  }
  if (which=='h') {
    window.open('anchshelp.html', 'contentsWindow',
          'status=1, scrollbars=1, width=700, height=400, resizable=1, left=50, top=50'
          ); 
    return false;
  }
  if (which=='/') {
    window.open('anchshelp.html', 'contentsWindow',
          'status=1, scrollbars=1, width=700, height=400, resizable=1, left=50, top=50'
          ); 
    return false;
  }
  if (which=='f') {
    window.open('anchshelp.html', 'contentsWindow',
          'status=1, scrollbars=1, width=700, height=400, resizable=1, left=50, top=50'
          ); 
    return false;
  }
  if (which=='?') {
    window.open('anchshelp.html', 'contentsWindow',
          'status=1, scrollbars=1, width=700, height=400, resizable=1, left=50, top=50'
          ); 
    return false;
  }
  if (which=='c') {
    window.open('anchscopyright2.html', 'contentsWindow',
          'status=1, scrollbars=1, width=700, height=400, resizable=1, left=50, top=50'
          ); 
    return false;
  }
  if (which=='e') {
    window.open('chess.html', 'newWindow',
          'status=1, scrollbars=1, width=1015, height=690, resizable=1, left=0, top=0'
          ); 
    return false;
  }
  if (which=='w') {
    window.open('chess.html', 'newWindow',
          'status=1, scrollbars=1, width=1015, height=690, resizable=1, left=0, top=0'
          ); 
    return false;
  }
  if (which=='s') {
    window.open('anchssitemap.html', 'contentsWindow',
          'status=1, scrollbars=1, width=700, height=400, resizable=1, left=50, top=50'
          ); 
    return false;
  }
  if (which=='p') {
    window.open('anchsprivacy.html', 'contentsWindow',
          'status=1, scrollbars=1, width=700, height=400, resizable=1, left=50, top=50'
          ); 
    return false;
  }
}

function openHelp(){
    window.open('anchshelp.html', 'contentsWindow',
          'status=1, scrollbars=1, width=700, height=400, resizable=1, left=50, top=50'
          ); 
    return false;
}

function openContents(){
    window.open('anchssitemap.html', 'contentsWindow',
          'status=1, scrollbars=1, width=700, height=400, resizable=1, left=50, top=50'
          ); 
    return false;
}

function loadWelcome() {
  window.open("anchshome.html","main");
  return true;
}

document.onkeypress=getKey;

// (c) Copyright Ian James Douglas MacGregor and Ian Ross MacGregor, 2001-2005.
// All rights reserved.
// This website (including its constituent html, javascript and image files), may not be 
// copied, printed out, or ammended in any way, without the written permission of the 
// copyright holders.

// End hiding -->

