.. ok l'ho modificato ed adattato per il tag TR, però ora c'è un problema.. anzi 2
le righe sono di colore alternato, quindi quando levo la spunta il colore della riga non viene pescato più, poi l'altro problema è che ho i tasti seleziona e deseleziona tutto che ovviamente non mi evidenziano la riga

Codice PHP:
function evidenziaTd(ck){
    var 
flag=ck.checked
    
while(ck=ck.parentNode){
        if(
ck.tagName=='TR'){
            
ck.className=(flag)?'on':'';
        }
    }
}
window.onload=function(){
    var 
t=document.getElementById('tabelladati');
    
t.onclick=function(e){
        
e=e||event;
        var 
src=e.target||e.srcElement;
        if(
src.tagName=='INPUT' && src.type=='checkbox'){
            
evidenziaTd(src);
        }
        else {
            if(
src.tagName!='LABEL'){
                var 
found=true;
                while(
src.tagName!='TR'){
                    if(
src==t){found=false; break;}
                    
src=src.parentNode;
                }
                if(
found){
                    var 
els=src.getElementsByTagName('input');
                    for(var 
k=0,l=els.length;k<l;k++){
                        if(
els[k].type=="checkbox"){
                            
els[k].checked=!els[k].checked;
                            
evidenziaTd(els[k]);
                        }
                    }
                }
            }
        }

    }
}

function 
SelezTT()
{
    var 
0;
    var 
modulo document.modulo.elements;
    for (
i=0i<modulo.lengthi++)
    {
        if(
modulo[i].type == "checkbox")
        {
            
modulo[i].checked = !(modulo[i].checked);
        }
    }

PAGINA
Codice PHP:

<?
include("../../inclusioni/inclusioni.php");
include(
"top_sezione.php");
$nome_tab "guest";
$form "exe.php";
include(
"../../inclusioni/prepag.php");
?>
<form action="<? echo $form;?>" method="get" name="modulo">
<input value="<?echo $_REQUEST['pag'];?>" type="hidden" name="pag" />
<?include("../../inclusioni/menu.php");?>
Dati trovati: [b]<? echo $all_rows;?>[/b]
<?
$result 
mysql_query("SELECT * FROM $nome_tab ORDER by ID desc LIMIT $first$x_pag"
or die(
"Query non valida: " mysql_error()); 
?>
<table id="tabelladati">
<tr> 
<th>OPZIONE</th> 
<th>ID</th> 
<th>NOME</th>
<th>CITTA'</th>
<th>E-MAIL</th>
<th>WWW</th>
<th>DATA</th> 
<th>IP</th> 
<th>VISIBILITA'</th> 
</tr>
<?
// CICLO RECORD DB
while($row mysql_fetch_array$result )) {
    
alternate_color();
    
// STAMPO IL CONTENUTO
$chbox $chbox 1;
?>    
    <tr class="<?echo $color?>"> 
    <td><input value="<?echo $row["id"];?>" type="checkbox" name="id[]" id="ch<?echo $chbox;?>"class="chk" />
    <label for="ch<?echo $chbox;?>"><?echo $chbox;?></label>
    </td>
    <td ><?echo $row["id"];?></td>
    <td><?echo $row["guest_nome"];?></td>
    <td><?echo $row["guest_citta"];?></td>
    <td><?echo $row["guest_mail"];?></td>
    <td><?echo $row["guest_url"];?></td>
    <td><?echo $row["guest_data"];?></td>
    <td><?echo $row["guest_ip"];?></td>
    <td>
    <? if ($row["guest_condizione"] == 1){ ?>
    [img]../../theme/images/abilitato.png[/img]
    <?}else{?>
    [img]../../theme/images/disabilitato.png[/img]
    <?}?>
    </td>
    
    </tr> 
<?

?>
</table>
<?include("../../inclusioni/menu.php");?>
</form>
<?
include("../../inclusioni/pag.php");
include(
"../../theme/foot.php");
include(
"../../db/conn_close.php");?>