<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>i need a little skript to check or uncheck all 
checkboxes on button click.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>the form name and / or the checkbox name should be 
parsed dynamically to the function</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>function checkAll(formName, 
checkboxName)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>i tried to 
modify&nbsp;this&nbsp;function:</FONT></DIV>
<DIV><FONT face=Arial size=2>function 
CheckAll()<BR>{<BR>&nbsp;if(document.form.ALL)<BR>&nbsp;{<BR>&nbsp;&nbsp;var c = 
document.form.ALL.checked;<BR>&nbsp;}<BR>&nbsp;for (var 
i=0;i&lt;document.form.elements.length;i++)<BR>&nbsp;{<BR>&nbsp;&nbsp;var e = 
document.form.elements[i];</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;if(e.name != 
'ALL')<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;if((e.checked!=c) &amp;&amp; 
(e.type=="checkbox"))<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;e.click();<BR>&nbsp;&nbsp;&nbsp; 
&nbsp;e.checked = 
c;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>}<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>but how can i parse the forms name?</FONT></DIV>
<DIV><FONT face=Arial size=2>how about modifying the function without using a 
form name,</FONT></DIV>
<DIV><FONT face=Arial size=2>only using the checkboxes name?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>thanks</DIV></FONT></BODY></HTML>