<!--

function Preis_Berechnen() {
  var Gesamt = 0;

  for (var i = 0; i < (Preis.length - 1); i++)
    eval('document.anfrage.anzahl' + i + '.value = parseInt(document.anfrage.anzahl' + i + '.value); if (document.anfrage.anzahl' + i + '.value < 0) document.anfrage.anzahl' + i + '.value = 0; Gesamt += Preis[' + i + '] * document.anfrage.anzahl' + i + '.value;');

  if ((Gesamt / 1000) >= 1.0) {
    document.anfrage.gesamt.value = Math.floor(Gesamt / 1000) + '.';

    if ((Gesamt % 1000) < 10)
      document.anfrage.gesamt.value += '00';
    else if ((Gesamt % 1000) < 100)
      document.anfrage.gesamt.value += '0';
  } else
    document.anfrage.gesamt.value = '';

  document.anfrage.gesamt.value += Math.floor(Gesamt % 1000) + ',';

  var cent = Math.floor((Gesamt - Math.floor(Gesamt)) * 100);
  if (cent < 10)
    document.anfrage.gesamt.value += '0';

  document.anfrage.gesamt.value += cent;
}

//-->

