//////////////////////////////////////////////////////////////////////
//	wtseries.js
//		最終更新日時: 2010年 2月26日(金) 17時14分49秒
//////////////////////////////////////////////////////////////////////


var SoftNum = 0;
var SoftN = new Array();
var SoftF = new Array();
var SoftT = new Array();
var SoftU = new Array();
var SoftV = new Array();
var Win7  = new Array();
var Win64 = new Array();
var SoftY = new Array();
var SoftM = new Array();
var SoftD = new Array();
var SoftC = new Array();


////////// ダウンロード用
function FormDownload(name, siteFile, target) {
  var CGI;
  // var CGI = 'http://wtpage.info/cgi-bin/download/download.cgi';
  // var CGI = 'http://wtpage.info/cgi-bin/wtdownload/wtdownload';
  var FileName;

  // CGI = 'http://wtpage.info/cgi-bin/download/download.cgi';

  switch ( siteFile ) {
  default:
  case 0:
    // ホームサーバ + ホームサーバ
    CGI = 'http://wtpage.info/cgi-bin/download/download.cgi';
    FileName = 'http://wtpage.info/sources/' + target;
    break;
  case 1:
    // ホームサーバ + とくとく
    CGI = 'http://wtpage.info/cgi-bin/download/download.cgi';
    // FileName = 'http://www57.tok2.com/home/shiraki/sources/' + target;
    FileName = 'http://white.hobby-web.net/sources/' + target;
    break;
  case 2:
    // とくとく + とくとく
    // CGI = 'http://www57.tok2.com/home/shiraki/cgi-bin/download/download.cgi';
    // FileName = 'http://www57.tok2.com/home/shiraki/sources/' + target;
    CGI = 'http://white.hobby-web.net/cgi-bin/download/download.cgi';
    FileName = 'http://white.hobby-web.net/sources/' + target;
    break;
  case 2:
    // とくとく + Infoseek 1
    // CGI = 'http://www57.tok2.com/home/shiraki/cgi-bin/download/download.cgi';
    CGI = 'http://white.hobby-web.net/cgi-bin/download/download.cgi';
    FileName = 'http://wt1.hp.infoseek.co.jp/sources/' + target;
    break;
  case 4:
    // とくとく + Infoseek 2
    // CGI = 'http://www57.tok2.com/home/shiraki/cgi-bin/download/download.cgi';
    CGI = 'http://white.hobby-web.net/cgi-bin/download/download.cgi';
    FileName = 'http://wt1.ld.infoseek.co.jp/sources/' + target;
    break;
  case 5:
    // とくとく + Infoseek 3
    // CGI = 'http://www57.tok2.com/home/shiraki/cgi-bin/download/download.cgi';
    CGI = 'http://white.hobby-web.net/cgi-bin/download/download.cgi';
    FileName = 'http://n-shiraki.ld.infoseek.co.jp/sources/' + target;
    break;
  }

  // document.write('<tr bgcolor="#ccffff">');
  document.write('<form name="' + name + '" method="post" action="' + CGI + '">');
  document.write('<td>');
  document.write('<input type="hidden" name="DownloadFile" value="' + FileName + '" />');
  document.write('<a href="javascript:document.' + name + '.submit();"><img border="0" alt="Download" src="images/download-anim.gif" /></a>');
  document.write('</td>');
  document.write('</form>');
}


////////// ソフト情報の設定
function SetSoft(Soft, full, type, url, ver, win7, win64, year, month, day, comment) {
  SoftN[SoftNum] = Soft;
  SoftF[SoftNum] = full;
  SoftT[SoftNum] = type;
  SoftU[SoftNum] = url;
  SoftV[SoftNum] = ver;
  Win7[SoftNum]  = win7;
  Win64[SoftNum] = win64;
  SoftY[SoftNum] = year;
  SoftM[SoftNum] = month;
  SoftD[SoftNum] = day;
  SoftC[SoftNum] = comment;
  SoftNum++;
  return;
}


////////// ソフトの番号
function GetSoftNum(Soft) {
  var i, found;

  found = 0;
  for ( i = 0 ; i < SoftN.length ; i++ ) {
    if ( SoftN[i] == Soft ) {
      found = 1;
      break;
    }
  }

  if ( found == 0 ) i = -1;

  return i;
}


