function popup(image, title){
  cuteLittleWindow = window.open('', title, "status=no,location=no,scrollbars=auto");
  cuteLittleWindow.document.write('<html><head><title>'+title+'</title></head><body><div style="position: absolute; width: 100%; height: 100%; z-index: 1; left:0px; top:0px"><table cellpadding="0" cellspacing="0" width="100%" height="100%"><tr><td align="center"><img title="Zavřít" id="IMG" onclick="window.close();" onload="window.resizeTo(this.width,this.height+29);window.moveTo((screen.width-this.width)/2,(screen.height-this.height)/2)" src="'+image+'"><\/td><\/tr><\/table><\/div></body></html>');
}

function getCopyrightYears() {
	initYear = 2008;
	currYear = new Date().getFullYear();

	result = initYear;
	if(currYear > initYear) {
		result = result + "-" + currYear;
	}
	return result;
}

function formatDate(date) {
	with (date) {
		h = getHours();
		m = getMinutes();
		s = getSeconds();
		
		d = getDate();
		m = getMonth() + 1;
		
		if (document.all)
			r = getYear()
		else 
			r = getYear() + 1900
	}
	//return (d + "." + m + "." + r + " " + h + ":" + m + ":" + s);
	return (d + "." + m + "." + r);
}

function getCurrentDate() {
	return formatDate(new Date());
}

function getLastModifiedOld() {
	d = new Date();
	d.setTime(Date.parse(document.lastModified));
	return formatDate(d);
}

function getLastModified() {
	return "27.1.2011";
}
