function zoom(className,cont)
{
 document.getElementById(cont).className=className;
 return false;
}

function hidden(cont1,cont2,class1,class2,txt1,txt2)
{
 if (document.getElementById(cont1).className!=class1+' '+class2)
  {
   document.getElementById(cont1).className=class1+' '+class2;
   document.getElementById(cont2).style.display='none';
   document.getElementById(cont1).getElementsByTagName('td')[1].innerHTML=txt2;
  }
 else
  {
   document.getElementById(cont1).className=class1;
   document.getElementById(cont2).style.display='';
   document.getElementById(cont1).getElementsByTagName('td')[1].innerHTML=txt1;
  }
}


function Drukuj(Width, Height, Object) {
  aw=800;
  ah=600;
  if(window.screen) {
    aw = screen.availWidth;
    ah = screen.availHeight;
  }
  Options = "width="+Width+",height="+Height+",left="+(aw-Width)/2+",top="+(ah-Height)/2+",toolbar=no,location=no,directories=no,"+"status=no,menubar=no,"+"scrollbars=yes,resizable=no";
  window.open(Object,'Drukuj',Options);
}


function CheckFields() {
  if(document.user.nick.value == "" || document.user.passphrase.value == "") {
    alert("Proszę wypełnić pola 'login' oraz 'hasło'");
    return false;
  }
  document.user.submit();
}