////////// ソフト情報の表示
function ShowSoftIndex(Soft) {
  var win7ok = 'images/win7-ok-anim.gif';
  var win64ok = 'images/win64-ok-anim.gif';
  var num;
  var daydiff;

  num = GetSoftNum(Soft);
  if ( num < 0 ) return;

  if ( SoftY[num] > 0 ) {
    daydiff = CheckUpdate(SoftY[num], SoftM[num], SoftD[num]);
  }
  else {
    daydiff = 999;
  }

  document.write('<tr>');

  if ( daydiff <= 14 ) {
    document.write('<td bgcolor="#ffccff" class="size2">');
  }
  else if ( daydiff <= 31 ) {
    document.write('<td bgcolor="#ffff66" class="size2">');
  }
  else {
    document.write('<td bgcolor="#ffff99" class="size2">');
  }

  document.write('<table width="100%" cellspacing="0" cellpadding="0"><tr><td class="size2">');
  document.write('<a name="'+SoftN[num]+'"></a>');
  // document.write('<a href="'+SoftU[num]+'" style="width:100%;">');
  document.write('<a href="'+SoftU[num]+'">');
  if ( SoftT[num] == 'kifu' ) {
    document.write('<img alt="フリーソフト（寄付歓迎）" align="middle" src="images/free.png" />');
  }
  else if ( SoftT[num] == 'share' ) {
    document.write('<img alt="シェアウェア" align="middle" src="images/share.png" />');
  }
  else {
    document.write('<img alt="フリーソフト" align="middle" src="images/free.png" />');
  }
  document.write('<b>'+SoftF[num]+' '+SoftN[num]+'</b>');
  document.write('</a>');
  document.write('</td><td align="right">');
  if ( daydiff <= 14 ) {
    document.write(' <img alt="new!!" border="0" align="middle" src="images/new-anim.gif" />');
  }
  if ( Win7[num] == 1 ) {
    document.write('<img alt="" width="10" height="1" src="images/sp.png" />');
    document.write('<img alt="Windows7動作確認済み" border="0" align="middle" src="'+win7ok+'" />');
  }
  if ( Win64[num] == 1 ) {
    document.write('<img alt="" width="10" height="1" src="images/sp.png" />');
    document.write('<img alt="64bit版あり" border="0" align="middle" src="'+win64ok+'" />');
  }
  document.write('</td></tr></table>');
  document.write('</td>');

  if ( daydiff <= 14 ) {
    document.write('<td bgcolor="#ffcccc" class="size2">');
  }
  else if ( daydiff <= 31 ) {
    document.write('<td bgcolor="#ffff99" class="size2">');
  }
  else {
    document.write('<td bgcolor="#ffffcc" class="size2">');
  }
  document.write(SoftV[num]);
  document.write('</td>');

  if ( daydiff <= 14 ) {
    document.write('<td bgcolor="#ffcccc" class="size2">');
  }
  else if ( daydiff <= 31 ) {
    document.write('<td bgcolor="#ffff99" class="size2">');
  }
  else {
    document.write('<td bgcolor="#ffffcc" class="size2">');
  }
  CheckSoftDate(SoftN[num]);
  document.write('</td>');

  if ( daydiff <= 14 ) {
    document.write('<td bgcolor="#ffcccc" class="size2">');
  }
  else if ( daydiff <= 31 ) {
    document.write('<td bgcolor="#ffff99" class="size2">');
  }
  else {
    document.write('<td bgcolor="#ffffcc" class="size2">');
  }
  document.write(SoftC[num]);
  document.write('</td>');

  document.write('</tr>');

  return;
}


////////// ソフト情報の表示
function ShowSoftInfo(Soft, type) {
  var num;

  num = GetSoftNum(Soft);
  if ( num < 0 ) return;

  if ( SoftY[num] == 0 ) {
    document.write('(開発中)');
  }
  else if ( type == 1 ) {
    document.write(Soft+' Version '+SoftV[num]+' ('+SoftY[num]+'年'+SoftM[num]+'月'+SoftD[num]+'日)');
  }
  else {
    document.write(Soft+' Version '+SoftV[num]+' ('+SoftM[num]+'/'+SoftD[num]+'/'+SoftY[num]+')');
  }

  if ( SoftY[num] > 0 && CheckUpdate(SoftY[num], SoftM[num], SoftD[num]) <= 7 ) {
    document.write(' <img alt="new!!" border="0" src="images/new-anim.gif" />');
  }

  return;
}


////////// OPTIONタグを表示
function ShowOptions(name) {
  var i, ver;

  document.write('<form name="Sel'+name+'"><td>');
  document.write('<select name="Selection" onChange="SelectDownload(this)">');
  document.write('<option value="" selected>---</option>');

  for ( i = 1 ; i < ShowOptions.arguments.length ; i++ ) {
    ver = ShowOptions.arguments[i];
    document.write('<option value="'+name+ver+'.lzh">'+ver.substr(0, 1)+'.'+ver.substr(1, 2)+'.'+ver.substr(3, 2)+'</option>');
  }

  document.write('</select>');
  document.write('</td></form>');

  return;
}



////////// 月の最大日数を得る
function GetMaxDays(year, month) {
  var daymax;

  while ( month < 1 ) {
    year--;
    month += 12;
  }
  while ( month > 12 ) {
    year++;
    month -= 12;
  }

  switch ( month ) {
  default:
  case 1:
  case 3:
  case 5:
  case 7:
  case 8:
  case 10:
  case 12:
    daymax = 31;
    break;
  case 4:
  case 6:
  case 9:
  case 11:
    daymax = 30;
    break;
  case 2:
    // うるう年のチェック
    if ( ( year % 4 ) == 0 && ( ( year % 1000 ) == 0 || ( year % 100 ) != 0 ) ) {
      daymax = 29;
    }
    else {
      daymax = 28;
    }
    break;
  }

  return daymax;
}


////////// アップデート日付の表示
function ShowUpdateDate(year, month, date, type) {
  if ( year == 0 ) {
    document.write('(開発中)');
  }
  else if ( type == 1 ) {
    document.write(year+'年'+month+'月'+date+'日');
  }
  else {
    document.write(month+'/'+date+'/'+year);
  }
}


