// JavaScript Document
function agregar_producto(id_libro)
{
	if(id_libro!="")
	{
		
		$.get("inc.carrito.php",{id:id_libro,accion:'comprar'},function(resultado)
		{
			$("#contenedor_carrito").html(resultado);
			mostrar_mensaje_ok();
		});
	}
}
function mostrar_mensaje_ok()
{
	$('#contenedor_confirmacion_carrito').show();
	//alert("Su pedido ha sido agregado al carrito");
}
