Ho provato come dici, ma adesso non funziona più nemmeno lo script "seleziona tutti"!
Codice PHP:
function SetAllCheckBoxes(FieldNameCheckValue)
{
var 
objCheckBoxes document.getElementsByName[FieldName];
if(!
objCheckBoxes)
return;
var 
countCheckBoxes objCheckBoxes.length;
if(!
countCheckBoxes)
objCheckBoxes.checked CheckValue;
else
// set the check value for all check boxes
for(var 0countCheckBoxesi++)
objCheckBoxes[i].checked CheckValue;
}

function 
conferma_elimina_var(){
    if(
confirm('Vuoi eliminare le scritte selezionate?')) {
        var 
countCheckBoxes document.getElementsByName('record[]').length;
        for(var 
0countCheckBoxesi++) document.cancella.scritta[i] = document.getElementsByName('record[i]');
        
document.cancella.submit();
    }