function obr(cesta, title, sirka, vyska)
{	LeftPosition = (screen.width) ? (screen.width-sirka)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-vyska)/2 : 0;
	settings = 'height='+vyska+',width='+sirka+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no'+scroll+',resizable=no'
    newWindow = window.open("","newWindow",settings );
	newWindow.document.open();
	newWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>'+title+'</title></head><link rel="stylesheet" href="style.css" type="text/css" media="screen" /><body onClick="self.close()">');
	newWindow.document.write('<img src='+cesta+' alt="Kliknutím zavřete okno" />');
	newWindow.document.write('<span class="nove_okno_text">Okno zavřete kliknutím na obrázek</span>');	
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
