<html>
<head>
<title> New Document </title>
<script language="JavaScript">
function checkAll()
{
for (i = 0 ; i < checkchoice.length ; i++)
if (checkchoice(i).value != ""){
checkchoice(i).checked = true;
}else{
checkchoice(i).checked = false;
}
}
</script>
</head>
<body>
<table>
<tr>
<td width="25" height=25><INPUT TYPE='checkbox' name='checkchoice' onclick="checkAll();" alt="전체선택/해제"></td>
</tr>
<tr>
<td width="25" height=25> <input type=checkbox name="checkchoice" value="1" ></td>
</tr>
<tr>
<td width="25" height=25> <input type=checkbox name="checkchoice" value="2" ></td>
</tr>
<tr>
<td width="25" height=25> <input type=checkbox name="checkchoice" value="3" ></td>
</tr>
</table>
</body>
</html>
<html>
<head>
<title> New Document </title>
<script language="JavaScript">
function checkAll(){
if( document.getElementById('input_chkbox_all').checked )
for(i=0; i < checkchoice.length; i++){checkchoice[i].checked = true;}
else
for(i=0; i < checkchoice.length; i++){checkchoice[i].checked = false;}
}
</script>
</head>
<body>
<table>
<tr>
<td width="25" height=25><INPUT TYPE='checkbox' id='input_chkbox_all' onclick="checkAll();" alt="전체선택/해제"></td>
</tr>
<tr>
<td width="25" height=25> <input type=checkbox name="checkchoice" value="1" ></td>
</tr>
<tr>
<td width="25" height=25> <input type=checkbox name="checkchoice" value="2" ></td>
</tr>
<tr>
<td width="25" height=25> <input type=checkbox name="checkchoice" value="3" ></td>
</tr>
</table>
</body>
</html>