var pjQ = pjQ || {}, ContactForm_21; (function () { "use strict"; var loadRemote = function(url, type, callback) { var _element, _type, _attr, scr, s, element; switch (type) { case 'css': _element = "link"; _type = "text/css"; _attr = "href"; break; case 'js': _element = "script"; _type = "text/javascript"; _attr = "src"; break; } scr = document.getElementsByTagName(_element); s = scr[scr.length - 1]; element = document.createElement(_element); element.type = _type; if (type == "css") { element.rel = "stylesheet"; } if (element.readyState) { element.onreadystatechange = function () { if (element.readyState == "loaded" || element.readyState == "complete") { element.onreadystatechange = null; callback(); } }; } else { element.onload = function () { callback(); }; } element[_attr] = url; s.parentNode.insertBefore(element, s.nextSibling); }, loadScript = function (url, callback) { loadRemote(url, "js", callback); }, loadCss = function (url, callback) { loadRemote(url, "css", callback); }; var CFObj = { server: "https://bearridgecamp.ca/forms/", folder: "https://bearridgecamp.ca/forms/", fid: 21, form: "pjCF_form_21", week_start: 1, jq_date_format: "dd-mm-yy", date_format: "d-m-Y", confirm_option: "redirect", thankyou_page: "https://Bearridgecamp.ca", confirm_message: "Thank you!", banned_words: "", error_message: {"url":"Link or url is not allowed in form fields.","word":"Message blocked due to banned words used.","redirect":"You will be redirected in few seconds..."}, is_reject: false, field_rules:{ pjCF_field_211: {required: true}, pjCF_field_231: {required: true}, pjCF_field_251: {required: false}, pjCF_field_261: {required: false}, pjCF_field_271: {required: true}, pjCF_field_281: {required: true}, pjCF_field_291: {required: true}, pjCF_field_301: {required: true}, pjCF_field_371: {required: false}, pjCF_field_831: {required: false}, pjCF_field_921: {required: true}, pjCF_field_331: {required: false}, pjCF_field_861: {required: true}, pjCF_field_871: {required: true}, pjCF_field_891: {required: true}, pjCF_field_901: {required: true}, pjCF_field_911: {required: true}, pjCF_field_451: {required: true}, pjCF_field_461: {required: false}, pjCF_field_441: {required: true}, pjCF_field_491: {required: false}, pjCF_field_501: {required: false}, pjCF_field_481: {required: false}, pjCF_field_511: {required: false}, pjCF_field_521: {required: false}, pjCF_field_531: {required: false}, pjCF_field_541: {required: false}, pjCF_field_561: {required: false}, pjCF_field_551: {required: false}, pjCF_field_571: {required: false}, pjCF_field_591: {required: false}, pjCF_field_581: {required: false}, pjCF_field_631: {required: true}, pjCF_field_951: {required: false}}, field_messages:{ pjCF_field_211: {required: "This field is required."}, pjCF_field_231: {required: "This field is required."}, pjCF_field_251: {required: "This field is required."}, pjCF_field_261: {required: "This field is required."}, pjCF_field_271: {required: "This field is required."}, pjCF_field_281: {required: "This field is required."}, pjCF_field_291: {required: "This field is required."}, pjCF_field_301: {required: "This field is required."}, pjCF_field_371: {required: "This field is required."}, pjCF_field_831: {required: "This field is required."}, pjCF_field_921: {required: "This field is required."}, pjCF_field_311: {required: "This field is required."}, pjCF_field_331: {required: "This field is required."}, pjCF_field_861: {required: "This field is required."}, pjCF_field_871: {required: "This field is required."}, pjCF_field_851: {required: "This field is required."}, pjCF_field_891: {required: "This field is required."}, pjCF_field_901: {required: "This field is required."}, pjCF_field_911: {required: "This field is required."}, pjCF_field_451: {required: "This field is required."}, pjCF_field_461: {required: "This field is required."}, pjCF_field_441: {required: "This field is required."}, pjCF_field_491: {required: "This field is required."}, pjCF_field_501: {required: "This field is required."}, pjCF_field_481: {required: "This field is required."}, pjCF_field_511: {required: "This field is required."}, pjCF_field_521: {required: "This field is required."}, pjCF_field_531: {required: "This field is required."}, pjCF_field_541: {required: "This field is required."}, pjCF_field_561: {required: "This field is required."}, pjCF_field_551: {required: "This field is required."}, pjCF_field_571: {required: "This field is required."}, pjCF_field_591: {required: "This field is required."}, pjCF_field_581: {required: "This field is required."}, "pjCF_field_201[]": {required: "This field is required."}, pjCF_field_631: {required: "This field is required."}, "pjCF_field_941[]": {required: "This field is required."}, pjCF_field_951: {required: "This field is required."}} }; loadScript("https://bearridgecamp.ca/forms/core/libs/pjQ/pjQuery.js", function () { loadScript("https://bearridgecamp.ca/forms/core/libs/pjQ/pjQuery.validate.min.js", function () { loadScript("https://bearridgecamp.ca/forms/core/libs/pjQ/pjQuery.additional-methods.min.js", function () { loadScript("https://bearridgecamp.ca/forms/core/libs/pjQ/pjQuery.bootstrap.min.js", function () { loadScript("https://bearridgecamp.ca/forms/core/libs/pjQ/pjQuery-ui-1.9.2.custom.min.js", function () { loadScript("https://bearridgecamp.ca/forms/core/libs/pjQ/pjQuery.form.min.js", function () { loadScript("https://bearridgecamp.ca/forms/app/web/js/pjLoad.js", function () { ContactForm_21 = new ContactForm(CFObj); }); }); }); }); }); }); }); })();