The name is so the JavaScript can modify the other attributes.
The action is the default URL. This is where the form will be submitted to if the user does not click a radio button or if the user's browser is not JavaScript-enabled. If there is no default URL, and no other URL is provided, then the browser will submit to the current page.
The method should be whatever the script/page at the default action="_____" URL expects.