﻿function displayImage(dispYear,dispMonth,dispDay,dispImage) {
    nowDate  = new Date();
    nowYear  = nowDate.getFullYear();
    nowMonth = nowDate.getMonth() + 1;
    nowDay   = nowDate.getDate();
    if(nowYear <= dispYear) {
        if(nowMonth < dispMonth) {
            document.write("<img src='" + dispImage + "' alt='Image' />");
        }
        else if((nowMonth == dispMonth) &&
                (nowDay   <= dispDay)) {
            document.write("<img src='" + dispImage + "' alt='Image' />");
        }
    }
}

