		function mod_2(liczba) {
			liczba = liczba * 100;
			var wynik = Math.round(liczba)/100;
			return wynik;
		}
		
		
		function HideObject(id) {
        
            obj = document.getElementById(id);
            obj.style.display = (obj.style.display == "none" ? "block" : "none");
        }

        function ShowObject(id) {
        
            obj = document.getElementById(id);
            obj.style.display = (obj.style.display == "block" ? "none" : "block");
        }


		function showHide(id) {
        
            obj = document.getElementById(id);
            obj.style.display = (obj.style.display == "block" ? "none" : "block");
        }


		function CreateWinodwBox($id, $type) {
            advAJAX.get({ 

				onInitialization : function(obj) { document.getElementById(obj.tag).innerHTML = "Przygotowywanie..."; },
				onLoading : function(obj) { document.getElementById(obj.tag).innerHTML = ""; },

				onError : function(obj) { document.getElementById(obj.tag).innerHTML = "Błąd..."; },
				url: "ajaxphp/ajax.php?name=createwindowbox&id="+$id+"&type="+$type,
			    onSuccess : function(obj) { document.getElementById(obj.tag).innerHTML = obj.responseText; },
				tag: "windowtext"
			});

		}
	


	
		function CreateWinodwBoxLink($link) {
            advAJAX.get({ 

				onInitialization : function(obj) { document.getElementById(obj.tag).innerHTML = "Przygotowywanie..."; },
				onLoading : function(obj) { document.getElementById(obj.tag).innerHTML = ""; },

				onError : function(obj) { document.getElementById(obj.tag).innerHTML = "Błąd..."; },
				url: "ajaxphp/ajax.php?name=createwindowboxlink&link="+$link,
			    onSuccess : function(obj) { document.getElementById(obj.tag).innerHTML = obj.responseText; },
				tag: "windowtext"
			});

		}





		function change_content($id, $content) {
            advAJAX.get({ 

				onInitialization : function(obj) { document.getElementById(obj.tag).innerHTML = "<center><b>Ladowanie...</b></center>"; },
				onLoading : function(obj) { document.getElementById(obj.tag).innerHTML = "<center><b>Ladowanie...</b></center>"; },

				onError : function(obj) { document.getElementById(obj.tag).innerHTML = "Błąd..."; },
				url: "ajaxphp/ajax.php?name=change_content&id="+$id,
			    onSuccess : function(obj) { document.getElementById(obj.tag).innerHTML = obj.responseText; },
				tag: $content
			});
			var $b1='1';
			var $b2='1';
			var $b3='1';
			var $b4='1';
			
			if ($id=='1') $b1='2';
			if ($id=='2') $b2='2';
			if ($id=='3') $b3='2';
			if ($id=='4') $b4='2';

			document.getElementById('butt_01').innerHTML = '<img border="0" onclick="change_content(\'1\', \'content_sr\')" src="img/serwery0'+ $b1 +'.jpg" width="188" height="45">';
			document.getElementById('butt_02').innerHTML = '<img border="0" onclick="change_content(\'2\', \'content_sr\')" src="img/domeny0'+ $b2 +'.jpg" width="188" height="45">';
			document.getElementById('butt_03').innerHTML = '<img border="0" onclick="change_content(\'3\', \'content_sr\')" src="img/dedykowane0'+ $b3 +'.jpg" width="188" height="45">';
			document.getElementById('butt_04').innerHTML = '<img border="0" onclick="change_content(\'4\', \'content_sr\')" src="img/poczta0'+ $b4 +'.jpg" width="188" height="45">';
		}