function BuyMultipleProducts(Item,myPrice) {
	var OldCookie;
	var CartSum = 0;
	var Price=myPrice;
	var PriceShift=0;
	var Size="";
	var qty = document.getElementById('qty'+Item).value;
	qty = parseInt(qty.replace(" ",""));
	//if quantity value is valid, add to cart
	if (isFinite(qty) && qty > 0 && qty.toString() == document.getElementById('qty'+Item).value.replace(" ","")) {

		//adds products
		
	

	
	
			var myValue="";
			// Handle single & multiple options by detecting if element 0 has a length
			// If there is no element 0 then there is only one option listed
			try {
			
					//Single Option
					var opt=Size.value
					myValue = opt;
					var parms = opt.split("`")
					PriceShift = parseFloat(parms[1]);
				
			}
			catch(er)
			{
				//alert(er);
			}
			
			Size=myValue;
			Price += PriceShift;
	for (var i = 0; i < qty; i++) {

	//alert (Item);
	OldCookie=GetCookie("cart");
	if (parseFloat("0"+GetCookie("subtotal")) != 0){
		SetCookie ("cart", OldCookie+"|"+Item+"~"+Price+"~"+Size,null,"/");
		SetCookie ("cart", OldCookie+"|"+Item+"~"+Price,null,"/_cart/_checkcookie.asp");
	} else {
		SetCookie ("cart", Item+"~"+Price+"~"+Size,null,"/");
	}
	
	OldCookie=GetCookie("subtotal");
	if (OldCookie != "null"){
		CartSum = parseFloat("0" + OldCookie)
		CartSum = CartSum + parseFloat(Price)
	} else {
		CartSum=parseFloat(Price)
	}

	SetCookie ("subtotal","" + formatcurrency (CartSum),null,"/");

		
		}//end for
		
		getData(myRequest,myPageDiv);
		
	} else {
		alert('Please enter a valid quantity.');
	}//end if (isFinite(qty)...
	
	document.getElementById('qty'+Item).value = '';
	
	ShowCookie();
}