﻿// Controllo privacy accettata
function ensurePrivacyChecked(source, args) {
    var cb = $(source).getPrevious('span').getFirst('input');
    if (cb) {
        if ( cb.checked == true ) { args.IsValid = true; } 
        else { args.IsValid = false; }
    }
}
// Controllo mat informativo accettato
function ensureMatInfoChecked(source, args) {
    var cb = $(source).getPrevious('span').getFirst('input');
    if (cb) {
        if ( cb.checked == true ) { args.IsValid = true; } 
        else { args.IsValid = false; }
    }
}
