<!--

 function berechnung()
  {

	qm = document.Kostenvgl.flaeche.value;

	if (document.Kostenvgl.waermebedarf.options[0].selected == true)
		{
		heizbedarf = 50;
		}
		else{
		heizbedarf = 75;
		}

	document.Kostenvgl.hilfsenergie.value = document.Kostenvgl.flaeche.value;
	document.Kostenvgl.emistrom.value = 0.58;
	document.Kostenvgl.emistrom2.value = document.Kostenvgl.emistrom.value
	

	document.Kostenvgl.spezWBedarf.value = heizbedarf;
	document.Kostenvgl.jahresbedarf.value = (qm * heizbedarf) /1000;
	document.Kostenvgl.heizbedarf2.value = (qm * heizbedarf) /1000;

	if (document.Kostenvgl.klimazone.options[0].selected == true)
		{
		document.Kostenvgl.betriebsstunden.value = 1700;
		}
	if (document.Kostenvgl.klimazone.options[1].selected == true)
		{
		document.Kostenvgl.betriebsstunden.value = 1900;
		}
	if (document.Kostenvgl.klimazone.options[2].selected == true)
		{
		document.Kostenvgl.betriebsstunden.value = 2100;
		}
	
		
	document.Kostenvgl.betriebsstunden2.value = document.Kostenvgl.betriebsstunden.value;
	document.Kostenvgl.jahresenergie.value = document.Kostenvgl.heizbedarf2.value * document.Kostenvgl.betriebsstunden.value;
	document.Kostenvgl.jahresenergie1.value = document.Kostenvgl.jahresenergie.value;
	document.Kostenvgl.jahresenergie2.value = document.Kostenvgl.heizbedarf2.value * document.Kostenvgl.betriebsstunden.value;
	
	
	
//rechte seite	
		
	if (document.Kostenvgl.waermepumpe.options[0].selected == true & document.Kostenvgl.raumheizung.options[0].selected == true)
		{
			document.Kostenvgl.jaz.value = (3.8);
			document.Kostenvgl.jaz1.value = (3.8);
		}
	if (document.Kostenvgl.waermepumpe.options[1].selected == true & document.Kostenvgl.raumheizung.options[0].selected == true)
		{
			document.Kostenvgl.jaz.value = (5.1);
			document.Kostenvgl.jaz1.value = (5.1);
		}
		if (document.Kostenvgl.waermepumpe.options[2].selected == true & document.Kostenvgl.raumheizung.options[0].selected == true)
		{
			document.Kostenvgl.jaz.value = (5.0);
			document.Kostenvgl.jaz1.value = (5.0);
		}
	if (document.Kostenvgl.waermepumpe.options[3].selected == true & document.Kostenvgl.raumheizung.options[0].selected == true)
		{
			document.Kostenvgl.jaz.value = (3.2);
			document.Kostenvgl.jaz1.value = (3.2);
		}
	if (document.Kostenvgl.waermepumpe.options[4].selected == true & document.Kostenvgl.raumheizung.options[0].selected == true)
		{
			document.Kostenvgl.jaz.value = (4.2);
			document.Kostenvgl.jaz1.value = (4.2);
		}
		
		
			if (document.Kostenvgl.waermepumpe.options[0].selected == true & document.Kostenvgl.raumheizung.options[1].selected == true)
		{
			document.Kostenvgl.jaz.value = (3.3);
			document.Kostenvgl.jaz1.value = (3.3);
		}
	if (document.Kostenvgl.waermepumpe.options[1].selected == true & document.Kostenvgl.raumheizung.options[1].selected == true)
		{
			document.Kostenvgl.jaz.value = (4.6);
			document.Kostenvgl.jaz1.value = (4.6);
		}
		if (document.Kostenvgl.waermepumpe.options[2].selected == true & document.Kostenvgl.raumheizung.options[1].selected == true)
		{
			document.Kostenvgl.jaz.value = (4.5);
			document.Kostenvgl.jaz1.value = (4.5);
		}
	if (document.Kostenvgl.waermepumpe.options[3].selected == true & document.Kostenvgl.raumheizung.options[1].selected == true)
		{
			document.Kostenvgl.jaz.value = (2.7);
			document.Kostenvgl.jaz1.value = (2.7);
		}
	if (document.Kostenvgl.waermepumpe.options[4].selected == true & document.Kostenvgl.raumheizung.options[1].selected == true)
		{
			document.Kostenvgl.jaz.value = (3.8);
			document.Kostenvgl.jaz1.value = (3.8);
		}
	
		
	document.Kostenvgl.gesbedarf.value = Math.round(document.Kostenvgl.jahresenergie2.value / document.Kostenvgl.jaz1.value);
	document.Kostenvgl.gesbedarf1.value = document.Kostenvgl.gesbedarf.value;
	
			
	document.Kostenvgl.wpemi.value = Math.round(document.Kostenvgl.gesbedarf1.value * document.Kostenvgl.emistrom2.value);
	document.Kostenvgl.wpemi2.value = Math.round(document.Kostenvgl.gesbedarf1.value * document.Kostenvgl.emistrom2.value);
	document.Kostenvgl.wpemi20.value = document.Kostenvgl.wpemi.value * 20;
	
//linke seite


	
	if (document.Kostenvgl.nutzungsgrad.options[0].selected == true)
		{
		document.Kostenvgl.ausnutzung.value = 75;
		document.Kostenvgl.mehrverbrauch.value = 1.33;
		document.Kostenvgl.resultnutzung.value = 133;
			document.Kostenvgl.emiwert.value = 0.31;
			document.Kostenvgl.hilfsbedarf.value = 2.7;
		}
	if (document.Kostenvgl.nutzungsgrad.options[1].selected == true)
		{
		document.Kostenvgl.ausnutzung.value = 85;
		document.Kostenvgl.mehrverbrauch.value = 1.18;
		document.Kostenvgl.resultnutzung.value = 118;
			document.Kostenvgl.emiwert.value = 0.26;
			document.Kostenvgl.hilfsbedarf.value = 3;
		}
	if (document.Kostenvgl.nutzungsgrad.options[2].selected == true)
		{
		document.Kostenvgl.ausnutzung.value = 75;
		document.Kostenvgl.mehrverbrauch.value = 1.33;
		document.Kostenvgl.resultnutzung.value = 133;
			document.Kostenvgl.emiwert.value = 0.04;
			document.Kostenvgl.hilfsbedarf.value = 6;
		}
		

			
	document.Kostenvgl.verbrauch.value = document.Kostenvgl.jahresenergie.value * document.Kostenvgl.mehrverbrauch.value;
	document.Kostenvgl.verbrauch2.value = document.Kostenvgl.verbrauch.value;
	
	document.Kostenvgl.verbrauchsemi.value = Math.round(document.Kostenvgl.verbrauch.value * document.Kostenvgl.emiwert.value);
	
	document.Kostenvgl.hilfsemi.value = Math.round(document.Kostenvgl.hilfsenergie.value * document.Kostenvgl.hilfsbedarf.value * document.Kostenvgl.emistrom.value);
	
	document.Kostenvgl.flammemi.value = Math.abs(document.Kostenvgl.verbrauchsemi.value) + Math.abs(document.Kostenvgl.hilfsemi.value);
	document.Kostenvgl.flammemi20.value = document.Kostenvgl.flammemi.value * 20;
		
	document.Kostenvgl.resultnutzung2.value = document.Kostenvgl.resultnutzung.value;

  }