//CheckBox全选
function CA()
{
var frm=document.Form1;
alert(frm)
for (var i=0;i
var e=frm.elements[i];
alert(e.type)
alert(e.name)
if ((e.name != 'allbox') && (e.type=='checkbox'))
{
e.checked=frm.allbox.checked;
if (frm.allbox.checked)
{
hL(e);
}//endif
else
{
dL(e);
}//endelse
}//endif
}//endfor
}
function CCA(CB)
{
var frm=document.Form1;
if (CB.checked)
hL(CB);
else
dL(CB);
var TB=TO=0;
for (var i=0;i
var e=frm.elements[i];
if ((e.name != 'allbox') && (e.type=='checkbox'))
{
TB++;
if (e.checked)
TO++;
}
}
frm.allbox.checked=(TO==TB)?true:false;
}
function hL(E)
{
while (E.tagName!="TR")
{
E=E.parentElement;
}
E.className="H";
}
function dL(E)
{
while (E.tagName!="TR")
{
E=E.parentElement;
}
E.className="";
}