function reportjavalib() { if (test) { alert('Loaded ' + javalibfilename) } } // ------------------------------------------- javalibfilename = "testdata.js" reportjavalib() // ------------------------------------------- function doiq( aa, bb ) { if (test) { alert('kalder initquestions') } iq( "rnbqkbnr;pppppppp;8;8;8;8;PPPPPPPP;RNBQKBNR", "Opening position" ) //iq( "8;pppppppp;8;8;P7;8;1PPPPPPP;8", // "(rarely played)" ) iq( "8;pppppppp;8;8;1P6;8;P1PPPPPP;8", "Sokolsky System, or Gorilla O." ) iq( "8;pppppppp;8;8;2P5;8;PP1PPPPP;8", "English" ) iq( "8;pppppppp;8;8;3P4;8;PPP1PPPP;8", "So-called 'closed' opening" +"\n(but it may lead to an open play)" ) iq( "8;pppppppp;8;8;4P3;8;PPPP1PPP;8", "So-called 'open' opening" +"\n(but it may lead to a closed play)" ) iq( "8;pppppppp;8;8;5P2;8;PPPPP1PP;8", "Bird's O." ) //iq( "8;pppppppp;8;8;6P1;8;PPPPPP1P;8", // "(rarely played)" ) //iq( "8;pppppppp;8;8;7P;8;PPPPPPP1;8", // "(rarely played)" ) iq( "8;pppppppp;8;8;8;P7;1PPPPPPP;8", "Anderssen Opening" ) iq( "8;pppppppp;8;8;8;1P6;P1PPPPPP;8", "Larsen-Nimzowitsch Opening" ) iq( "8;pppppppp;8;8;8;2P5;PP1PPPPP;8", "Saragossa Opening" ) //iq( "8;pppppppp;8;8;8;3P4;PPP1PPPP;8", // "(rarely played)" ) //iq( "8;pppppppp;8;8;8;4P3;PPPP1PPP;8", // "(rarely played)" ) //iq( "8;pppppppp;8;8;8;5P2;PPPPP1PP;8", // "(rarely played)" ) iq( "8;pppppppp;8;8;8;6P1;PPPPPP1P;8", "King's Fianchetto in the forehand" ) //iq( "8;pppppppp;8;8;8;7P;PPPPPPP1;8", // "(rarely played)" ) iq( "8;pppppppp;8;8;8;2N5;PPPPPPPP;8", "Ekebjærg Opening" ) iq( "8;pppppppp;8;8;8;5N2;PPPPPPPP;8", "Zukertort Opening" ) iq( "8;pppppppp;8;8;8;7N;PPPPPPPP;8", "Tartakower Opening" ) } // ------------------------------------------- var wwqval = "From board to name" var wwaval = "From name to board" // ------------------------------------------- var thetitle = "Basic Chess Openings" var testauthor = "Mike L. Griebel" var testauthorshort = "Griebel" var headerpq = "Chess board" var headerpa = "Opening name" var stoplocation = "http://www.geocities.com/mikegriebel/chess/" var veryeasybval = "5 spørgsmål" var easybval = "10" var hardbval = "20" var megahardbval = "Alle spørgsmål" var veryeasybonclick = "setmax(5)" var easybonclick = "setmax(10)" var hardbonclick = "setmax(20)" var megahardbonclick = "setmax(absmax)" var showifwhitetomoveval = "White to move" var showifblacktomoveval = "Black to move" var showifanytomoveval = "Any to move" reportjavalib() function testkeywords() { res = "" res += "Griebel" res += ", chess" res += ", openings" res += ", opening" res += ", " return res } // ------------------------------------------- if (test) { alert('def. iq') } function iq( aa, bb ) { if (test) { alert('kalder initquestions for alvor') } initquestions ( aa, bb ) if (test) { alert('tilbage fra initquestions') } } if (test) { alert('def. doiq') } if (test) { alert('efter def. doiq') } // end 1