Javascript Confirm for Form Value

Dustin
2009-11-20T19:14:56Z

How could I ask a user to confirm specific form input?

EX:

<%= f.submit ''Donate'', :confirm => ''Confirm
your donation amount:
###amount###'' %>

Where the ###amount### would be replaced with the amount entered in
the form.

Thanks,
Dustin