//====================
// init global var
// Copyright (C) H.AIZAWA & K.AIZAWA , www.aizawa22.com / All rights reserved.
//====================

 ngsNum = Num_tmlNgsu;  // ngs number

  var a22banner1 = 4;
  var a22banner2 = 0;
  var a22banner3 = 0;
  var a22banner4 = 0;
   a22bannerData = new Array();
   a22bannerData[0]  = "ntm/gohan/index.htm,japan02a04,,NTM『ねこ旅ごはん』";
   a22bannerData[1]  = "ntm/kyoko/index.htm,japan02a05,,NTM『京子さんの旅情料理』";
   a22bannerData[2]  = "ntm/omiya/index.htm,japan02a07,,NTM『ねこ旅みやげ』";
   a22bannerData[3]  = "ntm/sushi/index.htm,japan02a08,,NTM『ねこ旅回転寿司』";
   a22bannerData[4]  = "ntm/okina/index.htm,japan02oka2,,NTM『ねこ旅沖縄そば』";
   a22bannerData[5]  = "ntm/lunch/index.htm,japan02lunch0,,NTM『ねこ旅ランチ』";
   a22bannerData[6]  = "ntm/lunch/a22lunch_zukan_index.htm,japan02lunch1,,NTM『旅ランチ大図鑑』";
   a22bannerData[7]  = "tml/jp47/index.htm,japan02a01,,TML『47都道府県猫』";
   a22bannerData[8]  = "tml/mike/index.htm,japan02a02,,TML『日本の三毛猫』";
   a22bannerData[9]  = "pe/jpns/index.htm,japan02a03,,web版『にっぽんネコさんぽ』";
   a22bannerData[10]  = "pf/happy/index.htm,japan02a06,,『HappyCatsの物語』";
   a22bannerData[11] = "pe/crew/a22airship_index.htm,japan02air1,,★深夜限定『夜間飛行ノスタルジア』";
   a22bannerData[12] = "pe/ys11/a22airship_ys11_index.htm,japan02air2,,★深夜限定『YS-11メモリアル』";
   a22bannerData[13] = "pe/rail/a22railface_index.htm,japan02rail1,,★深夜限定『真夜中は鉄な顔』";
   a22bannerData[14] = "pe/loco/a22railloco_index.htm,japan02rail2,,★深夜限定『形式写真コレクション』";
//   a22bannerData[12] = "ntm/okina/okinasoba_zukan_index.htm,japan02oka1,,NTM『沖縄そば大図鑑』";

   a22banner2 = a22bannerData.length;  // ttl num

   a22banner_img = new Array();
    for ( i = 0 ; i < a22banner2 ; i++ ){
     a22banner4 = a22bannerData[i].split(",");  // ここでは a22banner4 を一時的に使用した
     a22banner_img[i] = new Image();
     a22banner_img[i].src = "_images/"+ a22banner4[0] +".gif";
    }

// 偶数日は分替わり 奇数日は時間替わり
    if (dd % 2 == 0){
     a22banner3 = (a22rnd + mi) % a22banner2;
    } else {
     a22banner3 = (mm + dd + yb + hh) % a22banner2;
    }
// でも5で割った余りが0の日はランダム
    if (dd % 5 == 0){
     a22banner3 = Math.floor(Math.random() * a22banner2);
    }
// 0:00-6:59は“深夜限定ページ”に固定
    if (hh < 7){
     if (hh < 2){
      a22banner3 = 11 + ((a22rnd + mi) % 2);  // air ship time
     } else if (hh < 4){
      a22banner3 = 13 + ((a22rnd + mi) % 2);  // rail time
     } else {
      a22banner3 = 11 + ((a22rnd + mi) % 4);  // ランダム
     }
    }
// 7:00-14:59は「ランチタイム」に固定
    if ((hh > 6) && (hh < 15)  ||  (hh > 20)){
     a22banner3 = 5 + ((a22rnd + mi) % 2);
    }
// 日曜日はお寿司
    if ( yb == 1 ){
     if ((hh > 6) && (hh < 13)){
      a22banner3 = 3;  // ねこ旅回転寿司
     }
    }
// 午後3時台は食べ物系
    if ((hh == 15) || (hh == 18)){
     a22banner3 = (dd + mi) % 5;
    }
