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


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


var myTWin = window.myTWin;
function openCal(link) {
	var retValue=true;
	if (myTWin!=null && !myTWin.closed) {
		myTWin.focus();
		myTWin.location.href=link;
	} else {
		myTWin=window.open( link, 'calendar', 'scrollbars=1, resizable=0, width=600, height=300, top=50, left=50, menu=0, navigate=0, statusbar=0' );
		if (myTWin==null || typeof(myTWin)=="undefined")
			retValue=false;
		else {
			link.target = 'calendar';
			myTWin.focus();
		}
	}
	return retValue;
}





    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=800,height=600,top=30,left=30,menu=0,navigate=0,statusbar=0');
        if (myTWin==null || typeof(myTWin)=="undefined")
          retValue=false;
        else
        {
          link.target=winName;
          myTWin.focus();
        }
      }
      return retValue;
    }





    var myTWin = window.myTWin;
    
    function OpenMyWin1(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=400,height=520,top=30,left=30,menu=0,navigate=0,statusbar=0');
        if (myTWin==null || typeof(myTWin)=="undefined")
          retValue=false;
        else
        {
          link.target=winName;
          myTWin.focus();
        }
      }
      return retValue;
    }




    var myTWin = window.myTWin;
    
    function OpenMyWin2(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=800,height=600,top=30,left=30,menu=1,navigate=1,statusbar=1');
        if (myTWin==null || typeof(myTWin)=="undefined")
          retValue=false;
        else
        {
          link.target=winName;
          myTWin.focus();
        }
      }
      return retValue;
    }
    
    function calendarSub() {
    	return document.forms["kalendarForm"].submit();
    }
    

    

