allora è chiaro...

<INPUT TYPE="submit" VALUE="Elimina" CLASS="normal" onclick="document.forms['theForm'].action='./deleteImgs.php'">