<script type="text/javascript" src="jquery.js"></script>
<body>
<input type="checkbox" id="checkbox1" name="checkbox1" onClick="selectAll(this);" >
<input type="checkbox" id="select_list" name="select_list" value="1"/>1
<input type="checkbox" id="select_list" name="select_list" value="2"/>2
</body>
<script type="text/javascript" language="javascript">
function selectAll(checkOBJ){
if(checkOBJ.checked) $('input[@name=select_list]').attr('checked',true);
else $('input[@name=select_list]').attr('checked',false);
}
</script>