// accesscart.js
function addToCart(n,c,p,q)
{
	var cart = new Cart()
	cart.addProduct(n,c,p,q)
	cart.save()
	alert("Picked goods is now in your shopping cart.");
	//var popup = window.open();
	//window.location.reload()
}
function addToCarts(n,c,p,q)
{
	var cart = new Cart()
	cart.addProduct(n,c,p,q)
	cart.save()
}
function deleteProduct(n)
{
	var cart = new Cart()
	cart.deleteProduct(n)
	cart.save()
	//window.location.reload()
}
function cartIsEmpty()
{
	if (getCookie("encart")=="")
	{
		return true
	}
	return false
}