function getlastdate(type,year,month,day){
    var newflg=0;

    myModify = document.lastModified;
    myD = new Date(myModify);
    var lastmodyear  = myD.getYear();
    var lastmodmonth = myD.getMonth()+1;
    var lastmodday   = myD.getDate();

    if( type == 0 )
    {
        document.write("最終更新 ",lastmodyear, "年");
        if( lastmodmonth > 9 )
        {
            document.write(lastmodmonth,"月");
        }
        else
        {
            document.write("0",lastmodmonth,"月");
        }
        if( lastmodday > 9 )
        {
            document.write(lastmodday);
        }
        else
        {
            document.write("0",lastmodday);
        }
        document.write("日（",myD.getDayOfWeek(),"）");
    }
    else
    {
        if( ( (year == lastmodyear) && (month == lastmodmonth) && (day == lastmodday) ) || type == 2 )
        {
            newflg=1;
            document.write("<u class=up>");
        }
        document.write(year, "/");
        if( month > 9 )
        {
            document.write(month,"/");
        }
        else
        {
            document.write("0",month,"/");
        }
        if( day > 9 )
        {
            document.write(day);
        }
        else
        {
            document.write("0",day);
        }
        if( newflg == 1 )
        {
            document.write(" Up !!</u>");
        }
    }
}
function _getDayOfWeek(){
    var dayOfWeek = new Array("日", "月" ,"火" ,"水" ,
        "木", "金", "土");
    return dayOfWeek[this.getDay()];
}
function getnowdate(){
    var newflg=0;

    myModify = document.lastModified;
    myD = new Date();
    var lastmodyear  = myD.getYear();
    var lastmodmonth = myD.getMonth()+1;
    var lastmodday   = myD.getDate();

        document.write("本日　　　 ",lastmodyear, "年");
        if( lastmodmonth > 9 )
        {
            document.write(lastmodmonth,"月");
        }
        else
        {
            document.write("0",lastmodmonth,"月");
        }
        if( lastmodday > 9 )
        {
            document.write(lastmodday);
        }
        else
        {
            document.write("0",lastmodday);
        }
        document.write("日（",myD.getDayOfWeek(),"）");
}
Date.prototype.getDayOfWeek = _getDayOfWeek;
