function showItems() {
	var CookieName = "vShoppingCart";
	var cookieFound = false;
	var start = 0;
	var end = 0;
	var cookieString = document.cookie;
	var i = 0;
	while (i <= cookieString.length) {
		start = i;
		end = start + CookieName.length;
		if (cookieString.substring(start,end) == CookieName) {
		cookieFound = true;
		break;
		}
	i++;
	}
	if (cookieFound) {
	start = end + 1;
	end = document.cookie.indexOf(";",start);
	if (end < start)
	end = document.cookie.length;
	document.cookie.substring(start,end);
	}		
	fulllist = document.cookie.substring(start, end);
		subtotal = 0;
		howmany = 0;
		itemlist = 0;
		for (var i = 0; i <= fulllist.length; i++) {
			if (fulllist.substring(i,i+1) == '[') {
				itemstart = i+1;
				thisitem = 1;
			} else if (fulllist.substring(i,i+1) == ']') {
				itemend = i;
				thequantity = fulllist.substring(itemstart, itemend);
				itemtotal = 0;
				howmany = (howmany+parseInt(thequantity));
				itemlist=itemlist+1;
			} else if (fulllist.substring(i,i+1) == '|') {
				if (thisitem==2) theprice = fulllist.substring(itemstart, i);
				thisitem++;
				itemstart=i+1
				}
				}
		document.writeln('<A href="vbasket.html">Your cart has '+howmany +'&nbsp;item(s)</A><BR><A href="vbasket.html"><IMG src="images/viewcart.gif" border=0 alt="View Cart"></A>');
}