////////// アップデート日付のチェック
function CheckSoftUpdate(Soft, type) {
  CheckSoftDate(Soft, type);
}
function CheckSoftDate(Soft, type) {
  var num;
  var daydiff;
  var longdays  = 31;
  var shortdays = 14;

  num = GetSoftNum(Soft);
  if ( num < 0 ) return;

  if ( SoftY[num] == 0 ) {
    document.write('(開発中)');
  }
  else {
    daydiff = CheckUpdate(SoftY[num], SoftM[num], SoftD[num]);
    if ( daydiff <= longdays ) {
      // 差が14日以内
      document.write('<b>');
    }
    document.write('<font size="-1">'+SoftM[num]+'/'+SoftD[num]+'/'+SoftY[num]);
    if ( type == 0 ) {
      document.write(' 新規');
    }
    else {
      // document.write(' 更新');
    }
    document.write('</font>');
    if ( daydiff <= longdays ) {
      document.write('</b>');
    }
    if ( daydiff <= shortdays ) {
      // 差が14日以内
      // document.write(' <img alt="new!!" border="0" src="images/new-anim.gif" />');
    }
  }

  return;
}


////////// アップデートチェック
function CheckUpdate(year, month, day, type) {
  var now = new Date();
  var nowyear, nowmonth, nowday;
  var nowdays, checkdays;
  var i, j;

  nowyear  = now.getYear();
  nowmonth = now.getMonth();
  nowday   = now.getDate();
  if ( nowyear < 1900 ) {
    nowyear += 1900;
  }

  // 日数計算
  nowdays = 0;
  for ( i = 1 ; i <= nowmonth ; i++ ) {
    nowdays += GetMaxDays(nowyear, i);
  }
  nowdays += nowday;
  if ( nowyear > year ) {
    for ( j = nowyear-1 ; j >= year ; j-- ) {
      for ( i = 1 ; i <= 12 ; i++ ) {
        nowdays += GetMaxDays(j, i);
      }
    }
  }
  checkdays = 0;
  for ( i = 1 ; i < month ; i++ ) {
    checkdays += GetMaxDays(year, i);
  }
  checkdays += day;

  return ( nowdays - checkdays );
}


////////// アップデート日付のチェック
function CheckSoftNew(Soft, type) {
  var num;

  num = GetSoftNum(Soft);
  if ( num < 0 ) return;

  if ( SoftY[num] > 0 && CheckUpdate(SoftY[num], SoftM[num], SoftD[num]) <= 14 ) {
    document.write(' <img alt="new!!" border="0" src="images/new-anim.gif" />');
  }

  return;
}


////////// 新規更新ソフト
function ShowUpdatedSoftMarquee() {
  var num, count;
  var Softyear, Softmonth, Softday;
  var now = new Date();
  var nowyear, nowmonth, nowday;
  var nowdays, checkdays;
  var html, join;
  var i, j;

  var daydiff, Softdiff;

  nowyear  = now.getYear();
  nowmonth = now.getMonth();
  nowday   = now.getDate();
  if ( nowyear < 1900 ) {
    nowyear += 1900;
  }

  // ソフトごとの日付差計算
  Softdiff = new Array();
  for ( num = 0 ; num < SoftN.length ; num++ ) {
    Softdiff[num] = CheckUpdate(SoftY[num], SoftM[num], SoftD[num]);
  }    

  join = '??';

  html ='<img alt="new!!" src="http://wtpage.info/images/new-anim.gif" /> <b>新規更新ソフト</b>（約一ヶ月分） <img alt="new!!" src="http://wtpage.info/images/new-anim.gif" />';
  html += join;

  count = 0;
  for ( daydiff = 0 ; daydiff <= 31 ; daydiff++ ) {
    for ( num = 0 ; num < SoftN.length ; num++ ) {
      if ( Softdiff[num] == daydiff ) {
        count++;
        html += ' <b><a href="http://wtpage.info/wtseries/'+SoftU[num]+'" target="_blank">'+ SoftN[num] +' Version '+SoftV[num]+' ('+SoftM[num]+'/'+SoftD[num]+'/'+SoftY[num]+')</a></b> '+join;
      }
    }    
  }

  if ( count == 0 ) {
    html += '最近更新されたソフトはありません'+join;
  }

  document.write('<marquee scrolldelay="20" truespeed scrollamount="1" height="16" msambientcpg="400" width="80%"><font size="-1">');
  document.write(html);
  document.write('</font></marquee>');

  return;
}


