var antw = new Array;
var antw2 = new Array;
var aw = "";
var bwrt = new Array;
var erledigt = new Array;
var stand = 0;
var bearbeitet = 0;

antw[1] = "C";
antw[2] = "D";
antw[3] = "B";
antw[4] = "D";
antw[5] = "A";
antw[6] = "B";
antw[7] = "C";
antw[8] = "B";
antw[9] = "A";
antw[10] = "D";
antw[11] = "B";
antw[12] = "D";
antw[13] = "C";
antw[14] = "D";
antw[15] = "B";
antw[16] = "D";
antw[17] = "A";
antw[18] = "B";
antw[19] = "C";
antw[20] = "A";
antw[21] = "C";
antw[22] = "A";
antw[23] = "B";
antw[24] = "A";
antw[25] = "C";

antw2[1] = "Der Schut) (The Shoot";
antw2[2] = "Der Schatz im Silbersee)  (Treasure of Silverlake";
antw2[3] = "Der Ölprinz) (Rampage at Apache Wells";
antw2[4] = "Das Vermächtnis des Inka)  (Viva Gringo";
antw2[5] = "Winnetou 1. Teil) (Apache Gold";
antw2[6] = "Unter Geiern)   (Frontier Hellcat";
antw2[7] = "Winnetou 2. Teil)  (Last of the Renegades";
antw2[8] = "Die Pyramide des Sonnengottes)  (Treasure of the Aztecs (2nd Half";
antw2[9] = "Der Schatz der Azteken)  (Treasure of the Aztecs (1nd Half";
antw2[10] = "Im Reiche des silbernen Löwen)  (Fury of the Sabers";
antw2[11] = "Old Shatterhand)  (Apaches´last Battle";
antw2[12] = "Old Surehand 1. Teil)   (Flaming Frontier";
antw2[13] = "Winnetou und das Halbblut Apanatschi)  (The Half Breed";
antw2[14] = "Winnetou und sein Freund Old Firehand)  (Thunder at the Border";
antw2[15] = "Winnetou 3. Teil)  (The Desperado Trail";
antw2[16] = "Winnetou und Shatterhand im Tal der Toten)  (Valley of the Death";
antw2[17] = "Durchs wilde Kurdistan)  (Wild Men of Kurdistan";
antw2[18] = "Winnetou 3. Teil)  (The Desperado Trail";
antw2[19] = "Winnetou 2. Teil)  (Last of the Renegades";
antw2[20] = "Winnetou und sein Freund Old Firehand)  (Thunder at the Border";
antw2[21] = "Winnetou 1. Teil)  (Apache Gold";
antw2[22] = "Old Surehand 1. Teil)   (Flaming Frontier";
antw2[23] = "Unter Geiern)  (Frontier Hellcat";
antw2[24] = "Der Ölprinz)  (Rampage at Apache Wells";
antw2[25] = "Durchs wilde Kurdistan)  (Wild Men of Kurdistan";

bwrt[0] = "Das war nur ein Test. Schau Dir aber mal einen Film an!<br>This was only a Test. You have to watch a film!<br><br>Code: ZX0000Z";
bwrt[1] = "Oh, nur 1 Treffer! Schau Dir die Filme mal an!<br>Oh, only 1 Hit! You have to watch some films!<br><br>Code: A00401Y";
bwrt[2] = "Oh, nur 2 Richtige! Schau Dir die Filme mal an!<br>Oh, only 2 Hits! You have to watch some films!<br><br>Code: B00802X";
bwrt[3] = "Oh, nur 3 Richtige! Schau Dir die Filme mal an!<br>Oh, only 3 Hits! You have to watch some films!<br><br>Code: C01203W";
bwrt[4] = "Oh, nur 4 Richtige! Schau Dir einige Filme mal an!<br>Oh, only 4 Hits! You have to watch some films!<br><br>Code: D0164V";
bwrt[5] = "Oh, nur 5 Richtige! Schau Dir einige Filme mal an!<br>Oh, only 5 Hits! You have to watch some films!<br><br>Code: E02005U";
bwrt[6] = "Mit 6 Treffern hast Du bereits einige Filme gesehen!<br>Oh, only 6 Hits! You have seen some films!<br><br>Code: F02406T";
bwrt[7] = "Eine schwache Leistung, aber Du kennst bereits einige Filme!<br>Not so good, but You have seen some films!<br><br>Code: G02807S";
bwrt[8] = "Eine etwas schwache Leistung, aber Du kennst bereits einige Filme!<br>Not so good, but You have watch some films!<br><br>Code: H03208R";
bwrt[9] = "Mit 9 Treffern geh&ouml;rst Du leider noch nicht zu den Kennern!<br>Oh, only 9 Hits! You have to watch some films!<br><br>Code: I03609Q";
bwrt[10] = "Mit 10 Treffern geh&ouml;rst Du leider noch nicht zu den Kennern!<br>Oh, only 10 Hits! You have to watch some films!<br><br>Code: J04010P";
bwrt[11] = "Mit 11 Treffern geh&ouml;rst Du leider noch nicht zu den Kennern!<br>Oh, only 11 Hits! You have to watch some films!<br><br>Code: K04411O";
bwrt[12] = "Fast die Hälfte richtig, aber es gibt noch viele Wissensl&uuml;cken!<br>Ok, less than the Half. But You know some films!<br><br>Code: L04812N";
bwrt[13] = "Mehr als die Hälfte richtig. Du bist ein halber Experte!<br>Ok, more than the Half.You are an half Expert!<br><br>Code: M05213M";
bwrt[14] = "Eine ausreichende Leistung, aber es gibt noch viele Wissensl&uuml;cken!<br>Not so bad this test, You know some films!<br><br>Code: N05614L";
bwrt[15] = "Eine ausreichende Leistung, aber es gibt noch ein paar Wissensl&uuml;cken!<br>Not so bad this test, You know some films!<br><br>Code: O06015K";
bwrt[16] = "Mit 16 Treffern geh&ouml;rst Du in jedem Fall zu den Kennern!<br>16 Hits is a good result. You know most films!<br><br>Code: P06416J";
bwrt[17] = "Mit 17 Treffern geh&ouml;rst Du in jedem Fall zu den Kennern!<br>17 Hits is a good result. You know most films!<br><br>Code: Q06817I";
bwrt[18] = "Mit 18 Treffern geh&ouml;rst Du in jedem Fall zu den Kennern!<br>18 Hits is a good result. You know most films!<br><br>Code: R07218H";
bwrt[19] = "Mit 19 Treffern geh&ouml;rst Du in jedem Fall zu den Kennern!<br>19 Hits is a good result. You know most films!<br><br>Code: S07619G";
bwrt[20] = "Mit 20 Treffern geh&ouml;rst Du in jedem Fall noch zu den Kennern!<br>20 Hits is a good result. You know most films!<br><br>Code: T08020F";
bwrt[21] = "Gl&uuml;ckwunsch! Nur 4 Fehler! Du bist ein Experte!<br>Congratulations! Only 4 faults! You are an Expert!<br><br>Code: U08421E";
bwrt[22] = "Gl&uuml;ckwunsch! Nur 3 Fehler! Du bist ein Experte!<br>Congratulations! Only 3 faults! You are an Expert!<br><br>Code: V08822D";
bwrt[23] = "Gl&uuml;ckwunsch! Nur 2 Fehler!<br>Du bist ein Experte! Congratulations! Only 2 faults! You are an Expert!<br><br>Code: W09223C";
bwrt[24] = "Gl&uuml;ckwunsch! Nur 1 Fehler! Du bist fast ein Super-Experte!<br>Congratulations, all 25 only missed by one fault. You are an Expert!<br><br>Code: X09624B";
bwrt[25] = "Gl&uuml;ckwunsch! Du bist ein Super-Experte!<br>Congratulations! You are an Super Expert!<br><br>Code: Y10025A";

