<!--

var d = document;
var go = 1;

function getObj(id)
{
    if (d.getElementById) return d.getElementById(id);
    else if (d.all) return d.all(id);
    else if (d.layers) return d.layers[id];
    else return null;
}

function showHint(id)
{
    var hint = getObj(id);
    if (hint != null) hint.style.display = 'block';
}

function hideHint(id)
{
    var hint = getObj(id);
    if (hint != null) hint.style.display = 'none';
}

function DelByForm(form, field, val, sub, text)
{
    if (val == '' || val == 0) return;
    if (field == '') field = 'id';
    if (sub == '') sub = 'delete';
    if (text == '') text = 'Biztosan törölni szeretné?';
    if (confirm(text)){
        var f = eval('d.' + form);
        eval('f.' + field).value = val;
        f.sub.value = sub;
        f.submit();
    }
    go = 0;
}

function DelByURL(param, text)
{
    if (text == '') text = 'Biztosan törölni szeretné?';
    if (confirm(text)){
        SetParam(param);
    }
    go = 0;
}

function setFormMode(formName, idName, idVal)
{
    var f = eval('d.' + formName);
    var id = eval('f.' + idName);
    id.value = idVal;
    if (id.value == ''){
        f.send.value = 'Hozzáad';
        f.cancel.style.display = 'none';
        f.reset();
    }
    else {
        f.send.value = 'Módosít';
        f.cancel.style.display = '';
    }
}

function recolor(obj, color)
{
    obj.style.background = color;
}

var ImageArr = new Array();
var imgName = new Array('lang_en');

function preloadImages()
{
    var dir = '/images/web/';
    for (var i=0; i<imgName.length; i++){
        ImageArr[2*i] = new Image();
        ImageArr[2*i].src = dir+imgName[i]+'_off.gif';
        ImageArr[2*i+1] = new Image();
        ImageArr[2*i+1].src = dir+imgName[i]+'_on.gif';
    }
}

function swap(img, idx, act){
    img.src = ImageArr[2*idx+act].src;
}

-->
