function loadAllLocations(eventId) {
	new Ajax.Request('/_ajax/ajax.event_registration.php', { 
		method: 'post', 
		onComplete: updateLocations, 
		parameters: { 
			action: 'loadAllLocations', 
			eventId: eventId
		} , 
	});
}

function updateLocations(transport, json) {

	if(!json) {
		error("No Ajax Response");
	}

	if (json.success) {
		
		// Display the new list item element
		new Effect.SlideUp($('locations'), { 
			duration: 0.75, 
			afterFinish: function (effect){
				$('locations').innerHTML = transport.responseText;
				new Effect.SlideDown($('locations'), { duration: 0.75 });
			}
		});
		
	} else {
		error(json.error);
	}
}
