  //-- 1: キーイベントのスキャンを開始する
  // onkeypressされたら関数key_Press へ
  document.onkeypress = key_Press  
  // N4用の処理
  if(document.layers)document.captureEvents(Event.KEYPRESS)

  //-- 2: すぐに反応できるようにウインドウへフォーカス
  self.focus() 

  //-- 3: キーを押されたら実行する関数
  function key_Press(e){// alert(getKEYCODE(e))
    // キープレス時に実行する処理をここへ書く
    // ここでは、4により取得したキーコードを引数にして
    // 5: 押されたキーによる分岐処理へ
    branchGO( getKEYCODE(e) )
  }

  //-- 4: キーコード取得処理
  function getKEYCODE(e){  
      if(document.layers)              return  e.which        //n4
      else if(document.all)            return  event.keyCode  //e4,e5,e6
      else if(document.getElementById) return  e.charCode     //n6,moz
  }

  //-- 5: 押されたキーによる分岐処理
  function branchGO(ky){
    switch(ky){
     case 48 : location.href = "index.html"; break ;//0
     case 49 : location.href = "guide.html"; break ; //1
     case 50 : location.href = "guide.html#2"; break ; //2
     case 51 : location.href = "guide.html#3"; break ; //3
     case 52 : location.href = "kataribe.html"; break ; //4
     case 53 : location.href = "kataribe.html#2"; break ; //5
     case 54 : location.href = "list.html"; break ; //6
     case 55 : location.href = "pdf/cal_2.pdf"; break ; //7
     case 56 : location.href = "list.html#3"; break ; //8
     case 57 : location.href = "list.html#4"; break ; //9
     case 97 : location.href = "dl.html"; break ; //a
     case 98 : location.href = "requiem.html"; break ; //b
     case 99 : location.href = "impressions.html"; break ; //c
     case 100 : location.href = "sales.html"; break ; //d
     case 101 : location.href = "link.html"; break ; //e
     case 65 : location.href = "dl.html"; break ; //a
     case 66 : location.href = "requiem.html"; break ; //b
     case 67 : location.href = "impressions.html"; break ; //c
     case 68 : location.href = "sales.html"; break ; //d
     case 69 : location.href = "link.html"; break ; //e
    }
  }

