function init() { chessboard = document.getElementById("chessboard"); chessboard.onmousedown = function(){ return false }; captured = document.getElementById("captured"); captured.onmousedown = function(){ return false }; var t = document.getElementsByTagName("td"); for (var d = 0;d