function catalogueCartAdd(objectId, priceKeySelector, numSelector)
{
  $.ajax({
    url: "?",
    type: "POST",
    data: ({
        ajax: true, 
        cart: true, 
        
        action: "add", 
        id : objectId, 
        type : $(priceKeySelector).attr("value"),
        num: $(numSelector).get(0).value
    }),
    success: function(response){
       catalogueCartRefresh(response);
       $(numSelector).attr("value", "");
    }
  });

}


function catalogueCartRefresh( text )
{
  $("#catalogue-cart a").html(text);
}
