Help me, i can't get it to work!

its probably very easy, but I can’t get it to work. Here’s what i have:

<script type='text/javascript' language='JavaScript'><!--
function submitForm() {
document.form1.submit();
}
//--></script>

this works

next i have a peace of php:

 
echo "<form name='form".$id."' method='post' action='edit.php?id=".$id."&amp;done=".$done."'>
   <input name='checkbox' type='checkbox' value='checkbox' onClick='submitForm();'";

still works…

this is what i want to do:

js code:

<script type='text/javascript' language='JavaScript'><!--
function submitForm(myForm) {
document.myForm.submit();
}
//--></script>

php code:

 
echo "<form name='form".$id."' method='post' action='edit.php?id=".$id."&amp;done=".$done."'>
   <input name='checkbox' type='checkbox' value='checkbox' onClick='submitForm('form".$id."');'";

I cant get this to work, does anyone know how to fix this?

thanks,

Ric