Hello this is my first post. So here is my problem.

I have this code:

Code:
<form id="myform" name="first_form" action="powerfull_action" method="post">
  <input id="input1" name="quick_action" type="submit">
  <input id="input2" name="slow_action" type="submit">
</form>
What i want to do is call input2 with javascript.

I tried:
Code:
document.forms["myform"].submit();
I don't know how to tell to pick second or the first one.

I searched the net and this forum and came up with nothing. Thanks for answering.