    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=no,"
				+"location=no,"
				+"directories=no,"
				+"status=yes,"
				+"menubar=no,"
				+"scrollbars=yes,"
				+"resizable=no";
			NewWindow1 = window.open(href,'okno',settings);
		}
		NewWindow1.focus();
	}

    function check_faq(f){
    	if(f.faq_email.value == ""){
	    	alert("Nezadali ste E-Mailovú adresu!");
		    f.faq_email.focus();
    		return false;
    	} else {
	    	if (f.faq_msg.value == ""){
			    alert("Text správy musíte vyplniť!");
		    	f.faq_msg.focus();
	    		return false;
    		} else {
			    if (window.RegExp){
		    		re = new RegExp("^[^.]+(\.[^.]+)*@([^.]+[.])+[a-z]{2,3}$");
	    			if (!re.test(f.faq_email.value)){
    					alert("Zadaná e-mailová adresa je neplatná!");
					    f.faq_email.focus();
				    	return false;
			    	} else {
		    			return true;
	    			}
    			} else {
				    return true;
			    }
		    }
	    }
    }
    
    function checkML_Add(f){
    	if(f.meno.value == ""){
	    	alert("Nezadali ste Vaše meno a priezvisko!");
		    f.meno.focus();
    		return false;
    	} else {
	    	if (f.email.value == ""){
			    alert("Nezadali ste Vašu e-mailovú adresu!");
		    	f.email.focus();
	    		return false;
    		} else {
			    if (window.RegExp){
		    		re = new RegExp("^[^.]+(\.[^.]+)*@([^.]+[.])+[a-z]{2,3}$");
	    			if (!re.test(f.email.value)){
    					alert("Zadaná e-mailová adresa je neplatná!");
					    f.email.focus();
				    	return false;
			    	} else {
		    			return true;
	    			}
    			} else {
				    return true;
			    }
		    }
	    }
    }
    
    function checkML_Remove(f){
    	if (f.email.value == ""){
		    alert("Nezadali ste Vašu e-mailovú adresu!");
	    	f.email.focus();
    		return false;
   		} else {
		    if (window.RegExp){
	    		re = new RegExp("^[^.]+(\.[^.]+)*@([^.]+[.])+[a-z]{2,3}$");
    			if (!re.test(f.email.value)){
   					alert("Zadaná e-mailová adresa je neplatná!");
				    f.email.focus();
			    	return false;
		    	} else {
	    			return true;
    			}
		    }
	    }
    }

    function zobraz(src,id,popis){
	    document.getElementById(id).innerHTML = '<img src="'+src+'" style="border:1px solid black"><p>'+popis+'</p>';
    }

    function verifyDelete(nazov,presmerovanie) {
    	if (confirm(nazov)) {
	    	location.href=presmerovanie;
    	} else {
		    return false;
	    }
    }