// JavaScript Document

function newup(y, m, d, c) {
 delDay = 14; 
 oldDay = new Date(y + "/" + m + "/" +d);
 newDay = new Date();
 d =(newDay - oldDay) / (1000 * 24 * 3600);
 if(d <= delDay) {
 if(c == "new") document.write("<img src='http://www.toyamachintai.com/outlet/common_images/new.gif' alt='new' />");
 if(c == "up") document.write("<img src='http://www.toyamachintai.com/outlet/common_images/up.gif' alt='up' />");
 }
}
