// JavaScript Document
function addAssociazione() {
	id = 'newAssociazione';
	
	var callback = function(id, response) {
		openBox(id, response, 'inputBox');
	}
	
	var uri = "Modules/Content.php?contentType=2";
	ajaxGet(id, uri, callback);	
}
function editAssociazione(id_associazione) {
	id = 'editAssociazione'+id_associazione;
	
	var callback = function(id, response) {
		openBox(id, response, 'inputBox');
	}
	
	var uri = "Modules/Content.php?contentType=2&contentId="+id_associazione;
	ajaxGet(id, uri, callback);	
}
function dropAssociazione(id_associazione) {
	if(confirm('Eliminare definitivamente l\'articolo?')) {
		var uri = "associazione.php?dropContent=1&contentId="+id_associazione;
		window.location.href = uri;
	}
}