De paso:
Código HTML:
<table align="center" border="0">
<form method="post" action="#">
<tr><th>Marcar<input type="checkbox" onclick="marcar(this.form,this)"></input></th></tr>
<tr><td><input type="checkbox"></input></td></tr>
<tr><td><input type="checkbox"></input></td></tr>
<tr><td><input type="checkbox"></input></td></tr>
<tr><td><input type="checkbox"></input></td></tr>
<tr><td><input type="checkbox"></input></td></tr>
</form>
</table>
Dentro de <table> sólo pueden haber celdas. La forma correcta de hacerlo sería:
Código HTML:
<form method="post" action="#">
<table align="center" border="0">
<tr><th>Marcar<input type="checkbox" onclick="marcar(this.form,this)"></input></th></tr>
<tr><td><input type="checkbox"></input></td></tr>
<tr><td><input type="checkbox"></input></td></tr>
<tr><td><input type="checkbox"></input></td></tr>
<tr><td><input type="checkbox"></input></td></tr>
<tr><td><input type="checkbox"></input></td></tr>
</table>
</form>
Suerte!
Fede