var pjQ = pjQ || {}, ContactForm_1; (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://www.starrentals.com.au/", folder: "https://www.starrentals.com.au/", fid: 1, form: "pjCF_form_1", week_start: 1, jq_date_format: "dd-mm-yy", date_format: "d-m-Y", confirm_option: "message", thankyou_page: "http://", confirm_message: "Thank you!", banned_words: "@Cryptaxbot|boot", error_message: {"redirect":"You will be redirected in few seconds...","word":"Message blocked due to banned words used."}, is_reject: true, field_rules:{ pjCF_field_1: {required: true}, pjCF_field_3: {required: true, email: true}, pjCF_field_4: {required: true, number: true}, pjCF_field_5: {required: true}, captcha: {required: true, remote: "https://www.starrentals.com.au/index.php?controller=pjForm&action=pjActionCheckCaptcha&id=1"}}, field_messages:{ pjCF_field_1: {required: "This field is required."}, pjCF_field_3: {required: "This field is required.", email: "Email is invalid."}, pjCF_field_4: {required: "", number: "error"}, pjCF_field_5: {required: "This field is required."}, captcha: {required: "This field is required.", remote: "Captcha is incorrect."}}, }; loadScript("https://www.starrentals.com.au/core/third-party/pj_jquery/1.11.2/pjQuery.min.js", function () { loadScript("https://www.starrentals.com.au/core/third-party/pj_validate/1.10.0/pjQuery.validate.min.js", function () { loadScript("https://www.starrentals.com.au/core/third-party/pj_validate/1.10.0/pjQuery.additional-methods.min.js", function () { loadScript("https://www.starrentals.com.au/core/third-party/pj_jquery_ui/1.9.2/js/pjQuery-ui.custom.min.js", function () { loadScript("https://www.starrentals.com.au/core/third-party/pj_form/1.0.0/pjQuery.form.min.js", function () { loadScript("https://www.starrentals.com.au/app/plugins/pjContactForm/web/js/pjLoad.js", function () { ContactForm_1 = new ContactForm(CFObj); }); }); }); }); }); }); })();