document.addForm.submit() not working in firefox
<p>addForm is used as the form id, but the form submit is not working in firefox.</p>

<pre><code>$(function() {
 var date = $("#todo_due").val();
 var text = $("#todo_due").val();
  if (date &amp;&amp; text) {
    document.addForm.submit();
  } else if (!date &amp;&amp; !text) {
    new Messi('{$LANG.main.todo_validation}', {ldelim}title: '{$LANG.error.error}', titleClass: 'info', modal: true{rdelim});
  } else if (!text) {
    new Messi('{$LANG.main.todo_validation_desc}', {ldelim}title: '{$LANG.error.error}', titleClass: 'info', modal: true{rdelim});
  } else {
    new Messi('{$LANG.main.todo_validation_date}', {ldelim}title: '{$LANG.error.error}', titleClass: 'info', modal: true{rdelim});
  }
});
</code></pre>
