//
function gethhmmss() {
  now = new Date();
  wHH = now.getHours();
  wMM = now.getMinutes();
  wSS = now.getSeconds();
  nowTime = (wHH*10000)+(wMM*100)+wSS;
  return(nowTime);
}

//
function GetArg() {
  var        p, pstr;
  str = new String(location.search);
  p = str.indexOf("?", 0);
  if(p == -1) {
    pstr = "";
  }
  else {
    pstr = str.substring(p + 1, str.length);
  }
  return(pstr.split("&"));
}

//
function GetArg2() {
  arg = new Array();
  arg_ = GetArg();
  for(i in arg_) {
    str = new String(arg_[i]);
    p = str.split("=");
    arg[p[0]] = p[1];
  }
  return(arg);
}

//
function PutHead(aMNO) {
  nowTime=gethhmmss();
  document.write("<table cellspacing=1 cellpadding=2 border=0 bgcolor=#ffffff width='100%'><tr>");
  document.write("<td bgcolor=#eeeeee width=100 align=center nowrap>","<a href='index.html?nowTime="+nowTime+"' target='mainwindow'>TOP</a>","</td>");
  if (aMNO==1) {
    document.write("<td bgcolor=#eeeeee width=100 align=center nowrap>","<font size=-1>手作り太鼓のこと</font>","</td>");
  } else {
    document.write("<td bgcolor=#eeeeee width=100 align=center nowrap>","<a href='menu_making.htm?nowTime="+nowTime+"' target='mainwindow'><font size=-1>手作り太鼓のこと</font></a>","</td>");
  }
  if (aMNO==2) {
    document.write("<td bgcolor=#eeeeee width=100 align=center nowrap>","<font size=-1>活動等のこと</font>","</td>");
  } else {
    document.write("<td bgcolor=#eeeeee width=100 align=center nowrap>","<a href='menu_Activity.htm?nowTime="+nowTime+"' target='mainwindow'><font size=-1>活動等のこと</font></a>","</td>");
  }
  if (aMNO==3) {
    document.write("<td bgcolor=#eeeeee width=100 align=center nowrap>","<font size=-1>リンク</font>","</td>");
  } else {
    document.write("<td bgcolor=#eeeeee width=100 align=center nowrap>","<a href='links.htm?nowTime="+nowTime+"' target='mainwindow'><font size=-1>リンク</font></a>","</td>");
  }
  if (aMNO==4) {
    document.write("<td bgcolor=#eeeeee width=100 align=center nowrap>","<font size=-1>掲示板</font>","</td>");
  } else {
    document.write("<td bgcolor=#eeeeee width=100 align=center nowrap>","<a href='bbstext1.htm?nowTime="+nowTime+"' target='mainwindow'><font size=-1>掲示板</font></a>","</td>");
  }
  if (aMNO==5) {
    document.write("<td bgcolor=#eeeeee width=100 align=center nowrap>","<font size=-1>ブログ</font>","</td>");
  } else {
    document.write("<td bgcolor=#eeeeee width=100 align=center nowrap>","<a href='bbsimage1.htm?nowTime="+nowTime+"' target='mainwindow'><font size=-1>ブログ</font></a>","</td>");
  }

  // document.write("<td bgcolor=#eeeeee width=100 align=center nowrap>","<a href='http://8552.teacup.com/dondoko/bbs'><font size=-1>掲示板</font></a>","</td>");
  // document.write("<td bgcolor=#eeeeee width=100 align=center nowrap>","<a href='http://potato.blogmin.jp/'><font size=-1>ブログ</font></a>","</td>");

  document.write("<td bgcolor=#eeeeee>","<br>","</td>");
  document.write("</tr></table");
}

