var ajax = new sack();

	//////////////////////////////////////////////
	function addToCart(id){
		if(id!=''){
			ajax.requestFile = 'ajax/add2cart.php?sendID='+id;	// Specifying which file to get
			ajax.onCompletion = addCartCant;
			ajax.runAJAX();		// Execute AJAX function		
		}
	}
	function addCartCant(){
		eval(ajax.response);
	}
	//////////////////////////////////////////////
	function mCartCant(id){
		var n = document.getElementById('cant_'+id).value;
			ajax.requestFile = 'ajax/modcart.php?sendN='+n+'&sendID='+id;	// Specifying which file to get
			ajax.onCompletion = modCartCant;	// Specify function that will be executed after file has been found
			ajax.runAJAX();
	}
	function modCartCant(){
		eval(ajax.response);
	}
	//////////////////////////////////////////////
	function getCartN(){
		ajax.requestFile = 'ajax/getcart.php';	// Specifying which file to get
		ajax.onCompletion = showCartN;	// Specify function that will be executed after file has been found
		ajax.runAJAX();		// Execute AJAX function			
	}
	function showCartN(){
		eval(ajax.response);
	}
	//////////////////////////////////////////////

	
