var Cost, Total;
function kalli()
{
	Cost = 0;
         if (document.orderform.item1.checked) { Cost = Cost + 15.00; }
	if (document.orderform.item2.checked) { Cost = Cost + 6.50; }
         if (document.orderform.item3.checked) { Cost = Cost + 7.50; }
	if (document.orderform.item4.checked) { Cost = Cost + 9.00; }
         if (document.orderform.item5.checked) { Cost = Cost + 11.00; }
	if (document.orderform.item6.checked) { Cost = Cost + 31.00; }


	Cost = ats(Cost);
	Total = ats(Total);
	document.orderform.Total.value = "EUR " + Cost;
}

function ats (amount)
{
	amount = parseInt(amount * 100);
	amount = parseFloat(amount/100);
		if (((amount) == Math.floor(amount)) && ((amount - Math.floor (amount)) == 0))
		{
		amount = amount + ".00"
		return amount;
		}
		if ( ((amount * 10) - Math.floor(amount * 10)) == 0)
		{
		amount = amount + "0";
		return amount;
		}
		if ( ((amount * 100) - Math.floor(amount * 100)) == 0)
		{
		amount = amount;
		return amount;
		}
		return amount;
}

function chkorderform()
{
  	if(document.orderform.mail.value == "")
         {
   	alert("Bitte geben Sie Ihre E-Mail-Adresse ein");
   	document.orderform.mail.focus();
   	return false;
  	}
 	if(document.orderform.mail.value.indexOf('@') == -1)
         {
         alert("Das ist keine E-Mail-Adresse!");
   	document.orderform.mail.focus();
   	return false;
  	}
}
</script>
