function fontsize (object, value) { switch (value.length) { case 1: object.style.paddingTop = "0px"; object.style.fontSize = "30px"; break; case 2: object.style.paddingTop = "3px"; object.style.fontSize = "26px"; break; case 3: object.style.paddingTop = "5px"; object.style.fontSize = "22px"; break; case 4: object.style.paddingTop = "8px"; object.style.fontSize = "16px"; break; case 5: object.style.paddingTop = "9px"; object.style.fontSize = "14px"; break; } object.value = value; } function checkMySudoku() { var theSec=new Sudoku(); anzSols=0; for (var i=0; i<81; ++i) { var o=document.getElementById("i"+i) var v=o.value if (v>="1" && v<="9" && o.readOnly == true) { theSec.vlu(i, parseInt(v)); } } var rsp=theSec.sss(); var ans="
No solution<\/p>"; if (anzSols > 0) { ans=bs.cit(); } else { alert ("Ungültiges Sudoku Puzzle"); } } function checkMySudoku2() { var theSec=new Sudoku(); anzSols=0; for (var i=0; i<81; ++i) { var o=document.getElementById("i"+i) var v=o.value if (v>="1" && v<="9") { theSec.vlu(i, parseInt(v)); } else { alert (unescape("Sudoku Puzzle ist nicht korrekt gel%F6st.")); return; } } var rsp=theSec.sss(); var ans="
No solution<\/p>"; if (anzSols > 0) { alert(unescape("Herzlichen Gl%FCckwunsch. Sie haben das Sudoku erfolgreich gel%F6st.%0AKlicken Sie OK um am Wettbwerb teil zu nehmen.")); document.formsudoku.submit(); } else { ans=bs.cit(); alert (unescape("Sudoku Puzzle ist nicht korrekt gel%F6st.")); } } function solveMySudoku() { var style; var theSec=new Sudoku(); anzSols=0; for (var i=0; i<81; ++i) { var v=document.getElementById("i"+i).value var o=document.getElementById("i"+i) if (v>="1" && v<="9" && o.readOnly == true) { theSec.vlu(i, parseInt(v)); } } var rsp=theSec.sss(); var ans="
No solution<\/p>"; if (anzSols > 0) { var ans=""; var data = bs.gdt (); for (var y=0; y<9; ++y) { ans=ans+"