////////// 新規更新ソフト
function ShowUpdatedSoft() {
  var num;
  var Softyear, Softmonth, Softday;
  var now = new Date();
  var nowyear, nowmonth, nowday;
  var nowdays, checkdays;
  var html;
  var i, j;

  var daydiff, Softdiff;

  nowyear  = now.getYear();
  nowmonth = now.getMonth();
  nowday   = now.getDate();
  if ( nowyear < 1900 ) {
    nowyear += 1900;
  }


  // ソフトごとの日付差計算
  Softdiff = new Array();
  for ( num = 0 ; num < SoftN.length ; num++ ) {

    Softyear  = SoftY[num];
    Softmonth = SoftM[num];
    Softday   = SoftD[num];

    // 日数計算
    nowdays = 0;
    for ( i = 1 ; i <= nowmonth ; i++ ) {
      nowdays += GetMaxDays(nowyear, i);
    }
    nowdays += nowday;
    if ( nowyear > Softyear ) {
      for ( j = nowyear-1 ; j >= Softyear ; j-- ) {
        for ( i = 1 ; i <= 12 ; i++ ) {
          nowdays += GetMaxDays(j, i);
        }
      }
    }
    checkdays = 0;
    for ( i = 1 ; i < Softmonth ; i++ ) {
      checkdays += GetMaxDays(Softyear, i);
    }
    checkdays += Softday;

    Softdiff[num] = nowdays - checkdays;
  }    


  html = '<table cellspacing="2" cellpadding="5" bgcolor="#0000ff">';
  html += '<tr><th colspan="2" bgcolor="#ffccff" style="font-size:200%;">新規更新ソフト（約二ヶ月分）</th></tr>';

  for ( daydiff = 0 ; daydiff <= 60 ; daydiff++ ) {
    for ( num = 0 ; num < SoftN.length ; num++ ) {
      if ( Softdiff[num] == daydiff ) {
        html += '<tr><td bgcolor="#99ff99" style="font-size:150%;"><b><a href="'+SoftU[num]+'">'+ SoftN[num] +' Version '+SoftV[num]+'</a></b></td><td bgcolor="#ccffcc" style="font-size:150%;">'+SoftM[num]+'/'+SoftD[num]+'/'+SoftY[num]+'</td></tr>';
      }
    }    
  }

  html += '</table>';

  document.write(html);
}


////////// WtSeriesソフト用タイトル
function ShowWtseriesTitle(Soft) {
  ShowWtSeriesTitle(Soft);
}
function ShowWtSeriesTitle(Soft) {
  var num;

  var base = 'http://wtpage.info/images/';
  var win7ok = 'images/win7-ok-anim.gif';
  var win64ok = 'images/win64-ok-anim.gif';

  num = GetSoftNum(Soft);

  document.write('<table width="95%" cellspacing="0" cellpadding="0">');
  document.write('<tr>');
  document.write('<td width="8" height="8" background="'+base+'frame-gl-tl.png" /></td>');
  document.write('<td height="8" background="'+base+'frame-gl-t.png" /></td>');
  document.write('<td width="8" height="8" background="'+base+'frame-gl-tr.png" /></td>');
  document.write('</tr>');
  document.write('<tr>');
  document.write('<td background="'+base+'frame-gl-l.png" /></td>');
  document.write('<td bgcolor="#ccffcc" style="padding: 5px 5px;">');
  if ( 0 ) {
    document.write('<table align="right" width="120" height="60"><tr><td valign="top">');
    Banner120x60();
    document.write('</td>');
    document.write('<td>');
    Banner100x60();
    document.write('</td>');
    document.write('</tr></table>');
  }
  document.write('<b>');
  document.write('<a name="'+Soft+'">');
  document.write('<font color="#000099" size="+2">'+SoftF[num]+' '+SoftN[num]+'</font>');
  document.write('</a>');
  document.write('<img alt="" width="10" height="1" src="images/sp.png" />');
  if ( SoftT[num] == 'kifu' ) {
    document.write('<img alt="フリーソフト（寄付歓迎）" align="middle" src="images/free.png" />');
  }
  else if ( SoftT[num] == 'share' ) {
    document.write('<img alt="シェアウェア" align="middle" src="images/share.png" />');
  }
  else {
    document.write('<img alt="フリーソフト" align="middle" src="images/free.png" />');
  }
  if ( Win7[num] == 1 ) {
    document.write('<img alt="" width="10" height="1" src="images/sp.png" />');
    document.write('<img alt="Windows7動作確認済み" align="middle" src="'+win7ok+'" />');
  }
  if ( Win64[num] == 1 ) {
    document.write('<img alt="" width="10" height="1" src="images/sp.png" />');
    document.write('<img alt="64bit版あり" align="middle" src="'+win64ok+'" />');
  }
  document.write('<br />');
  document.write('<font color="#660000">');
  ShowSoftInfo(Soft);
  document.write('</font>');
  document.write('</b>');
  document.write('</td>');
  document.write('<td background="'+base+'frame-gl-r.png" /></td>');
  document.write('</tr>');
  document.write('<tr>');
  document.write('<td width="8" height="8" background="'+base+'frame-gl-bl.png" /></td>');
  document.write('<td height="8" background="'+base+'frame-gl-b.png" /></td>');
  document.write('<td width="8" height="8" background="'+base+'frame-gl-br.png" /></td>');
  document.write('</tr>');
  document.write('</table>');

  return;
}

function ShowWtseriesTitle3(comment) {
  ShowWtSeriesTitle3(comment);
}
function ShowWtSeriesTitle3(comment) {
  var base = 'http://white.hobby-web.net/';

  InsertSpace(10, 10);
  document.write('<table cellspacing="0" cellpadding="0">');
  document.write('<tr><td height="32" background="'+base+'images/backbar32-cyan.png" style="padding:0px 20px; color:#003300; background-repeat:repeat-x; font-size:18px; font-weight:bold;">');
  document.write(comment);
  document.write('</td></tr>');
  document.write('</table>');
}


