    function verifyDelete(nazov,presmerovanie) {
    	if (confirm(nazov)) {
	    	location.href = presmerovanie;
    	} else {
		    return false;
	    }
    }

    function CreateNewMoznost(divName,divID,value) {
        if(value != ''){
        	document.getElementById(divName+""+divID).innerHTML += 
    	    "<input type=\"file\" name=\"dokument["+pocet2+"]\" value=\"\" size=\"60\" onchange=\"CreateNewMoznost('"+divName+"',"+(pocet2+1)+",this.value);\"><div id=\""+divName+""+(pocet2+1)+"\"></div>";
    	    pocet2++;
        }
    }

    function zobraz(src,id) {
    	if (src == ""){
	    	document.getElementById(id).innerHTML = '';
    	} else {
            document.getElementById(id).innerHTML = '<br><img src="' + src + '" height="150" border="1">';
        }
    }
    
    function zobrazBaner(src,id) {
    	if (src == ""){
	    	document.getElementById(id).innerHTML = '';
    	} else {
	    	document.getElementById(id).innerHTML = '<img src="' + src + '" height="150" width="100" border="0" alt="" />';
        }
    }

    NewWindow=null;
	function ShowItem(src, w, h, title){
		if(NewWindow){NewWindow.close();}
		if(NewWindow==null || NewWindow.closed){
		if (typeof(title)=="undefined") title="Galéria";
			var top = screen.height/2 - h/2;
			var left = screen.width/2 - w/2;
			settings=
				 "left=" + left + "px,"
				 +"top=" + top + "px,"
				 +"width=" + w + "px,"
				 +"height=" + h + "px,"
				 +"toolbar=no,"
				 +"location=no,"
				 +"directories=no,"
				 +"status=no,"
				 +"menubar=no,"
				 +"scrollbars=no,"
				 +"resizable=no";
			NewWindow = window.open("",'Klose',settings);
		}
		NewWindow.document.open();
		NewWindow.document.clear();
		NewWindow.document.write(
			"<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1250\">"
			+"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1250\"><title>"
			+ title +"</title></head>\n"
			+"<body topmargin=0 leftmargin=0 onclick=window.close(); onblur=\"window.close();\" bgcolor=#FFFFFF>\n"
			+"<table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=0><tr><td align=\"center\" valign=\"middle\"><img src=" + src + " border=1></td></tr></table>\n"
			+"</body>\n"
			+"</html>"
		);
		NewWindow.document.close();
		NewWindow.focus();
	}

	NewWindow1 = null;
	function ShowWin(href, w, h){
		if(NewWindow1){ NewWindow1.close(); }
		if(NewWindow1==null || NewWindow1.closed){
			var top = screen.height/2 - h/2;
			var left = screen.width/2 - w/2;
			var settings =
		 		"left=" + left + "px,"
				+"top=" + top + "px,"
				+"width=" + w + "px,"
				+"height=" + h + "px,"
				+"toolbar=yes,"
				+"location=yes,"
				+"directories=yes,"
				+"status=yes,"
				+"menubar=yes,"
				+"scrollbars=yes,"
				+"resizable=yes";
			NewWindow1 = window.open(href,'okno',settings);
		}
		NewWindow1.focus();
	}

	NewWindow2 = null;
	function PrintDetails(content) {
		if(NewWindow2){NewWindow2.close();}
		if(NewWindow2==null || NewWindow2.closed){
			var top = screen.height/2 - 160;
			var left = screen.width/2 - 200;
		 	settings = "left="+left+",top="+top+",width=400px,height=320px,toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes"
	 		NewWindow2 = window.open("",'Detaily',settings);
		}
		NewWindow2.document.open();
		NewWindow2.document.clear();
		NewWindow2.document.write(
			"<html><head><title>Tlač</title></head><style>table {font-size:11px;}</style>\n"
			+"<body topmargin=10 leftmargin=10 onload=\"window.print();\" bgcolor=#FFFFFF style=\"font-family:Verdana,Arial;font-size:10px;\">\n"
			+ content
			+"</body>\n"
			+"</html>"
		);
		NewWindow2.document.close();
		NewWindow2.focus();
	}
	
	NewWindow3 = null;
	function ShowPage(href, w, h){
		if(NewWindow3){ NewWindow3.close(); }
		if(NewWindow3==null || NewWindow3.closed){
			var top = screen.height/2 - h/2;
			var left = screen.width/2 - w/2;
			var settings =
		 		"left=" + left + "px,"
				+"top=" + top + "px,"
				+"width=" + w + "px,"
				+"height=" + h + "px,"
				+"toolbar=no,"
				+"location=no,"
				+"directories=no,"
				+"status=no,"
				+"menubar=no,"
				+"scrollbars=yes,"
				+"resizable=yes";
			NewWindow3 = window.open(href,'okno',settings);
		}
		NewWindow3.focus();
	}