   <!--
   function getXMLHttpRequestObject()
  {
   if (window.XMLHttpRequest)
   {
    return new XMLHttpRequest();
   }
   else if (window.ActiveXObject)
   {
    try
    {
     return new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch (e)
    {
     try
     {
      return new ActiveXObject("Microsoft.XMLHTTP");
     }
     catch (e)
     {
      return false;
     }
    }
   }
  }

  function oblicz()
  {
   var XMLHttpRequestObject = getXMLHttpRequestObject();
    if(XMLHttpRequestObject)
    {
      document.forms.formularz.przelicz.disabled=true;

      var jezyk=document.forms.formularz.language.value;
      var iloscS=document.forms.formularz.iloscS.value;
      var iloscB=document.forms.formularz.iloscB.value;
      var iloscK=document.forms.formularz.iloscK.value;

       var tablica=[];
       var j=0;

       for(var i=0; i<iloscS; i++)
       {
         j++;
         tablica[i]=document.getElementById('s'+j).value;
       }

       
    /* var iloscU=document.forms.formularz.umowa.length;
     if(iloscU==undefined)
     {
       if (document.forms.formularz.umowa.checked) {
           var umowa=document.forms.formularz.umowa.value;
        }
     }
     else
     {
     for(i=0; iloscU>i; i++) {
        if (document.forms.formularz.umowa[i].checked) {
           var umowa=document.forms.formularz.umowa[i].value;
        }
      }
     } */
     var umowa=document.forms.formularz.umowa.value;
     
     var t_location1=document.forms.formularz.t_location1.value;
     var t_location2=document.forms.formularz.t_location2.value;
     var t_location3=document.forms.formularz.t_location3.value;
     var t_location4=document.forms.formularz.t_location4.value;

     var t_achat1=document.forms.formularz.t_achat1.value;
     var t_achat2=document.forms.formularz.t_achat2.value;
     var t_achat3=document.forms.formularz.t_achat3.value;
     var t_achat4=document.forms.formularz.t_achat4.value;
     
     var ch_location0=document.forms.formularz.ch_location0.value;
     var ch_location2=document.forms.formularz.ch_location2.value;
     var ch_location3=document.forms.formularz.ch_location3.value;
     var ch_location4=document.forms.formularz.ch_location4.value;
     
     var ch_achat0=document.forms.formularz.ch_achat0.value;
     var ch_achat2=document.forms.formularz.ch_achat2.value;
     var ch_achat3=document.forms.formularz.ch_achat3.value;
     var ch_achat4=document.forms.formularz.ch_achat4.value;

     var iloscPaczki=document.forms.formularz.paczka.length;
     for(k=0; iloscPaczki>k; k++) {
        if (document.forms.formularz.paczka[k].checked) {
           var paczka=document.forms.formularz.paczka[k].value;
        }
       }
     if(paczka==undefined){
         var paczka=0;
     }

     var url='';
      var div=null;

      url="form/form/inc/oblicz.php?iloscB="+iloscB+"&iloscK="+iloscK+"&t_location1="+t_location1+"&t_location2="+t_location2+"&t_location3="+t_location3+"&t_location4="+t_location4+"&t_achat1="+t_achat1+"&t_achat2="+t_achat2+"&t_achat3="+t_achat3+"&t_achat4="+t_achat4+"&ch_location0="+ch_location0+"&ch_location2="+ch_location2+"&ch_location3="+ch_location3+"&ch_location4="+ch_location4+"&ch_achat0="+ch_achat0+"&ch_achat2="+ch_achat2+"&ch_achat3="+ch_achat3+"&ch_achat4="+ch_achat4+"&umowa="+umowa+"&paczka="+paczka+"&jezyk="+jezyk+"&stojak="+tablica+"&iloscS="+iloscS;
       var div=document.getElementById('wyswietl');

      XMLHttpRequestObject.open("GET",url);
      //XMLHttpRequestObject.setRequestHeader('Content-Type','application/x-www-form-urlencoded');

      XMLHttpRequestObject.onreadystatechange= function()
      {
        if(XMLHttpRequestObject.readyState == 4)
        {
          if(XMLHttpRequestObject.status == 200)
          {
           
          div.innerHTML = XMLHttpRequestObject.responseText;
          }
          delete XMLHttpRequestObject;
          XMLHttpRequestObject = false;
          document.forms.formularz.przelicz.disabled=false;
     }
      }
     XMLHttpRequestObject.send(null);

    }

  }

  function aktywne1()
  {
   document.getElementById('i').value="";
  }
  function aktywne2()
  {
   document.getElementById('k').value="";
  }
  function aktywne3(k)
  {
   document.getElementById('s'+k).value="";
  }		

  function umowa(umowa)
  {
   if(umowa!=1234)
   {
    var iloscU=document.forms.formularz.umowa.length;
    if(iloscU==undefined)
    {
    document.forms.formularz.umowa.checked=true;
    }
    else
    {
    document.forms.formularz.umowa[umowa].checked=true;
    }
   }

  }
  function pole()
  {
    if(document.getElementById('p').checked==true)
    {
     document.getElementById('pole').style.display="block";
    }
    else
    {
     document.getElementById('pole').style.display="none";
    }
  }
  function box(val)
  {
    if(val==1)
    {
      document.getElementById('pole').style.display="block";
      document.getElementById('p').checked=true;
    }
    else
    {
     document.getElementById('pole').style.display="none";
     document.getElementById('p').checked=false;
    }
  }
  function box1(val1)
  {
    if(val1==1)
    {
      document.getElementById('a').checked=true;
    }
    else
    {
     document.getElementById('a').checked=false;
    }
  }
  function box2(val2)
  {
    if(val2==1)
    {
      document.getElementById('a1').checked=true;
    }
    else
    {
     document.getElementById('a1').checked=false;
    }
  }
  /*function blokada(b)
  {
    if(b==1 && b!=1234)
    {
     document.getElementById('i').disabled=true;
     document.getElementById('i').value='';
    }
    else
    {
     document.getElementById('i').disabled=false;
    }
  } */

function print(id)
      {
	var w=650;
	var h=690;
      var winleft = (screen.width - w) / 2;
	var wintop = (screen.height - h) / 2;
	
      var ogo=null;
      ogo=window.open("form/form/print.php?id="+id+"","Eden","left="+winleft+",top="+wintop+",width="+w+",height="+h+",scrollbars=1, resizable=1");


      ogo.focus();
       }
 function info(n)
      {
	var w=520;
	var h=150;
      var winleft = (screen.width - w) / 2;
	var wintop = (screen.height - h) / 2;
	
      var ogo=null;
      ogo=window.open("form/form/info.php?l="+n+"","Eden","left="+winleft+",top="+wintop+",width="+w+",height="+h+",scrollbars=1, resizable=1");
      ogo.focus();
       }
 function pozycja(nr){

   if(nr==1){
     document.getElementById("col1").style.display='';
     document.getElementById("col2").style.display='';
     document.getElementById("col3").style.display='';
     document.getElementById("col4").style.display='';
     document.getElementById("col5").style.display='';
     document.getElementById("col6").style.display='';
     document.getElementById("col7").style.display='';
     document.getElementById("col8").style.display='';
     document.getElementById("col9").style.display='';
     document.getElementById("col10").style.display='';
     document.getElementById("paczki").style.display='none';
     document.getElementById("pack1").checked=false;
     document.getElementById("pack2").checked=false;
     document.getElementById("line1").style.display='';
     document.getElementById("line2").style.display='';
     
   }else if(nr==2){
      document.getElementById("paczki").style.display='';
     document.getElementById("col1").style.display='none';
     document.getElementById("col2").style.display='none';
     document.getElementById("col3").style.display='none';
     document.getElementById("col4").style.display='none';
     document.getElementById("col5").style.display='none';
     document.getElementById("col6").style.display='none';
     document.getElementById("col7").style.display='none';
     document.getElementById("col8").style.display='none';
     document.getElementById("col9").style.display='none';
     document.getElementById("col10").style.display='none';
     document.getElementById("line1").style.display='none';
     document.getElementById("line2").style.display='none';
   }
 
 }
 //Koniec kodu JavaScript -->
