
	 function ocena(typ,id,div)
        {
            advAJAX.setDefaultParameters({
                onSuccess : function(obj)
                {
                    document.getElementById(div).innerHTML = obj.responseText;
                },
                onLoading : function(obj)
                {
                      document.getElementById(div).innerHTML = 'Trwa ładowanie...';
                },
				onError : function(obj) {
					alert("Error: " + obj.status);
				},			
            });
	    advAJAX.post({
                url: "http://www.partystrefa.pl/glosowanie.php",
		parameters : {
   		   "typ" : typ,
		   "id" : id
  		  }
		
            });
    
        }
	 function zglos(id)
        {
				advAJAX.setDefaultParameters({
                onSuccess : function(obj)
                {
                    document.getElementById('zgloszenie').innerHTML = obj.responseText;
                },
                onLoading : function(obj)
                {
                      document.getElementById('zgloszenie').innerHTML = 'Trwa ładowanie...';
                },
				onError : function(obj) {
					alert("Error: " + obj.status);
				},			
            });
	    advAJAX.post({
                url: "/ajax/zgloszenie.php",
		parameters : {
   		   "id" : id
  		  }
		
            });
	}