function init()
{
	if (top.frames.length > 1)
	{
		top.location.href = self.location.href;
	}
}

function outOfDateCheck(yearDiffAllowed)
{
	var currentDate = new Date();
	var lastModDate = new Date(document.lastModified);
	var diffM = currentDate.getMonth() - lastModDate.getMonth();
	var diffY = currentDate.getYear() - lastModDate.getYear();
	
	if (currentDate.getDate() - lastModDate.getDate() < 0)
	{
		diffM--;
	}
	if (diffM < 0)
	{
		diffY--;
		diffM += 12;
	}
	
	if (diffY + diffM / 12 >= yearDiffAllowed)
	{
		document.write("<p><img src='../graphics/userinfo.gif' width='32' height='32' alt='Information!' style='float: left; margin-right: 10px;' /> This page hasn't been modified for at least " + diffY + " year" + ((diffY == 1)?"":"s") + ((diffM > 0)?" and " + diffM + " month" + ((diffM == 1)?"":"s"):"") + "... Therefore its content may have become obsolete!</p>");
	}
}