//////////
function ShowWtseriesLink() {
  ShowWtSeriesLink();
}
function ShowWtSeriesLink() {
  var sp = '<img width="100%" height="2" alt="" src="images/sp.png" /><br />';
  var wtpage   = WtPageBaseURL; // 'http://wtpage.info/';
  var commufa  = CommufaBaseURL; // = 'http://www.wa.commufa.jp/wtpage/';
  var wakwak   = 'http://park1.wakwak.com/~shiraki/';
  var homesrv  = 'http://wtpage.dyndns.info/';
  var tok2pro  = 'http://white.hobby-web.net/html/';
  // var toktok   = 'http://www57.tok2.com/home/shiraki/';
  // var yahoo    = 'http://www.geocities.jp/whitebowling/';
  var fc2      = 'http://wtpage.web.fc2.com/bowling/';
  var infoseek = 'http://wt1.ld.infoseek.co.jp/';
  var base     = wakwak;

  BannerTitle('サイト内リンク', 'サイト内の主要リンクです');

  // サイトマップ
  // document.write('<table cellspacing="0" cellpadding="0">');
  // ShowLink(base+'sitemap.html', 'サイトマップ', 'red', 1);
  // document.write('</table>');
  // document.write(sp);

  // ミラーサイト
  document.write('<table width="100%" cellspacing="1" cellpadding="0" bgcolor="#009900"><tr><th bgcolor="#00ff00" style="color:#0000ff; font-size:12px;">ミラーサイト</th></tr></table>');
  document.write('<table width="100%" cellspacing="0" cellpadding="0">');
  ShowMirror(wtpage+  'wtseries/', 'メインサーバ');
  ShowMirror(commufa+ 'wtseries/', 'コミュファ');
  ShowMirror(wakwak+  'wtseries/', 'わくわく');
  // ShowMirror(yahoo+   'wtseries/', 'YahooBB');
  // ShowMirror(homesrv+ 'wtseries/', 'ホームサーバ');
  ShowMirror(tok2pro+ 'wtseries/', 'Tok2 Pro');
  ShowMirror(fc2     +'wtseries/', 'FC2');
  ShowMirror(infoseek+'wtseries/', 'Infoseek');
  document.write('</table>');
  // document.write(sp);

  // メインページ
  ShowMainPages();

  return;
}


////////// 各ソフトへのリンク
function ShowLinkToWtseriesPage() {
  ShowLinkToWtSeriesPage();
}
function ShowLinkToWtSeriesPage() {
  document.write('<table cellspacing="1" cellpadding="0">');
  document.write('<tr>');
  ShowOneLink16('index.html',                   'トップページ', '20%', 'orange', 1);
  ShowOneLink16('update.html',                  '更新ソフト',   '20%', 'orange', 1);
  ShowOneLink16('sendmail.html',                'メール送信',   '20%', 'orange', 1);
  ShowOneLink16('link.html',                    'リンク集',     '20%', 'orange', 1);
  document.write('</tr>');
  document.write('<tr>');
  ShowOneLink16('detail-wtbackup.html',         'WtBackup',     '20%', 'orange', 1);
  ShowOneLink16('detail-wtcal.html',            'WtCal',        '20%', 'orange', 1);
  ShowOneLink16('detail-wtcalprint.html',       'WtCalPrint',   '20%', 'orange', 1);
  ShowOneLink16('detail-wtclock.html',          'WtClock',      '20%', 'orange', 1);
  ShowOneLink16('detail-wtlabel.html',          'WtLabel',      '20%', 'orange', 1);
  document.write('</tr>');
  document.write('<tr>');
  ShowOneLink16('detail-wtcapture.html',        'WtCapture',    '20%', 'orange', 1);
  ShowOneLink16('detail-wtautopower.html',      'WtAutoPower',  '20%', 'orange', 1);
  ShowOneLink16('detail-wtpower.html',          'WtPower',      '20%', 'orange', 1);
  ShowOneLink16('detail-wtmailcheck.html',      'WtMailCheck',  '20%', 'orange', 1);
  ShowOneLink16('detail-wtpractice.html',       'WtPractice',   '20%', 'orange', 1);
  document.write('</tr>');
  document.write('<tr>');
  ShowOneLink16('detail-wtupdate.html',                  'WtUpdate',          '20%', 'orange', 1);
  ShowOneLink16('detail-wtgoban.html',                   'WtGoban',           '20%', 'orange', 1);
  ShowOneLink16('detail-wtgoban.html#WtGobanJavascript', 'WtGobanJavascript', '20%', 'orange', 1);
  ShowOneLink16('detail-wtgoban.html#WtGoSaver',         'WtGoSaver',         '20%', 'orange', 1);
  ShowOneLink16('detail-wtgoban.html#WtGobanApplet',     'WtGobanApplet',     '20%', 'orange', 1);
  document.write('</tr>');
  document.write('<tr>');
  ShowOneLink16('detail-wttimer.html',          'WtTimer',      '20%', 'orange', 1);
  ShowOneLink16('detail-wtlauncher.html',       'WtLauncher',   '20%', 'orange', 1);
  ShowOneLink16('detail-wtwallchange.html',     'WtWallChange', '20%', 'orange', 1);
  ShowOneLink16('detail-wtmousefix.html',       'WtMouseFix',   '20%', 'orange', 1);
  ShowOneLink16('detail-wtntp.html',            'WtNTP',        '20%', 'orange', 1);
  // ShowOneLink16('detail-wtdropfile.html',       'WtDropFile',   '20%', 'orange', 1);
  // ShowOneLink16('detail-wttodo.html',           'WtToDo',       '20%', 'orange', 1);
  // ShowOneLink16('detail-wtstartup.html',        'WtStartup',    '20%', 'orange', 1);
  document.write('</tr>');
  document.write('<tr>');
  ShowOneLink16('detail-wtbowling.html',        'WtBowling',    '20%', 'orange', 1);
  ShowOneLink16('detail-wtmember.html',         'WtMember',     '20%', 'orange', 1);
  // ShowOneLink16('detail-wtprize.html',          'WtPrize',      '20%', 'orange', 1);
  // ShowOneLink16('detail-wtinstall.html',        'WtInstall',    '20%', 'orange', 1);
  // ShowOneLink16('detail-wtframeviewer.html',         'WtFrameViewer', '20%', 'orange', 1);
  // ShowOneLink16('detail-wtbezier.html',              'WtBezier',      '20%', 'orange', 1);
  // ShowOneLink16('detail-wtschedule.html',            'WtSchedule',    '20%', 'orange', 1);
  document.write('</tr>');
  document.write('</table>');
  document.write('<table cellspacing="1" cellpadding="0">');
  document.write('<tr>');
  ShowOneLink16('unix.html',            'UNIXソフト', '16%', 'blue', 1);
  ShowOneLink16('unix.html#wtcount',    'wtcount',    '16%', 'blue', 1);
  ShowOneLink16('unix.html#e2ps',       'e2ps',       '16%', 'blue', 1);
  // ShowOneLink16('unix.html#wtkf',       'wtkf',       '16%', 'blue', 1);
  // ShowOneLink16('unix.html#euc2jisps',  'euc2jisps',  '16%', 'blue', 1);
  // ShowOneLink16('unix.html#adddate',    'adddate',    '16%', 'blue', 1);
  // ShowOneLink16('unix.html#statistics', 'statistics', '16%', 'blue', 1);
  document.write('</tr>');
  document.write('</table>');

  return;
}


