function getBasket(container){
    $.ajax({
        type: "POST",
        timeout: 7000,
        data: '',
        url: "/webservices/getbasket.php",
        success: function(xml) {
            if(typeof xml == "object") {
                var sum_price = 0;
                var result = '<table class="basket_slider" width="100%">';
                result += '<tr><th align="left" colspan="2">Artikel</th><th>Menge</th><th align="right">Einzelpreis</th><th align="right">Gesamtpreis</th></tr>';
                
                $('items', xml).each(function(i) {
                    var item = new Array();
                    $('items', xml).find("item").each(function() {
                        var item = $(this);
                        var image_url      = item.attr("image_url");
                        var prod_url       = item.attr("prod_url");
                        var num            = item.attr("num");
                        var unit           = item.attr("unit");

                        var total_price = new NumberFormat();
                        total_price.setInputDecimal('.');
                        total_price.setNumber(item.attr("total"));
                        sum_price += parseFloat(item.attr("total"));
                        total_price.setPlaces('2', false);
                        total_price.setNegativeFormat(total_price.LEFT_DASH);
                        total_price.setNegativeRed(false);
                        total_price.setSeparators(true, '.', ',');                        
                        
                        var price = new NumberFormat();
                        price.setInputDecimal('.');
                        price.setNumber(item.attr("price"));
                        price.setPlaces('2', false);
                        price.setNegativeFormat(price.LEFT_DASH);
                        price.setNegativeRed(false);
                        price.setSeparators(true, '.', ',');

                        var title          = item.text();
                        
                        result+='<tr><td width="70" height="50" valign="middle">';
                        if (image_url != '') {
                            result+='<a href="'+prod_url+'"><img src="/externals/phpThumb/phpThumb.php?src=http://www.hifi-regler.de/'+image_url+'&amp;h=38&amp;w=62" /></a>';
                        }
                        result+='</td><td><a href="'+prod_url+'">';
                        result+=title;
                        result+='</a></td><td align="right">'+num+'&nbsp;' +unit+'</td><td align="right">'+price.toFormatted()+' &euro;</td><td align="right">'+total_price.toFormatted()+' &euro;</td></tr>';
                    });
                });
                if(sum_price > 0){
                    var total_price = new NumberFormat();
                    total_price.setInputDecimal('.');
                    total_price.setNumber(sum_price);
                    total_price.setPlaces('2', false);
                    total_price.setNegativeFormat(total_price.LEFT_DASH);
                    total_price.setNegativeRed(false);
                    total_price.setSeparators(true, '.', ',');
                    result+='<tr style="font-weight:bold;"><td colspan="4" align="right">Gesamtpreis aller Artikel:</td><td align="right">'+total_price.toFormatted()+' &euro;</td></tr>';
                    result+='<tr><td colspan="5" align="right">(zuzüglich Versandkosten)</td></tr>';
                    result+='</table>';
                } else {
                    result = '<div style="padding:10px">Ihr Warenkorb ist noch leer.</div>';
                }
            } else {
                result = '<div style="padding:10px">Ihr Warenkorb ist noch leer.</div>';
            }
            $("#"+container).html('<div class="header">Produkte im Warenkorb:</div>' + result);
        }
    })
}