// 10月14日は「鉄道記念日」
    if (( mm == 10 ) && ( dd == 14 )){
     a22banner3 = 13 + ((a22rnd + mi) % 2);  // rail time
    }
// チェック＆キャンペーン用、ダイレクトに値セット

     a22banner3 = 3;   // 回転寿司の本、発行にあわせ、回転寿司のページに固定

//     a22banner3 = 11 + (((a22rnd + mi) % 2)) * 2;  // rail time

// --- for openning message ---

 a22openMes47p = "北海道,青森,岩手,宮城,秋田,山形,福島,茨城,栃木,群馬,埼玉,千葉,東京,神奈川,新潟,富山,石川,福井,山梨,長野,岐阜,静岡,愛知,三重,滋賀,京都,大阪,兵庫,奈良,和歌山,鳥取,島根,岡山,広島,山口,徳島,香川,愛媛,高知,福岡,佐賀,長崎,熊本,大分,宮崎,鹿児島,沖縄,宮古島,石垣島,竹富島,与那国島,波照間島,久米島,久高島,都城,島原,別府,博多,中津,天草,瀬戸内,高松,多度津,丸亀,尾道,倉敷,津和野,米子,境港,神戸,尼崎,名古屋,白川郷,金沢,能登半島,焼津,佐渡,熱海,湘南,横浜,川崎,南房総,那珂湊,高崎,宇都宮,白河,会津,仙台,気仙沼,盛岡,八戸,津軽,鰺ヶ沢,弘前,五所川原,金木,下北半島,函館,長万部,札幌,小樽,稚内,釧路,秩父,十条,ハワイ,信州,四国,九州,全国の猫".split(",");
 a22openMes47r = Math.floor(Math.random() * a22openMes47p.length);

 a22openMes00 = new Array(); a22openMes01 = new Array();

//                   00:01:02:03:04:05:06:07:08:09:10:11:12:13:14:15:16:17:18:19:20:21:22:23
//                   == == == == == == == == == == == == == == == == == == == == == == == ==
 a22openMes00[0]  = "02,02,12,12,12,13,13,14,14,14,03,03,03,04,04,06,06,07,08,08,08,07,05,01"; // default
 a22openMes00[1]  = "99,99,99,99,99,99,99,09,09,09,09,09,09,10,10,10,10,09,09,09,05,05,05,01"; // sun
 a22openMes00[2]  = "99,99,99,99,99,99,99,11,11,11,11,99,99,99,99,99,99,99,99,99,99,99,99,99"; // mon
 a22openMes00[3]  = "99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99"; // tue
 a22openMes00[4]  = "99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99"; // wed
 a22openMes00[5]  = "99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99"; // thu
 a22openMes00[6]  = "99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99"; // fri
 a22openMes00[7]  = "99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99"; // sat

// a22openMes01[0]  = "";
 a22openMes01[0]  = "2010年2月14日、私たちは３周めの『日本の47全都道府県を訪ねる猫の旅』を達成しました。最後まで残ったのは今回は富山県。名物の黒ラーメンを食べた後、なんと黒猫さんと出会い撮影しました！";
