Si una cosa del genere:
codice:
function Azione(){
document.nome_form.action='destinazione.asp?variabile=xxx'
document.nome_form.submit();
}
//DOM 
function Azione(){
document.getElementById("formID").setAttribute("action","destinazione.asp?variabile=xxx")
document.getElementById("formID").submit();
Che puoi richiamare al invio del forum (submit) o nel onclick.



P.S. L'ipotesi DOM non ne sono sicuro