////////// WtSeries
function WtSeriesTopLinkSub(url, comment) {
  var index;

  index = location.href.indexOf(url);

  document.write('<td width="10%" height="16" valign="middle" align="center" background="http://wtpage.info/images/backbar16-');

  if ( index >= 0 ) {
    document.write('pink');
  }
  else {
    document.write('cyan');
  }

  document.write('.png" style="font-size:11px; background-repeat:repeat-x; margin:0px; padding:0px; ');

  if ( index >= 0 ) {
    // document.write('font-weight:bold;');
  }

  document.write('"><a href="');
  document.write(url);
  document.write('" style="width:100%; padding:0px 2px;">');
  document.write(comment);
  document.write('</a></td>');

  return;
}
function WtSeriesTopLink() {
  return;
  document.write('<div align="right" style="margin:0px; padding:0px; width:100%;">');
  document.write('<table cellspacing="0" cellpadding="0" style="margin:0px; padding:0px;">');
  document.write('<tr>');
  WtSeriesTopLinkSub('index.html',                   'トップページ');
  WtSeriesTopLinkSub('update.html',                  '更新ソフト');
  WtSeriesTopLinkSub('sendmail.html',                'メール送信');
  WtSeriesTopLinkSub('link.html',                    'リンク集');
  WtSeriesTopLinkSub('detail-wtcal.html',            'WtCal');
  WtSeriesTopLinkSub('detail-wtcalprint.html',       'WtCalPrint');
  WtSeriesTopLinkSub('detail-wtbackup.html',         'WtBackup');
  WtSeriesTopLinkSub('detail-wtclock.html',          'WtClock');
  WtSeriesTopLinkSub('detail-wtlabel.html',          'WtLabel');
  WtSeriesTopLinkSub('detail-wtmailcheck.html',      'WtMailCheck');
  document.write('</tr>');
  document.write('<tr>');
  WtSeriesTopLinkSub('detail-wtcapture.html',        'WtCapture');
  WtSeriesTopLinkSub('detail-wtautopower.html',      'WtAutoPower');
  WtSeriesTopLinkSub('detail-wtpower.html',          'WtPower');
  WtSeriesTopLinkSub('detail-wtupdate.html',         'WtUpdate');
  WtSeriesTopLinkSub('detail-wtgoban.html',                   'WtGoban');
  WtSeriesTopLinkSub('detail-wtgoban.html#WtGobanJavascript', 'WtGobanJavascript');
  WtSeriesTopLinkSub('detail-wtgoban.html#WtGoSaver',         'WtGoSaver');
  WtSeriesTopLinkSub('detail-wtgoban.html#WtGobanApplet',     'WtGobanApplet');
  WtSeriesTopLinkSub('detail-wtpractice.html',                'WtPractice');
  WtSeriesTopLinkSub('detail-wttimer.html',          'WtTimer');
  document.write('</tr>');
  document.write('<tr>');
  WtSeriesTopLinkSub('detail-wtwallchange.html',     'WtWallChange');
  WtSeriesTopLinkSub('detail-wtmousefix.html',       'WtMouseFix');
  WtSeriesTopLinkSub('detail-wtntp.html',            'WtNTP');
  // WtSeriesTopLinkSub('detail-wttodo.html',           'WtToDo');
  // WtSeriesTopLinkSub('detail-wtlauncher.html',       'WtLauncher');
  // WtSeriesTopLinkSub('detail-wtstartup.html',        'WtStartup');
  // WtSeriesTopLinkSub('detail-wtdropfile.html',       'WtDropFile');
  // WtSeriesTopLinkSub('detail-wtprize.html',         'WtPrize');
  WtSeriesTopLinkSub('detail-wtbowling.html',        'WtBowling');
  WtSeriesTopLinkSub('detail-wtmember.html',         'WtMember');
  document.write('</tr>');
  document.write('<tr>');
  // WtSeriesTopLinkSub('detail-wtinstall.html',        'WtInstall');
  // WtSeriesTopLinkSub('detail-wtframeviewer.html',    'WtFrameViewer');
  // WtSeriesTopLinkSub('detail-wtschedule.html',       'WtSchedule');
  // WtSeriesTopLinkSub('detail-wtbezier.html',         'WtBezier');
  WtSeriesTopLinkSub('unix.html#wtcount',    'wtcount');
  WtSeriesTopLinkSub('unix.html#e2ps',       'wtcount');
  // WtSeriesTopLinkSub('unix.html#wtkf',       'wtkf');
  // WtSeriesTopLinkSub('unix.html#adddate',    'adddate');
  // WtSeriesTopLinkSub('unix.html#statistics', 'statistics');
  document.write('</tr>');
  document.write('</table>');
  document.write('</div>');
  return;
}


