function funcBerechnen() 
{
// 
// 

	var Gew=0;
    Gew = document.Aboberechnung.Gewicht.value;
	if (document.Aboberechnung.MonatlichArt[1].checked == true)
	{
		var Tage = 61;
	}
	else if (document.Aboberechnung.MonatlichArt[0].checked == true)
	{
		var Tage = 31;	
	}
	else
	{
		alert ("Bitte treffen Sie eine Auswahl - monatlich oder alle zwei Monate?");
		return false;
	}
	
	var Ergebnis = 0;
	Ergebnis = Gew/100 * 8 * Tage;
	Ergebnis = Ergebnis/1000;
	Ergebnis = Ergebnis*10;
	Ergebnis = Math.round(Ergebnis);
	Ergebnis = Ergebnis/10;
	Ergebnis = Ergebnis + " kg";
	Ergebnis = funcNullvorundKomma(Ergebnis);

	document.Aboberechnung.Ergebnis.value = Ergebnis;  
	
	var Grammerg = 0;
	Grammerg = Gew/100 * 8;
	Grammerg = Math.round(Grammerg);
	Grammerg = Grammerg + " Gramm";
	document.Aboberechnung.Gramm.value = Grammerg;
	return false;
}

function funcNullvorundKomma(derstring)
{
	var start = derstring.indexOf(".");
		if (start != -1)
		{
			if (start == 0)
			{
			derstring = "0" + derstring
			}
		}
	return derstring;
}