function renderCmnHeader ( textColor, bgColor, logoImg, hasAffiliateRegulation) { var _affiliate_regulation = ''; if (hasAffiliateRegulation != '0') { _affiliate_regulation = '