// a22openMes01[0]  = "<A href='http://www.toretabi.jp/' target='_blank' title='ここをクリックすると、『トレたび』（JRグループ協力）のトップページへ行きます！'>鉄道・旅行情報マガジン『トレたび』（JRグループ協力）</A>で<A href='http://www.toretabi.jp/travel/fullmoon_vol01/01.html' target='_blank' title='ここをクリックすると、『トレたび』で私たちが執筆しました「弾丸フルムーン」のページに行きます！見てね！'><FONT class='text10pb' color='#FF0000'>「弾丸フルムーン」〜リッチでお得な夫婦旅〜</FONT></A>を執筆しています。日本全国をめぐる夫婦旅を写真入りでご紹介！クリックしてね♪";   // 2009.09.03
// a22openMes01[0]  = "... ♪宝島社発行<FONT class='text10pb' color='#FF0000'>『田舎暮らしの本』</FONT>と緑書房発行<FONT class='text10pb' color='#FF0000'>『猫生活』</FONT>の2010年1月号（発売中）には私たちが撮影しました猫のカレンダー<FONT class='text10pb' color='#FF0000'>『猫暦』</FONT>が別冊付録でついています。いずれの雑誌の<FONT class='text10pb' color='#FF0000'>『猫暦』</FONT>もおすすめです！ぜひお買い求めください♪";   // 2009.12.22
 a22openMes01[1]  = "午前0時より、<A href='pe/ys11/a22airship_ys11_index.htm' target='_self'>『YS-11メモリアル』</A>と<A href='pe/crew/a22airship_index.htm' target='_self'>『夜間飛行ノスタルジア』</A>が運航をはじめます。深夜のひと時、ぜひご覧ください。";
 a22openMes01[2]  = "真夜中のひと時、★深夜限定コーナー★、<A href='pe/ys11/a22airship_ys11_index.htm' target='_self'>『YS-11メモリアル』</A>や<A href='pe/crew/a22airship_index.htm' target='_self'>『夜間飛行ノスタルジア』</A>を見てね！";
 a22openMes01[3]  = "お昼ごはん、何にする？<A href='ntm/lunch/a22lunch_zukan_index.htm' target='_self'>『旅ランチ大図鑑』</A>を見てね！営業時間は7-15時頃＆20-24時頃よん！";
 a22openMes01[4]  = "お昼ごはん、食べた？<A href='ntm/lunch/a22lunch_zukan_index.htm' target='_self'>『旅ランチ大図鑑』</A>を見てね！営業時間は7-15時頃＆20-24時頃よん！";
 a22openMes01[5]  = "明日のお昼ごはん、何にする？<A href='ntm/lunch/a22lunch_zukan_index.htm' target='_self'>『旅ランチ大図鑑』</A>を見てね！営業時間は7-15時頃＆20-24時頃よん！";
 a22openMes01[6]  = "ちょっと一息、お茶しましょ！<A href='pe/meis/index.htm' target='_self'>『迷作ギャラリー』</A>や<A href='pe/chin/index.htm' target='_self'>『珍日本百景』</A>で笑ってね！";
 a22openMes01[7]  = "いつも、お仕事、お疲れ様！<A href='tml/poem/index.htm' target='_self'>『だって猫だもん』</A>や<A href='ntm/okina/index.htm' target='_self'>『ねこ旅沖縄そば』</A>で、ひと休み！";
 a22openMes01[8]  = "<FONT color='#CC0099'>" + a22openMes47p[a22openMes47r] + "のみなさん★こんばんは!!　</FONT>今日の夕食、何にする？<A href='ntm/kyoko/index.htm' target='_self'>『京子さんの旅情料理』</A>や<A href='ntm/gohan/index.htm' target='_self'>『ねこ旅ごはん』</A>を参考にしてね！";
 a22openMes01[9]  = "日曜日はお寿司が食べたい！NTM<A href='ntm/sushi/index.htm' target='_self'>『ねこ旅回転寿司』</A>へGo！";
 a22openMes01[10] = "<FONT color='#FF3366'>" + a22openMes47p[a22openMes47r] + "のみなさん!!　こんにちは♪　</FONT>今日は日本全国お寿司よね！NTM<A href='ntm/sushi/sushizukan_index.htm' target='_self'>『回転寿司大図鑑』</A>を見てね！";
 a22openMes01[11] = "月曜日は、うんにゃらげ〜。で、お昼ごはん、何にする？<A href='ntm/lunch/a22lunch_zukan_index.htm' target='_self'>『旅ランチ大図鑑』</A>を見てね！";
 a22openMes01[12] = "真夜中のひと時、★深夜限定コーナー★、<A href='pe/loco/a22railloco_index.htm' target='_self'>『形式写真コレクション』</A>や<A href='pe/rail/a22railface_index.htm' target='_self'>『真夜中は鉄な顔』</A>を見てね！";
 a22openMes01[13] = "夜明けのひと時も、★深夜限定コーナー★、<A href='pe/crew/a22airship_index.htm' target='_self'>『夜間飛行ノスタルジア』</A>や<A href='pe/ys11/a22airship_ys11_index.htm' target='_self'>『YS-11メモリアル』</A>や<A href='pe/rail/a22railface_index.htm' target='_self'>『真夜中は鉄な顔』</A>を見てね！";
 a22openMes01[14] = "<FONT color='#FF0000'>" + a22openMes47p[a22openMes47r] + "のみなさん!!　おはようございます♪　</FONT>お昼ごはんのことなら<A href='ntm/lunch/a22lunch_zukan_index.htm' target='_self'>『旅ランチ大図鑑』</A>を見てね！ただ今、営業中で〜す！";

