index.html  |  resources.html  |  resources.js  |  workspace.html  |  workspace.js  |  reset.html  |  reset.js  |  sql-code.html  |  sql-code.js

function applySettings() {
  var
    frWsp = window.opener.top.frames[0],
    tmp = document.settings.sel_resTp.options;
  frWsp.mapSize.x = document.settings.size_x.value - 0;
  frWsp.mapSize.y = document.settings.size_y.value - 0;
  frWsp.mapDefaultRes = tmp[tmp.selectedIndex].value;
  frWsp.clearMap();
  frWsp.initMap();
}