/* The following functions are used on the "View Cart" page */

function ConfirmCartRemoval() {
	return confirm('Are you sure you want to remove all the items in your cart?');
}

function ConfirmGroupRemoval() {
	return confirm('Are you sure you want to remove all these items?');
}

function ConfirmSectionRemoval() {
	return confirm('Are you sure you want to remove these items?');
}

function ConfirmSavedCartRemoval() {
	return confirm('If you unsave this cart, the items will still be in your shopping cart but this cart will no longer be accessible from the "Saved carts" dropdown menu');
}

function ConfirmItemRemoval(id) {
	var sure=confirm('Are you sure you want to remove this item?');

	if (sure) {
		document.RemoveFromCart.ID.value=id;
		document.RemoveFromCart.submit();
	}
}

/* The following function is used on the "Saved Carts" page */

function ConfirmDeleteSavedCart() {
	return confirm('Are you sure you want to completely delete this saved cart?');
}

/* The following function is used on the "Manage Addresses" page */

function ConfirmDeleteAddress() {
	return confirm('Are you sure you want to delete this address?');
}

/* The following function is used on the "Manage Credit Cards" page */

function ConfirmDeleteCC() {
	return confirm('Are you sure you want to delete this credit card?');
}
