function heslo(cesta,x,y) {
	rozmery = 'width='+x+',height='+y+',left=10,top=10,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no';
	window.open(cesta,'heslo',rozmery)
	}

function obrazek(cesta,x,y) {
	url=cesta;
	rozmery='width='+x+',height='+y+',left=10,top=10,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no';
	window.open('/okno.htm','obr',rozmery);
}









function show(id)
			{
			   if (document.getElementById(id).style.display=="none")
			      {document.getElementById(id).style.display='' }
			   else
			      {document.getElementById(id).style.display="none" }
			}


function hide(id)
			{
			   if (document.getElementById(id).style.display=="none")
			      {document.getElementById(id).style.display='none' }
			   else
			      {document.getElementById(id).style.display="none" }
			}
			
			 
function show2(id)
			{
			   if (document.getElementById(id).style.display=="none")
			      {document.getElementById(id).style.display='' }
			   else
			      {document.getElementById(id).style.display="none" }
			}
			
			
			

			
			
			function prepni(co, hod1, hod2){   //zobraz 'co' pokud hod1==hod2
         
        if (hod1==true) hod1='true';
        
        if (hod1==hod2) {
        
            document.getElementById(co).style.display='inline';
        }
        else {
            document.getElementById(co).style.display='none';
        }

   
   
}



function check_kosik(form) {
if (form.jmeno.value=="") {
alert("vyplňte jméno prosím");
form.jmeno.focus();
return false;
}



if (form.prijmeni.value=="") {
alert("vyplňte příjmení prosím");
form.prijmeni.focus();
return false;
}


if (form.ulice.value=="") {
alert("vyplňte název ulice prosím");
form.ulice.focus();
return false;
}  



if (form.psc.value=="") {
alert("vyplňte poštovní směrovací číslo prosím");
form.psc.focus();
return false;
}  


if (form.mesto.value=="") {
alert("vyplňte název města prosím");
form.mesto.focus();
return false;
}  

if (form.telefon.value=="") {
alert("vyplňte telefon prosím");
form.telefon.focus();
return false;
}  


if (form.email.value=="") {
alert("vyplňte email prosím");
form.email.focus();
return false;
}  

 

return true;
}

