function DiaryList() { BaseAdd="http://www.bc.wakwak.com/~cosa/"; OffLineBaseAdd='C:/www/tukimi/public_html/hello/'; StartYear =1999; StartMonth=10; if(!window.navigator.onLine) { BaseAdd="file:///"+OffLineBaseAdd; }; BaseDiaryAdd=BaseAdd+DiaryFolder+'/'; YY=new Date().getFullYear(); MM=new Date().getMonth()+1; DD=new Date().getDate(); RemainYear=YY-StartYear; if(StartMonth<10){StartMonth="0"+StartMonth;}; B=0; C=0; if(NemuName[NowMonthDepth] != NowDiaryFile) { Depth=MonthDepth; }else{ Depth=NowMonthDepth; }; NowPageMonth=NemuName[Depth].substring(0,2); NowPageYear =NemuName[Depth-1]; if(NowPageYear == YY || NowPageMonth == SecondLetter) { WriteNowYear(); }else if(NowPageYear == StartYear){ WriteStartYear(); }else{ WriteYear(); }; function WriteNowYear() { document.write(ChildrenListTag); for(A=0;A'+(StartYear+A)+'年') }else{ document.write('
  • '+(StartYear+A)+'年
  • '); }; }; document.write(ChildrenListSelectedTag+YY+'年'); document.write(GrandchildListTag); for(A=1;A<=MM;A++) { ListStream(); if(DD <= 1 && A == MM-1){A++;}; if(NowPageMonth == SecondLetter && A == MM) { document.write(GrandchildListSelectedTag+B+'月'); break; }; if(B == MM) { DepthDifference=MonthDepth-NowMonthDepth DepthUp=""; for(H=1;H <= DepthDifference;H++) { DepthUp=DepthUp+"../"; }; C=DepthUp+DiaryFolder; }; document.write('
  • '+B+'月
  • '); }; document.write(''); }; function WriteYear() { NowPageOldYear=NowPageYear-StartYear; NowPageNewYear=YY-NowPageYear; document.write(ChildrenListTag); for(D=0;D'+(StartYear+D)+'年') }else{ document.write('
  • '+(StartYear+D)+'年
  • '); }; }; document.write(ChildrenListSelectedTag+NowPageYear+'年'); document.write(GrandchildListTag); for(A=1;A<=12;A++) { ListStream(); if(A == 13){break;}; document.write('
  • '+B+'月
  • '); }; document.write(''); for(D=1;D<=NowPageNewYear;D++) { document.write('
  • '+(Number(NowPageYear)+D)+'年
  • '); }; }; function WriteStartYear() { document.write(ChildrenListTag); document.write(ChildrenListSelectedTag+NowPageYear+'年'); document.write(GrandchildListTag); B=StartMonth-1; C=StartMonth-1; for(A=StartMonth;A<=12;A++) { ListStream(); if(A == 13){break;}; document.write('
  • '+B+'月
  • '); }; document.write(''); for(D=1;D<=RemainYear;D++) { document.write('
  • '+(StartYear+D)+'年
  • ') }; }; function ListStream() { B++; C++; if(NowPageMonth == A) { document.write(GrandchildListSelectedTag+B+'月'); A++; B++; C++; }; if(C < 10){ C="0"+C; }; }; document.write(''); };