if (window.location.protocol != "https:" && window.location.href.indexOf("formulate") == -1 && "False" === "True") { window.location.href = "https:" + window.location.href.substring(window.location.protocol.length); } var fbScriptTag = document.getElementsByClassName("3c81cff9-8cab-409b-babc-68f33f060052"), fbBodyTag = document.body, fbHeadTag = document.head, fbIsTestResponse = 'False', fbEnableInstaMedScript = 'False', fbRenderContainer = document.createElement("div"), fbRenderedCssContainer = document.createElement("div"), fbConfigScript = document.createElement("script"), fbRequireJSScript = document.createElement("script"), fbInstaMedJSScript = document.createElement("script"), fbGeoCaptchaCallback = document.createElement("script"), fbGeoReCaptchaCallback = document.createElement("script"), fbFormulateRenderer = document.createElement("script"), fbRenderedIntegrations = document.createElement("script"), fbRenderedScripts = document.createElement("script"), fbAutoPopulateFromQueryString = document.createElement("script"), fbEmbeddedCss = "", renderedScripts = 'var conditionalSectionJs = function () {\ requirejs([window.formHost + \'/Scripts/require/fbRequire.config.js\'], function (fbRequireConfig) {\ var fbRequire = fbRequireConfig.fbRequire;\ \ fbRequire([\'jquery\', \'he\'], function ($, he) {\ he.encode.options.decimal = true;\ he.encode.options.allowUnsafeSymbols = true;\ \ var sectionConditions = JSON.parse(\'[{"ElementName":"FormField16_3c81cff9-8cab-409b-babc-68f33f060052","Value":"Appointments"},{"ElementName":"FormField16_3c81cff9-8cab-409b-babc-68f33f060052","Value":"Prescriptions"}]\');\ var conditionOperator = \'or\';\ \ sectionConditions.forEach(function (sectionCondition) {\ $("select[id=" + sectionCondition.ElementName + "]").addClass(\'conditionalSectionListSelection\');\ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'checkbox\']").addClass(\'conditionalSectionListSelection\');\ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'radio\']").addClass(\'conditionalSectionListSelection\');\ \ $("select[id=" + sectionCondition.ElementName + "]").on(\'change\', function () {\ checkShowHide();\ });\ \ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'checkbox\']").on(\'change\', function () {\ checkShowHide();\ });\ \ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'radio\']").on(\'change\', function () {\ checkShowHide();\ });\ });\ \ function checkShowHide() {\ var shouldShowSection = conditionOperator === \'and\'; /* set default to true for AND operation and false for OR operation */\ \ sectionConditions.forEach(function (sectionCondition) {\ checkSelect(sectionCondition); \ checkCheckbox(sectionCondition); \ checkRadio(sectionCondition); \ });\ \ showHideSection(shouldShowSection);\ \ function checkSelect(sectionCondition) {\ var matchingSelect = $("select[id=" + sectionCondition.ElementName + "]")[0];\ \ if (!matchingSelect) {\ return;\ }\ \ if (matchingSelect.type === \'select-multiple\') {\ var hasOneMatchingValue = false;\ \ for (var i = 0; i < matchingSelect.selectedOptions.length; i++) {\ if (encode(matchingSelect.selectedOptions[i].value) === sectionCondition.Value) {\ hasOneMatchingValue = true;\ }\ }\ \ shouldShowSection = mergeCondition(shouldShowSection, hasOneMatchingValue, matchingSelect);\ } else {\ shouldShowSection = mergeCondition(shouldShowSection, encode(matchingSelect.value) === sectionCondition.Value, matchingSelect);\ }\ }\ \ function checkCheckbox(sectionCondition) {\ var matchingCheckboxes = $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'checkbox\']");\ \ for (var i = 0; i < matchingCheckboxes.length; i++) {\ if (encode(matchingCheckboxes[i].value) === sectionCondition.Value) {\ shouldShowSection = mergeCondition(shouldShowSection, matchingCheckboxes[i].checked, matchingCheckboxes[i]);\ }\ }\ }\ \ function checkRadio(sectionCondition) {\ var matchingRadios = $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'radio\']");\ \ for (var i = 0; i < matchingRadios.length; i++) {\ if (encode(matchingRadios[i].value) === sectionCondition.Value) {\ shouldShowSection = mergeCondition(shouldShowSection, matchingRadios[i].checked, matchingRadios[i]);\ }\ }\ }\ }\ \ function mergeCondition(overallResult, newResult, element) {\ newResult = newResult && isParentVisible(element);\ \ if (conditionOperator === \'and\') {\ return overallResult && newResult;\ } else {\ return overallResult || newResult;\ }\ }\ \ function isParentVisible(element) {\ var parentSectionDiv = $(\'#\' + element.id).closest(".fb-section");\ return parentSectionDiv && !parentSectionDiv.is(":hidden");\ }\ \ function encode(myString) {\ myString = he.encode(he.escape(myString));\ \ /* Fixes issues with single quote and backtick encoding */\ var i,\ entities = [\ [\''\', \''\'],\ [\'`\', \'`\']\ ];\ \ for (i = 0; i < entities.length; i++) {\ myString = String(myString).replace(new RegExp(entities[i][0], \'g\'), entities[i][1]);\ }\ \ return myString;\ }\ \ function showHideSection(showSection) {\ if (showSection) {\ $(\'#FormField18_3c81cff9-8cab-409b-babc-68f33f060052\').show();\ } else {\ $(\'#FormField18_3c81cff9-8cab-409b-babc-68f33f060052\').hide();\ }\ \ $("#FormField18_3c81cff9-8cab-409b-babc-68f33f060052 .conditionalSectionListSelection").each(function (i, obj) {\ if (obj.type === \'radio\' || obj.type === \'checkbox\') {\ if (obj.checked) {\ $(\'#\' + obj.id).change();\ }\ } else {\ $(\'#\' + obj.id).change();\ }\ });\ }\ });\ });\ };\ \ fbRequireJSScript.addEventListener("load", conditionalSectionJs);var conditionalSectionJs = function () {\ requirejs([window.formHost + \'/Scripts/require/fbRequire.config.js\'], function (fbRequireConfig) {\ var fbRequire = fbRequireConfig.fbRequire;\ \ fbRequire([\'jquery\', \'he\'], function ($, he) {\ he.encode.options.decimal = true;\ he.encode.options.allowUnsafeSymbols = true;\ \ var sectionConditions = JSON.parse(\'[{"ElementName":"FormField16_3c81cff9-8cab-409b-babc-68f33f060052","Value":"Medical records"}]\');\ var conditionOperator = \'and\';\ \ sectionConditions.forEach(function (sectionCondition) {\ $("select[id=" + sectionCondition.ElementName + "]").addClass(\'conditionalSectionListSelection\');\ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'checkbox\']").addClass(\'conditionalSectionListSelection\');\ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'radio\']").addClass(\'conditionalSectionListSelection\');\ \ $("select[id=" + sectionCondition.ElementName + "]").on(\'change\', function () {\ checkShowHide();\ });\ \ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'checkbox\']").on(\'change\', function () {\ checkShowHide();\ });\ \ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'radio\']").on(\'change\', function () {\ checkShowHide();\ });\ });\ \ function checkShowHide() {\ var shouldShowSection = conditionOperator === \'and\'; /* set default to true for AND operation and false for OR operation */\ \ sectionConditions.forEach(function (sectionCondition) {\ checkSelect(sectionCondition); \ checkCheckbox(sectionCondition); \ checkRadio(sectionCondition); \ });\ \ showHideSection(shouldShowSection);\ \ function checkSelect(sectionCondition) {\ var matchingSelect = $("select[id=" + sectionCondition.ElementName + "]")[0];\ \ if (!matchingSelect) {\ return;\ }\ \ if (matchingSelect.type === \'select-multiple\') {\ var hasOneMatchingValue = false;\ \ for (var i = 0; i < matchingSelect.selectedOptions.length; i++) {\ if (encode(matchingSelect.selectedOptions[i].value) === sectionCondition.Value) {\ hasOneMatchingValue = true;\ }\ }\ \ shouldShowSection = mergeCondition(shouldShowSection, hasOneMatchingValue, matchingSelect);\ } else {\ shouldShowSection = mergeCondition(shouldShowSection, encode(matchingSelect.value) === sectionCondition.Value, matchingSelect);\ }\ }\ \ function checkCheckbox(sectionCondition) {\ var matchingCheckboxes = $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'checkbox\']");\ \ for (var i = 0; i < matchingCheckboxes.length; i++) {\ if (encode(matchingCheckboxes[i].value) === sectionCondition.Value) {\ shouldShowSection = mergeCondition(shouldShowSection, matchingCheckboxes[i].checked, matchingCheckboxes[i]);\ }\ }\ }\ \ function checkRadio(sectionCondition) {\ var matchingRadios = $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'radio\']");\ \ for (var i = 0; i < matchingRadios.length; i++) {\ if (encode(matchingRadios[i].value) === sectionCondition.Value) {\ shouldShowSection = mergeCondition(shouldShowSection, matchingRadios[i].checked, matchingRadios[i]);\ }\ }\ }\ }\ \ function mergeCondition(overallResult, newResult, element) {\ newResult = newResult && isParentVisible(element);\ \ if (conditionOperator === \'and\') {\ return overallResult && newResult;\ } else {\ return overallResult || newResult;\ }\ }\ \ function isParentVisible(element) {\ var parentSectionDiv = $(\'#\' + element.id).closest(".fb-section");\ return parentSectionDiv && !parentSectionDiv.is(":hidden");\ }\ \ function encode(myString) {\ myString = he.encode(he.escape(myString));\ \ /* Fixes issues with single quote and backtick encoding */\ var i,\ entities = [\ [\''\', \''\'],\ [\'`\', \'`\']\ ];\ \ for (i = 0; i < entities.length; i++) {\ myString = String(myString).replace(new RegExp(entities[i][0], \'g\'), entities[i][1]);\ }\ \ return myString;\ }\ \ function showHideSection(showSection) {\ if (showSection) {\ $(\'#FormField25_3c81cff9-8cab-409b-babc-68f33f060052\').show();\ } else {\ $(\'#FormField25_3c81cff9-8cab-409b-babc-68f33f060052\').hide();\ }\ \ $("#FormField25_3c81cff9-8cab-409b-babc-68f33f060052 .conditionalSectionListSelection").each(function (i, obj) {\ if (obj.type === \'radio\' || obj.type === \'checkbox\') {\ if (obj.checked) {\ $(\'#\' + obj.id).change();\ }\ } else {\ $(\'#\' + obj.id).change();\ }\ });\ }\ });\ });\ };\ \ fbRequireJSScript.addEventListener("load", conditionalSectionJs);var conditionalSectionJs = function () {\ requirejs([window.formHost + \'/Scripts/require/fbRequire.config.js\'], function (fbRequireConfig) {\ var fbRequire = fbRequireConfig.fbRequire;\ \ fbRequire([\'jquery\', \'he\'], function ($, he) {\ he.encode.options.decimal = true;\ he.encode.options.allowUnsafeSymbols = true;\ \ var sectionConditions = JSON.parse(\'[{"ElementName":"FormField16_3c81cff9-8cab-409b-babc-68f33f060052","Value":"Billing"}]\');\ var conditionOperator = \'and\';\ \ sectionConditions.forEach(function (sectionCondition) {\ $("select[id=" + sectionCondition.ElementName + "]").addClass(\'conditionalSectionListSelection\');\ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'checkbox\']").addClass(\'conditionalSectionListSelection\');\ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'radio\']").addClass(\'conditionalSectionListSelection\');\ \ $("select[id=" + sectionCondition.ElementName + "]").on(\'change\', function () {\ checkShowHide();\ });\ \ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'checkbox\']").on(\'change\', function () {\ checkShowHide();\ });\ \ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'radio\']").on(\'change\', function () {\ checkShowHide();\ });\ });\ \ function checkShowHide() {\ var shouldShowSection = conditionOperator === \'and\'; /* set default to true for AND operation and false for OR operation */\ \ sectionConditions.forEach(function (sectionCondition) {\ checkSelect(sectionCondition); \ checkCheckbox(sectionCondition); \ checkRadio(sectionCondition); \ });\ \ showHideSection(shouldShowSection);\ \ function checkSelect(sectionCondition) {\ var matchingSelect = $("select[id=" + sectionCondition.ElementName + "]")[0];\ \ if (!matchingSelect) {\ return;\ }\ \ if (matchingSelect.type === \'select-multiple\') {\ var hasOneMatchingValue = false;\ \ for (var i = 0; i < matchingSelect.selectedOptions.length; i++) {\ if (encode(matchingSelect.selectedOptions[i].value) === sectionCondition.Value) {\ hasOneMatchingValue = true;\ }\ }\ \ shouldShowSection = mergeCondition(shouldShowSection, hasOneMatchingValue, matchingSelect);\ } else {\ shouldShowSection = mergeCondition(shouldShowSection, encode(matchingSelect.value) === sectionCondition.Value, matchingSelect);\ }\ }\ \ function checkCheckbox(sectionCondition) {\ var matchingCheckboxes = $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'checkbox\']");\ \ for (var i = 0; i < matchingCheckboxes.length; i++) {\ if (encode(matchingCheckboxes[i].value) === sectionCondition.Value) {\ shouldShowSection = mergeCondition(shouldShowSection, matchingCheckboxes[i].checked, matchingCheckboxes[i]);\ }\ }\ }\ \ function checkRadio(sectionCondition) {\ var matchingRadios = $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'radio\']");\ \ for (var i = 0; i < matchingRadios.length; i++) {\ if (encode(matchingRadios[i].value) === sectionCondition.Value) {\ shouldShowSection = mergeCondition(shouldShowSection, matchingRadios[i].checked, matchingRadios[i]);\ }\ }\ }\ }\ \ function mergeCondition(overallResult, newResult, element) {\ newResult = newResult && isParentVisible(element);\ \ if (conditionOperator === \'and\') {\ return overallResult && newResult;\ } else {\ return overallResult || newResult;\ }\ }\ \ function isParentVisible(element) {\ var parentSectionDiv = $(\'#\' + element.id).closest(".fb-section");\ return parentSectionDiv && !parentSectionDiv.is(":hidden");\ }\ \ function encode(myString) {\ myString = he.encode(he.escape(myString));\ \ /* Fixes issues with single quote and backtick encoding */\ var i,\ entities = [\ [\''\', \''\'],\ [\'`\', \'`\']\ ];\ \ for (i = 0; i < entities.length; i++) {\ myString = String(myString).replace(new RegExp(entities[i][0], \'g\'), entities[i][1]);\ }\ \ return myString;\ }\ \ function showHideSection(showSection) {\ if (showSection) {\ $(\'#FormField20_3c81cff9-8cab-409b-babc-68f33f060052\').show();\ } else {\ $(\'#FormField20_3c81cff9-8cab-409b-babc-68f33f060052\').hide();\ }\ \ $("#FormField20_3c81cff9-8cab-409b-babc-68f33f060052 .conditionalSectionListSelection").each(function (i, obj) {\ if (obj.type === \'radio\' || obj.type === \'checkbox\') {\ if (obj.checked) {\ $(\'#\' + obj.id).change();\ }\ } else {\ $(\'#\' + obj.id).change();\ }\ });\ }\ });\ });\ };\ \ fbRequireJSScript.addEventListener("load", conditionalSectionJs);var conditionalSectionJs = function () {\ requirejs([window.formHost + \'/Scripts/require/fbRequire.config.js\'], function (fbRequireConfig) {\ var fbRequire = fbRequireConfig.fbRequire;\ \ fbRequire([\'jquery\', \'he\'], function ($, he) {\ he.encode.options.decimal = true;\ he.encode.options.allowUnsafeSymbols = true;\ \ var sectionConditions = JSON.parse(\'[{"ElementName":"FormField16_3c81cff9-8cab-409b-babc-68f33f060052","Value":"Requests for referrals"}]\');\ var conditionOperator = \'and\';\ \ sectionConditions.forEach(function (sectionCondition) {\ $("select[id=" + sectionCondition.ElementName + "]").addClass(\'conditionalSectionListSelection\');\ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'checkbox\']").addClass(\'conditionalSectionListSelection\');\ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'radio\']").addClass(\'conditionalSectionListSelection\');\ \ $("select[id=" + sectionCondition.ElementName + "]").on(\'change\', function () {\ checkShowHide();\ });\ \ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'checkbox\']").on(\'change\', function () {\ checkShowHide();\ });\ \ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'radio\']").on(\'change\', function () {\ checkShowHide();\ });\ });\ \ function checkShowHide() {\ var shouldShowSection = conditionOperator === \'and\'; /* set default to true for AND operation and false for OR operation */\ \ sectionConditions.forEach(function (sectionCondition) {\ checkSelect(sectionCondition); \ checkCheckbox(sectionCondition); \ checkRadio(sectionCondition); \ });\ \ showHideSection(shouldShowSection);\ \ function checkSelect(sectionCondition) {\ var matchingSelect = $("select[id=" + sectionCondition.ElementName + "]")[0];\ \ if (!matchingSelect) {\ return;\ }\ \ if (matchingSelect.type === \'select-multiple\') {\ var hasOneMatchingValue = false;\ \ for (var i = 0; i < matchingSelect.selectedOptions.length; i++) {\ if (encode(matchingSelect.selectedOptions[i].value) === sectionCondition.Value) {\ hasOneMatchingValue = true;\ }\ }\ \ shouldShowSection = mergeCondition(shouldShowSection, hasOneMatchingValue, matchingSelect);\ } else {\ shouldShowSection = mergeCondition(shouldShowSection, encode(matchingSelect.value) === sectionCondition.Value, matchingSelect);\ }\ }\ \ function checkCheckbox(sectionCondition) {\ var matchingCheckboxes = $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'checkbox\']");\ \ for (var i = 0; i < matchingCheckboxes.length; i++) {\ if (encode(matchingCheckboxes[i].value) === sectionCondition.Value) {\ shouldShowSection = mergeCondition(shouldShowSection, matchingCheckboxes[i].checked, matchingCheckboxes[i]);\ }\ }\ }\ \ function checkRadio(sectionCondition) {\ var matchingRadios = $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'radio\']");\ \ for (var i = 0; i < matchingRadios.length; i++) {\ if (encode(matchingRadios[i].value) === sectionCondition.Value) {\ shouldShowSection = mergeCondition(shouldShowSection, matchingRadios[i].checked, matchingRadios[i]);\ }\ }\ }\ }\ \ function mergeCondition(overallResult, newResult, element) {\ newResult = newResult && isParentVisible(element);\ \ if (conditionOperator === \'and\') {\ return overallResult && newResult;\ } else {\ return overallResult || newResult;\ }\ }\ \ function isParentVisible(element) {\ var parentSectionDiv = $(\'#\' + element.id).closest(".fb-section");\ return parentSectionDiv && !parentSectionDiv.is(":hidden");\ }\ \ function encode(myString) {\ myString = he.encode(he.escape(myString));\ \ /* Fixes issues with single quote and backtick encoding */\ var i,\ entities = [\ [\''\', \''\'],\ [\'`\', \'`\']\ ];\ \ for (i = 0; i < entities.length; i++) {\ myString = String(myString).replace(new RegExp(entities[i][0], \'g\'), entities[i][1]);\ }\ \ return myString;\ }\ \ function showHideSection(showSection) {\ if (showSection) {\ $(\'#FormField22_3c81cff9-8cab-409b-babc-68f33f060052\').show();\ } else {\ $(\'#FormField22_3c81cff9-8cab-409b-babc-68f33f060052\').hide();\ }\ \ $("#FormField22_3c81cff9-8cab-409b-babc-68f33f060052 .conditionalSectionListSelection").each(function (i, obj) {\ if (obj.type === \'radio\' || obj.type === \'checkbox\') {\ if (obj.checked) {\ $(\'#\' + obj.id).change();\ }\ } else {\ $(\'#\' + obj.id).change();\ }\ });\ }\ });\ });\ };\ \ fbRequireJSScript.addEventListener("load", conditionalSectionJs);var conditionalSectionJs = function () {\ requirejs([window.formHost + \'/Scripts/require/fbRequire.config.js\'], function (fbRequireConfig) {\ var fbRequire = fbRequireConfig.fbRequire;\ \ fbRequire([\'jquery\', \'he\'], function ($, he) {\ he.encode.options.decimal = true;\ he.encode.options.allowUnsafeSymbols = true;\ \ var sectionConditions = JSON.parse(\'[{"ElementName":"FormField16_3c81cff9-8cab-409b-babc-68f33f060052","Value":"Feedback about doctors or office staff"},{"ElementName":"FormField16_3c81cff9-8cab-409b-babc-68f33f060052","Value":"Business opportunities and vendor inquiries"},{"ElementName":"FormField16_3c81cff9-8cab-409b-babc-68f33f060052","Value":"Other"}]\');\ var conditionOperator = \'or\';\ \ sectionConditions.forEach(function (sectionCondition) {\ $("select[id=" + sectionCondition.ElementName + "]").addClass(\'conditionalSectionListSelection\');\ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'checkbox\']").addClass(\'conditionalSectionListSelection\');\ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'radio\']").addClass(\'conditionalSectionListSelection\');\ \ $("select[id=" + sectionCondition.ElementName + "]").on(\'change\', function () {\ checkShowHide();\ });\ \ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'checkbox\']").on(\'change\', function () {\ checkShowHide();\ });\ \ $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'radio\']").on(\'change\', function () {\ checkShowHide();\ });\ });\ \ function checkShowHide() {\ var shouldShowSection = conditionOperator === \'and\'; /* set default to true for AND operation and false for OR operation */\ \ sectionConditions.forEach(function (sectionCondition) {\ checkSelect(sectionCondition); \ checkCheckbox(sectionCondition); \ checkRadio(sectionCondition); \ });\ \ showHideSection(shouldShowSection);\ \ function checkSelect(sectionCondition) {\ var matchingSelect = $("select[id=" + sectionCondition.ElementName + "]")[0];\ \ if (!matchingSelect) {\ return;\ }\ \ if (matchingSelect.type === \'select-multiple\') {\ var hasOneMatchingValue = false;\ \ for (var i = 0; i < matchingSelect.selectedOptions.length; i++) {\ if (encode(matchingSelect.selectedOptions[i].value) === sectionCondition.Value) {\ hasOneMatchingValue = true;\ }\ }\ \ shouldShowSection = mergeCondition(shouldShowSection, hasOneMatchingValue, matchingSelect);\ } else {\ shouldShowSection = mergeCondition(shouldShowSection, encode(matchingSelect.value) === sectionCondition.Value, matchingSelect);\ }\ }\ \ function checkCheckbox(sectionCondition) {\ var matchingCheckboxes = $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'checkbox\']");\ \ for (var i = 0; i < matchingCheckboxes.length; i++) {\ if (encode(matchingCheckboxes[i].value) === sectionCondition.Value) {\ shouldShowSection = mergeCondition(shouldShowSection, matchingCheckboxes[i].checked, matchingCheckboxes[i]);\ }\ }\ }\ \ function checkRadio(sectionCondition) {\ var matchingRadios = $("input[id^=\'" + sectionCondition.ElementName + "\'][type=\'radio\']");\ \ for (var i = 0; i < matchingRadios.length; i++) {\ if (encode(matchingRadios[i].value) === sectionCondition.Value) {\ shouldShowSection = mergeCondition(shouldShowSection, matchingRadios[i].checked, matchingRadios[i]);\ }\ }\ }\ }\ \ function mergeCondition(overallResult, newResult, element) {\ newResult = newResult && isParentVisible(element);\ \ if (conditionOperator === \'and\') {\ return overallResult && newResult;\ } else {\ return overallResult || newResult;\ }\ }\ \ function isParentVisible(element) {\ var parentSectionDiv = $(\'#\' + element.id).closest(".fb-section");\ return parentSectionDiv && !parentSectionDiv.is(":hidden");\ }\ \ function encode(myString) {\ myString = he.encode(he.escape(myString));\ \ /* Fixes issues with single quote and backtick encoding */\ var i,\ entities = [\ [\''\', \''\'],\ [\'`\', \'`\']\ ];\ \ for (i = 0; i < entities.length; i++) {\ myString = String(myString).replace(new RegExp(entities[i][0], \'g\'), entities[i][1]);\ }\ \ return myString;\ }\ \ function showHideSection(showSection) {\ if (showSection) {\ $(\'#FormField15_3c81cff9-8cab-409b-babc-68f33f060052\').show();\ } else {\ $(\'#FormField15_3c81cff9-8cab-409b-babc-68f33f060052\').hide();\ }\ \ $("#FormField15_3c81cff9-8cab-409b-babc-68f33f060052 .conditionalSectionListSelection").each(function (i, obj) {\ if (obj.type === \'radio\' || obj.type === \'checkbox\') {\ if (obj.checked) {\ $(\'#\' + obj.id).change();\ }\ } else {\ $(\'#\' + obj.id).change();\ }\ });\ }\ });\ });\ };\ \ fbRequireJSScript.addEventListener("load", conditionalSectionJs);(function ($) {\ $(document).ready(function () {\ $(\'fieldset.fb-fieldset\').css({\ \'border\': \'none\',\ \'margin\': \'0\',\ \'padding\': \'0\'\ });\ $(\'div.ButtonHolder > div\').css({\ \'margin-left\': \'0\',\ \'padding-left\': \'0\',\ \'display\': \'none\'\ });\ $(\'select#FormField16_3c81cff9-8cab-409b-babc-68f33f060052\').change(function () {\ var topic = $(this).val();\ if (topic === \'Feedback about doctors or office staff\' || topic === \'Business opportunities and vendor inquiries\' || topic === \'Other\') {\ $(\'div.ButtonHolder > div\').css({\ \'display\': \'block\'\ })\ } else {\ $(\'div.ButtonHolder > div\').css({\ \'display\': \'none\'\ })\ }\ });\ });\ })(jQuery);'; if(fbScriptTag.length === 0) { fbScriptTag = document.querySelector("script[src*='3c81cff9-8cab-409b-babc-68f33f060052']"); } else { fbScriptTag = fbScriptTag[0]; } fbRenderContainer.id = "formRenderContainer"; fbRenderContainer.className = " fbRenderContainer fbRenderContainer_3c81cff9-8cab-409b-babc-68f33f060052"; fbRenderedCssContainer.id = "fbRenderedCssContainer"; fbConfigScript.type = "text/javascript"; fbRequireJSScript.type = "text/javascript"; fbInstaMedJSScript.type = "text/javascript"; fbGeoCaptchaCallback.type = "text/javascript"; fbGeoReCaptchaCallback.type = "text/javascript"; fbFormulateRenderer.type = "text/javascript"; fbRenderedIntegrations.type = "text/javascript"; fbRenderedScripts.type = "text/javascript"; fbAutoPopulateFromQueryString.type = "text/javascript"; fbRequireJSScript.src = "https://formulate.geonetric.com/Scripts/require.min.js"; fbInstaMedJSScript.src = "https://formulate.geonetric.com/Scripts/vendor/instamed/token.js"; fbInstaMedJSScript.id = "instamed-sdk"; fbGeoCaptchaCallback.src = "https://formulate.geonetric.com/Scripts/geo-captcha-callback.js"; fbGeoReCaptchaCallback.src = "https://www.google.com/recaptcha/api.js?onload=geoFbCaptchaCallback&render=6LdxkTEpAAAAAMKbkhz8-INpQis_mvSaIXnoyC2V"; fbFormulateRenderer.src = "https://formulate.geonetric.com/Scripts/require/formulate-renderer.js?embeddedCssType=0&isTestResponse=False&hasGoogleAnalytics=False"; fbFormulateRenderer.id = "formulateRendererScript"; fbAutoPopulateFromQueryString.src = "https://formulate.geonetric.com/Scripts/auto-populate-from-query-string.js"; if (fbEnableInstaMedScript === 'True') { fbInstaMedJSScript.setAttribute("data-displaymode", "embedded"); fbInstaMedJSScript.setAttribute("data-environment", "UAT"); fbInstaMedJSScript.setAttribute("data-mobiledisplaymode", "embedded"); } fbGeoCaptchaCallback.onload = function() { if(document.querySelectorAll('.geo-fb-recaptcha').length > 0) { fbBodyTag.appendChild(fbGeoReCaptchaCallback); } } fbRequireJSScript.addEventListener("load", function() { fbBodyTag.appendChild(fbFormulateRenderer); fbBodyTag.appendChild(fbAutoPopulateFromQueryString); }); fbFormulateRenderer.addEventListener("load", function () { initFormBuilderForm(); }); var embeddedCssType = 0 switch (embeddedCssType) { case 1: fbEmbeddedCss = ''; break; case 2: fbEmbeddedCss = ''; break; default: fbEmbeddedCss = ''; } if (fbIsTestResponse === 'True') { fbRenderContainer.setAttribute('data-test-mode', 'true'); } else { fbRenderContainer.setAttribute('data-test-mode', 'false'); } fbRenderContainer.innerHTML = "
\

Required fields are marked with *

\ \ \ \ \ \ \ \ \

To reach us online, please select the topic of your question or issue.

Please use MyChart, our patient portal, to contact your doctor's office directly about this issue.

For MyChart technical assistance only, please call our help desk, 201-894-3700.

You can access your health information through MyChart or by requesting copies electronically.

For billing inquiries, please call 201-366-9950. You can pay your bill online at www.quickpayportal.com.

To find a physician, please search our physician referral service or call 833-234-2234.

\
\ Name\ \
\
\ \
\ \
\ \ \
\
\
\
\ \
\ \
\ \ \
\
\
\
\
\ \
\ \
\ \
\
\
\ \
\ \
\
\
"; fbConfigScript.innerHTML = "window.formHost = 'https://formulate.geonetric.com'; window.submissionHost = 'https://formulate.geonetric.com/';"; fbRenderedScripts.innerHTML = renderedScripts.replace(/