<!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> </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> </DIV>
<DIV><FONT face=Arial size=2>function checkAll(formName,
checkboxName)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>i tried to
modify this function:</FONT></DIV>
<DIV><FONT face=Arial size=2>function
CheckAll()<BR>{<BR> if(document.form.ALL)<BR> {<BR> var c =
document.form.ALL.checked;<BR> }<BR> for (var
i=0;i<document.form.elements.length;i++)<BR> {<BR> var e =
document.form.elements[i];</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> if(e.name !=
'ALL')<BR> {<BR> if((e.checked!=c) &&
(e.type=="checkbox"))<BR> {<BR> e.click();<BR>
e.checked =
c;<BR> }<BR> }<BR> }<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> </DIV>
<DIV><FONT face=Arial size=2>thanks</DIV></FONT></BODY></HTML>