var filesadded = ""; var state1 = '#000000'; var state2 = '#FFFFFF'; function avatar(ava) { for (var i = 1; i < 17; i++) { var thiscell = document.getElementById('avatar' + i); if (ava == i) { createplyr.av.value = i; thiscell.style.backgroundColor = state2; } else { thiscell.style.backgroundColor = state1; } } } function checkthis(msg) { var answer = confirm(msg); if (answer) { return true; } else { return false; } } function games() { var url = document.location.href; var xend = url.lastIndexOf("/") + 1; var base_url = url.substring(0, xend); // friss lekérés minden alkalommal (nincs böngésző-cache), és csak a #gamelist // tartalma frissül, nem tölt be új