function setConsentText(consentStatus, show_spid) { document.getElementById("consentText" + show_spid).innerHTML = consentStatus; }