 function chkFormular()
 {
  if (document.bi.Zahl1.value == '') 
     {alert ("Wert für erste Zahl eingeben!");
      document.bi.Zahl1.focus();
      return false};
  var Zahl1 = parseInt(document.bi.Zahl1.value); 
  if  (isNaN(Zahl1) )
     {alert ("falscher Wert für erste Zahl");
      document.bi.Zahl1.value = ''; 
      document.bi.Zahl1.focus();
      return false};
  if (document.bi.Zahl2.value == '') 
     {alert ("Wert für zweite Zahl eingeben!");
      document.bi.Zahl2.focus();
      return false};
  var Zahl2 = parseInt(document.bi.Zahl2.value); 
  if  (isNaN(Zahl2) )
     {alert ("falscher Wert für zweite Zahl");
      document.bi.Zahl2.value = ''; 
      document.bi.Zahl2.focus();
      return false};

  if (document.bi.anz.value == '') 
     {alert ("Wert für Anzahl nächste Zahlen eingeben!");
      document.bi.anz.focus();
      return false};
  var anz = parseInt(document.bi.anz.value);
  if ( (isNaN(anz)) || (anz<1) || (anz>1420))
     {alert ("falscher Wert für Anzahl nächste Zahlen");
      document.bi.anz.value = '';
      document.bi.anz.focus();
      return false};
 
 document.bi.Zahl1.value=Zahl1;
 document.bi.Zahl2.value=Zahl2;
 document.bi.anz.value=anz;

 }
 
  function chkFormular1()
 {
  if (document.ex.Zahl1.value == '') 
     {alert ("Wert für erste Zahl eingeben!");
      document.ex.Zahl1.focus();
      return false};
  var Zahl1 = parseInt(document.ex.Zahl1.value); 
  if  (isNaN(Zahl1) )
     {alert ("falscher Wert für erste Zahl");
      document.ex.Zahl1.value = ''; 
      document.ex.Zahl1.focus();
      return false};
  if (document.ex.Zahl2.value == '') 
     {alert ("Wert für zweite Zahl eingeben!");
      document.ex.Zahl2.focus();
      return false};
  var Zahl2 = parseInt(document.ex.Zahl2.value); 
  if  (isNaN(Zahl2) )
     {alert ("falscher Wert für zweite Zahl");
      document.ex.Zahl2.value = ''; 
      document.ex.Zahl2.focus();
      return false};
  if (document.ex.n.value == '') 
     {alert ("Wert für die n-te Zahl eingeben!");
      document.ex.n.focus();
      return false};
  var n = parseInt(document.ex.n.value);
  if ( (isNaN(n)) || (n<1) || (n>1422))
     {alert ("falscher Wert für die n-te Zahl");
      document.ex.n.value = '';
      document.ex.n.focus();
      return false};
 
 document.ex.Zahl1.value=Zahl1;
 document.ex.Zahl2.value=Zahl2;
 document.ex.n.value=n;

 }