function NeuBerechnen()
{
var vausfallproz = 0;

vumsatz = document.vrechner.umsatz.value;
vrendite = document.vrechner.rendite.value / 100;
vausfall = document.vrechner.ausfall.value / vumsatz;

vkgewinn = vumsatz * vrendite;
vigewinn = vumsatz * vrendite - vumsatz * vausfall;

vmehrumsatz = (vumsatz * vausfall) / (vrendite - vausfall);

vausfallproz = Math.round(vausfall*1000)/10;

if (vmehrumsatz < 0)
{
 vmehrumsatz = "Fehler";
 vkgewinn = "Fehler";
 vigewinn = "Fehler";
}
document.all.AProz.innerHTML = "(=" + vausfallproz + "% v. Umsatz)";
document.vrechner.mumsatz.value = Math.round(vmehrumsatz);
document.vrechner.kgewinn.value = Math.round(vkgewinn);
document.vrechner.igewinn.value = Math.round(vigewinn);

}