﻿function showdesc(url, status) {
    if (status == 'Till salu' || status == 'Kommande') {
        var b = navigator.appName;
        if (b == 'Netscape') { window.location.href = url; }
        else { document.location.href(url); }
    }
}

function winpop(url, name, width, height, scroll) {
    window.open(url, name, "width=" + width + ",height=" + height + ",toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=yes,scrollbars=" + scroll);
}
function quedrowin(url) {
    window.open(url, "quedrowin", "width=700,height=450,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=yes")
}
function winfunc(url, w, h) {
    window.open(url, '_blank', 'scrollbars=no,toolbar=no,directories=no,status=no,menubar=no,location=no,width=' + w + ',height=' + h);
}


function showBlock(object) {
    var e = document.getElementById('bolyft');
    if (e.style.display == 'none') {
        e.style.display = 'block';
    }
    else {
        e.style.display = 'none';
    }
}
function ShowHideBlock(object, val, block, object2, val2, block2) {
    var e;
    e = document.getElementById(object);
    e.style.visibility = val;
    e.style.display = block;

    var e2;
    e2 = document.getElementById(object2);
    e2.style.visibility = val2;
    e2.style.display = block2;

}
function FocusInput(f, defvalue) {
    if (f.value == defvalue) {
        f.value = '';
    }
}
function BlurInput(f, defvalue) {
    if (f.value == '') {
        f.value = defvalue;
    }
}

function show(object) {
    var e = document.getElementById(object);

    if (e != null) {
        e.style.display = 'block';
    }  
}

function hide(object) {
    var e = document.getElementById(object);

    if (e != null) {
        e.style.display = 'none';
    }
}