////////// 縦型バナー
function ShowWtSeriesTop() {
  if ( NoBanner == 0 ) {
    TextBanner();
    SearchGoogleRakutenBooks();
    Banner224x33();
    // Banner468x60(1);
  }

  return;
}


////////// 縦型バナー
function ShowWtSeriesBottom() {
  var sp = '<img width="100%" alt="" height="5" src="images/sp.png" /><br />';

  ShowLinkToWtseriesPage();
  // ShowLinkToMainPage();
  document.write(sp);

  if ( NoBanner == 0 ) {
    Banner468x60(0);
    TextBanner();
  }

  return;
}


////////// 縦型バナー
function ShowWtSeriesVertBanner(longval) {
  if ( NoBanner != 0 ) return;

  document.write('<div style="float:right; width:120px;">');
  document.write('<iframe frameborder="0" allowtransparency="true" height="120" width="120" marginheight="0" scrolling="no" src="http://ad.jp.ap.valuecommerce.com/servlet/htmlbanner?sid=2125859&pid=878629002" marginwidth="0"><script language="javascript" src="http://ad.jp.ap.valuecommerce.com/servlet/jsbanner?sid=2125859&pid=878629002"></script><noscript><a href="http://ck.jp.ap.valuecommerce.com/servlet/referral?sid=2125859&pid=878629002" target="_blank" ><img src="http://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=2125859&pid=878629002" height="120" width="120" border="0"></a></noscript></iframe><br />');
  document.write('<iframe frameBorder="0" allowTransparency="true" height="600" width="120" marginHeight="0" scrolling="no" src="http://ad.jp.ap.valuecommerce.com/servlet/htmlbanner?sid=2125859&pid=874911930" MarginWidth="0"><script Language="javascript" Src="http://ad.jp.ap.valuecommerce.com/servlet/jsbanner?sid=2125859&pid=874911930"></script><noscript><a href="http://ck.jp.ap.valuecommerce.com/servlet/referral?sid=2125859&pid=874911930" target="_blank" ><img Src="http://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=2125859&pid=874911930" height="600" width="120" Border="0" /></a></noscript></iframe><br />');
  document.write('<iframe frameBorder="0" allowTransparency="true" height="600" width="120" marginHeight="0" scrolling="no" src="http://ad.jp.ap.valuecommerce.com/servlet/htmlbanner?sid=2125859&pid=872408775" MarginWidth="0"><script Language="javascript" Src="http://ad.jp.ap.valuecommerce.com/servlet/jsbanner?sid=2125859&pid=872408775"></script><noscript><a href="http://ck.jp.ap.valuecommerce.com/servlet/referral?sid=2125859&pid=872408775" target="_blank" ><img Src="http://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=2125859&pid=872408775" height="600" width="120" Border="0" /></a></noscript></iframe><br />');
  if ( longval > 0 ) {
    document.write('<iframe frameBorder="0" allowTransparency="true" height="600" width="120" marginHeight="0" scrolling="no" src="http://ad.jp.ap.valuecommerce.com/servlet/htmlbanner?sid=2125859&pid=874158119" MarginWidth="0"><script Language="javascript" Src="http://ad.jp.ap.valuecommerce.com/servlet/jsbanner?sid=2125859&pid=874158119"></script><noscript><a href="http://ck.jp.ap.valuecommerce.com/servlet/referral?sid=2125859&pid=874158119" target="_blank" ><img Src="http://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=2125859&pid=874158119" height="600" width="120" Border="0" /></a></noscript></iframe><br />');
  }
  if ( longval > 1 ) {
    document.write('<iframe frameBorder="0" allowTransparency="true" height="600" width="120" marginHeight="0" scrolling="no" src="http://ad.jp.ap.valuecommerce.com/servlet/htmlbanner?sid=2125859&pid=874158119" MarginWidth="0"><script Language="javascript" Src="http://ad.jp.ap.valuecommerce.com/servlet/jsbanner?sid=2125859&pid=874158119"></script><noscript><a href="http://ck.jp.ap.valuecommerce.com/servlet/referral?sid=2125859&pid=874158119" target="_blank" ><img Src="http://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=2125859&pid=874158119" height="600" width="120" Border="0" ></a></noscript></iframe><br />');
  }
  document.write('</div>');

  return;
}


