var today = (new Date()).getTime();

function compareDate(postDay) {
	postDay = Date.parse(postDay);
	if (today - postDay <= 604800000) {
		document.write('<img src="/jp/images/icon_new.gif" width="23" height="10" alt="New" class="new" />');
	}
}