function ChkNumber(Nummer)
	{var Variable="";
	 var Ausgabe = "";
	Komma = 0;

	        Gross = Nummer.length - 1;
		for(i = Gross; i >= 0; i--)
		{ if (isNaN(Nummer.charAt(i)) != true)
			Variable=Variable.concat(Nummer.charAt(i));

		if (Nummer.charAt(i)=="," && Komma==0 || Nummer.charAt(i)=="." && Komma==0)
			{Variable=Variable.concat(".");
			 Komma = Komma+1;
			}
		}
		Gross = Variable.length - 1;
		if (Gross == 0)
			Ausgabe="0";
		for(i = Gross; i >= 0; i--)
		{ 
		Ausgabe= Ausgabe.concat(Variable.charAt(i));		
		}

		return Ausgabe;

	}   

function Eingabe(Wert)
	{Wert=ChkNumber(Wert);
		 return Wert;
	}

function Prozent(Tag)
	{Pro = 20;
	 if (Tag < 30)
		Pro = 30;
	 if (Tag < 22)
		Pro = 40;
	 if (Tag < 15)
		Pro = 50;
	 if (Tag < 7)
		Pro = 55;
	 if (Tag < 1)
		Pro = 75;
	return Pro;
	}
function Storno(Wert,Prozent)
	{Wert = parseInt((Wert*Prozent)+0.5)/100;
	return Wert;
	}

function Alles()
	{document.Formular.Proz.focus();
	 document.Formular.RPreis.focus();
	}