//====================
// yaizu-neko openning message
// Copyright (C) H.AIZAWA & K.AIZAWA , www.aizawa22.com / All rights reserved.
//====================

function A22openMes1(){

 if ( a22openMes01[0] == "" ){

  a22openMes99 = a22openMes00[yb].split(",");
  dt1 = a22openMes99[hh] * 1;

   if ( dt1 == 99 ){
    a22openMes99 = a22openMes00[0].split(",");
    dt2 = a22openMes99[hh] * 1;
    dt2 = a22openMes01[dt2];
   } else {
    dt2 = a22openMes01[dt1];
   }

 } else {

  dt2 = a22openMes01[0];

 }

// document.write("<IMG src='_images/acat01a.gif' width='47' height='25' border='0' alt='焼津（静岡県）の猫 photo by K.AIZAWA / All rights reserved.' onmousedown='alepon()'><FONT class='text08pb'>&nbsp;"+ dt2);
// document.write("．．．．．．．はじめておこしの方は<A href='page_navi.htm' target='_self'>ここ <IMG src='_images/top_m81.gif' width='117' height='17' border='0' alt='ここをクリックすると『はじめてナビ』に行きます！はじめておこしの方はこちらからどうぞ！操作方法のご説明や各コーナーのご案内があります！'> から</A> ご覧ください。</FONT>");
 document.write("<IMG src='_images/acat01a.gif' width='47' height='25' border='0' alt='焼津（静岡県）の猫 photo by K.AIZAWA / All rights reserved.' onmousedown='alepon()'><FONT class='text09pb'>&nbsp;"+ dt2);  // text 9pt
 document.write("</FONT>");     // 一時的に「はじめてnavi」を非表示化するため

}

//====================
// top page a22banner
// Copyright (C) H.AIZAWA & K.AIZAWA , www.aizawa22.com / All rights reserved.
//====================

function A22Banner1(){
 A22Banner1_sub1();
}

function A22Banner1_sub1(){
 a22banner4 = a22bannerData[a22banner3].split(",");  // ここでは a22banner4 を一時的に使用した
 a = "<IMG src='_images/"+ a22banner4[1] +".gif' width='100' height='100' border='0' ";
 a = a + "alt='ここをクリックすると "+ a22banner4[3] +"のコーナーに行きます！' style='cursor:hand' ";
 a = a + "onclick='A22Banner1_link1()'>";
 document.write(a);
}

function A22Banner1_link1(){
 a22banner4 = a22bannerData[a22banner3].split(",");  // ここでは a22banner4 を一時的に使用した
 self.location = a22banner4[0];
}

function A22top_page01(){
//    123456789xyz ... month
 a = "441112223334".substring(mm-1,mm);
 a = "1";  // fix - spring

 document.write("<IMG src='_images/logo01c"+ a +".gif' width='308' height='88' border='0' alt='Cats,Photographs,Essays and Puzzles 相澤秀仁＆相澤京子ホームページ『Cats in Japan』．．．猫たちとのひととき、どうぞごゆっくりお過ごしください．．．'>");
}

