function eventlist(){
  var weekNames = "SunMonTueWedThuFriSat";
  var today = new Date();
/* 中身 */
  document.write('<FONT SIZE="-2">ジムカーナ大会の日付を<FONT COLOR="Red">赤色</FONT>で表示しています。</FONT>');
  document.write('<TABLE CELLPADDING=5 CELLSPACING=0 BORDER=0>');
  var i = -1;
  while(e_date[++i]!=""){
    y = e_date[i].substring(0,4);
    m = e_date[i].substring(4,6);
    d = e_date[i].substring(6,8);
    n = (e_date[i].substring(8,10)-1) * 2;
    r = e_date[i].substring(10,12);
    g = e_date[i].substring(12,14);
    c = e_date[i].substring(14,e_date[i].length);
    a = e_date[i].substring(0,14);
    eve = new Date(y,m-1,d);
    if(today.getTime()>eve.getTime()) continue;
    if(r!=0) col = "red";
      else   col = "black";
    for(j=0;e_can[j]!="";j++){
      if(a==e_can[j]){
        col = "gray";
      }
    }
    idx = eve.getDay() * 3;
    w = weekNames.substring(idx,idx+3);
    if(col=="gray") {
      document.write('<TR><TD NOWRAP><FONT SIZE="-1" COLOR="'+col+'"><STRIKE>'+y+'-'+m+'-'+d+'('+w+')'+'</STRIKE></FONT></TD>');
      document.write('<TD><FONT SIZE="-1" COLOR="'+col+'"><STRIKE>'+e_name[n]+'</STRIKE> <FONT COLOR="red">'+c+'</FONT></FONT>');
      document.write(' <FONT COLOR="'+col+'"><STRIKE>会場：'+ground[g-1]+'</STRIKE></FONT>');
    }
    else {
      document.write('<TR><TD NOWRAP><FONT SIZE="-1" COLOR="'+col+'">'+y+'-'+m+'-'+d+'('+w+')'+'</FONT></TD>');
      if(e_name[n+1]!="") document.write('<TD><A HREF="'+e_name[n+1]+'">'+e_name[n]+'</A>');
        else document.write('<TD>'+e_name[n]);
      if(r!=0 && r!=99) document.write(' Round-'+r);
      if(c.length) document.write(' '+c);
      if(g!=0) document.write(' 会場：'+ground[g-1]);
    }
    for(j=0;e_new[j]!="";j++){
      if(a==e_new[j]){
        document.write('<IMG SRC="lib/new.gif" WIDTH=28 HEIGHT=12>');
        break;
      }
    }
    for(j=0;e_rev[j]!="";j++){
      if(a==e_rev[j]){
        document.write('<IMG SRC="lib/rev.gif" WIDTH=28 HEIGHT=12>');
        break;
      }
    }
    document.write('</TD></TR>');
  }
  document.write('</TABLE>');
}
/* データセクション */
e_name = new Array(
"ダンロップ・月刊オートバイカップジムカーナ大会",
"dunlop_idx.html",
"ダンロップジムカーナトレーニング",
"dunlop_idx.html#rensyuu",
"DUNLOP・月刊オートバイCUP!ジムカーナJAPAN",
"dunlop_japan.html",
"JAGE杯ジムカーナ大会",
"ym_idx.html",
"関東事務茶屋杯",
"jimu_idx.html",
"JAGE練習会",
"jage_about.html#rensyuu",
"RIDERS High School",
"rhs_idx.html",
"広島ジムカーナクラブジムカーナ練習会",
"hgc.html",
"Ｔｒａｃｔｉｏｎ練習会",
"http://www.geocities.co.jp/MotorCity/4449/",
"DUNLOP・月刊オートバイCUP! モトジムカーナ中国大会",
"http://www.geocities.co.jp/MotorCity/4449/",
"九州二輪ジムカーナ会",
"mg9_idx.html",
"九州二輪ジムカーナ会練習会",
"mg9_idx.html",
"Team MARIモーターサイクル・レッスン",
"http://www.t-mari.net/index.html",
"");/* End Code */
ground = new Array(
"トミンモーターランド（茨城県）",
"TEC-R（交通教育センターレインボー《埼玉》）（埼玉県）",
"鈴鹿ツインサーキット（三重県）",
"鈴鹿サーキット 交通教育センター（三重県）",
"アサヒテングストン駐車場（島根県）",
"広島県自動車学校（広島県）",
"グリーンピアせとうち（広島県）",
"三次自動車学校（広島県）",
"ふじ自動車学校（佐賀県）",
"八代ドライビングスクール（熊本県）",
"");/* End Code */
e_date = new Array(
/* 1-4year,5-6month,7-8day,9-10name,11round,12-13ground,14-comment */
"20120219020002",
"20120311060001",
"20120311120009",
"20120318020002",
"20120318080007レッスン1「苦手克服Ｕターン」",
"20120325010102",
"20120408080008初心者講習会",
"20120415050101",
"20120415100108",
"20120415120009",
"20120513060001",
"20120513090005ジムカーナ練習会",
"20120520120009",
"20120527080007レッスン2「ブレーキング｣",
"20120610040101",
"20120610080008レッスン3「タイヤ講習会」",
"20120610110110",
"20120624090005ジムカーナ練習会",
"20120708050201",
"20120708080008レッスン4「アクセルワーク」",
"20120716090006ジムカーナビギナー練習会",
"20120804060001（トミン会場内　宿泊可）",
"20120805040201",
"20120812110209",
"20120826090005ジムカーナ練習会",
"20120902050301",
"20120909080007第21回ジムカーナカーニバル",
"20120916090005ジムカーナ練習会",
"20120917100205",
"20120922080006安全運転講習会",
"20120923120009",
"20121006060001（トミン会場内　宿泊可）",
"20121007030001",
"20121008080006安全運転講習会",
"20121021090005ジムカーナ練習会",
"20121028120010",
"20121104060001",
"20121111080008レッスン5「コーナリング」",
"20121118040301",
"20121123090006ジムカーナ練習会",
"20121125120009",
"20121209060001",
"20130106040401",
"20130210050401",
"20130311060001",
"");/* End Code */
e_new = new Array(
"20120219020002",
"20120318020002",
"20120325010102",
"20120415050101",
"20120415100108",
"20120513060001",
"20120513090005",
"20120610040101",
"20120624090005",
"20120708050201",
"20120716090006",
"20120804060001",
"20120805040201",
"20120826090005",
"20120902050301",
"20120916090005",
"20120917100205",
"20121006060001",
"20121007030001",
"20121021090005",
"20121104060001",
"20121118040301",
"20121123090006",
"20121209060001",
"20130106040401",
"20130210050401",
"20130311060001",
"");/* End Code */
e_rev = new Array(
"");/* End Code */
e_can = new Array(
"");/* End Code */

