al posto di attiva(document.f,this,'5_1')
prova con attiva(document.f, this.checked, '5_1')