if (navigator.appName == "Netscape")
{
document.write("<link rel='StyleSheet' type='text/CSS' title='Netscape' href='../../Stilus/netscape.css'>")
}
/*else
{
document.write("<link rel='StyleSheet' type='text/CSS' title='Agapé' href='../../Stilus/agape.css'>")
}
*/
/*
var kert = location.href
if (top.location.href == location.href)
    {
    seged=open("index.html","");
    seged.frames[1].frames[1].location.href = kert
    window.close()
    }
*/
if (top.location.href != location.href)
    {
    if ((getCookie('href') != null) && (getCookie('href') != -1))
        {
        location.href = getCookie('href');
        setCookie('href',-1);
        }
    }
else
    {
/*    if (getCookie('href') != -1)
        {
        location.href = '../index.html'
        }
    else
        {
*/
    setCookie('href',location.href);
    top.location.href = 'index.shtml'
//        }
    }

function KiBe(p)
{
    if (p.className=="latom") {p.className="nemlatom"}
    else p.className="latom"
}

function setCookie(name,value)
{
var expired = new Date();
expired.setTime(expired.getTime() + 365*24*60*60*1000);

document.cookie = name + " = " + escape(value) + "; expires = " + expired.toGMTString();
}

function getCookie(param)
{
var keres = param + "=";

if (document.cookie.length > 0) {
    talalt = document.cookie.indexOf(keres);
    if (talalt != -1) {
    talalt += keres.length;
    end = document.cookie.indexOf(";", talalt);
    if (end == -1) end = document.cookie.length;
    return unescape(document.cookie.substring(talalt, end));
    }
    }
}

function remForm(form)
{
setCookie(form.name,form.value)
}

function getForm(param)
{
return getCookie(param);
}

function megrendeles(kiadvany,ar)
{
setCookie("kiadvany",kiadvany);
setCookie("ar",ar)
}
