function addItem() {
	// create an instance of the Date object
	var now = new Date();	

	// get cookie named "items"
	var items = getCookie("itemsInCart");

	// fix the bug in Navigator 2.0, Macintosh
	fixDate(now);

	// cookie expires in one day (layout = # days in a year * # hours in day * # minutes in hour * # seconds in minute * # milliseconds in second
	now.setTime(now.getTime() + 1 * 24 * 60 * 60 * 1000);

	if (!items) {
		items = 1; // the value for the new cookie	
	}
	else {
		items = parseInt(items) + 1; // increment the counter
	}

	// set the new cookie
	setCookie("itemsInCart", items, now, '/');

	window.location.reload();
}

function itemsInCart() {
	// get cookie named "items"
	var howMany = getCookie("itemsInCart");

	if (!howMany) {
		howMany = 0; // the value for the new cookie	
	}

	return(howMany);
}