	function getCurrentTime()
	{
		var now = new Date();
		var mySecs = now.getSeconds();
		var curHour = now.getHours();
		var curMin = now.getMinutes();
		var day = now.getDay();
		var date = now.getDate();
		var year = now.getFullYear();
		var month = now.getMonth();
		var days = new Array();
			days[0] = "Niedziela";
			days[1] = "Poniedzia&#322;ek";
			days[2] = "Wtorek";
			days[3] = "&#346;roda";
			days[4] = "Czwartek";
			days[5] = "Pi&#261;tek";
			days[6] = "Sobota";
		var suffix = "AM";

			if(mySecs < 10)
			{
				mySecs = "0" + mySecs;
			}

			if(curMin < 10)
			{
				curMin = "0" + curMin;
			}
			
			if(curHour < 10)
			{
				curHour = "0" + curHour;
			}

		var	Month1 = month + 1;	
			if(Month1 < 10) 
			{
				month = "0" + (month+1);
			} else 
				month = month + 1;
						var	Month1 = month + 1;	
						
		if(date < 10) 
			{
				date = "0" + date;
			} 

document.getElementById('time').innerHTML=(days[day] + " " + year + "-" + month + "-"  + date + " " + curHour + ":" + curMin + ":" + mySecs);

}
