var pjQ = pjQ || {}, ContactForm_1; (function () { "use strict"; var isSafari = /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor); 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); }, getSessionId = function () { return sessionStorage.getItem("session_id") == null ? "" : sessionStorage.getItem("session_id"); }, createSessionId = function () { if(getSessionId()=="") { sessionStorage.setItem("session_id", "9252b093017ae78da1c7b3ace83db473"); } }, loadScript = function (url, callback) { loadRemote(url, "js", callback); }, loadCss = function (url, callback) { loadRemote(url, "css", callback); }; var CFObj = { server: "http://frontlineupdates.com/Contact_Form_02/", folder: "http://frontlineupdates.com/Contact_Form_02/", fid: 1, form: "pjCF_form_1", week_start: 1, jq_date_format: "mm.dd.yy", date_format: "m.d.Y", confirm_option: "message", thankyou_page: "http://", confirm_message: "Thank you for submitting your information and/or question!", 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...","form_inactive":"Form is inactive"}, error_post_max_size: "The form could not be uploaded because file size is too large and your server cannot upload it. Maximum allowed size is 256M. Please, upload smaller file.", error_upload_max_size: "The file size is too large and your server cannot upload it. Upload max file size is 256M. Please, upload smaller file.", is_reject: true, field_rules:{ pjCF_field_3: {required: true}, pjCF_field_5: {required: true, email: true}, pjCF_field_7: {required: true}, pjCF_field_8: {required: true}, "pjCF_field_9[]": {required: false, extension: "pdf|doc|docx|xls|xlsx|csv|txt|rtf|html|zip|mp3|wma|mpg|flv|avi|jpg|jpeg|png|gif", filesize: 104857600}, pjCF_field_10: {required: true}}, field_messages:{ pjCF_field_3: {required: "Please enter your name."}, pjCF_field_5: {required: "Please enter a valid Email address.", email: "You've entered an invalid email address."}, pjCF_field_7: {required: "Please enter your country"}, pjCF_field_8: {required: "Please choose"}, "pjCF_field_9[]": {required: "This field is required.", extension: "You are trying to upload an unacceptable file.", filesize: "Your file exceeds the size limit"}, pjCF_field_10: {required: "Please provide additional details about your information or question"}, captcha: {required: "Your answer is incorrect ", remote: "You have an incorrect answer"}} }; loadScript("http://frontlineupdates.com/Contact_Form_02/core/third-party/storage_polyfill/1.0.0/storagePolyfill.min.js", function () { if (isSafari) { createSessionId(); CFObj.session_id = getSessionId(); }else{ CFObj.session_id = ""; } loadScript("http://frontlineupdates.com/Contact_Form_02/core/third-party/pj_jquery/1.11.2/pjQuery.min.js", function () { loadScript("http://frontlineupdates.com/Contact_Form_02/core/third-party/pj_validate/1.10.0/pjQuery.validate.min.js", function () { loadScript("http://frontlineupdates.com/Contact_Form_02/core/third-party/pj_validate/1.10.0/pjQuery.additional-methods.min.js", function () { loadScript("http://frontlineupdates.com/Contact_Form_02/core/third-party/pj_bootstrap/3.3.2/pjQuery.bootstrap.min.js", function () { loadScript("http://frontlineupdates.com/Contact_Form_02/core/third-party/pj_jquery_ui/1.9.2/js/pjQuery-ui.custom.min.js", function () { loadScript("http://frontlineupdates.com/Contact_Form_02/core/third-party/pj_form/1.0.0/pjQuery.form.min.js", function () { loadScript("http://frontlineupdates.com/Contact_Form_02/app/web/js/pjLoad.js", function () { ContactForm_1 = new ContactForm(CFObj); }); }); }); }); }); }); }); }); })();