
update = 10;
icon = "<img src=\"/img/icon-new.gif\" alt=\"新着記事\" width=\"21\" height=\"9\" style=\"position:absolute;margin-top:2px;\" />";
today = new Date();
upday = new Date();
function entry(y, m, d) {
   upday.setFullYear(y);
   m = m - 1;
   upday.setMonth(m);
   upday.setDate(d);
   difference = today.getTime() - upday.getTime();
   difference = Math.floor(difference / (1000 * 60 * 60 * 24));
   if (difference < update) {
      document.write(icon);
   }
} 
/*
update = 10;
icon = "<img src=\"/img/icon-new.gif\" alt=\"新着記事\" width=\"21\" height=\"9\" style=\"position:absolute;margin-top:1px;\" />";
today = new Date();
upday = new Date();
function entry(y, m, d) {
   upday.setFullYear(y);
   m = m - 1;
   upday.setMonth(m);
   upday.setDate(d);
   difference = today.getTime() - upday.getTime();
   difference = Math.floor(difference / (1000 * 60 * 60 * 24));
   if (difference < update) {
      document.write(icon);
   }
} 
*/
/*
icon = "<img src=\"/img/icon-new.gif\" alt=\"新着記事\" width=\"21\" height=\"9\" />";

function entry(y, m, d) {
  delDay = 7; // 何日後に削除するか
  oldDay = new Date(y + "/" + m + "/" +d);
  newDay = new Date();
  d =(newDay - oldDay) / (1000 * 24 * 3600);
  if(d <= delDay) {
      document.write(icon);
  }
}
*/
/*
	function getentryDate(entrydate) {
		var limit = 10 * 24 * 60 * 60 * 1000; // 10日のミリ秒換算値
		var	dateobj = new Date();
		var	dateobj2 = new Date(entrydate);

		if(dateobj.getTime() - dateobj2.getTime() > limit) {
			document.writeln(' '); // 10日以上の表示
		} else {
			document.writeln('<img src=\"/img/icon-new.gif\" alt=\"新着記事\" width=\"21\" height=\"9\" />'); // 10日以内の表示
		}	
	}
*/