<script type="text/javascript">
<!--

function checkAll(checkname, exby) {
for (i = 0; i < checkname.length; i++)
checkname[i].checked = exby.checked? true:false
}
// -->
</script>

Check/Uncheck All : <input type="checkbox" name="listmaster" id="listmaster" value="1" onclick="checkBoxes(this,"myform","mylist")" /><br />

<input type="checkbox" name="mylist1[]" checked value="1" />Text1<br />
<input type="checkbox" name="mylist1[]" checked value="2" />Text2<br />
<input type="checkbox" name="mylist2[]" checked value="3" />Text3<br />
<input type="checkbox" name="mylist3[]" checked value="4" />Text4<br />


How can i change the color of the text when the checkbox unchecked?