//-------------------------------------------------------------------------------
	function basketAdd(id, type){
		$.post('/include/basket.communication.php', {action: 'add', id: id, type: type}, function(response){
			if(response.error){alert(response.error);return;}
			$('div.basket', '#col-left').remove();
			$('div.search', '#col-left').next('div').after(response.leftBasket);
		}, 'json');
	}
//-------------------------------------------------------------------------------
	function basketPlus(id, type){
		$.post('/include/basket.communication.php', {action: 'plus', id: id, type: type}, function(response){
			if(response.error){alert(response.error);window.location.reload();return;}
			$('div.basket', '#col-left').remove();
			$('div.search', '#col-left').next('div').after(response.leftBasket);
			$('div.basket', '#col-main div.main-content').html(response.basket);
		}, 'json');
	}
//-------------------------------------------------------------------------------
	function basketMinus(id, type){
		$.post('/include/basket.communication.php', {action: 'minus', id: id, type: type}, function(response){
			if(response.error){alert(response.error);window.location.reload();return;}
			$('div.basket', '#col-left').remove();
			$('div.search', '#col-left').next('div').after(response.leftBasket);
			$('div.basket', '#col-main div.main-content').html(response.basket);
		}, 'json');
	}
//-------------------------------------------------------------------------------
	function basketRemove(id, type){
		$.post('/include/basket.communication.php', {action: 'remove', id: id, type: type}, function(response){
			if(response.error){alert(response.error);window.location.reload();return;}
			$('div.basket', '#col-left').remove();
			$('div.search', '#col-left').next('div').after(response.leftBasket);
			$('div.basket', '#col-main div.main-content').html(response.basket);
		}, 'json');
	}
//-------------------------------------------------------------------------------

