/* ------------------------------------------------------------------------------- Function for preventing multiple submit. It both submits the form and ensures the form can not be submit again by reassigning the funciton to a function that does nothing. It also disables the buttons (this part only works in IE). f - the form the buttons are in ------------------------------------------------------------------------------- */ function safeSubmit(f) { for (i=1; i