// JavaScript Document
<!--


 function volleGebuehr(Zahl)
  {
// Ein eventuelles Komma wird durch den erforderlicehn Punkt ersetzt:

	Zahl=Zahl.replace (/,/,".");

// Die Grenze wird gepr&#252;ft,der vorangehenden Summe wird so oft die n&#228;chste Stufe addiert,
// wie angefangene Zwischenstufen vorhanden sind:

  if (Zahl<=300) {Ergebnis=25}
	else
	if (Zahl<=1500){Ergebnis=25+(Math.ceil((Zahl-300)/300)*20)}
	else
	if (Zahl<=5000){Ergebnis=105+(Math.ceil((Zahl-1500)/500)*28)}
	else
	if (Zahl<=10000){Ergebnis=301+(Math.ceil((Zahl-5000)/1000)*37)}
	else
	if (Zahl<=25000){Ergebnis=486+(Math.ceil((Zahl-10000)/3000)*40)}
	else
	if (Zahl<=50000){Ergebnis=686+(Math.ceil((Zahl-25000)/5000)*72)}
	else
	if (Zahl<=200000){Ergebnis=1046+(Math.ceil((Zahl-50000)/15000)*77)}
	else
	if (Zahl<=500000){Ergebnis=1816+(Math.ceil((Zahl-200000)/30000)*118)}
	else
	Ergebnis=2996+(Math.ceil((Zahl-500000)/50000)*150);



return Ergebnis;
  }


function GKG(Zahl)


{
// Ein eventuelles Komma wird durch den erforderlicehn Punkt ersetzt:

	Zahl=Zahl.replace (/,/,".");


	if (Zahl<=300) {Ergebnis=25}
	else
	if (Zahl<=1500){Ergebnis=25+(Math.ceil((Zahl-300)/300)*10)}
	else
	if (Zahl<=5000){Ergebnis=65+(Math.ceil((Zahl-1500)/500)*8)}
	else
	if (Zahl<=10000){Ergebnis=121+(Math.ceil((Zahl-5000)/1000)*15)}
	else
	if (Zahl<=25000){Ergebnis=196+(Math.ceil((Zahl-10000)/3000)*23)}
	else
	if (Zahl<=50000){Ergebnis=311+(Math.ceil((Zahl-25000)/5000)*29)}
	else
	if (Zahl<=200000){Ergebnis=456+(Math.ceil((Zahl-50000)/15000)*100)}
	else
	if (Zahl<=500000){Ergebnis=1456+(Math.ceil((Zahl-200000)/30000)*150)}
	else
	Ergebnis=2956+(Math.ceil((Zahl-500000)/50000)*150);



	return Ergebnis;


	}

	function Runden(Zahl)
// es wird jeweils auf volle 10 Cent gerundet

{
if (Math.floor(Zahl*10)/(Zahl*10)!=1)Ergebnis=(((Zahl*10)+1)/10);


	return Ergebnis;


	}



function KostenRisiko1(Zahl,Klaeger)
{

Gebuehr=volleGebuehr(Zahl);
GK=GKG(Zahl);
// 0.6 stehen f&#252;r die Nichtanrechnung der au&#223;ergerichtlichen Geb&#252;hr als N&#228;herungswert
Ergebnis=(Math.round(((Gebuehr*0.6)+(Gebuehr*1.3*2)+(Gebuehr*1.2*2)+(Gebuehr/10*3*Klaeger)+40)*116)+(GK*3*100))/100;

return Ergebnis;
}


function KostenRisiko2(Zahl,Klaeger,Instanz1)
{

Gebuehr=volleGebuehr(Zahl);
GK=GKG(Zahl);
Ergebnis=(Math.round(((Gebuehr*1.6*2)+(Gebuehr*1.2*2)+(Gebuehr/10*3*Klaeger)+40)*116)+Instanz1*100+(GK*4*100))/100;

return Ergebnis;
}


//-->
