function BuyMultipleProducts(Item,myPrice) {

	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
		for (var i = 0; i < qty; i++) {
	
			BuyProduct(Item,myPrice);
		
		}//end for
		
		getData(myRequest,myPageDiv);
		
	} else {
		alert('Please enter a valid quantity.');
	}//end if (isFinite(qty)...
	
	document.getElementById('qty'+Item).value = '';
	
	ShowCookie();
}

function BuySingleProduct(Item,myPrice) {
	BuyProduct(Item,myPrice);
	getData(myRequest,myPageDiv);
	ShowCookie();
}