	function dateTime()
	{
		var date, year, month, day, hour, minute, second;
		var dateStr, timeStr;


		date = new Date();


		year = date.getFullYear();

		month = date.getMonth() + 1;
		month = (month < 10) ? "0" + month : month;

		day = date.getDate();
		day = (day < 10) ? "0" + day : day;

		dateStr = day + "." + month + "." + year;
		document.getElementById("dateStr").firstChild.data = dateStr;


		hour = date.getHours();
		hour = (hour < 10) ? "0" + hour : hour;

		minute = date.getMinutes();
		minute = (minute < 10) ? "0" + minute : minute;

		second = date.getSeconds();
		second = (second < 10) ? "0" + second : second;

		timeStr = hour + ":" + minute + ":" + second;
		document.getElementById("timeStr").firstChild.data = timeStr;
	}



	function startDateTime()
	{
		dateTime();
		setInterval("dateTime()", 1000);
	}


	function download(id)
	{
		var str;

		str = "files.php?id=" + id;
		window.open(str, "_blank");
	}