document.write('
'); var SCFormStyles = "@media (max-width: 480px) { body [name^='scForm'] .body-div { width: 100% !important; } body [name^='scForm'] .body-div table { width: 100%; } body [name^='scForm'] .body-div table tbody { width: 100%; } body [name^='scForm'] .body-div table tbody tr { width: 100%; } body [name^='scForm'] .body-div table tbody tr td { width: 100%; } } body [name^='scForm'] .body-div table.hiddenElement { display: none; height: 0px; min-height: 0px; } body [name^='scForm'] .body-div table { box-sizing: content-box; line-height: normal; font-size: inherit; border: 0; padding: 0; margin: 0; } body [name^='scForm'] .body-div table tr { line-height: normal; border: 0; padding: 0; box-sizing: content-box; margin: 0; } body [name^='scForm'] .body-div table tr td { line-height: normal; box-sizing: content-box; border: 0; padding: 0; margin: 0; } body [name^='scForm'] .body-div table tr td .label { background: transparent; text-align: inherit; text-shadow: initial; white-space: normal; } body [name^='scForm'] .body-div table tr td input { height: auto; border-radius: 3px; font-size: 100%; line-height: normal; } body [name^='scForm'] .body-div table tr td div { line-height: normal; box-sizing: content-box; } body [name^='scForm'] .body-div table tr td .inputContainer { height: auto; } body [name^='scForm'] .body-div table tr td textarea { font-family: Arial, Helvetica, sans-serif; } body [name^='scForm'] .body-div table tr td .options.input label { display: inline-block; }";window['formHtml-122726'] = ''; if (typeof jQueryScriptOutputted == 'undefined') var jQueryScriptOutputted = false; var errorStyles = '.errorTip { display: inline-block; position:absolute; } .errorTip .errorInner{ position: relative; background: #d54333; border: 2px solid #661e1e; padding:5px;border-radius:7px;color:white;font-size:14px; cursor:pointer; max-width:350px; box-shadow: 3px 3px 10px rgba(0,0,0,0.3); }.errorInner:after, .errorInner:before { right: 100%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none;}.errorInner:after { border-color: rgba(213, 67, 51, 0); border-right-color: #d54333; border-width: 10px; top: 50%; margin-top: -10px;}.errorInner:before { border-color: rgba(102, 30, 30, 0); border-right-color: #661e1e; border-width: 13px; top: 50%; margin-top: -13px;}'; if (typeof scFormLoadStart == 'undefined') var scFormLoadStart = false; if (typeof scFormLoaded == 'undefined') var scFormLoaded = false; if (typeof scPortableLoaded == 'undefined') var scPortableLoaded = false; if (typeof scTimeoutLoaded == 'undefined') var scTimeoutLoaded = false; if (typeof scButtonLoaded == 'undefined') var scButtonLoaded = false; if (typeof scScriptsLoading == 'undefined') var scScriptsLoading = false; if (typeof scScriptsLoaded == 'undefined') var scScriptsLoaded = false; if (typeof SCFormStyles === 'undefined') var SCFormStyles = ''; // Gets jQuery function scInitJQuery() { //if the jQuery object isn't available if (typeof(jQuery) == 'undefined') { if (! jQueryScriptOutputted) { //only output the script once.. jQueryScriptOutputted = true; var script = document.createElement("SCRIPT"); script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'; script.type = 'text/javascript'; document.getElementsByTagName("head")[0].appendChild(script); scLoadScripts(); } setTimeout("scInitJQuery()", 50); } else if (!scScriptsLoading){ console.log("jQuery already loaded, loading scripts"); scLoadScripts(); } } // Adds error styles and validation script function scLoadScripts() { scScriptsLoading = true; if (scScriptsLoaded) return true; if (typeof jQuery != 'undefined') { var script = document.createElement("SCRIPT"); script.src = scAppUrl+'channels/form/js/formValidation.js'; script.type = 'text/javascript'; document.getElementsByTagName("head")[0].appendChild(script); var script2 = document.createElement("SCRIPT"); script2.src = scAppUrl + 'thirdparty/jquery-datetimepicker/jquery.datetimepicker.js'; script2.type = 'text/javascript'; document.getElementsByTagName('head')[0].appendChild(script2); var style = document.createElement('LINK'); style.href = scAppUrl + 'thirdparty/jquery-datetimepicker/jquery.datetimepicker.css'; style.type = 'text/css'; style.rel = 'stylesheet'; document.getElementsByTagName('head')[0].appendChild(style); jQuery( "" ).appendTo( "head" ); scLoadScripts = true; scBindKeys(); } else{ setTimeout(function() { scLoadScripts() }, 50); } } function scBindKeys() { jQuery(document).keyup(function(e) { if (e.keyCode == 27) { scRemoveModal() } // esc }); } // Requests the forms html, append it to the container function scGetPortable(id) { if (typeof jQuery != 'undefined') { if (window['portableFormTarget-'+id]) { jQuery('#' + window['portableFormTarget-'+id]).html(''); } var data = scGetForm(id); var container = jQuery('#scPortableForm-'+id); container.append(data); container.find('style').remove(); container.find('form').attr('id', 'scInlineForm-'+id); container.find('.scVerifyEmail').hide(); if (container.find('.footer-div').length > 0) { container.find('.footer-div').appendTo(container.find('.body-div')); jQuery('.body-div').css('height','auto'); } container.find('form').submit(function(e) { e.preventDefault(); if (scValidate('#scPortableForm-'+id)){ var data = container.find('form').serializeArray(); var html = scMergeValues(window['formThankyouPortable-'+id], data); jQuery('body').append(''); var body = container.find('.body-div').clone(); body.children().remove(); jQuery(document).trigger("portableFormSubmitted", [jQuery('#scPortableForm-'+id), id]); setTimeout(function() { jQuery("#scPortableIframeForm-"+id).contents().find("body").append(container.find('form')); jQuery('#scPortableIframeForm-'+id).contents().find('form').unbind('submit') jQuery('#scPortableIframeForm-'+id).contents().find('form').submit(); container.append(body); container.html(html); }, 100); } }); scDefaultValues('#scPortableForm-'+id); scLoadJs(); if (scMobileCheck() ) { container.find('.body-div').css('width', '100%'); container.find('td').css('width', '100%'); } jQuery(document).trigger("portableFormDisplayed", [container, id]); } else setTimeout("scGetPortable("+id+")", 50); } function scLoadJs(){ scBindTimePicker(); } function scBindTimePicker() { /** * Get out of here if there are no date pickers */ if (jQuery('.datePicker').length === 0 && jQuery('.dateTimePicker').length === 0) { return false; } /** * If there are date pickers, bind to them */ if (jQuery('.datePicker').length > 0) { if (typeof jQuery('.datePicker').datetimepicker != 'undefined') { // Oh god this is grosse jQuery('.datePicker').datetimepicker({ closeOnDateSelect: true, format: 'Y-m-d', timepicker:false, }); } else { setTimeout(function() { scBindTimePicker(); },50); } } if (jQuery('.dateTimePicker').length > 0) { if (typeof jQuery('.dateTimePicker').datetimepicker != 'undefined') { // Oh god this is grosse jQuery('.dateTimePicker').datetimepicker({ closeOnDateSelect: true, format: 'Y-m-d g:i A', }); } else { setTimeout(function() { scBindTimePicker(); },50); } } } // Request the forms html, hide it in the document function scGetModal(id) { if (typeof jQuery != 'undefined') { var data = scGetForm(id); jQuery('body').append(''); if (jQuery('.scFormContainerModal .footer-div').length > 0) { jQuery('.scFormContainerModal .footer-div').appendTo('.scFormContainerModal .body-div'); jQuery('.body-div').css('height','auto'); } var container = jQuery('#scFormContainerModal-'+id); container.find('form').css('margin-top', '6%'); container.find('.body-div').css('box-shadow', '0px 1px 4px #333'); container.find('style').remove(); container.find('div:first').css('background', 'transparent'); container.find('.body-div').css('position', 'relative'); container.find('.body-div').css('margin', '0 auto'); container.find('.body-div').append("
Submission Complete
Your submission has been received, thank you for completing the form