// *****************************************
// Obsahuje skripty pro stranky Karate Frenstat
// *****************************************

// napiste.php
function over(form){
 var jmeno = form.jmeno;
 var email =form.email;
 var dotaz = form.dotaz;
 if (! jmeno.value){
 	alert('Musíte zadat jméno.') ;
	jmeno.focus();
	return false;
	}
  if (! email.value){
 	alert('Musíte zadat e-mailovou adresu.') ;
	email.focus();
	email.select();
	return false;
	} else if (email.value.indexOf('@') == -1){
			alert('Nezadal/a jste správně e-mailovou adresu.');
			email.focus();
			email.select();
			return false;
			}
 if (! dotaz.value){
 	alert('Musíte napsat Váš dotaz.') ;
	dotaz.focus();
	return false;
	}
}


// funkce z www.webtip.cz podle Stanicka
function objGet(id) {
if (typeof id != 'string' ) return id;
   else if (Boolean(document.getElementById))
      return document.getElementById(id);
   else if (Boolean(document.all))
      return eval('document.all.'+id);
   else if (Boolean(document.ids))	  
      return eval('document.dis.'+ids);
   else
      return null;
}

function menu_onmouseover(id)
{
var active = objGet(id);
active.style.color = 'red';
active.style.textdecoration = 'underline';
}

function menu_onmouseout(id)
{
var activeout = objGet(id);
activeout.style.color = 'black';
activeout.style.textdecoration = 'none';
}

var dis = false;

function visible(id)
{
var id = document.getElementById(id);

if  (!dis)
{	id.style.display = 'block';
	dis = true;
}
else if (dis){
	id.style.display = 'none';
	dis = false;
}
return false;
}