function A22top_page02(){
//    123456789xyz ... month
 a = "ddaaabbbcccd".substring(mm-1,mm);
 a = "a";  // fix - spring

 a22docosw = 0;

 a22doco_s7 = a22docosw;
  if (a22docosw == 0){
   a22docodir  = "'";
   a22docodir2 = "";
  } else if (a22docosw == 1){
   a22docodir  = "'../";
   a22docodir2 = "../";
  } else {
   a22docodir  = "'../../";
   a22docodir2 = "../../";
  }
 a22doco_d7 = a22docodir2;

document.write("<IMG src="+a22docodir+"_images/hyo_sushi01c.gif' width='320' height='153' border='0' alt='ここをクリックすると、新発売の相澤秀仁＆相澤京子著『旅してでも食べたい 地もの旬もの回転寿司』（緑書房発行）詳細ページが開きます！' style='cursor:hand' onClick='a22docopon04(A22topicsC,"+a22docosw+")'>");
// 回転寿司の本のPR

// document.write("<IMG src='_images/hyo01"+ a +".jpg' width='320' height='153' border='0' alt='写真集『猫だもん』に登場の猫たちです！Copyright (C) H.AIZAWA & K.AIZAWA , www.aizawa22.com / All rights reserved.' onmousedown='alepon()' usemap='#hyo01c'><MAP name='hyo01c'>");
// document.write("<AREA shape='circle' coords='218,125,20' nohref alt='函館の猫'>");
// document.write("<AREA shape='circle' coords='160,120,20' nohref alt='長崎の猫'>");
// document.write("<AREA shape='circle' coords='99,114,20' nohref alt='香川の猫'>");
// document.write("<AREA shape='circle' coords='43,125,20' nohref alt='東京の猫'>");
// document.write("<AREA shape='circle' coords='277,74,20' nohref alt='東京の猫'>");
// document.write("<AREA shape='circle' coords='214,66,20' nohref alt='東京の猫'>");
// document.write("<AREA shape='circle' coords='159,55,20' nohref alt='愛媛の猫'>");
// document.write("<AREA shape='circle' coords='103,64,20' nohref alt='鎌倉の猫'>");
// document.write("<AREA shape='circle' coords='47,67,20' nohref alt='南房総の猫'>");
// document.write("<AREA shape='circle' coords='278,124,20' nohref alt='鎌倉の猫'>");
// document.write("<AREA shape='default' nohref>");
// document.write("</MAP>");

}

// --- sushi start --- ---------- ---------- ---------- // 2009.9現在は回転寿司の本

function A22top_page02s(a22docosw){

 a22doco_s7 = a22docosw;
  if (a22docosw == 0){
   a22docodir  = "'";
   a22docodir2 = "";
  } else if (a22docosw == 1){
   a22docodir  = "'../";
   a22docodir2 = "../";
  } else {
   a22docodir  = "'../../";
   a22docodir2 = "../../";
  }
 a22doco_d7 = a22docodir2;

document.write("<IMG src="+a22docodir+"_images/space_040.gif' width='63' height='10' border='0'>")
document.write("<IMG src="+a22docodir+"_images/hyo_sushi01_anime.gif' width='320' height='153' border='0' hspace='5' alt='ここをクリックすると詳しい案内ページ（当サイト）が開きます。見てね！' style='cursor:hand' onClick='a22docopon04(exA22ama1[40],"+a22docosw+")'>");
a22link_to_amazon01(8,a22docosw);

}
// --- sushi end --- ---------- ---------- ----------



function A22top_page03(){
//    123456789xyz ... month
 a = "ddaaabbbcccd".substring(mm-1,mm);
 a = "a";  // fix - spring

// document.write("<FONT class='text08pb' color='#ff00ff'>好評発売中<BR>");
 document.write("<FONT class='text08pb' color='#ff00ff'><BR>");
 document.write("<A href='pf/happy/index.htm' target='_self'><IMG src='_images/book03a1"+ a +".gif' width='60' height='80' border='1' alt='ここをクリックすると、私たちのポストカードブック『HappyCats』（発行：ピエ・ブックス）に収録の全30点の写真と出会いの物語をご紹介するコーナー『HappyCatsの物語』へ行きます！ぜひ見てね！' hspace='0' vspace='3'></A><BR>");
 document.write("<FONT color='#666666'><B>ポストカードブック<BR>『HappyCats』</B></FONT><BR>");
 document.write("<FONT color='#FF66CC'>クリックしてね！</FONT></FONT>");
}

//====================
// get ngs & open win
// Copyright (C) H.AIZAWA & K.AIZAWA , www.aizawa22.com / All rights reserved.
//====================

