/* FUNKCIA NA OCHRANU E-MAILOVYCH ADRIES */
function SpamStop(adress) { 
    window.location.replace('mailto:' +adress+ 'joga.sk'); 
} 

/* FUNKCIA NA OZNACENIE LINKY V MENU PO NABEHNUTI MYSKY */
function MarkLink(lnk,img){
    /* o(d)znacim vybranu linku */
    lnk.background = 'img/'+img+'.gif';
}

/* FUNKCIA OTVORI DOKUMENT V IFRAME (FrText) A VYSVIETI KLIKNUTU LINKU V MENU PODLA TOHO Z KT. IFRAMU JE VOLANA */
function ShowDocument(url){
    parent.FrMenu.location.href = 'menu.php?Doc='+url;
    parent.FrText.location.href = url;
    /*if(ifr=='FrMenu1'){
        parent.FrMenu1.location.href = 'menu1.php?Doc='+url;
        parent.FrMenu2.location.href = 'menu2.php';
    }else{
        parent.FrMenu1.location.href = 'menu1.php';
        parent.FrMenu2.location.href = 'menu2.php?Doc='+url;
    }*/
}

/* FUNKCIA OTVORI CLANOK V IFRAME (FrText)*/
function ShowArticle(url){
    parent.FrText.location.href = url;
}

/* FUNKCIA ZAVOLA SCRIPT NA VYHLADAVANIE V IFRAME (FrText) A ZRUSI VYSVIETENU LINKU V MENU */
function Search(url){
    parent.FrText.location.href = url;
    parent.FrMenu.location.href = 'menu.php';
    //parent.FrMenu1.location.href = 'menu1.php';
    //parent.FrMenu2.location.href = 'menu2.php';
}
function Form(url){
    parent.FrText.location.href = url;
    parent.FrMenu.location.href = 'menu.php';
}

/* FUNKCIA ZAVOLA IFRAME (FrBanner), KTORY ZOBRAZI NAHODNY BANNER */
function GenerateBanner(){
    parent.FrBanner.location.href = 'banner.php';
}

/* FUNKCIA KONTROLUJE VYPLNENE POLIA, AK JE PRAZDNE, ZOBRAZI UPOZORNENIE A NASTAVI DON KURZOR */
function CheckEmptyField(theField, theMessage) {
    if( theField.value=="" ) {
        theField.focus();
        alert(theMessage);
        return false;
    } else {
        return true;
    }
} 

/* FUNKCIA NA VYCISTENIE FORMULARA "LOGIN" PO POKUSE PRIHLASIT SA */
function ClearLoginForm(){
    parent.document.getElementById('Meno').value = '';
    parent.document.getElementById('Heslo').value = '';
}

