function winOpen(url, dWidth, dHeight) {
   window.open(url,'win', 'menubar = no, toolbar = no, scrollbars = no, left=0, top=0, fullscreen = no, width='+ dWidth +', height='+ dHeight +', resizable = no');
}

function winClose() {
	window.close(); 
}

function toggleMenuGroup(idGroup) {
   var divMenuGroup = document.getElementById(idGroup);
   
   if(divMenuGroup.style.display == "none") {
      document.getElementById('menuBand').style.display = "none";
      document.getElementById('menuMedia').style.display = "none";
      document.getElementById('menuGigs').style.display = "none";
      document.getElementById('menuPics').style.display = "none";
   
      divMenuGroup.style.display = "block";
   } else {
      divMenuGroup.style.display = "none";
   }
}

function textCounter(field, maxlimit) {
   if(field.value.length > maxlimit) {
      field.value = field.value.substring(0, maxlimit-1);
      //alert("Treść jest ograniczona do "+maxlimit+" znaków!");
      return false;
  }
}

function showLyrics(name) {
   document.getElementById('void').style.display = "none";
   document.getElementById('sandbox').style.display = "none";
   document.getElementById('turbo').style.display = "none";
   document.getElementById('rot').style.display = "none";
   document.getElementById('yellon').style.display = "none";
   document.getElementById('essence').style.display = "none";

   document.getElementById(name).style.display = "block";
}
