cnfg_url = 'http://www.alsoft.webfire.pl/';


function gallery_name_edit(intGalleryId,strNazwa){
	advAJAX.post({
		
	    url: cnfg_url+"apps/ajax_php/galleryNameEdit.php",
	    
	    parameters : {
		  "gallery_id" : intGalleryId,
		  "nazwa" : strNazwa
	    },
	    onLoading : function(obj){ 
			document.getElementById("gallery_"+intGalleryId).innerHTML='';
	    },
	    onComplete : function(obj) { 
	    },
	    onSuccess : function(obj) { 
			document.getElementById("gallery_"+intGalleryId).innerHTML = obj.responseText;
	    },
	    onError : function(obj) {
			
	   }
	});
}

function photo_opis_edit(intGalleryId,intPhotoId,strOpis){
	advAJAX.post({
		
	    url: cnfg_url+"apps/ajax_php/photoOpisEdit.php",
	    
	    parameters : {
		  "gallery_id" : intGalleryId,
		  "photo_id" : intPhotoId,
		  "opis" : strOpis
	    },
	    onLoading : function(obj){ 
			document.getElementById("photo_"+intPhotoId).innerHTML='';
	    },
	    onComplete : function(obj) { 
	    },
	    onSuccess : function(obj) { 
			document.getElementById("photo_"+intPhotoId).innerHTML = obj.responseText;
	    },
	    onError : function(obj) {
			
	   }
	});
}
