// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

// Removes and item from an element
function remove_field(element, item){
	$(element).up(item).remove();
}

// Puts a value in a hidden field  marking an alpaca show for deletion, then hides the show
function mark_for_destroy(Element) {
	$(Element).next('.should_destroy').value = 1;
	$(Element).up('.show').hide();
}

