function WhatsUpdated(dy,mo,yr,duration)
{
var newimage='<img src="/_include/Ani_updated.gif" title="Updated" alt="Updated">'
// set variable to new value in date object format
var myDate=new Date(yr,mo-1,dy)

//find today's date
var today = new Date()

var difference = (today - myDate) / (1000 * 60 * 60 * 24)  //convert mSec to days

//check if old or not. duration in days
if (difference < duration)
// put image on screen
 {document.write(newimage)}
}