function nekogaosama(a22a){

  if (a22a == 0){
   ngsPath01 = "tml/u_ngs/";
   ngsPath02 = "_images/";
  } else if (a22a == 1) {
   ngsPath01 = "../../tml/u_ngs/";
   ngsPath02 = "../../_images/";
  } else {
   ngsPath01 = "";
   ngsPath02 = "../../_images/";
  }

 ngsMon = document.ngsu01.neko_b_mon.selectedIndex; ngsMon++;
 ngsDay = document.ngsu01.neko_b_day.selectedIndex; ngsDay++;
 test01 = ngsMon*100+ngsDay;
  today = new Date();
     yy = today.getFullYear();
     mm = today.getMonth()+1;
     dd = today.getDate();
     yb = today.getDay()+1;
     hh = today.getHours(); ampm = hh/12; ampm = parseInt(ampm)+1;
     mi = today.getMinutes();
     se = today.getSeconds();
     z1 = yy * mm + mm * dd + dd * yb + yy * ampm; z1 = Math.sqrt(z1); z1 = z1 * ngsDay * 100;
     z1 = parseInt(z1) % ngsNum; z1++;
     z2 = (test01 * 10) + test01; z2 = Math.sqrt(z2); z2 = z2 * 10000;
     z2 = parseInt(z2) % (yy + mm * ngsDay + dd * ngsMon); z2++;
     z3 = yy + mm * 100 + (49 - ngsDay) * 100 + (dd % 5) * 1000 + (ngsDay % 3) * (ngsNum + yb);
     z4 = dd % 2;
   tomorrow = yy + mm * ngsDay + dd * ngsMon + z1 + z2 + (z3 % dd) + z4 * yy;
   test01 = tomorrow % ngsNum; test01++;

   if (ngsDay % 2 == z4)
    {
     test01 = test01 + z3;
     test01 = test01 % ngsNum; test01++;
    }

  test01 = test01 - 1; ngs_test01();

     t001 = test01 % 10;
     t010 = test01 % 100; t010 = t010 / 10; t010 = parseInt(t010);
     t100 = test01 / 100; t100 = parseInt(t100);
     t901 = ((22222 - test01) % (111 + test01)) % 10;
     t902 = ((22222 + test01) % (444 - test01)) % 10;
  ngsfile = ngsPath01 + "sub_ngs01.htm";
   ngswin = "ngswin" + t100 + t010 + t001;

  x = screen.width;
  if (x < 641){
   dx = 0;
   dy = 0;
  } else {
   dx = (x-620) / 2; 
   dy = 50;
  }
 optionString = "toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,";
 optionString += "width=600,height=470,left=" + dx + ",top=" + dy ;
 var win1 = window.open(ngsfile,ngswin,optionString);
}

function ngs_test01(){
 if ((hh == 22) && (mi == 22) && (z4 == 0)){
  test01 = 2;
 } else if ((hh == 13) && (mi == 13) && (z4 == 1)){
  test01 = 29;
 } else if ((hh == 17) && (mi == 35)){
  test01 = 0;
 }
}

//====================
// ngs help file opens to the sub window
// Copyright (C) H.AIZAWA & K.AIZAWA , www.aizawa22.com / All rights reserved.
//====================

function ngsHelp(a22a){

  if (a22a == 0){
   ngsPath01 = "tml/u_ngs/";
   ngsPath02 = "_images/";
  } else if (a22a == 1) {
   ngsPath01 = "../../tml/u_ngs/";
   ngsPath02 = "../../_images/";
  } else {
   ngsPath01 = "";
   ngsPath02 = "../../_images/";
  }

  x = screen.width;
  if (x < 641){
   dx = 0;
   dy = 0;
  } else {
   dx = (x - 580) / 2; 
   dy = 70;
  }
 optionString = "toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,";
 optionString += "width=560,height=460,left=" + dx + ",top=" + dy ;
 var win0 = window.open(ngsPath01+"help_ngs.htm","ngswin0",optionString);
}

//====================
// disp month & day
// Copyright (C) H.AIZAWA & K.AIZAWA , www.aizawa22.com / All rights reserved.
//====================

