// skriptiky

function Obrazek(obrazek, sirka, vyska, nazev) {
	image = new Image();
	image.src = '/obr/'+obrazek;
	newWindow = window.open(image.src, 'newWin', 'toolbar=no,width='+sirka+',height='+vyska);
	newWindow.document.write('<html><head><title>');
	newWindow.document.write(nazev);
	newWindow.document.writeln('<\/title><\/head>');
	newWindow.document.writeln('<body style="cursor:hand" background="'+image.src+'" onclick="window.close();"><\/body><\/html>');
	newWindow.resizeBy(sirka-newWindow.document.body.clientWidth, vyska-newWindow.document.body.clientHeight);;
	newWindow.focus();
}

// otevre popup okno
var popUpWin=0;
function Okno(URLStr, left, top, width, height)
{
  if (left == null) left = 50;
  if (top == null) top = 50;
  if (width == null) width = 800;
  if (height == null) height = 600;
  
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = window.open(URLStr, "popUpWin", "toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top+'");
}

// potvrzeni jakekoliv akce
function Potvrdit() {
	return confirm('Určitě?');
}

