function SetSave() {
   if (zmiana) document.getElementById('klSave').disabled=false;
   }

function zm_hasla() {
   if (document.getElementById('f_k_ha_s').value == '') {
      document.getElementById('f_k_ha1').readOnly=true;
      document.getElementById('f_k_ha2').readOnly=true;
      } else {
      document.getElementById('f_k_ha1').readOnly=false;
      document.getElementById('f_k_ha2').readOnly=false;
      }
   }

function setCookie(nazwa, wartosc, expire) {
   if (expire==null) {
     exp=expire;
   } else {
    exp = new Date();
    exp.setTime(exp.getTime() + (expire*1000));
    }
   document.cookie = nazwa + "=" + escape(wartosc) + ((exp==null)?"" : ("; expires=" + exp.toGMTString()));
   }

function getCookie(nazwa) {
   if (document.cookie!="") {
      var toCookie=document.cookie.split("; ");
      var i;
      for (i=0; i<toCookie.length; i++) {
          var nazwaCookie=toCookie[i].split("=")[0];
          var wartoscCookie=toCookie[i].split("=")[1];
          if (nazwaCookie==nazwa) return unescape(wartoscCookie);
          }
      }
   }

function delCookie(nazwa) {
   var teraz = new Date();
   teraz.setTime(teraz.getTime() - 1 );
   document.cookie = nazwa += "=; expires=" + teraz.toGMTString();
   }

function getCooks() {
   if (document.cookie!="") {
      toCookie = document.cookie.split("; ");
      document.write("Ilosc cookie: <strong>" +toCookie.length+ "</strong><BR>");
      for (i=0; i<toCookie.length; i++) {
         document.write("Nazwa cookie " +i+ ": <strong>" +toCookie[i].split("=")[0]+ "</strong><BR>");
         document.write("Wartosc cookie " +i+ ": <strong>" +toCookie[i].split("=")[1]+ "</strong><BR>");
         }
       } else {
        document.write('Nie ma zadnych cookie');
     }
   }

function tt() {

   }


//function Delete_Cookie( name, path, domain ) {
//if ( Get_Cookie( name ) ) document.cookie = name + "=" +
//( ( path ) ? ";path=" + path : "") +
//( ( domain ) ? ";domain=" + domain : "" ) +
//";expires=Thu, 01-Jan-1970 00:00:01 GMT";
//}
   

