    function showMenu(submenu,menu,bg) { 
    if (document.getElementById(submenu).style.display != 'block') {
      document.getElementById(submenu).style.display = 'block'; 
      document.getElementById(menu).style.backgroundImage = 'url(css/icon-minus.gif)';
      document.getElementById(bg).style.backgroundColor = '#F46CDA';
      document.getElementById(bg).style.color = 'white';
      } else {
      document.getElementById(submenu).style.display = 'none'; 
      document.getElementById(menu).style.backgroundImage = 'url(css/icon-plus.gif)';
      document.getElementById(bg).style.backgroundColor = 'white';
      document.getElementById(bg).style.color = 'black';
      
      }
    } 
    
    function hideId(e) { 
    document.getElementById(e).style.visibility = 'hidden'; 
    } 
    
    
    function showId(e) {
    document.getElementById(e).style.visibility = 'visible';
    }   

function formZdarmaSubmit(text) {
  d = document.getElementById('form-zdarma');
  chyba = false;
  jmeno = d.jmeno.value;
  firma = d.firma.value + d.osoba.value;
  tel = d.tel.value;
  mail = d.mail.value; 
  

  if ( ((jmeno=="") && (firma=="")) && (tel=="")) {
        chyba=true;
        text = 'Vyplňte jméno soukromé osoby nebo firmu a telefon. Poté formulář odešlete.';
    } else  
        if ((jmeno=="") && (firma=="")) {
              chyba=true;
              text = 'Vyplňte jméno soukromé osoby nebo firmu. Poté formulář odešlete.';
          } else  
              if (tel=="")  {
                    chyba=true;
                    text = 'Vyplňte telefon. Poté formulář odešlete.';
                }  
  

  if (chyba==true)  {
        alert(text);
    } else {
      if (mail=="")  {
        chyba = !confirm("Neuvedli jste e-mail adresu, chcete formulář přesto odeslat?");
      }
    } 
   
   return !chyba; 
}


function formKurzSubmit(text) {
  d = document.getElementById('form-kurz');
  chyba = false;
  jmeno = d.jmeno.value;
  firma = d.firma.value + d.osoba.value;
  tel = d.tel.value;
  mail = d.mail.value; 
  mesto = d.mesto.value;
  

  if ( ((jmeno=="") && (firma=="")) && (tel=="")) {
        chyba=true;
        text = 'Vyplňte jméno soukromé osoby nebo firmu a telefon. Poté formulář odešlete.';
    } else  
        if ((jmeno=="") && (firma=="")) {
              chyba=true;
              text = 'Vyplňte jméno soukromé osoby nebo firmu. Poté formulář odešlete.';
          } else  
              if (tel=="")  {
                    chyba=true;
                    text = 'Vyplňte telefon. Poté formulář odešlete.';
                }

  if (chyba==true)  {
        alert(text);
    } else {
      if (mesto=="")  {
        chyba = !confirm("Neuvedli jste město, chcete formulář přesto odeslat?");         
      } else 
        if (mail=="")  {
          chyba = !confirm("Neuvedli jste email, chcete formulář přesto odeslat?");         
        }  
    } 
   
   return !chyba; 
}














