
function getE(name) {
    if (document.getElementById)
        var elem = document.getElementById(name);
    else if (document.all)
        var elem = document.all[name];
    else if (document.layers)
        var elem = document.layers[name];
    return elem;
}

function OpenWindow(query, w, h, scroll) {
    var l = (screen.width - w) / 2;
    var t = (screen.height - h) / 2;

    winprops = 'resizable=0, height=' + h + ',width=' + w + ',top=' + t + ',left=' + l + 'w';
    if (scroll) winprops += ',scrollbars=1';
    var f = window.open(query, "_blank", winprops);
}

function SetNeverShowBasket(checkbox) {
    if (checkbox != 'undefined') {

        $.ajax({
            type: "GET",
            url: "/SimpleAjaxRequest.aspx",
            data: "function=funcshowbasket&newershowbasket=" + checkbox.checked,
            success: function (msg) {

            }
        });
    }
}

