Salve,
ho bisogno che al click su un radio button venga inviata automaticamente la submit del form e ke la finestra si chiuda.
Posto il codice dove richiamo la funzione e il js
Il problema è l'errore: document.my_form.submit() is not a function ...... ????

Codice PHP:
<form action="memo.php" method="post" name="my_form">

<td align="center"><input type="radio" name="struttura_selected" value="<? echo $id_struttura?>" onClick="seleziona_struttura(this)"></td>

</form>


function seleziona_struttura(my_form)
{
    document.my_form.action = 'memo.php';
    document.my_form.submit();
     window.close(); 
}