Hola, ABAROA.
Prueba este ejemplo:
Código PHP:
<html>
<head>
<script>
function marcar(obj) {
elem=obj.elements;
for (i=0;i<elem.length;i++)
if (elem[i].type=="checkbox")
elem[i].checked=true;
}
</script>
</head>
<body>
<form>
<input type="checkbox" />
<input type="checkbox" />
<input type="checkbox" />
<input type="button" onclick="marcar(this.form)" />
</form>
</body>
</html>
Saludos,