﻿		function updateDisplayPrice(ID, Price, Size)
		{
			//Update the price span values
			var priceField
			priceField = "thePrice" + ID
			document.all(priceField).innerHTML = formatNumber2(Price);

			//Update the size span values
			var sizeField
			sizeField = "theSize" + ID
			document.all(sizeField).innerHTML = Size;
		}
		
		/*
		function AddToCart(ProductID, isInternational, CatalogNumber)
		{
			var sizeField
			sizeField = "theSize" + ProductID
			window.location.href = "<%=rootFolder%><%=LangHandler%>/AddToCart.aspx?ProductID=" + ProductID + "&prodSize=" + document.all(sizeField).innerHTML + "&isInternational=" + isInternational + "&CatalogNumber=" + CatalogNumber
		}
		*/

		function formatNumber(amount)
		{
			amount -= 0; 
			return (amount == Math.floor(amount)) ? amount + '.00' :  ((amount*10 == Math.floor(amount*10)) ? amount + '0' : amount);
		}
		
		function formatNumber2(amount)
		{
			return Math.ceil(parseFloat(amount)) + ".00";
		}
