function clearHoldFor(){
$.cookie("holdfor",null, { path: "/", expires: 0 });
-}
\ No newline at end of file
+}
+
+jQuery.fn.preventDoubleFormSubmit = function() {
+ jQuery(this).submit(function() {
+ if (this.beenSubmitted)
+ return false;
+ else
+ this.beenSubmitted = true;
+ });
+};
\ No newline at end of file