
function WriteCartNumItems()
{
	var allcookies = document.cookie;
	var value = "0";
	
	// look for our cookie
	var pos = allcookies.indexOf("CartNumItems=");
	
	// If we find it, extract and use it, otherwise fill in zero.
	if (pos != -1)
	{
		var start = pos + 13;
		var end = allcookies.indexOf(";", start);
		if (end == -1)
		{
			end = allcookies.length;
		}
		
		value = allcookies.substring(start, end);
		value = unescape(value);
	}
	document.write(value);
}

function WriteCartTotal()
{
	var allcookies = document.cookie;
	var value = "$0.00";
	
	// look for our cookie
	var pos = allcookies.indexOf("CartTotal=");
	
	// If we find it, extract and use it, otherwise fill in zero.
	if (pos != -1)
	{
		var start = pos + 10;
		var end = allcookies.indexOf(";", start);
		if (end == -1)
		{
			end = allcookies.length;
		}
		
		value = allcookies.substring(start, end);
		value = unescape(value);
	}
	
	document.write(value);
}
