Well, this is not working, not getting why.

Code JavaScript:
<a href="#" onclick="document.forms['printletter0'].submit();" class="box">Imprimer</a>

The form is something like -

Code HTML4Strict:
<form name="printletter0" id="printletter0" method="post" action="mypage.php">
<input type="hidden" name="id" value="431" />
<input type="hidden" name="mytext" value="My text goes here" />
Some contents here
<div style="padding-top:6px;">
  <img align="top" style="padding-top:0px;" src="img/printer.gif" height="15" width="20" border="0" hspace="0" vspace="0" alt="" />&nbsp;
    <a href="#" onclick="document.forms['printletter0'].submit();" class="box">Print</a>
</div>
</form>

Any suggestion guys? Thanks.

error in IE

Code:
document.forms.printletter0 is null or not an object
error in FF

Code:
document.forms.printletter0 has no proerties