////////// WtSeriesヘルプ
function ShowWtSeriesHelpMain(Soft) {
  ShowWtSeriesTitle3('ヘルプ');

  document.write('<ul>');
  document.write('<img alt="" align="middle" src="images/point-green.png" /> <a href="http://wtpage.info/help/'+Soft+'/Help-main.html"><b>ヘルプを見る</b></a><br />');
  document.write('</ul>');

  return;
}


////////// WtSeries更新履歴
function ShowWtSeriesHelpChanges(Soft) {
  ShowWtSeriesTitle3('更新履歴');

  document.write('<ul>');
  document.write('<img alt="" align="middle" src="images/point-green.png" /> <a href="http://wtpage.info/help/'+Soft+'/Help-changes.html"><b>更新履歴</b></a><br />');
  document.write('</ul>');

  return;
}


////////// WtSeriesメールフォーム
function ShowWtSeriesMailForm(Soft) {
  var imagebase = 'http://wtpage.info/images/';

  // document.write('<img alt="" align="middle" src="images/point-pink.png" /> <a name="sendmail"><b>'+Soft+'への質問・機能要望・バグ報告など</b></a>');
  ShowWtSeriesTitle3(Soft+'への質問・機能要望・バグ報告など');

  document.write('<ul>');
  document.write('<table cellspacing="0" cellpadding="0">');

  document.write('<tr>');
  document.write('<td><img alt="" width="8" height="8" src="'+imagebase+'frame-gl-tl.png" /></td>');
  document.write('<td background="'+imagebase+'frame-gl-t.png" /></td>');
  document.write('<td><img alt="" width="8" height="8" src="'+imagebase+'frame-gl-tr.png" /></td>');
  document.write('</tr>');
  document.write('<form method="post" action="http://wtpage.info/cgi-bin/wmail/wwwmail.cgi">');
  document.write('<tr>');
  document.write('<td background="'+imagebase+'frame-gl-l.png" /></td>');
  document.write('<th bgcolor="#ccffcc" style="padding: 5px 5px;">');
  document.write('<input type="hidden" name="WtSubject" value="'+Soft+' 質問・要望・バグ報告">');
  document.write('<input type="hidden" name="WtBackURL" value="http://wtpage.info/wtseries/">');
  document.write('<input type="hidden" name="WtCheck" value="WtName,WtMail,WtMessage">');

  document.write('<table>');

  document.write('<tr>');
  document.write('<th>名前</th>');
  document.write('<td><input type="text" size="60" name="WtName" /></td>');
  document.write('</tr>');

  document.write('<tr>');
  document.write('<th>e-mail</th>');
  document.write('<td><input type="text" size="60" name="WtMail" /></td>');
  document.write('</tr>');

  document.write('<tr>');
  document.write('<th>種類</th>');
  document.write('<td>');
  document.write('<input type="radio" name="WtType" value="質問" checked />質問');
  document.write('<input type="radio" name="WtType" value="要望" />要望');
  document.write('<input type="radio" name="WtType" value="バグ" />バグ報告');
  document.write('<input type="radio" name="WtType" value="その他" />その他');
  document.write('</td>');
  document.write('</tr>');

  document.write('<tr>');
  document.write('<th>バージョン</th>');
  document.write('<td><input type="text" size="60" name="WtVersion" /></td>');
  document.write('</tr>');

  document.write('<tr>');
  document.write('<th>内容</th>');
  document.write('<td><textarea cols="60" rows="10" name="WtMessage"></textarea></td>');
  document.write('</tr>');

  document.write('</table>');

  document.write('<input type="submit" value=" 送 信 "><input type="reset" value=" 取 消 ">');
  document.write('</th>');
  document.write('<td background="'+imagebase+'frame-gl-r.png" /></td>');
  document.write('</tr>');
  document.write('</form>');
  document.write('<tr>');
  document.write('<td><img alt="" width="8" height="8" src="'+imagebase+'frame-gl-bl.png" /></td>');
  document.write('<td background="'+imagebase+'frame-gl-b.png" /></td>');
  document.write('<td><img alt="" width="8" height="8" src="'+imagebase+'frame-gl-br.png" /></td>');
  document.write('</tr>');
  document.write('</table>');
  document.write('</ul>');
  return;
}
