Hm. Please don't take offense to this, but you might be in over your head right now. I posted that function as an example of what you *can* do. I didn't intend for you to try to use it verbatim in your code. You were having a problem getting all of your form fields to make it across to your controller. This method was shown to give you an example of how to serialize a form.
But to answer some of your questions...
var f = $('submit_task_form'); assigns the form to the local variable f. $() is a Prototype function. f will be passed to other functions to do things that I need to do. In my original message, I mentioned that there were a few functions that you didn't need to pay attention to.
/wgg/submit_task is an action in a controller in my application. You would use whatever action you post your form to.
onclick="some_function(); return false;"
Please, for your own good, step back from this project and think about what you are trying to accomplish. Take a little time and work through some things, step by step, until you get a feel for how it all works. You'll save yourself a whole bunch of hair pulling. Really.