// resetPage reset the page by:
// 1. showing all rows
// 2. removing all edit forms
// 3. hiding new form
function resetPage(){
	$('#new_record').hide();
	$('.record').show();
	$('.edit_form').remove();
}

function showLoading(element) {
	// Hide the buttons <p>
	$('.loading').show();
	// show the loading
	$('.buttons').hide();
}

function hideLoading(element) {
	// Hide the loading
	$('.loading').hide();
	// show the buttons <p>
	$('.buttons').show();
}