function Kwizz(frage, antwort) {

if (antwort != antw[frage]) {
        if (!erledigt[frage]) {
                erledigt[frage] = -1;
                bearbeitet++;
                document.quiz.Richtig.value = stand + ' von ' + bearbeitet + ' Antworten!'
                aw=aw + "<tr bgcolor=#ffa0a0><td valign=top><font size=2><b>Frage (Question) " + frage + ":</b></font></td>";
                aw=aw + "<td><font size=2><b>Antwort Answer &quot;" + antwort + "&quot; ist falsch! is wrong!</b><br>";
                aw=aw + "Richtig w&auml;re Antwort Right would be Answer &quot;" + antw[frage] + "&quot; (" + antw2[frage] + ")</font></td></tr>";
                }
        else {
                alert("Guter Versuch, die Frage wurde jedoch schon beantwortet! Good Try, But You have already answered this question!");
                }
        }
else {
        if (!erledigt[frage]) {
                erledigt[frage] = -1;
                stand++;
                bearbeitet++;
                document.quiz.Richtig.value = stand + ' von ' + bearbeitet + ' Antworten!'
                aw=aw + "<tr bgcolor=#a0ffa0><td valign=top><font size=2><b>Frage (Question) " + frage + ":</b></font></td>";
                aw=aw + "<td><font size=2>Korrekt beantwortet (Correct!) (" + antw2[frage] + ")</font></td></tr>";
                }
        else {
                alert("Guter Versuch, die Frage wurde jedoch schon beantwortet! Good Try, But You have already answered this question! ");
                }
        }
}

function NxLv () {
if (bearbeitet <25) {
        alert("Was soll denn das jetzt?\nDu hast ja nicht mal alle Fragen beantwortet! No, no?\nYou have not answered all!");
        return false;
        }
var auswert=open("quizkmf.html","auswertung","width=800,menubar=no,resizeable=yes,scrollbars=yes,status=no");
var hc="<html><head><title>Auswertung (Score)</title><body bgcolor=white text=blue link=red alink=magenta vlink=darkred>";
hc = hc + "<div align=center><font size=6 color=red><b>Quiz-Auswertung (Quiz Score)</b></font></div>";
hc = hc + "<div align=center>";
hc = hc + "<table border=0 cellspacing=0 cellpadding=5 width=800>";
hc = hc + aw + "</table>";
var prozent = Math.round(stand * 1000 / bearbeitet);
prozent=prozent / 10;
hc = hc + "<font size=4>Du hast genau</font><font size=5 color=red><b> " + prozent;
hc = hc + " Prozent</b></font> <font size=4>der Fragen richtig beantwortet!<br>You have</font><font size=5 color=red><b> " + prozent;
hc = hc + " percent</b></font> <font size=4> right answered!<br>";
hc = hc + "<font size=4 color=black><b>" + bwrt[stand] + " </b></font><br><br>";
hc = hc + "<form><input type=button value='Fenster schlie&szlig;en - close window' onClick='window.close();'>";
hc = hc + "</form>"
hc = hc + "</div></body></html>";
auswert.document.write(hc);
}



