function reportjavalib() { if (test) { alert('Loaded ' + javalibfilename) } } // ------------------------------------------- javalibfilename = "testdata.js" reportjavalib() // ------------------------------------------- var wwqval = "From board to opening" var wwaval = "From opening to board" // ------------------------------------------- var thetitle = "Basic Chess Openings" var testauthor = "Mike L. Griebel" var testauthorshort = "Griebel" var headerpq = "Board" var headerpa = "Opening" var stoplocation = "http://www.geocities.com/mikegriebel/chess/" var veryeasybval = "5 questions" var easybval = "10" var hardbval = "20" var megahardbval = "All questions" var veryeasybonclick = "setmax(5)" var easybonclick = "setmax(10)" var hardbonclick = "setmax(20)" var megahardbonclick = "setmax(absmax)" var rotateboardval = "Turn the board" var whoseturnval = "Next 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') } } // end 1