// JavaScript Document
<!-- Begin
function expirenewon(date) {
	var expiredate = new Date(date);
	var currentdate = new Date();
	if (expiredate.getTime() > currentdate.getTime()){
		//document.write("<img src=\"/old_dawn/images/newmarker.gif\" width=\"32\" height=\"10\" alt=\"NEW\">&nbsp;"); //IMAGE: action to take if todays date is prior to expiration
		document.write("<SPAN class=\"newmarker\">NEW</SPAN>&nbsp;"); //TEXT: action to take if todays date is prior to expiration
	}
}
// End -->

<!-- Begin
function expirenew(publishdate) {
	var publishdate = new Date(publishdate); //converts value to date
	var publishdatems = publishdate.valueOf(); //gets milliseconds value
	var timetokeep = 21; //in days
	var timetokeepms = timetokeep*1000*60*60*24; //converts to milliseconds
	var expiredatems = publishdatems+timetokeepms; //creates to expiration date in milliseconds
	var expiredate = new Date(expiredatems); //creates actual expiration date
	var currentdate = new Date(); //gets todays date
	if (expiredate.getTime() > currentdate.getTime()){ //compares todays date to expiration date
		//document.write("<img src=\"/old_dawn/images/newmarker.gif\" width=\"32\" height=\"10\" alt=\"NEW\">&nbsp;"); //IMAGE: action to take if todays date is prior to expiration
		document.write("<SPAN class=\"newmarker\">NEW</SPAN>&nbsp;"); //TEXT: action to take if todays date is prior to expiration
	}
}
// End -->