function chkClick (chk , oSrc)...{
if(chk.checked)
chkAll (oSrc) ;
else
unChkAll (oSrc)
}
function chkAll (oSrc)...{
oSrc = eval(oSrc).rowId;
if(oSrc!=null)
...{
if(oSrc.length == null)
...{
if
(!oSrc.checked)...{oSrc.click();}
}
for (i=oSrc.length-1;i>=0;i--)...{
if
(!oSrc[i].checked)...{oSrc[i].click();}
}
}
}
function unChkAll (oSrc)...{
oSrc = eval(oSrc).rowId;
if(oSrc!=null)
...{
if(oSrc.length == null)
...{
if
(oSrc.checked)...{oSrc.click();}
}
for (i=oSrc.length-1;i>=0;i--)...{
if
(oSrc[i].checked)...{oSrc[i].click();}
}
}
}