// JavaScript Document

function fakt() {
  if(confirm("Opravdu chcete to smazat???")) return true; else return false;
}

function fakt3() {
  if(confirm("Editací BOXu, místa nebo zdroje zrušíte veškeré rezervace a podsložky (místa, zdroje) s tímto spojené. Chcete opravdu editovat tuto položku???")) return true; else return false;
}

function fakt4() {
  if(confirm("Smazáním BOXu, místa nebo zdroje zrušíte veškeré rezervace a podsložky (místa, zdroje) s tímto spojené. Chcete opravdu editovat tuto položku???")) return true; else return false;
}

function fakt2() {
  if(confirm("Opravdu chcete to zamítnout???")) return true; else return false;
}

function show(open,close) {
  var o_element;
  var c_element;
  
  switch (open) {
    case 'help' : 
      if (o_element=document.getElementById(open)) {
        if (o_element.style.display=='block') {
          o_element.style.display='none';
        }
        else o_element.style.display='block';
      }
      if (c_element=document.getElementById(close)) {
        if (c_element.style.display=='none') {
          c_element.style.display='block';
        }
        else c_element.style.display='none';
      }
     break;
    default : ; break;
  }
  
}

function showreg(open,close,aopen,aclose) {
  var o = document.getElementById(open);
  var c = document.getElementById(close);
  var ao = document.getElementById(aopen);
  var ac = document.getElementById(aclose);
    o.style.display = 'block';
    ao.style.color = '#ffffff';
    ao.style.background = '#135291';
    ao.style.border = '1px solid #ffffff';
    c.style.display = 'none';
    ac.style.color = '#135291';
    ac.style.background = '#ffffff';
    ac.style.border = '1px solid #135291';
}


function rucicka() {
  var doc1=document.getElementById('reklamstina1');
  var doc2=document.getElementById('reklamstina2');
  var doc3=document.getElementById('reklamstina6');
      if (doc1!=null)
      doc1.style.cursor='pointer';
      if (doc2!=null)
      doc2.style.cursor='pointer';
      if (doc2!=null)
      doc3.style.cursor='pointer';
}

function rucicka2() {
  var doc3=document.getElementById('reklamstina3');
  var doc4=document.getElementById('reklamstina4');
      if (doc3!=null)
      doc3.style.cursor='pointer';
      if (doc4!=null)
      doc4.style.cursor='pointer';
}

function rucicka3() {
  var doc5=document.getElementById('reklamstina5');
      if (doc5!=null)
      doc5.style.cursor='pointer';
}
