// ajaxSubmit// Submit a form through Ajax. Doesn't handle file uploads yet.//// Parameters:// form DOM element The form to submit// button optional DOM element If set and a submit button of 'form', is added to the// form arguments sent// func optional Function Function to call once the call has been made or the// result has arrived, if want_result
// submitAndClose// Submit a form and close the window containing it as soon as the request has been// received by the server//// Parameters:// form DOM element The form to submit.function submitAndClose (form)