var disp = 7;          // days to display
var uimgn = '/oshome/images/update.gif';  // image filename
var uimgw = 10;         // image width
var uimgh = 10;         // image height

// display "update" image for set period
// copyright Stephen Chapman, 25th February 2005
// you may copy this provided that you retain the copyright notice
function updateCheck(y,m,d) {
var after = new Date();
after.setDate(after.getDate() - disp);
var nc = new Date();
nc.setFullYear(y);
nc.setMonth(m-1);
nc.setDate(d);
if (nc.valueOf() >= after.valueOf()) {
document.write('<img src="'+uimgn+'" width="'+uimgw+
'" height="'+uimgh+'" alt="Update" title="Site Update" \/>');
}
}
