function calc()
{
	qty = document.sachertorteOrder.quantity.value;

	if (qty.length == 0)
		qty = 0;

	var nums = "0123456789"; 
	for(var i=0; i<qty.length; i++)
	if(nums.indexOf(qty.charAt(i))==-1)
		qty = 0;

	qty = parseInt(qty);
	price = qty * 35;
	price += "($35 per unit)";
	id = 'amt';

	if (document.getElementById)
	{
		x = document.getElementById(id);
		x.innerHTML = '';
		x.innerHTML = price;
	}
	else if (document.all)
	{
		x = document.all[id];
		x.innerHTML = price;
	}
	else if (document.layers)
	{
		x = document.layers[id];
		amt2 = '<P CLASS="amtClass">' + price + '</P>';
		x.document.open();
		x.document.write(amt2);
		x.document.close();
	}//if-else
}//end function

