Codice PHP:
function successivo (modulo) {
    var 
ok=true;
    for (
i=0i<document.forms[modulo].elements.length-1i++) {
        var 
elemento=document.forms[modulo].elements[i];

        if ((
elemento.name=="LettoDatiPersonali"||elemento.name=="SottoscrittoDP"||elemento.name=="NoteTrasparenza"||elemento.name=="FoglioInformativo")&&elemento.checked==false) {
            
elemento.style.backgroundColor="#ecf1f6";
            
ok=false;
        } else {
                            
elemento.style.backgroundColor="#ffffff";
                    }

}
    if (
ok==false) {
        
alert("Controllare i campi evidenziati");
    }else{
        
document.forms[modulo].submit();
    }