© 2001-2024 CPA.comAll Rights Reserved.
CPA.com and the CPA.com logo are trademarks and service marks of CPA.com.
Terms
Privacy
CPRA Policy
?By checking this box you are consenting to having your contact information shared with Divvy so they may contact you directly.
';let divvyLearnMore = document.createElement("input");divvyLearnMore.setAttribute("type", "hidden");divvyLearnMore.setAttribute("name", "Divvy Learn More");document.querySelector(".js-pardot-form").appendChild(divvyLearnMore);divvyCheckBox.addEventListener('click', function () {var cmn_cb_divvy = document.querySelector("#cmn-cb-divvy");if (cmn_cb_divvy.src == "https://www.cpa.com/sites/cpa/files/unchecked-box.png") {divvyLearnMore.value = "yes";cmn_cb_divvy.src = "https://www.cpa.com/sites/cpa/files/checked-box.png";} else {divvyLearnMore.value = "";cmn_cb_divvy.src = "https://www.cpa.com/sites/cpa/files/unchecked-box.png";}});document.querySelector(".resource__button-wrapper").insertBefore(divvyCheckBox, document.querySelector(".resource__button-wrapper button"));}var x, i = document.getElementsByTagName("input");for (x = 0; x < i.length; x++) {if (i.item(x).getAttribute("name") == "Billcom_CPAcom_Member_Status") {if (light_mode_template) { return };//if (i.item(x).value == "Form Fill" || i.item(x).value == "Viewed") {bdcCheckBox = i.item(x);bdc_form_found = true;//}}// Find lead WebForm Source for B2C categoryif (i.item(x).getAttribute("name") == "Lead_WebForm_Source") {if (light_mode_template) { return };// console.log(i.item(x).value);if (i.item(x).value == "B2C") {b2c_form_found = true;}}}if (bdc_form_found) {var bdc_cmn_cb = document.createElement("div");bdc_cmn_cb.className = "bdc-contact-me-now";bdc_cmn_cb.innerHTML = ' I’d like to learn moreabout BILL.
?By checking this box you are consenting to having your contact information shared with BILL so they may contact you directly.
';bdc_cmn_cb.onclick = function () {var c = this.getElementsByTagName("img").item(0);if (c.src.indexOf("unchecked") > -1) {c.src = "/sites/cpa/files/checked-box.png";bdcCheckBoxPrevious = bdcCheckBox.value;bdcCheckBox.value = "Handraiser";} else {c.src = "/sites/cpa/files/unchecked-box.png";bdcCheckBox.value = bdcCheckBoxPrevious;}};document.getElementsByClassName("resource__button-wrapper").item(0).insertBefore(bdc_cmn_cb, document.getElementsByClassName("js-pardot-trigger").item(0));}if (b2c_form_found) {var b2c_cmn_cb = document.createElement("div");b2c_cmn_cb.className = "b2c-contact-me-now";b2c_cmn_cb.innerHTML = ' I’d like to learn moreabout Biz2Credit.
?By checking this box you are consenting to having your contact information shared with Biz2Credit so they may contact you directly.
';b2c_cmn_cb.onclick = function () {var c = this.getElementsByTagName("img").item(0);if (c.src.indexOf("unchecked") > -1) {c.src = "/sites/cpa/files/checked-box.png";//create B2C Member Status hidden input to addvar newInput = document.createElement('input');newInput.setAttribute('type', 'hidden');newInput.id = "b2c-handraiser";newInput.setAttribute('name', 'B2C_CPAcom_Member_Status');newInput.setAttribute('value', 'Handraiser');b2cCheckBox = newInput;b2cCheckBoxPrevious = b2cCheckBox.value;b2cCheckBox.value = "Handraiser";document.querySelector(".js-pardot-form").appendChild(b2cCheckBox);} else {c.src = "/sites/cpa/files/unchecked-box.png";b2cCheckBox.value = b2cCheckBoxPrevious;document.querySelector(".js-pardot-form").removeChild(document.getElementById('b2c-handraiser'));}};document.getElementsByClassName("resource__button-wrapper").item(0).insertBefore(b2c_cmn_cb, document.getElementsByClassName("js-pardot-trigger").item(0));}}//-----------------------------------------------var x, s = document.getElementsByClassName("scroll-link");for (x = 0; x < s.length; x++) {s.item(x).onclick = function () {document.getElementById(this.getAttribute("href").replace("#", "")).scrollIntoView({behavior: 'smooth'});//window.location.hash = this.getAttribute("href").replace("#", "");return false;};}//-----------------------------------------------var x, articleSource = document.getElementsByClassName("text--tiny");for (x = 0; x < articleSource.length; x++) {if (articleSource.item(x).innerHTML.indexOf("http") == -1) {articleSource.item(x).style.display = "none";}}//-----------------------------------------------var x, n = "",a = document.getElementsByTagName("a"),s = document.getElementsByTagName("span");for (x = 0; x < a.length; x++) {if (a.item(x).getAttribute("data-drupal-link-system-path")) {if (a.item(x).getAttribute("data-drupal-link-system-path").indexOf("/edit") > -1) {n = "?destination=/node/" + a.item(x).getAttribute("data-drupal-link-system-path").split("/")[1];}}}for (x = 0; x < s.length; x++) {if (s.item(x).getAttribute("data-quickedit-field-id")) {if (s.item(x).getAttribute("data-quickedit-field-id").indexOf("block_content/") > -1) {var editLink = document.createElement("div");editLink.className = "editBlock";editLink.innerHTML = "edit";s.item(x).appendChild(editLink);}}}//------------------------------------------------var x, cLinks = document.getElementsByClassName("conversion-link");for (x = 0; x < cLinks.length; x++) {cLinks.item(x).onclick = function () {window.dataLayer = window.dataLayer || [];function gtag() {dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'AW-936932644');gtag('event', 'conversion', {'send_to': 'AW-936932644/s4ylCOnviNgBEKTq4b4D','value': 1.0,'currency': 'USD'});};}//------------------------------------------------function encodeBetter(u) {var eb = encodeURI(u);eb = eb.replace(/&/g, "%26").replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\//g, '%2F');return eb;}//------------------------------------------------var bdcIframe, fn, ln, em, co, an, lc, ms, cn, ct, lr, cs, pn, jt, ct, ad, cy, pc, st, bdcFound, b2cFound = false;if (document.getElementsByClassName("js-pardot-form").item(0)) {//console.log("form data found");var x, i = document.getElementsByClassName("js-pardot-form").item(0).getElementsByTagName("input");for (x = 0; x < i.length; x++) {if (i.item(x).getAttribute("name").indexOf("Billcom_CPAcom") > -1) {bdcFound = true;}if (i.item(x).getAttribute("name") == "First Name") {fn = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Last Name") {ln = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Email") {em = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Company") {co = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Billcom_CPAcom_Latest_Campaign") {an = "CPA.com";}if (i.item(x).getAttribute("name") == "Billcom_CPAcom_Latest_Campaign") {lc = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Billcom_CPAcom_Member_Status") {ms = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Billcom_CPAcom_Latest_Campaign") {cn = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Billcom_CPAcom_Campaign_Type") {ct = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Billcom_CPAcom_Lead_Rating") {lr = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Firm Size") {cs = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Business Phone") {pn = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Title") {jt = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Mailing City") {ci = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Mailing Street") {ad = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Mailing Country") {cy = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Mailing Zip/Postal Code") {pc = encodeBetter(i.item(x).value);}if (i.item(x).getAttribute("name") == "Mailing State/Province") {st = encodeBetter(i.item(x).value);}}}if (bdcFound) {bdcIframe = document.createElement("iframe");bdcIframe.style.display = "none";bdcIframe.src = "/bdc-hidden-form?fn=" + fn + "&ln=" + ln + "&em=" + em + "&co=" + co + "&an=" + an + "&lc=" + lc + "&ms=" + ms + "&cn=" + cn + "&ct=" + ct + "&lr=" + lr + "&cs=" + cs + "&pn=" + pn + "&jt=" + jt + "&ci=" + ci + "&ad=" + ad + "&cy=" + cy + "&pc=" + pc + "&st=" + st;document.getElementsByClassName("js-pardot-trigger").item(0).onclick = function () {//console.log("sending data to iframe");document.getElementsByTagName("body").item(0).appendChild(bdcIframe);};}//------------------------------------------------var spans = document.getElementsByTagName("span");for (x = 0; x < spans.length; x++) {if (spans.item(x).getAttribute("data-quickedit-field-id")) {if (spans.item(x).getAttribute("data-quickedit-field-id") == "node/9911/title/en/teaser") {spans.item(x).innerHTML = spans.item(x).innerHTML.replace(":", ":");}}}//------------------------------------------------var u = self.location.toString();if (u.split(".com/")[1].indexOf("/") > -1) {var cpaHref = document.getElementsByTagName("cpa-href");for (x = 0; x < cpaHref.length; x++) {var a = document.createElement("a");a.innerHTML = cpaHref.item(x).innerHTML;a.setAttribute("href", cpaHref.item(x).getAttribute("data-href"));a.className = cpaHref.item(x).getAttribute("data-class");cpaHref.item(x).parentElement.insertBefore(a, cpaHref.item(x));cpaHref.item(x).remove();}}//------------------------------------------------if (u.indexOf("/aicpa-engage-2022#") > -1) {var highlightStyles = document.createElement("style"),highlightBackground = document.createElement("div"),highlightX = document.createElement("div"),highlightItem = u.split("#")[1];if (document.getElementById(highlightItem).className == "tile") {highlightBackground.id = "highlightBackground";highlightStyles.id = "highlightStyles";highlightX.id = "highlightX";highlightX.innerHTML = "x";highlightX.onclick = function () {document.getElementById("highlightBackground").style.display = "none";document.getElementById("highlightStyles").innerHTML = "";this.style.display = "none";};highlightBackground.onclick = function () {document.getElementById("highlightX").style.display = "none";document.getElementById("highlightStyles").innerHTML = "";this.style.display = "none";};highlightStyles.innerHTML = "@media (min-width: 768px) {\n";highlightStyles.innerHTML += "#" + highlightItem + " { z-index: 2000; position: relative; }\n";highlightStyles.innerHTML += "#highlightX { z-index: 2001; position: absolute; top: -24px; right: -23px; display: block; color: #fff; background-color: #333; border: 2px solid #fff; border-radius: 50%; line-height: 34px; font-size: 45px; width: 45px; height: 45px; text-align: center; padding-left: 2px; cursor: pointer; }\n";highlightStyles.innerHTML += "#highlightBackground { z-index: 1999; position: fixed; top: 0; left: 0; bottom: 0; right: 0; background-color: #000; opacity: 0.75; overflow: hidden; }\n";"\n}\n";document.getElementsByTagName("head").item(0).appendChild(highlightStyles);document.getElementsByTagName("body").item(0).appendChild(highlightBackground);document.getElementById(highlightItem).insertBefore(highlightX, document.getElementById(highlightItem).firstChild);setTimeout(function () {document.getElementById("highlightX").scrollIntoView();}, 500);}}//------------------------------------------------var comingSoonLinks = document.getElementsByClassName("coming-soon");for (x = 0; x < comingSoonLinks.length; x++) {var message = document.createElement("div");message.innerHTML = "More information coming soon.";message.className = "comingSoonMessage";comingSoonLinks.item(x).appendChild(message);comingSoonLinks.item(x).onclick = function () {this.getElementsByClassName("comingSoonMessage").item(0).style.display = "block";return false;};comingSoonLinks.item(x).onmouseout = function () {this.getElementsByClassName("comingSoonMessage").item(0).style.display = "none";}comingSoonLinks.item(x).onblur = function () {this.getElementsByClassName("comingSoonMessage").item(0).style.display = "none";}}//------------------------------------------------setTimeout(function () {var q, z, articleUrl, qef = document.getElementsByClassName("quickedit-field"),qef_ids = ["node/16086/field_news_url/en/teaser", "node/16091/field_news_url/en/teaser", "node/16096/field_news_url/en/teaser", "node/16101/field_news_url/en/teaser"];for (q = 0; q < qef.length; q++) {if (qef.item(q).getAttribute("data-quickedit-field-id")) {for (z = 0; z < qef_ids.length; z++) {if (qef.item(q).getAttribute("data-quickedit-field-id") == qef_ids[z]) {articleUrl = qef.item(q).innerHTML.trim();qef.item(q).innerHTML = '' + articleUrl + "";}}}}}, 2000);//------------------------------------------------var c, d, aTags = document.getElementsByTagName("a"),decodedCookie = decodeURIComponent(document.cookie),txcpa = "",expirationDays = 365;if (self.location.href.indexOf("ss=txcpa") > -1 || decodedCookie.indexOf("txcpa=true") > -1) {if (decodedCookie.indexOf("txcpa=true") == -1) {//txcpa = document.cookie.match('(^|;) ?txcpa=([^;]*)(;|$)')[2];d = new Date();d.setTime(d.getTime() + (expirationDays * 24 * 60 * 60 * 1000));document.cookie = "txcpa=true; expires=" + d.toUTCString() + "; path=/;";}for (c = 0; c < aTags.length; c++) {if (aTags.item(c).getAttribute("href")) {if (aTags.item(c).getAttribute("href") === "https://web.cvent.com/event/a24f9e38-b110-4afe-ab21-1c1d2a20ddcb/regProcessStep1") {aTags.item(c).setAttribute("href", "https://cvent.me/qPb4No?RefId=TXCPA");} else if (aTags.item(c).getAttribute("href").indexOf("https://web.cvent.com/event/a24f9e38-b110-4afe-ab21-1c1d2a20ddcb/regProcessStep1") > -1) {aTags.item(c).setAttribute("href", "https://cvent.me/qPb4No?RefId=TXCPA&" + aTags.item(c).getAttribute("href").split("?")[1]);}}}}//------------------------------------------------var srt = document.getElementsByClassName("search-result__type");for (x = 0; x < srt.length; x++) {if (srt.item(x).innerHTML == "Content") {srt.item(x).innerHTML = "Page";}}//------------------------------------------------var x, eventDate, today = new Date(),eventLinks = document.querySelectorAll("[data-event-date]");for (x = 0; x < eventLinks.length; x++) {eventDate = new Date(eventLinks.item(x).getAttribute("data-event-date"));console.log(eventLinks.item(x).getAttribute("data-event-date"), (today > eventDate));if (today > eventDate) {eventLinks.item(x).setAttribute("data-old-href", eventLinks.item(x).getAttribute("href"));eventLinks.item(x).setAttribute("href", "#");eventLinks.item(x).onclick = function () {return false;};eventLinks.item(x).parentElement.parentElement.parentElement.parentElement.classList.add("event-closed");}}//------------------------------------------------});})(jQuery);//------------------------------------------------let ue = "",pd_args, ud = 0,debug = false;function preloadInfo() {let loggedInTest = document.querySelector('.header__link-bar').firstElementChild.innerText.replace(/ /g, "").replace(/\n/g, "");if (debug) {console.log("starting preload", (loggedInTest === 'Logout'));}if (loggedInTest === 'Logout') {if (debug) {console.log("preloading");}let t = "il",b = "it-mb",j = "ed",jData;pd_args = arguments;if (document.querySelector(".log-prompt-text")) {document.querySelector(".log-prompt-text").style.display = "none";}jData = JSON.parse(document.querySelector('[data-drupal-selector="drupal-settings-json"]').textContent);ud = jData.user.uid;lu = document.createElement("iframe");lu.style.display = "none";lu.src = "/user/" + ud + "/edit";lu.addEventListener("load", function (e) {let df, x, p;ue = this.contentDocument.querySelector("#" + j + b.replace("b", "a") + t).value;for (x = 0; x < pd_args.length; x++) {p = pd_args[x];p.addEventListener("load", function () {this.contentWindow.postMessage("ue=" + ue, 'https://marketing.cpa.com/*');this.style.opacity = "1";ue = "";});df = "?Next_Form=" + p.src.split(".com")[1];p.src = "https://marketing.cpa.com/l/701003/2022-04-27/2vm2yd" + df;}});document.querySelector("body").appendChild(lu);}if (debug) {console.log("preload done");}}if (document.querySelector(".resource-lightmode__title")) { document.querySelector(".resource-lightmode__title").innerHTML = document.querySelector(".resource-lightmode__title").innerHTML.replace("®", "®");} else if (document.querySelector(".resource__title")) { document.querySelector(".resource__title").innerHTML = document.querySelector(".resource__title").innerHTML.replace("®", "®");} else if (document.querySelector(".resource-tile .title")) { document.querySelector(".resource-tile .title").innerHTML = document.querySelector(".resource-tile .title").innerHTML.replace("®", "®");}