$(document).ready(function() {
	$('div.button_bar > :submit').each(function() {
		var e = $('<a class="submit" href="#">' + $(this).attr('value') + '</a>');
		if($(this).hasClass('next'))
			e.addClass('next');
		$(this).replaceWith(e);
		/*$(this).replaceWith(
		$('<a class="submit" href="#">' + $(this).attr('value') + '</a>'));*/
		});

	$('div.button_bar > a.submit').click(function() {
		$(this).parents("form:first").submit();
		return false;
		});
});

