function removeAndUpdate(url){
    $.get(url, function(data){
        $('#shop-itemlist-container').html(data);
    });
}

function updateQuantity(id, url){
    $.get(url + id.value, function(data){
        $('#shop-itemlist-container').html(data);
    });
}

function deliveryCostUp(present){

    if (present == '0') {
    
        document.getElementById('delivery-cost-zero').style.display = 'inline';
        document.getElementById('delivery-cost-full').style.display = 'none';
        document.getElementById('master-sum-zero').style.display = 'inline';
        document.getElementById('master-sum-full').style.display = 'none';
        document.getElementById('orderParamPay_0').checked = 'checked';
        document.getElementById('orderParamPay_1').checked = '';
    }
    else 
        if (present == '1') {
            document.getElementById('delivery-cost-full').style.display = 'inline';
            document.getElementById('delivery-cost-zero').style.display = 'none';
            document.getElementById('master-sum-full').style.display = 'inline';
            document.getElementById('master-sum-zero').style.display = 'none';
            document.getElementById('orderParamPay_0').checked = '';
            document.getElementById('orderParamPay_1').checked = 'checked';
        }
}

function updateQuantityOnEnter(e, ida, urla){
    var key;
    
    if (window.event) 
        key = window.event.keyCode; //IE
    else 
        key = e.which; //firefox
    if (key == 13) {
        updateQuantity(ida, urla);
        return false;
    }
    else {
        return true;
    }
}

