var key = new Array();
key['h'] = "index.php";
key['i'] = "info.php";
key['s'] = "songs.php";
key['e'] = "exec.php";
key['d'] = "diary.php";
key['p'] = "photos.php";
key['l'] = "links.php";
function getKey(keyStroke) 
  {
  isNetscape=(document.layers);
  eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
  which = String.fromCharCode(eventChooser).toLowerCase();
  for (var i in key) 
    if (which == i) window.location = key[i];
  }
document.onkeypress = getKey;

