function checkpass()
{
 var pasd = "belfer"; //-- Hasło.
 var location = "belfer.html"; //--Plik docelowy

 if(!document.getElementById("passwd").value)
 {
  alert("Nie podano hasła");
 }
 else
 {
 
  if(document.getElementById("passwd").value.toLowerCase()==pasd.toLowerCase())
  {
  document.location.href = location;
  }
  else
  {
   alert("Błędne hasło");
  }
 }
}