var kndata = new Array( 
                    " 1,23, 1月23日(月),アニメ・ヒーロー・ヒロインシリーズ　第１７集",
                    " 2, 1, 2月 1日(水),春のグリーティング",
                    " 3,27, 3月27日(火),米国への桜寄贈１００周年",
                    " 4,20, 4月20日(金),切手趣味週間",
                    " 4,24, 4月24日(火),牧野富太郎生誕１５０年",
                    " 5,15, 5月15日(火),沖縄復帰４０周年",
                    " 5,31, 5月31日(木),いけばなの歴史５５０年",
                    " 6, 1, 6月 1日(金),東京国立近代美術館開館６０周年・<BR>京都国立近代美術館開館５０周年　,,,</TD></TR>
                    " 6,19, 6月19日(火),国連PKO協力２０周年",
                    " 6,20, 6月20日(水),世界遺産シリーズ　第５集",
                    " 6,22, 6月22日(金),夏のグリーティング",
                    " 6,29, 6月29日(金),世界遺産シリーズ　第６集",
                    " 7, 3, 7月 3日(火),季節のおもいでシリーズ　第１集",
                    " 7, 6, 7月 6日(金),星座シリーズ　第２集",
                    " 7,20, 7月20日(金),古事記編纂１３００周",
                    " 7,23, 7月23日(月),ふみの日",
                    " 8, 1, 8月 1日(水),浮世絵シリーズ　第１集",
                    " 8,23, 8月23日(木),自然との共生シリーズ　第２集",
                    " 9,28, 9月28日(金),日中国交正常化４０周年",
                    "10, 2,10月 2日(火),近代競馬１５０周年",
                    "10, 9,10月 9日(火),国際文通週間",
                    "10,23,10月23日(火),アニメ・ヒーロー・ヒロインシリーズ　第１８集",
                    "10,25,10月25日(木),伝統的工芸品シリーズ　第１集",
                    "11, 9,11月 9日(金),冬のグリーティング",
                    "11,12,11月12日(月),平成25年用年賀",
                    "11,21,11月21日(水),干支文字切手") ; 


var fudata = new Array( 
                    " 1,13, 1月13日(金),地方自治法施行６０周年記念シリーズ　秋田県",
                    " 3, 1, 3月 1日(木),季節の花シリーズ　第２集",
                    " 4,23, 4月23日(月),旅の風景シリーズ　第１５集",
                    " 5,25, 5月25日(金),国土緑化",
                    " 6, 7, 6月 7日(木),季節の花シリーズ　第３集",
                    " 6,41, 6月下旬　　,ふるさとの祭　第８集",
                    " 9,11, 9月11日(火),旅の風景シリーズ　第１６集",
                    " 9,28, 9月28日(金),第６７回国民体育大会",
                    "12, 3,12月 3日(月),季節の花シリーズ　第４集") ; 


            
var day= new Date() ;
var year = day.getYear() ;
    if ( year < 1900 ) year += 1900 ;
var month = day.getMonth() + 1;
var date = day.getDate();
var outbuf = "" ;

    var num = 0 ;
    var temp ;
    for( i = 0 ; i < kndata.length ; i++ )
    {
        temp = kndata[ i ].split( "," ) ;

        if(( eval(temp[0]) == month ) && ( eval(temp[1]) == date ) )
        {
            if( num == 0 )
            {
                outbuf = "　今日は記念特殊切手" ;
                num = 1 ;
            }
            outbuf = outbuf + "「" + temp[3] +"」の発売日です<BR>" ;
            break ;
        }
    }

    for( i = 0 ; i < fudata.length ; i++ )
    {
        temp = fudata[ i ].split( "," ) ;
        if(( eval(temp[0]) == month ) && ( eval(temp[1]) == date ) )
        {
            if( num == 0 )
            {
                outbuf = "　今日はふるさと切手" ;
                num = 2 ;
            } 
            else
            {
                outbuf = outbuf + "　　　　ふるさと切手" ;
                num = 2 ;
            }
            outbuf = outbuf + "「" + temp[3] +"」の発売日です<BR>" ;
        }
    }

// document.write( year + "/" + month + "/" + date + "<BR>" ) ;
    date++ ;
    if ( date > 31 ) 
    {
        if ( month == 12 )
        {
            year++ ;
            month = 0 ;
        }
        month++ ;
        date = 1 ;
    }
    else if ( date == 31 )
    {
        if ((month == 4) || (month == 6) || (month == 9) || (month == 11))
        {
            month++ ;
            date = 1 ;
        }
    }
    else if ( month == 2 )
    {
        if (( year % 4 ) == 0 )
        {
            if ( date == 30 )
            {
                month++ ;
                date = 1 ;
            }
        }
        else
        {
            if ( date == 29 )
            {
                month++ ;
                date = 1 ;
            }
        }
    }

    for( i = num = 0 ; i < kndata.length ; i++ )
    {
        temp = kndata[ i ].split( "," ) ;
        if(( eval(temp[0]) == month ) && ( eval(temp[1]) == date ) )
        {
            if( num == 0 )
            {
                outbuf = outbuf + "　明日は記念特殊切手" ;
                num = 1 ;
            }
            outbuf = outbuf + "「" + temp[3] +"」の発売日です<BR>" ;
            break ;
        }
    }

    for( i = 0 ; i < fudata.length ; i++ )
    {
        temp = fudata[ i ].split( "," ) ;
        if(( eval(temp[0]) == month ) && ( eval(temp[1]) == date ) )
        {
            if( num == 0 )
            {
                outbuf = outbuf + "　明日はふるさと切手" ;
                num = 2 ;
            } 
            else
            {
                outbuf = outbuf + "　　　　ふるさと切手" ;
                num = 2 ;
            }
            outbuf = outbuf + "「" + temp[3] +"」の発売日です<BR>" ;
        }
    }

    if ( outbuf.length > 0 )
    {
        document.write( "<FONT SIZE=+2 COLOR= \"ff0000\"><CENTER>お知らせ</CENTER></FONT>" ) ;
        document.write( "<B><BR>" ) ;
        document.write( outbuf ) ;
        document.write( "</B><BR>" ) ;
        document.write( "<HR SIZE=2>" ) ;
    }
//    document.write( "現在の時刻は" + day.getHours() + ":" + day.getMinutes() + "<BR>" ) ;
//    document.write( "<HR SIZE=2>" ) ;

