// Replace any form submit buttons which are of class plain with
// a regular link which submits the form in it's place
$(document).ready(function() {
  $("form :submit.plain").each(function() {
    $(this).parents("form").css("display", "inline");
    replacement = $(this).replaceWith("<a href='' class='formSubmitLink "+ $(this).attr('class') +"'>"+$(this).val()+"</a>");
  });
  $(".formSubmitLink").click(function() {
    $(this).parents("form").submit();
    return false;
  });
});

