function SafeDelete(whatToDelete)
{
		if (confirm('Opravdu smazat "'+whatToDelete+'"?'))
			return confirm('Opravdu smazat "'+whatToDelete+'" vcetne dat? Tato operace je nevratna!');

		return false;
}

function ShowPopUpWindow(sAdresa, iSirka, iVyska)
{
	iMyWidth = (window.screen.width - iSirka ) / 2 ;
	iMyHeight = (window.screen.height - iVyska ) / 2;
	
	return window.open(sAdresa, '', 'width='+iSirka+'px, height='+iVyska+'px,left='+iMyWidth+'px,top='+iMyHeight+'px, resizable=yes, titlebar=no, status=yes, address=no, scrollbars=yes, dependent=yes, modal=yes');
}

function Error(errorMessage)
{
	if (errorMessage.length != 0)
		alert(errorMessage);
}

function nothing()
{
	return false;

}

function ShowPopUpWindowCenter(sAdresa, iSirka, iVyska)
{
	iSirka+=7;
	iMyWidth = (window.screen.width - iSirka ) / 2 ;
	iMyHeight = (window.screen.height - iVyska ) / 2;

	return window.open(sAdresa, '', 'width='+iSirka+'px, height='+iVyska+'px, left=' + iMyWidth + ',top=' + iMyHeight + ', resizable=yes, titlebar=no, status=yes, address=no, scrollbars=yes, dependent=yes, modal=yes');
}


function Error(errorMessage)
{
	if (errorMessage.length != 0)
		alert(errorMessage);
}

function ShowNavi()
{
	var navigace = document.getElementById("navi");
	navigace.className = "show";
}
function autoHide()
{
	var navigace = document.getElementById("navi");
	navigace.className = "hide";
	clearTimeout(hideTimeout);
}
function HideNavi(time)
{
	clearTimeout(hideTimeout);
	hideTimeout = setTimeout("autoHide()", time * 1000);
}
