function msgselect(chkid) { selchk = document.getElementById(chkid); if(selchk.value != true) selchk.checked = true; else selchk.checked = false; } // those are the tr that when i click on them they check the checkbox...for some reaosn the first one chksl1 doesnt works and when i check let say 2 or 3 when i click on the tr again it wont unclick...