<!-- 
function ClanekNapisteForm(f){
	if(f.jmeno.value==''){alert('Zadejte prosím jméno a příjmení...');f.jmeno.focus();return false;}
	if(f.email.value==''){alert('Zadejte prosím e-mail...');f.email.focus();return false;}
	if(f.zprava.value==''){alert('Zadejte prosím text zprávy...');f.zprava.focus();return false;}
	}

// login
function LoginForm(f){
if(f.username.value=='') {alert('Zadejte prosím svůj e-mail.');f.username.focus();return false;}
if(f.passwd.value=='') {alert('Zadejte prosím své heslo.');f.passwd.focus();return false;}}

function LoginFormZap(f){
if(f.username.value==''){alert('Zadejte prosím své uživatelské jméno.');f.username.focus();return false;}}

// registrace
function RegForm(f){
if(f.jmeno.value=='') {alert('Zadejte prosím jméno a příjmení.');f.jmeno.focus();return false;}
if(f.username.value=='') {alert('Zadejte prosím svůj e-mail.');f.username.focus();return false;}
if(f.passwd.value=='') {alert('Zadejte prosím své heslo.');f.passwd.focus();return false;}
if(f.passwd.value!=f.passwd2.value) {alert('Hesla nejsou stejná. Zadejte je prosím znovu.');f.passwd.value='';f.passwd2.value='';f.passwd.focus();return false;}}

// rezervace
function SmazatRez(nazev, id, del){
if(del==0) alert('Tuto akci již nelze odstranit')
else{if(confirm('Opravdu chcete odstranit rezervaci \''+nazev+'\'?')) location.href='rezervace.php?act=delete&datum_id='+id;}}

function RezForm(f){
if(f.datum_id.value==0) {alert('Vyberte prosím akci, které se chcete zúčastnit.');f.datum_id.focus();return false;}}

// preklapecka
function SetColor(f, act){
  var clr1="#fff"; // out
  var clr2="#FDF7D3"; // over
  if(typeof(document.getElementsByTagName)!='undefined')
    {
    if(act=='ovr') SetCurrColor(f.getElementsByTagName('div'), clr2);
    else SetCurrColor(f.getElementsByTagName('div'), clr1);
    }
  }

function SetCurrColor(obj, clr){
if(obj[0])obj[0].style.backgroundColor=clr;if(obj[1])obj[1].style.backgroundColor=clr;
if(obj[2])obj[2].style.backgroundColor=clr;if(obj[3])obj[3].style.backgroundColor=clr;
if(obj[4])obj[4].style.backgroundColor=clr;}


// left
function activateMenu(nav) {
		/* currentStyle restricts the Javascript to IE only */
	if (document.all && document.getElementById(nav).currentStyle) {	
		var navroot = document.getElementById(nav);
				/* Get all the list items within the menu */
				var lis=navroot.getElementsByTagName("LI");	
		for (i=0; i<lis.length; i++) {
						/* If the LI has another menu level */
						if(lis[i].lastChild.tagName=="UL"){
								/* assign the function to the LI */
						 	lis[i].onmouseover=function() {		
									 /* display the inner menu */
									 this.lastChild.style.display="block";
						}
				lis[i].onmouseout=function() {											 
										this.lastChild.style.display="none";
				}
						}
		}
	}
}

/* I do this differently on the test page to fix a problem float container problem in IE5 Mac*/
/*Uncomment the function below*/

window.onload= function(){
activateMenu('leftNavInner');}
// -->
