newWindow = null;
function ShowWindow(url, width, height)
{
	if (window.screen) 
	{
		scrWidth = screen.availWidth;
		scrHeight = screen.availHeight;
	} 
	else 
	{
		scrWidth = 640;
		scrHeight = 480;
	}

	if (newWindow == null || newWindow.closed) 
	{
		wndParams =
			  "left=" + (scrWidth - width)/2 + ","
			+ "top=" + (scrHeight - height)/2 + ","
			+ "screenX=" + (scrWidth - width)/2 + ","
			+ "screenY=" + (scrHeight - height)/2 + ","
			+ "width=" + width + ","
			+ "height=" + height + ","
			+ "innerWidth=" + width + ","
			+ "innerHeight=" + height + ","
			+ "toolbar=no,"
			+ "location=no,"
			+ "directories=no,"
			+ "status=yes,"
			+ "menubar=no,"
			+ "scrollbars=no,"
			+ "resizable=no";
		
		newWindow = window.open("", "ModalChild", wndParams);
	}

	newWindow.document.open();
	newWindow.document.clear();
  
	newWindow.document.write(
		  '<html>'
		+ '<head>'
		+ '</head>'
		+ '<body style="margin:0px; height:100%; overflow:hidden;">'
		+ '<a href="javascript:window.close()"><img src="'+ url +'" width="' + width + '" height="' + height + '" border="0"></a>'
		+ '</body>'
		+ '</html>'
	);

	newWindow.document.close();
	newWindow.focus();
}

function DateString(AarrMiesiace, AarrDni)
{
	var Today = new Date();
	var Year = Today.getYear();

	if (Year < 1000)
		Year+=1900
	var strDate = AarrDni[Today.getDay()] + " " + Today.getDate();
	strDate += " " + AarrMiesiace[Today.getMonth()] + " " + Year;
	return strDate
}
