function BuyProducts(sProducts, sQuantities)
{
	document.getElementById("fraShoppingCart").contentWindow.location.replace("buy.asp?product="+sProducts+"&Quantity="+sQuantities);
}

function BuyProduct(nProduct)
{
	document.getElementById("fraShoppingCart").contentWindow.location.replace("buy.asp?product="+nProduct);
}

function BuyProductsNow(sProducts, sQuantities)
{
	location.href="buy.asp?now=1&product="+sProducts+"&Quantity="+sQuantities;
}

function BuyProductNow(nProduct)
{
	location.href="buy.asp?now=1&product="+nProduct;
}

function SetItemQuantity(nItem, nQuantity)
{
	document.getElementById("fraShoppingCart").contentWindow.location.replace("add.asp?absolute=1&item="+nItem+'&quantity='+nQuantity);
}

function ChangeItemQuantity(nItem, nQuantity)
{
	document.getElementById("fraShoppingCart").contentWindow.location.replace("add.asp?item="+nItem+'&quantity='+nQuantity);
}

function IncrementItem(nItem)
{
	ChangeItemQuantity(nItem, 1);
}

function DecrementItem(nItem)
{
	ChangeItemQuantity(nItem, -1);
}

function ShowCartMessage(sProduct)
{
	document.getElementById("spnCartMessageProduct").innerHTML=sProduct;
	document.getElementById("divCartMessage").style.display="block";
	scrollTo(0, 0);
	setTimeout("document.getElementById(\"divCartMessage\").style.display=\"none\";", 10000);
}
function HideCartMessage()
{
	document.getElementById("divCartMessage").style.display="none";
}