ciao a tutti .. ecco il problema .. il codice sotto funzia su ie6 ma su ff non funziona avete idea del motivo ..bah io non riesco a capire

Codice PHP:
function modulo_strutture(){
        var 
totstr=""
        
totalestr_num=new Array("2","3","13","14","19","21","23");
        
        for (
i=0i<totalestr_num.lengthi++) {
            if (
document.modulo_tipodata_str('str'+totalestr_num[i]).checked == true) {
                if (
totstr=="") {
                    
totstr=totalestr_num[i];
                } else {
                    
totstr=totstr+","+totalestr_num[i];
                };
            };
        };
        
        
alert(totstr);
            
        if (
totstr==""){
            
alert("Selezionare almeno una tipologia di struttura!");
        }

        else {
            
            
            
    
alert(totstr)

        };
};

    
// ]]> 
la riga incriminata da firefox è questa
if (document.modulo_tipodata_str('str'+totalestr_num[i]).checked == true)
dicendomi is not a function ..