function add_to_cart_index(prod_id,session_id,price){
	var attr = '';
	$(".attr").each(function(){
		attr = attr + $(this).val() + "|";		 
	});
	$.post("config/rubix_store/rubix_store.php?cmd=add_to_cart", { 
		   prod_id: ""+prod_id+"", 
		   quan: "1", 
		   prod_type: "book", 
		   price: ""+price+"", 
		   attr: ""+attr+""
		 },
		function(data){
				window.location='order_online.php?cam=show_cart';
	});
}
