function farbenloeschen(Anzahl)
  {
  var zaehler=0;
  ++zaehler; if (zaehler <= Anzahl)
    document.Bild_01.src="images/nichts.bmp";
  ++zaehler; if (zaehler <= Anzahl)
    document.Bild_02.src="images/nichts.bmp";
  ++zaehler; if (zaehler <= Anzahl)
    document.Bild_03.src="images/nichts.bmp";
  ++zaehler; if (zaehler <= Anzahl)
    document.Bild_04.src="images/nichts.bmp";
  ++zaehler; if (zaehler <= Anzahl)
    document.Bild_05.src="images/nichts.bmp";
  ++zaehler; if (zaehler <= Anzahl)
    document.Bild_06.src="images/nichts.bmp";
  ++zaehler; if (zaehler <= Anzahl)
    document.Bild_07.src="images/nichts.bmp";
  ++zaehler; if (zaehler <= Anzahl)
    document.Bild_08.src="images/nichts.bmp";
  ++zaehler; if (zaehler <= Anzahl)
    document.Bild_09.src="images/nichts.bmp";
  ++zaehler; if (zaehler <= Anzahl)
    document.Bild_10.src="images/nichts.bmp";
  }
 
  function CheckAuswahl(Lektion, Uebung, Anzahl, frage01, frage02, frage03, frage04, frage05, frage06, frage07, frage08, frage09, frage10)
  {
  var richtig=0;
  var zaehler=0;
  ++zaehler; if (zaehler <= Anzahl)
    if (document.Testform.Auswahl_01.selectedIndex == frage01)
      {document.Bild_01.src="images/richtig.bmp"; ++richtig;}
    else
      {document.Bild_01.src="images/falsch.bmp";}
  ++zaehler; if (zaehler <= Anzahl)
    if (document.Testform.Auswahl_02.selectedIndex == frage02)
      {document.Bild_02.src="images/richtig.bmp"; ++richtig;}
    else
      {document.Bild_02.src="images/falsch.bmp";}
  ++zaehler; if (zaehler <= Anzahl)  
    if (document.Testform.Auswahl_03.selectedIndex == frage03)
      {document.Bild_03.src="images/richtig.bmp"; ++richtig;}
    else
      {document.Bild_03.src="images/falsch.bmp";}
  ++zaehler; if (zaehler <= Anzahl)
    if (document.Testform.Auswahl_04.selectedIndex == frage04)
      {document.Bild_04.src="images/richtig.bmp"; ++richtig;}
    else
      {document.Bild_04.src="images/falsch.bmp";}
  ++zaehler; if (zaehler <= Anzahl)
    if (document.Testform.Auswahl_05.selectedIndex == frage05)
      {document.Bild_05.src="images/richtig.bmp"; ++richtig;}
    else
      {document.Bild_05.src="images/falsch.bmp";}
  ++zaehler; if (zaehler <= Anzahl)
    if (document.Testform.Auswahl_06.selectedIndex == frage06)
      {document.Bild_06.src="images/richtig.bmp"; ++richtig;}
    else
      {document.Bild_06.src="images/falsch.bmp";}
  ++zaehler; if (zaehler <= Anzahl)
    if (document.Testform.Auswahl_07.selectedIndex == frage07)
      {document.Bild_07.src="images/richtig.bmp"; ++richtig;}
    else
      {document.Bild_07.src="images/falsch.bmp";}
  ++zaehler; if (zaehler <= Anzahl)  
    if (document.Testform.Auswahl_08.selectedIndex == frage08)
      {document.Bild_08.src="images/richtig.bmp"; ++richtig;}
    else
      {document.Bild_08.src="images/falsch.bmp";}
  ++zaehler; if (zaehler <= Anzahl)
    if (document.Testform.Auswahl_09.selectedIndex == frage09)
      {document.Bild_09.src="images/richtig.bmp"; ++richtig;}
    else
      {document.Bild_09.src="images/falsch.bmp";}
  ++zaehler; if (zaehler <= Anzahl)  
    if (document.Testform.Auswahl_10.selectedIndex == frage10)
      {document.Bild_10.src="images/richtig.bmp"; ++richtig;}
    else
      {document.Bild_10.src="images/falsch.bmp";}
  if (richtig == Anzahl)
    alert("Sehr gut ! Sie haben alle Fragen richtig beantwortet !")
  else
    alert(richtig + " von " + Anzahl + " Fragen sind richtig beantwortet.");
  }

