	function addToShoppingBasket(url, item_type_id, item_id) {
		quantity = parseInt($("#txt_quantity_" + item_id).val());
		if (quantity > 0) {
			loading(item_id);
			$.get(url, {item_type_id: item_type_id, item_id: item_id, quantity: quantity}, function(html) {
				$("#shoppingbasket").html(html);
				$("#button_more_" + item_id).show();
				$("#button_remove_" + item_id).show();
				$("#img_loading_" + item_id).show();
			});
		}
	}
	
	function loading(item_id) {
		$("#button_add_" + item_id).hide();
		$("#button_more_" + item_id).hide();
		$("#button_remove_" + item_id).hide();
		$("#img_loading_" + item_id).show();
	}
	
	function removeFromShoppingBasket(url, item_type_id, item_id, type) {
		loading(item_id);
		$.get(url, {item_type_id: item_type_id, item_id: item_id}, function(html) {
			$("#shoppingbasket").html(html);
			$("#img_loading_" + item_id).hide();
			if (type == 'index') {
				$("#row-" + item_id).hide();
			} else {
				$("#button_add_" + item_id).show();
			}
		});
	
	}
