//Diese Berechnungen und der Programmcode sind urheberrechtlich geschźtzt und kšnnen mit einem speziellen Suchalogarythmus jederzeit verfolgt werden, Missbrauch wird strafrechtlich verfolgt.
<!--

 function neustart()
  {
  
  	document.Kostenvgl.stoffpreis.value = "";
  	
  		}
  		

 function berechnung()
  {

	qm = document.Kostenvgl.flaeche.value;

	if (document.Kostenvgl.waermebedarf.options[0].selected == true)
		{
		heizbedarf = 50;
		}
		else{
		heizbedarf = 75;
	}
	
	//waermebedarf Berechnung;
	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.heizbedarf2.value * document.Kostenvgl.betriebsstunden.value;
	document.Kostenvgl.jahresenergie2.value = document.Kostenvgl.heizbedarf2.value * document.Kostenvgl.betriebsstunden.value;
	
	//*********************************Achtung hier unter Stoffpreis die aktuellen Preise eintragen*************

	if (document.Kostenvgl.nutzungsgrad.options[0].selected == true)
		{
		document.Kostenvgl.ausnutzung.value = 78;
		document.Kostenvgl.einheit.value = "ct./l";
		document.Kostenvgl.einheitpur.value = "l";
		document.Kostenvgl.heizwert.value = 10;
		document.Kostenvgl.hweinheit.value = "kWh/l";
		document.Kostenvgl.pauschfixkosten.value = 480;
		document.Kostenvgl.pauschfaktor.value = 3;
		}
		
				if (document.Kostenvgl.nutzungsgrad.options[0].selected == true & document.Kostenvgl.stoffpreis.value == "")
		{
		//***…lpreis				
								document.Kostenvgl.stoffpreis.value = 67.0;
	}
		
	if (document.Kostenvgl.nutzungsgrad.options[1].selected == true)
		{
		document.Kostenvgl.ausnutzung.value = 87;
		document.Kostenvgl.einheit.value = "ct./m3";
		document.Kostenvgl.einheitpur.value = "m3";
		document.Kostenvgl.heizwert.value = 10.3;
		document.Kostenvgl.hweinheit.value = "kWh/m3";
		document.Kostenvgl.pauschfixkosten.value = 320;
		document.Kostenvgl.pauschfaktor.value = 3;
		}
		
				if (document.Kostenvgl.nutzungsgrad.options[1].selected == true & document.Kostenvgl.stoffpreis.value == "")
		{
		//***Gaspreis				
								document.Kostenvgl.stoffpreis.value = 65.4;
		}
		
	if (document.Kostenvgl.nutzungsgrad.options[2].selected == true)
		{
		document.Kostenvgl.ausnutzung.value = 78;
		document.Kostenvgl.einheit.value = "ct./kg";
		document.Kostenvgl.einheitpur.value = "kg";
		document.Kostenvgl.heizwert.value = 4.0;
		document.Kostenvgl.hweinheit.value = "kWh/kg";
		document.Kostenvgl.pauschfixkosten.value = 420;
		document.Kostenvgl.pauschfaktor.value = 6;
		}
	
				if (document.Kostenvgl.nutzungsgrad.options[2].selected == true & document.Kostenvgl.stoffpreis.value == "")
		{
		//***Pelletpreis				
								document.Kostenvgl.stoffpreis.value = 22.4;
		}
		
			
		if (document.Kostenvgl.nutzungsgrad.options[3].selected == true)
		{
		document.Kostenvgl.ausnutzung.value = 98;
		document.Kostenvgl.einheit.value = "ct./kWh";
		document.Kostenvgl.einheitpur.value = "kWh";
		document.Kostenvgl.heizwert.value = 1.0;
		document.Kostenvgl.hweinheit.value = "kWh";
		document.Kostenvgl.pauschfixkosten.value = 57;
		document.Kostenvgl.pauschfaktor.value = 1.5;
		}
		
		if (document.Kostenvgl.nutzungsgrad.options[3].selected == true & document.Kostenvgl.stoffpreis.value == "")
		{
		//***Strompreis				
							document.Kostenvgl.stoffpreis.value = ((document.Kostenvgl.tagstrom.value * 15) + (document.Kostenvgl.nachtstrom.value * 85)) / 100;

}
		
		

		


//document.Kostenvgl.ausnutzung2.value = Math.round((document.Kostenvgl.heizwert.value * document.Kostenvgl.ausnutzung.value) / 100);

document.Kostenvgl.heizwert2.value = document.Kostenvgl.heizwert.value;
document.Kostenvgl.ausnutzung2.value = document.Kostenvgl.ausnutzung.value / 100;
document.Kostenvgl.ausnutzung3.value = document.Kostenvgl.ausnutzung2.value * document.Kostenvgl.heizwert.value;

	document.Kostenvgl.verbrauch.value = Math.round(document.Kostenvgl.jahresenergie.value / document.Kostenvgl.ausnutzung3.value);
	document.Kostenvgl.verbrauch2.value = Math.round(document.Kostenvgl.jahresenergie.value / document.Kostenvgl.ausnutzung3.value);
	document.Kostenvgl.preis2.value = document.Kostenvgl.stoffpreis.value;
	
	document.Kostenvgl.einheitpur2.value = document.Kostenvgl.einheitpur.value;
	document.Kostenvgl.einheit2.value = document.Kostenvgl.einheit.value;
	document.Kostenvgl.hweinheit2.value = document.Kostenvgl.hweinheit.value;
	document.Kostenvgl.verbrauchskosten.value = Math.round(document.Kostenvgl.verbrauch.value * document.Kostenvgl.stoffpreis.value / 100);
	
//HH-Strompreis hodden eingabe hier 18ct
//pauschfaktor
//mal Fl?che und Betriebsstunden durch als Mittelwertsteiler 1900

	document.Kostenvgl.hhstrom.value = 22;
	document.Kostenvgl.qmfixkosten.value = Math.round( Math.abs(document.Kostenvgl.pauschfaktor.value * document.Kostenvgl.hhstrom.value * document.Kostenvgl.flaeche.value / 100) * Math.abs(document.Kostenvgl.betriebsstunden.value / 1900));
	document.Kostenvgl.fixkosten.value = Math.abs(document.Kostenvgl.pauschfixkosten.value) + Math.abs(document.Kostenvgl.qmfixkosten.value);
	
	document.Kostenvgl.jahreskosten.value = Math.abs(document.Kostenvgl.verbrauchskosten.value) + Math.abs(document.Kostenvgl.fixkosten.value);
	document.Kostenvgl.jahreskosten20.value = Math.round(document.Kostenvgl.jahreskosten.value * 20);
	
	//******************************Waermepumpen Berechnungen ******************************************
	
	//****BeiFlaechenheizung

	
	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);
					document.Kostenvgl.fixanteil.value = 57;
					document.Kostenvgl.tagprozent.value = Math.abs(0.40);
					document.Kostenvgl.nachtprozent.value = Math.abs(0.60);
		}
	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);
					document.Kostenvgl.fixanteil.value = 57;
					document.Kostenvgl.tagprozent.value = Math.abs(0.40);
					document.Kostenvgl.nachtprozent.value = Math.abs(0.60);
		}
		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);
					document.Kostenvgl.fixanteil.value = 57;
					document.Kostenvgl.tagprozent.value = Math.abs(0.40);
					document.Kostenvgl.nachtprozent.value = Math.abs(0.60);
		}
	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);
					document.Kostenvgl.fixanteil.value = 57;
					document.Kostenvgl.tagprozent.value = Math.abs(0.40);
					document.Kostenvgl.nachtprozent.value = Math.abs(0.60);
		}
	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);
					document.Kostenvgl.fixanteil.value = 57;
					document.Kostenvgl.tagprozent.value = Math.abs(0.40);
					document.Kostenvgl.nachtprozent.value = Math.abs(0.60);
		}
		
