﻿function winpop(url, name, width, height)    {
    window.open(url,name,"width="+width+",height="+height+",toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=yes,scrollbars=yes");
}
function facebook_click() {
    s.prop9 = "Dela pa facebook";
    u = location.href;
    t = document.title;
    window.open('http://www.facebook.com/sharer.php?u=' + encodeURIComponent(u) + '&t=' + encodeURIComponent(t), 'sharer', 'toolbar=0,status=0,width=626,height=436'); return false;
}
function ShowHideBlock(object) {
    var e;
    e = document.getElementById(object);
    if (e.style.display=="block") {
        e.style.visibility = "hidden";
        e.style.display = "none";
    }
    else if (e.style.display=="none") {
        e.style.visibility = "visible";
        e.style.display = "block";
    }
}
function FocusInput(f,defvalue) {
    if(f.value == defvalue) {
        f.value = '';
    } 
}
function BlurInput(f,defvalue) {
    if(f.value == '') {
        f.value = defvalue;
    }
}
function OpenImages(url)
{
    var imgWin=window.open(url, 'images','width=718, height=704, left=' + ((screen.availWidth-718)/2) + ', top=' + ((screen.availHeight-704)/2) + ', status=no, menubar=no, directories=no, resizable, scrollbars, toolbars=no, location=no');
    imgWin.focus();
}
function OpenBid(url)
{
    var imgWin=window.open(url, 'bids','width=517, height=244, left=' + ((screen.availWidth-517)/2) + ', top=' + ((screen.availHeight-244)/2) + ', status=no, menubar=no, directories=no, resizable, scrollbars, toolbars=no, location=no');
    imgWin.focus();
}
function ShowHideBid(object,txt) {
    var e, s;
    e = document.getElementById(object);
    s = document.getElementById(txt);
    if (e.style.display=="block") {
        e.style.visibility = "hidden";
        e.style.display = "none";
        s.innerHTML = "Visa budhistorik";
    }
    else if (e.style.display=="none") {
        e.style.visibility = "visible";
        e.style.display = "block";
        s.innerHTML = "Dölj budhistorik";
    }
}