Though not being a Perl question, I'll offer some considerations.
- 1. It is not clear where you would need the mouse right button handling. From what you show, you don't need that at all.
- 2. Javascript would come handy if you handled the button mouse clicking events and acting on the action url accordingly. Maybe onClick.
- 3. For that code, you would not need javascript at all if instead of using three submit buttons you used radio buttons or select to have the user choosing which Tool to go to. The script would receive the choice as a parameter, just like your save_url.
Hope that helps.