cookieValue = 0;

function getCookie() {
index = document.cookie.indexOf("EPD_Amt");
	index += ("EPD_Amt".length + 1);
	end = document.cookie.indexOf(";", index);
		if (end == -1) {end = document.cookie.length};
	cookieValue = parseFloat(document.cookie.substring(index, end));
if (document.cookie.length<1) {cookieValue = 0};
}

function setCookie(amt) {
getCookie ();
	cookieValue = cookieValue + amt;
	document.cookie = "EPD_Amt" + "=" + cookieValue;
}

getCookie ();
document.write("<font size='1' color='#ffffff'>$" + cookieValue + " <a href='http://www.cartserver.com/sc/cart.cgi?item=s-3631&view.x=1'>Checkout</a></font>");
