function shoppingcart_deleteItem(page, criteria, boolAjax) {
	if(!boolAjax) {
		window.location.href = page + '?' + criteria;
	} else {
		AjaxRequest.get(
			{
			  'url' : '/modules/display.php?modulename=Shoppingcart&ajax=true&' + criteria
			  ,'onSuccess':function(req){
				var arrResponse = req.responseText.split('|');
				if(document.getElementById('Shoppingcart_cart')) document.getElementById('Shoppingcart_cart').innerHTML = arrResponse[0];
			  }
			}
		);
	}
}
function shoppingcart_addToBasket(form) {
	AjaxRequest.submit(
		form
		,{
			'url' : '/modules/display.php?modulename=Shoppingcart&ajax=true'
			,'onSuccess' : function (req) {
					var arrResponse = req.responseText.split('|');
					if(document.getElementById('Shoppingcart_cart')) document.getElementById('Shoppingcart_cart').innerHTML = arrResponse[0];
					if(document.getElementById('shoppingcart_ajax_response_' + arrResponse[1]) && arrResponse[2]) {
						document.getElementById('shoppingcart_ajax_response_' + arrResponse[1]).innerHTML = arrResponse[2];
						document.getElementById('shoppingcart_ajax_response_' + arrResponse[1]).style.display = 'block';
					}
					window.parent.location.href='products.php?action=cart';
				}
			,'onError' : function (req) {form.submit(); alert('here');}
		}
	);
}

