function spel_popUp(target, URL, nr) {
  target = target.replace(/ /g,"_")
  window.open(URL, target+'bord'+nr, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=1000,height=650,left=0,top=0');
}

function openLobby(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=505,left = 174.5,top = 84');");
}

function toggle(objName) {
  obj = document.getElementById(objName);
  if (obj.style.display != "block") {
    obj.style.display = "block";
  } else {
    obj.style.display = "none";
  }
}
