function lastMod()
{
	var x = new Date (document.lastModified);
	Modif = new Date(x.toGMTString());
	Year = takeYear(Modif);
	Month = Modif.getMonth();
	Day = Modif.getDate();
	Mod = (Date.UTC(Year,Month,Day,0,0,0))/86400000;
	x = new Date();
	today = new Date(x.toGMTString());
	Year2 = takeYear(today);
	Month2 = today.getMonth();
	Day2 = today.getDate();
	now = (Date.UTC(Year2,Month2,Day2,0,0,0))/86400000;
	daysago = now - Mod;
	if (daysago < 0) return '';
	unit = 'Tagen';
	if (daysago > 730)
	{
		daysago = Math.round(daysago/365);
		unit = 'Jahr(e)';
	}
	else if (daysago > 60)
	{
		daysago = Math.round(daysago/30);
		unit = 'Monat(e)';
	}
	else if (daysago > 14)
	{
		daysago = Math.round(daysago/7);
		unit = 'Woche(n)'
	}
	towrite = '';
	if (daysago == 0) towrite += ' (Heute)';
	else if (daysago == 1) towrite += ' (Gestern)';
	else towrite += ' (vor ' + daysago + ' ' + unit + ')';
	towrite += '';
	return towrite;
}


function takeYear(theDate)
{
	x = theDate.getYear();
	var y = x % 100;
	y += (y < 38) ? 2000 : 1900;
	return y;
}


function oeffne_info()
{
	var	win
	win	= window.open("oeffneinfo.html", "Erklaerung", "width=330,height=300,resizable=1,scrollbars=1,menubar=0,status=0,directories=0,toolbar=0,location=0,screenX=10,screenY=10,left=10,top=10,dependent")
	win.focus()
}

