// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

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;
}



var isMSIE = /*@cc_on!@*/false;
	
if (isMSIE)
	document.write("<link rel='stylesheet' href='/stylesheets/ie.css' type='text/css' media='screen,projection' />");
else
{}


function showHlaska(hlaska) {
  document.getElementById(hlaska).style.display = "block";
}

function CheckReg8(formular)
{
  document.getElementById("hlaska9").style.display = "none";
  document.getElementById("hlaska10").style.display = "none";

     if (formular.email.value=="")//mĂ­sto â€žemailâ€ś napiĹˇte nĂˇzev formulĂˇĹ™e
{
showHlaska("hlaska9");//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("hlaska10");// vypsĂˇnĂ­ chyby
formular.email.focus();//mĂ­sto â€žemailâ€ś napiĹˇte nĂˇzev formulĂˇĹ™e
return false;
}
}
else 
return true;
}