// JavaScript Document
<!--


function updateAmounts(desktopPrice, serverPrice, prodName) 
{
	var price = desktopPrice;
	document.BuyForm.DESCRIPTION.value = prodName + ' - ' + document.BuyForm.count.value + '  Server License(s)';
	
	if(document.BuyForm.license.value == 2)
	{
		price = serverPrice;
		document.BuyForm.DESCRIPTION.value = prodName + ' - ' + document.BuyForm.count.value + '  Desktop License(s)';
	}
	
	var total = document.BuyForm.count.value * price;
	var upgradeTotal = total * 0.22;
	if (document.BuyForm.checkUpgrade.checked == false)
	{
		upgradeTotal = 0;
	}
	
	document.BuyForm.cliAmount.value = "$" + total + ".00";
	document.BuyForm.upgradeAmount.value = "$" + upgradeTotal + ".00";
	document.BuyForm.totalAmount.value = "$" + (total + upgradeTotal) + ".00";
	
	document.BuyForm.AMOUNT.value = (total + upgradeTotal) + ".00";
	
	if (upgradeTotal > 0)
	{
		document.BuyForm.DESCRIPTION.value = document.BuyForm.DESCRIPTION.value + ' + 1 Year Support';
	}
} 
// -->
