function showHlaska(hlaska) {
  document.getElementById(hlaska).style.display = "block";
}

function CheckReg(formular)
{
  document.getElementById("hlaska1").style.display = "none";
  document.getElementById("hlaska2").style.display = "none";
  document.getElementById("hlaska3").style.display = "none";
    if (formular.jmeno.value=="") //místo „jméno“ napište název formuláře
{
showHlaska("hlaska1"); //vypsání chyby
formular.jmeno.focus();//místo „jméno“ napište název formuláře 
return false;
}
else if (formular.email.value=="")//místo „email“ napište název formuláře 
{
showHlaska("hlaska2");//vypsání chyby
formular.email.focus();//místo „email“ napište název formuláře 
return false;
}
else if (window.RegExp)
{
re = new RegExp("^[^.]+(\.[^.]+)*@([^.]+[.])+[a-z]{2,3}$");//znaky, která má či nemá obsahovat emailová adresa
if (!re.test(formular.email.value))// místo „email“ napište název formuláře 
{
showHlaska("hlaska3");// vypsání chyby
formular.email.focus();//místo „email“ napište název formuláře 
return false;
}
}
else 
return true;
}


function skryt(idecko){ 
el=document.getElementById(idecko).style; 
el.display=(el.display == 'none')?'none':'none'; 
} 

function zobrazSkryj(idecko){ 
el=document.getElementById(idecko).style; 
el.display=(el.display == 'block')?'none':'block'; 
} 

    <!-- <![CDATA[
    var myTWin = window.myTWin;
    
    function OpenMyWin(link,winName)
    {
      var retValue=true;
      if (myTWin!=null && !myTWin.closed)
      {
        myTWin.focus();
        myTWin.location.href=link.href;
      }
      else
      {
        myTWin=window.open(link.href, winName, 'scrollbars=1,resizable=1,width=1000,height=700,top=0,left=0,menu=0,navigate=0,statusbar=0');
        if (myTWin==null || typeof(myTWin)=="undefined")
          retValue=false;
        else
        {
          link.target=winName;
          myTWin.focus();
        }
      }
      return retValue;
    }
    //]]> -->
    
    
function zobrazSkryj(idecko){ 
el=document.getElementById(idecko).style; 
el.display=(el.display == 'block')?'none':'block'; 
}

function checkBrowser()

{

this.ver=navigator.appVersion;

this.dom=document.getElementById?1:0;

this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;

this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;

this.ns6=(this.dom && parseInt(this.ver)>= 5)?1:0;

this.ns4=(document.layers && !this.dom)?1:0;

this.opr=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1)?1:0;

return this

}



function paste_strinL(strinL,isQuote){ 

if(strinL=='') alert('Vyberte prosím nejprve text, který chcete citovat.');

else{

if (isQuote == 1) {

strinL = '[i]' + strinL + '[/i]' + '\n';

}

if (isQuote == 2) {

strinL = '[b]' + strinL + '[/b]' + '\n';

}

var isForm=document.forms["postMsg"];

if (isForm) {

var input=document.forms["postMsg"].elements["postText"];

input.value=input.value+strinL; 

}

else alert('Přístup zamítnut');

}

}



function pasteSel() {

if(document.getSelection) selection=document.getSelection();

else if(document.selection) selection=document.selection.createRange().text;

else if(window.getSelection) selection=window.getSelection;

else selection='';

}



function getQuotation() {

var bw=new checkBrowser();

if ((bw.ns6 || bw.ie5 || bw.ie6 || bw.ns4) && !bw.opr) {

document.writeln('<a href="javascript:paste_strinL(selection,1)" onMouseDown="pasteSel()">Citovat</a>');

}

}