//****Bei Radiatorheizung
		
			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);
					document.Kostenvgl.fixanteil.value = 57;
					document.Kostenvgl.tagprozent.value = Math.abs(0.60);
					document.Kostenvgl.nachtprozent.value = Math.abs(0.40);
		}
	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);
					document.Kostenvgl.fixanteil.value = 57;
					document.Kostenvgl.tagprozent.value = Math.abs(0.60);
					document.Kostenvgl.nachtprozent.value = Math.abs(0.40);
		}
		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);
					document.Kostenvgl.fixanteil.value = 57;
					document.Kostenvgl.tagprozent.value = Math.abs(0.60);
					document.Kostenvgl.nachtprozent.value = Math.abs(0.40);
		}
	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);
					document.Kostenvgl.fixanteil.value = 57;
					document.Kostenvgl.tagprozent.value = Math.abs(0.60);
					document.Kostenvgl.nachtprozent.value = Math.abs(0.40);
		}
	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.fixanteil.value = 57;
					document.Kostenvgl.tagprozent.value = Math.abs(0.60);
					document.Kostenvgl.nachtprozent.value = Math.abs(0.40);
		}
	
	
	
	document.Kostenvgl.gesbedarf.value = Math.round(document.Kostenvgl.jahresenergie2.value / document.Kostenvgl.jaz1.value);
	document.Kostenvgl.gesbedarf1.value = document.Kostenvgl.gesbedarf.value;
	document.Kostenvgl.gesbedarf2.value = document.Kostenvgl.gesbedarf.value;
	document.Kostenvgl.taganteil.value = Math.round((document.Kostenvgl.gesbedarf1.value * document.Kostenvgl.tagstrom.value * document.Kostenvgl.tagprozent.value) / 100);
	document.Kostenvgl.nachtanteil.value = Math.round((document.Kostenvgl.gesbedarf2.value * document.Kostenvgl.nachtstrom.value * document.Kostenvgl.nachtprozent.value) / 100);
	


	document.Kostenvgl.geskosten.value = Math.round(Math.round(document.Kostenvgl.taganteil.value) + Math.round(document.Kostenvgl.nachtanteil.value) + Math.round(document.Kostenvgl.fixanteil.value));
	document.Kostenvgl.geskosten20.value = Math.round(Math.round(document.Kostenvgl.taganteil.value) + Math.round(document.Kostenvgl.nachtanteil.value) + Math.round(document.Kostenvgl.fixanteil.value)) * 20;

  }