<!--
function displayWindow(url, width, height, left) {
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',toolbar=no, menubar=no, scrollbars=yes, resizable=yes, status=no, location=no, directories=no, top=230,left=' + left + ', fullscreen=no,' );
}

function downloadWindow(nazwa) {
  var kat = document.getElementById(nazwa).name;
  var plik = document.getElementById(nazwa).value; 
  if(plik!='Wybierz program z listy ...') var Win = window.open('download.php?plik=download/' + kat + '/' + plik ,"displayWindow",'width=570,height=140,toolbar=no, menubar=no, scrollbars=yes, resizable=yes, status=no, location=no, directories=no, top=230,left=240, fullscreen=no,' );  
}

function wyslij() {
  document.faktury.submit();
}

function sprawdz(){

  if(document.faktury.zgoda.checked!=true){
   alert("Otrzymywanie faktur drog± elektroniczn± jest możliwe po uprzedniej zgodzie klienta.");
  }else{
   document.faktury.submit();
  }
  
}

function spr_form(){

  var spr=0;
  if(document.podlaczenie.personalia.value==''){
   spr=1;
  }

  if(document.podlaczenie.adres.value==''){
   spr=1;
  }
  if(document.podlaczenie.telefon.value==''){
   spr=1;
  }

  if(spr!=1){
   document.podlaczenie.submit();
  }else{
   alert("Proszę wypełnić wszystkie pola.");
  }

}

//script by Clarence Eldefors http://www.cerebuswebmaster.com
var speed = 10;
var step = 100;
var hide = 60000;
var moveto = 310;

// Do not edit below this line
var left = 0;
function movein(){
  if (document.layers) {
        document.layers['message'].pageX = window.pageXOffset + left;
        left+=step;
        if(left<moveto){ setTimeout('movein()',speed); }
        else { setTimeout('closemessage()',hide); }
    }
   
  else{
document.getElementById('message').style.left=left+'px';
left+=step;
if(left<moveto){ setTimeout('movein()',speed); }
else { setTimeout('closemessage()',hide); }
  }
}
function closemessage(){
        if (document.layers) {document.layers['message'].visibility='hidden';}
        else{document.getElementById('message').style.visibility='hidden';}
}

// Autorem skryptu jest: SŁAWOMIR KOKŁOWSKI
// www.kurshtml.boo.pl
// Je¶li chcesz wykorzystać ten skrypt na swojej stronie, nie usuwaj tego komentarza!

function flash(id, kolor, czas, kolor2, czas2)
{
  if (document.getElementById)
  {
    document.getElementById(id).style.color = kolor;
    setTimeout('flash("' +  id + '","' + kolor2 + '",' + czas2 + ',"' + kolor + '",' + czas + ')', czas);
  }
  else if (document.all)
  {
    document.all[id].style.color = kolor;
    setTimeout('flash("' +  id + '","' + kolor2 + '",' + czas2 + ',"' + kolor + '",' + czas + ')', czas);
  }
}
//-->
