window.onload=montre;

	function zkontroluj_email(adresa)
	{
	  re = /^[^.]+(\.[^.]+)*@([^.]+[.])+[a-z]{2,3}$/;
	  return adresa.search(re) == 0;
	}


	function kontrola(email,meno,telo)
	{

	  if (!zkontroluj_email(email))
	  {
	    	alert("Nesprávne vyplnená emailová adresa!");
		document.formular.email.focus();
	  }
	  else if( meno=="")
	  {
		alert("Nezadali ste Vaše meno!");
		document.formular.realname.focus();
	  }
	  else if( telo=="")
	  {
		alert("Nenapísali ste telo správy!");
		document.formular.Feedback.focus();
	  }
	  else
	  {
		if(confirm("\nAk chceš odoslat správu, klikni na OK"))
			document.formular.submit();
	  }
	}

	function wrt(text)
	{
		window.status = text;
	}

	function setfocus()
	{
		document.formular.realname.focus();
		return;
	}


function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}

