function jsUpdateCart(){
  var parameter_string = '';
  allNodes = $(".process");
  for(i = 0; i < allNodes.length; i++) {
  	var tempid = allNodes[i].id;
    var temp = new Array;
    temp = tempid.split("_");
 	var real_id = temp[2];
 	var real_value = allNodes[i].value;
    parameter_string += real_id +':'+real_value+',';
  }

  var params = 'ids='+parameter_string;
  
   $.ajax({
   type: "POST",
   url: "index.php/webshop/ajax_cart",
   data: params,
   success: function( r ) {
    $('#ajax_msg').html( r );
    location.reload( true );
  }
 });
  
}



function jsRemoveProduct(id){
  var params = 'id='+id;
  $.ajax({
   type: "POST",
   url: "index.php/webshop/ajax_cart_remove",
   data: params,
   success: function( r ) {
    $('#ajax_msg').html( r );
    location.reload( true );
  }
 });
}


$(function() {
//    $( "#tabs" ).tabs();
    // add pipes between menu in the footer menu 
    $("#footernav li:not(:last)").append(' | ');
    $("#nav li:last-child").addClass("lastchild");

	});

