/*
* Nazwa pliku : global.js
* Zawiera funkcjonalność JavaScriptów 
* Autor : Robert Dyzman
* e-mail : robert_programy@interia.pl
* data : czerwiec 2003
*/
/*
belka = "";
link = "";
sc = location.href.substring(7).split("/");
for (i=0;i<sc.length;i++) {
  link += "/"+sc[i];
  belka += "&gt; " + '<a href="http:/'+link+'">'+sc[i] + "</a> ";
}
*/
function openLoginPopup(URL) {
  newLoginPopup = window.open(URL,'popup', 'width=205,height=205,screenX=450,screenY=450,left=550,top=300, scrollbars=yes');
 // newLoginPopup = window.open(URL,'popup','width=205,height=205,screenX=450,screenY=450,left=550,top=300,menubar=yes, addressbar=yes, resizable=yes,status=yes, toolbar=yes,scrollbars=yes');
}
function szyfruj(ePassword, liczba) {
                             EncPassword=hex_md5(ePassword.value);
                             if (liczba==1) {
                                                        document.logowanie.sPassword.value=EncPassword;
                                                        window.location="login.php";
                                                       //window.location="index_uz.php";
                             } else{
                                                        document.logowanie.not_enc_Pass.value=ePassword.value;
                                                         document.logowanie.sPassword.value=EncPassword;
                                                          window.location="users.php";
                             }
}

function pokaz() {
  if (nr_linijki>=tekst.length) nr_linijki=0;
  if (nr_znaku>=tekst[nr_linijki].length) { 
    nr_znaku=0; 
    nr_linijki++;
    napis="";
    stop=op_linijki;
  }
  else {
    napis += tekst[nr_linijki].charAt(nr_znaku);
    nr_znaku++;
    document.getElementById("tutaj").innerHTML = napis;
    stop=op_znaku;
  }
  setTimeout("pokaz()",stop)
}
