$( function() {
	$('form').submit( function() {
		$('input[type=submit], input[type=reset]').hide();
		$('form span#loading').show();
	});
});