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("c5ed1ff0-d4be-4681-b4da-16481faeae88"), 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 optionRateCostJs = function () {\ requirejs([window.formHost + \'/Scripts/require/fbRequire.config.js\'], function (fbRequireConfig) {\ var fbRequire = fbRequireConfig.fbRequire;\ \ fbRequire([\'jquery\', \'AutoNumeric\', \'cost\', \'he\'], function ($, AutoNumeric, cost, he) {\ var options = JSON.parse(\'[{"name":"$20","amount":20.0},{"name":"$50","amount":50.0},{"name":"$100","amount":100.0},{"name":"$250","amount":250.0},{"name":"$500","amount":500.0}]\'),\ formId = \'c5ed1ff0-d4be-4681-b4da-16481faeae88\',\ $formElementsContainer = $(\'.fbFormContainer_\' + formId),\ selectionType = \'Dropdown\',\ elementName = \'FormField5_c5ed1ff0-d4be-4681-b4da-16481faeae88\',\ $selectedItem = $formElementsContainer.find(\'[name="\' + elementName + \'_selected_item"]\'),\ $amount = $formElementsContainer.find(\'[name="\' + elementName + \'_amount"]\'),\ otherOptionMin = \'0.01\',\ otherOptionMax = \'1000000\',\ requiredMessage = \'Donation Amount is required.\';\ \ function removeOtherInput() {\ $formElementsContainer.find(\'#\' + elementName + \'_other_item_input_container\').remove();\ }\ \ $selectedItem.on(\'change\', function () {\ var selectedOptionId;\ if (selectionType === \'Dropdown\') {\ selectedOptionId = $(this).children(\':selected\').attr(\'id\');\ } else {\ selectedOptionId = $(this).attr(\'id\');\ }\ \ var selectedOptionValue = $(this).val();\ \ removeOtherInput();\ \ updateAmount(selectedOptionId, selectedOptionValue);\ \ cost.setTotalCost($formElementsContainer);\ });\ \ function addOtherInput() {\ var $otherInputContainer = $(\'
\');\ \ var $otherInputLabel = $(\'