      function wyswietl_menu_zamowienia() {
	    var http = getXMLHTTPRequest();
	    var zmien=parseInt(Math.random()*9999999999999);
	      var url= 'http://www.okiem-kamery.pl/moduly/menu_zamowienia.php?identyfikator=' + ident + '&zamowienie=' + obliczenia + '&rand=' + zmien;
	      http.open("GET", url, true);
	      http.onreadystatechange = wyswietl_menu;
	      http.send(null);
	    
      }
      
      function wyswietl_menu() {
	    if (http.readyState == 4){
		if(http.status == 200 ){
		  var menu=http.responseText;
		  document.getElementById("menu_cs").innerHTML = "" + menu;
		}else{
		  document.getElementById("menu_cs").innerHTML = "" + http.status;
		}
	      }
	      
      }
      
            function region(ident,obliczenia,cena){
	      var zmien=parseInt(Math.random()*9999999999999);
	      var url= 'http://www.okiem-kamery.pl/moduly/oblicz.php?region=0&identyfikator=' + ident + '&zamowienie=' + obliczenia + '&cena=' + cena + '&rand=' + zmien;
	      http.open("GET", url, true);
	      http.onreadystatechange = wyswietl_obliczenia;
	      http.send(null);
	      
      }
      
      
      function sekcja(ident,obliczenia,id_sekcji,cena){
	      var zmien=parseInt(Math.random()*9999999999999);
	      var url= 'http://www.okiem-kamery.pl/moduly/oblicz.php?sekcja=' + id_sekcji + '&identyfikator=' + ident + '&zamowienie=' + obliczenia + '&cena=' + cena + '&rand=' + zmien;
	      http.open("GET", url, true);
	      http.onreadystatechange = wyswietl_obliczenia;
	      http.send(null);
	    
      }
      
      
      function kategoria(ident,obliczenia,id_kategorii,cena){
	      var zmien=parseInt(Math.random()*9999999999999);
	      var url= 'http://www.okiem-kamery.pl/moduly/oblicz.php?kategoria=' + id_kategorii + '&identyfikator=' + ident + '&zamowienie=' + obliczenia + '&cena=' + cena + '&rand=' + zmien;
	      http.open("GET", url, true);
	      http.onreadystatechange = wyswietl_obliczenia;
	      http.send(null);
	    
      }
      
      
      function wyswietl_obliczenia() {
	    if (http.readyState == 4){
		if(http.status == 200 ){
		  var wynik=new String(http.responseText);
		  document.getElementById("baner").innerHTML = wynik.substring(0,wynik.indexOf("[]"));
		  document.getElementById("menu_cs").innerHTML = "" + wynik.substring(wynik.indexOf("[]")+2,wynik.length);
		}else{
		  document.getElementById("baner").innerHTML = "" + http.status;
		}
	      }
	     
      }
      
      
