	function jsDeletePost(news_id,url)
	{

		if (confirm('Naozaj si želáte zmazat tento príspevok?'))
		{
			location.replace(url);
		}
		return;
	}
	function jsSendPost(page,act){
		document.fpost.action = 'index.php?page='+page+'&action='+act;
		var el = document.getElementById('save');
		el.value = '1';
		document.getElementById('fpost').submit();
	}

	function jsDeleteNews(news_id,url)
	{

		if (confirm('Naozaj si želáte zmazat túto novinku?'))
		{
			location.replace(url);
		}
		return;
	}

	function jsToggle(x)
	{
		if (document.getElementById(x).style.display == "none")
			(document.getElementById(x).style.display = "block")
		else
			(document.getElementById(x).style.display = "none")
	}
	function clearAreaGuestbook(inputname,input,value){
		if (inputname == 'post_header'){
			if(input==value ){
					document.fpost.post_header.value='';
			}
		}
		if (inputname == 'post_mail'){
			if(input==value ){
					document.fpost.post_mail.value='';
			}
		}
	}


	function jsShowBlock(x,val1,val2){
		if (val1 == val2){
			document.getElementById(x).style.display = "block";
		}
		else{
			document.getElementById(x).style.display = "none";
		}
	return;
	}
function jsShowPhoto(photo_id, gal_id, offset, width, height){
		window.open('scripts/photo.php?id=' + photo_id + '&gallery= ' + gal_id + '&offset=' + offset,'photoWindow', 'width=' + width +',height=' + height +',resizable=yes,scrollbars=yes,location=no,status=no,toolbar=no,menubar=no');
		return;
	}
