var kndata = new Array( 
                    " 1,22, 1月22日(金),アニメ・ヒーロー・ヒロインシリーズ　第１２集",
                    " 1,25, 1月25日(月),春のグリーティング念",
                    " 3, 3, 3月 3日(水),グリーティング「SNOOPY　おてがみ編」",
                    " 3,23, 3月23日(火),サンマリノ",
                    " 4,20, 4月20日(火),切手趣味週間",
                    " 4,23, 4月23日(金),平城遷都1300年記念",
                    " 5, 6, 5月 6日(木),夏のグリーティング",
                    " 5,31, 5月31日(月),2010 FIFA WORLD CUP SOUTH AFRICA<sup>TM</sup>",
                    " 5,31, 5月31日(月),FIFA World Cup<sup>TM</sup> Historical Posters JULES RIMET CUP",
                    " 6, 4, 6月 4日(金),2010年日本APEC",
                    " 6, 7, 6月 7日(月),日本学士院賞100年記念",
                    " 6,14, 6月14日(月),アニメ・ヒーロー・ヒロインシリーズ　第13集",
                    " 6,23, 6月23日(水),日米安全保障条約改定50周年",
                    " 7,23, 7月23日(金),ふみの日",
                    " 9,21, 9月21日(火),航空100年記念",
                    " 9,22, 9月22日(水),アニメ・ヒーロー・ヒロインシリーズ　第14集",
                    "10, 8,10月 8日(金),国際文通週間",
                    "10,18,10月18日(月),生物多様性条約第10回締約国会議(COP10)記念",
                    "10,22,10月22日(金),日本・ポルトガル修好150周年記念",
                    "11, 5,11月 5日(金),第3回UNI世界大会",
                    "11, 8,11月 8日(月),冬のグリーティング(フィンランド共同発行)",
                    "11,40,11月上旬    ,平成23年用年賀",
                    "11,22,11月22日(月),干支文字切手",
                    "11,29,11月29日(月),議会開設120年記念" ) ; 

var fudata = new Array( 
                    " 1,29, 1月29日(金),旅の風景シリーズ　第７集",
                    " 2, 1, 2月 1日(月),ふるさとの花　　　第６集",
                    " 2, 8, 2月 8日(月),地方自治法施行６０周年記念シリーズ　奈良県",
                    " 3, 1, 3月 1日(月),旅の風景シリーズ　第８集",
                    " 3, 8, 3月 8日(月),ふるさとの花　　　第７集",
                    " 4, 1, 4月 1日(木),ふるさとの祭　　　第４集",
                    " 4,30, 4月30日(金),ふるさとの花　　　第８集",
                    " 5,21, 5月21日(金),国土緑化",
                    " 6, 1, 6月 1日(火),ふるさと心の風景　第７集",
                    " 7, 1, 7月 1日(木),ふるさとの祭　　　第５集",
                    " 7, 8, 7月 8日(木),旅の風景シリーズ　第９集",
                    " 8, 2, 8月 2日(月),江戸名所と粋の浮世絵",
                    " 9,24, 9月24日(金),第65回国民体育大会",
                    "10, 1,10月 1日(金),旅の風景シリーズ　第10集",
                    "12, 1,12月 1日(水),ふるさと心の風景　第８集") ; 
            
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>" ) ;
