select all
**********
<script language="JavaScript">
function toggle(source, markid) {
checkboxes = document.getElementsByName(markid);
for(var i=0, n=checkboxes.length;i<n;i++) {
checkboxes[i].checked = source.checked;
}
}
</script>
how to add a color for that checkboxes and i select select_all for every row that corresponding data of checkboxes to be checked. how to implement this?