function ngs_opMonDay(a22a){

  if (a22a == 0){
   ngsPath01 = "tml/u_ngs/";
   ngsPath02 = "_images/";
  } else if (a22a == 1) {
   ngsPath01 = "../../tml/u_ngs/";
   ngsPath02 = "../../_images/";
  } else {
   ngsPath01 = "";
   ngsPath02 = "../../_images/";
  }

 document.write("&nbsp;<IMG src='"+ngsPath02+"space_040.gif' width='40' height='5' border='0' vspace='0'>&nbsp;<IMG src='"+ngsPath02+"ngs_g02.gif' width='35' height='11' border='0' vspace='1' alt='Please set your birth month ...'>");
 document.write("<SELECT name='neko_b_mon'>");
 document.write("<OPTION value='01'>01</OPTION>");
 document.write("<OPTION value='02' selected>02</OPTION>");
 document.write("<OPTION value='03'>03</OPTION>");
 document.write("<OPTION value='04'>04</OPTION>");
 document.write("<OPTION value='05'>05</OPTION>");
 document.write("<OPTION value='06'>06</OPTION>");
 document.write("<OPTION value='07'>07</OPTION>");
 document.write("<OPTION value='08'>08</OPTION>");
 document.write("<OPTION value='09'>09</OPTION>");
 document.write("<OPTION value='10'>10</OPTION>");
 document.write("<OPTION value='11'>11</OPTION>");
 document.write("<OPTION value='12'>12</OPTION>");
 document.write("<OPTION value='13'>13</OPTION>");
 document.write("</SELECT>");
 document.write("<IMG src='"+ngsPath02+"ngs_g03.gif' width='12' height='13' border='0'>&nbsp;<IMG src='"+ngsPath02+"ngs_g04.gif' width='21' height='12' border='0' alt='Please set your birth day ... then ... Click under button.'>");
 document.write("<SELECT name='neko_b_day'>");
 document.write("<OPTION value='01'>01</OPTION>");
 document.write("<OPTION value='02'>02</OPTION>");
 document.write("<OPTION value='03'>03</OPTION>");
 document.write("<OPTION value='04'>04</OPTION>");
 document.write("<OPTION value='05'>05</OPTION>");
 document.write("<OPTION value='06'>06</OPTION>");
 document.write("<OPTION value='07'>07</OPTION>");
 document.write("<OPTION value='08'>08</OPTION>");
 document.write("<OPTION value='09'>09</OPTION>");
 document.write("<OPTION value='10'>10</OPTION>");
 document.write("<OPTION value='11'>11</OPTION>");
 document.write("<OPTION value='12'>12</OPTION>");
 document.write("<OPTION value='13'>13</OPTION>");
 document.write("<OPTION value='14'>14</OPTION>");
 document.write("<OPTION value='15'>15</OPTION>");
 document.write("<OPTION value='16'>16</OPTION>");
 document.write("<OPTION value='17'>17</OPTION>");
 document.write("<OPTION value='18'>18</OPTION>");
 document.write("<OPTION value='19'>19</OPTION>");
 document.write("<OPTION value='20'>20</OPTION>");
 document.write("<OPTION value='21'>21</OPTION>");
 document.write("<OPTION value='22' selected>22</OPTION>");
 document.write("<OPTION value='23'>23</OPTION>");
 document.write("<OPTION value='24'>24</OPTION>");
 document.write("<OPTION value='25'>25</OPTION>");
 document.write("<OPTION value='26'>26</OPTION>");
 document.write("<OPTION value='27'>27</OPTION>");
 document.write("<OPTION value='28'>28</OPTION>");
 document.write("<OPTION value='29'>29</OPTION>");
 document.write("<OPTION value='30'>30</OPTION>");
 document.write("<OPTION value='31'>31</OPTION>");
 document.write("<OPTION value='32'>32</OPTION>");
 document.write("<OPTION value='33'>33</OPTION>");
 document.write("<OPTION value='34'>34</OPTION>");
 document.write("<OPTION value='35'>35</OPTION>");
 document.write("<OPTION value='36'>36</OPTION>");
 document.write("<OPTION value='37'>37</OPTION>");
 document.write("<OPTION value='38'>38</OPTION>");
 document.write("<OPTION value='39'>39</OPTION>");
 document.write("<OPTION value='40'>40</OPTION>");
 document.write("<OPTION value='41'>41</OPTION>");
 document.write("<OPTION value='42'>42</OPTION>");
 document.write("<OPTION value='43'>43</OPTION>");
 document.write("<OPTION value='44'>44</OPTION>");
 document.write("<OPTION value='45'>45</OPTION>");
 document.write("<OPTION value='46'>46</OPTION>");
 document.write("<OPTION value='47'>47</OPTION>");
 document.write("<OPTION value='48'>48</OPTION>");
 document.write("<OPTION value='49'>49</OPTION>");
 document.write("</SELECT>");
 document.write("<IMG src='"+ngsPath02+"ngs_g05.gif' width='11' height='13' border='0'>");
}
