/* otvorenie linku v novom okne cez rel="external" */
function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;






/* validacia vyplnenia formularovych policok */
function validate(formular) {

if (formular.meno.value=="")
{
 alert("Jméno musíte vyplnit!");
 formular.meno.focus();
 return false;
}
else if (formular.verif_box.value=="")
{
 alert("Do formulářového pole odepište z obrázku ověřovací kód!");
 formular.verif_box.focus();
 return false;
}
else if (formular.email.value=="")
{
 alert("Adresu elektronické pošty musíte vyplnit!");
 formular.email.focus();
 return false;
}
else if (window.RegExp)
{
 re = new RegExp("^[^@]+@[^.]+\..+$");
 if (!re.test(formular.email.value))
 {
  alert("Zadaná adresa není správnou adresou elektronické pošty!");
  formular.email.focus();
  return false;
 }
}
else
return true;
}























