
dojo.addOnLoad(consent);

function consent(){
    var no_consent = dojo.byId('formno_consent');
    dojo.connect(no_consent,'onchange',no_consent,check_consent);
    
    var f = dojo.hitch(no_consent,check_consent);
    f();
        
}

function check_consent(){
    dojo.byId('formconsent_business_details').disabled = this.checked;
    dojo.byId('formconsent_street_details').disabled = this.checked;
    dojo.byId('formconsent_postal_details').disabled = this.checked;
    dojo.byId('formconsent_publish_website').disabled = this.checked;
    dojo.byId('formconsent_publish_email').disabled = this.checked;
}


