Form Maker by WD – user-friendly drag & drop Form Builder plugin - Version 1.13.48

Version Description

  • Updated: Fancybox library.
  • Fixed: Do not execute after_submit if captcha is not passed.
  • Fixed: Conditional fields with & symbol in single/multiple choice fields.
  • Fixed: Do not show success message on redirecting to the other page.
  • Fixed: Non editable forms in some cases.
Download this release

Release Info

Developer 10web
Plugin Icon 128x128 Form Maker by WD – user-friendly drag & drop Form Builder plugin
Version 1.13.48
Comparing to
See all releases

Code changes from version 1.13.47 to 1.13.48

css/style_submissions.css CHANGED
@@ -143,11 +143,11 @@
143
  .submissions pre {
144
  vertical-align: middle !important
145
  }
146
- .wd_front_submissons_th{
147
- min-width:150px;
148
- max-width:200px;
149
  }
150
- .container-wrap .submission_params input[type="text"], .container-wrap .stats input[type="text"] {
 
151
  width: initial !important;
152
  padding: 0 !important;
153
  }
143
  .submissions pre {
144
  vertical-align: middle !important
145
  }
146
+ .wd_front_submissons_th {
147
+ min-width: 150px;
 
148
  }
149
+ .container-wrap .submission_params input[type="text"],
150
+ .container-wrap .stats input[type="text"] {
151
  width: initial !important;
152
  padding: 0 !important;
153
  }
form-maker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Form Maker
4
  * Plugin URI: https://10web.io/plugins/wordpress-form-maker/?utm_source=form_maker&utm_medium=free_plugin
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
- * Version: 1.13.47
7
  * Author: 10Web Form Builder Team
8
  * Author URI: https://10web.io/plugins/?utm_source=form_maker&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -98,8 +98,8 @@ final class WDFM {
98
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
99
  $this->front_urls = $this->get_front_urls();
100
  $this->main_file = plugin_basename(__FILE__);
101
- $this->plugin_version = '1.13.47';
102
- $this->db_version = '2.13.47';
103
  $this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
104
  $this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
105
  $this->menu_slug = 'manage' . $this->menu_postfix;
@@ -614,7 +614,7 @@ final class WDFM {
614
  wp_register_style($this->handle_prefix . '-roboto', 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');
615
 
616
  if ( !$this->is_free ) {
617
- wp_register_style('jquery.fancybox', $this->plugin_url . '/js/fancybox/jquery.fancybox.css', array(), '2.1.5');
618
  }
619
  // Admin scripts.
620
  $localize_key_all = $this->handle_prefix . '-admin';
@@ -761,7 +761,7 @@ final class WDFM {
761
  wp_register_script($this->handle_prefix . '-theme-edit-ng', $this->plugin_url . '/js/fm-theme-edit-ng.js', array(), $this->plugin_version);
762
 
763
  if (!$this->is_free) {
764
- wp_register_script('jquery.fancybox.pack', $this->plugin_url . '/js/fancybox/jquery.fancybox.pack.js', array(), '2.1.5');
765
  } else {
766
  wp_register_style($this->handle_prefix . '-deactivate-css', $this->plugin_url . '/wd/assets/css/deactivate_popup.css', array(), $this->plugin_version);
767
  wp_register_script($this->handle_prefix . '-deactivate-popup', $this->plugin_url . '/wd/assets/js/deactivate_popup.js', array(), $this->plugin_version, true);
3
  * Plugin Name: Form Maker
4
  * Plugin URI: https://10web.io/plugins/wordpress-form-maker/?utm_source=form_maker&utm_medium=free_plugin
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
+ * Version: 1.13.48
7
  * Author: 10Web Form Builder Team
8
  * Author URI: https://10web.io/plugins/?utm_source=form_maker&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
98
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
99
  $this->front_urls = $this->get_front_urls();
100
  $this->main_file = plugin_basename(__FILE__);
101
+ $this->plugin_version = '1.13.48';
102
+ $this->db_version = '2.13.48';
103
  $this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
104
  $this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
105
  $this->menu_slug = 'manage' . $this->menu_postfix;
614
  wp_register_style($this->handle_prefix . '-roboto', 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');
615
 
616
  if ( !$this->is_free ) {
617
+ wp_register_style('jquery.fancybox', $this->plugin_url . '/js/fancybox/jquery.fancybox.css', array(), '3.5.7');
618
  }
619
  // Admin scripts.
620
  $localize_key_all = $this->handle_prefix . '-admin';
761
  wp_register_script($this->handle_prefix . '-theme-edit-ng', $this->plugin_url . '/js/fm-theme-edit-ng.js', array(), $this->plugin_version);
762
 
763
  if (!$this->is_free) {
764
+ wp_register_script('jquery.fancybox.pack', $this->plugin_url . '/js/fancybox/jquery.fancybox.pack.js', array(), '3.5.7');
765
  } else {
766
  wp_register_style($this->handle_prefix . '-deactivate-css', $this->plugin_url . '/wd/assets/css/deactivate_popup.css', array(), $this->plugin_version);
767
  wp_register_script($this->handle_prefix . '-deactivate-popup', $this->plugin_url . '/wd/assets/js/deactivate_popup.js', array(), $this->plugin_version, true);
form_maker_insert.php CHANGED
@@ -83,7 +83,7 @@ class WDFMInsert {
83
  `header_hide_image` tinyint(4) NOT NULL DEFAULT '1',
84
  `header_hide` tinyint(4) NOT NULL DEFAULT '1',
85
  `jsversion` int(11) NOT NULL,
86
- `privacy` longtext NOT NULL,
87
  PRIMARY KEY (`id`)
88
  ) " . $charset_collate . ";";
89
  $wpdb->query($formmaker);
@@ -290,7 +290,7 @@ class WDFMInsert {
290
  `header_image_animation` varchar(200) NOT NULL,
291
  `header_hide_image` tinyint(4) NOT NULL DEFAULT '1',
292
  `header_hide` tinyint(4) NOT NULL DEFAULT '1',
293
- `privacy` longtext NOT NULL,
294
  `date` int(10) NOT NULL,
295
  PRIMARY KEY (`backup_id`)
296
  ) " . $charset_collate . ";";
@@ -303,17 +303,17 @@ class WDFMInsert {
303
  $form_maker_row = $wpdb->get_var('SELECT * FROM ' . $wpdb->prefix . 'formmaker' . (!WDFMInstance(self::PLUGIN)->is_free ? '' : ' WHERE id' . (WDFMInstance(self::PLUGIN)->is_free == 1 ? ' NOT ' : ' ') . 'IN (' . (get_option('contact_form_forms', '') != '' ? get_option('contact_form_forms') : 0) . ')'));
304
  if ( !$form_maker_row ) {
305
  $insert_form_id = array();
306
- $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `submissions_limit`, `submissions_limit_text`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `header_hide`, `jsversion`, `privacy`) VALUES (NULL, 'Contact Us', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images fm-form-builder\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - Name%</div></div><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - Email%</div></div><div class=\"wdform_column\"><div wdid=\"4\" class=\"wdform_row\">%4 - Subject%</div></div><div class=\"wdform_column\"><div wdid=\"5\" class=\"wdform_row\">%5 - Message%</div></div><div class=\"wdform_column\"><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', 1, '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}\r\n// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', 1, '{all}', '{all}', 6, 1, '2#**id**#Name#**label**#type_text#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Subject#**label**#type_text#****#5#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#2_elementform_id_temp#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '2#**id**#Name#**label**#type_text#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Subject#**label**#type_text#****#5#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', 0, 'testmode', '', '', 0, '2*:*id*:*type_text*:*type*:*Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*3*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*4*:*id*:*type_text*:*type*:*Subject*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*5*:*id*:*type_textarea*:*type*:*Message*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size_w*:*100*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', 1, 1, '*', 0, '', '', '', '', '', 1, '', '', '', '', '', '', '', '', '', '', '', 1, 1, 1, 1, 'administrator,', 0, '', '', 0, 0, 0, 0, 1, 'Contact Us', 'You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.', '', 'none', 0, 1, 0, '');");
307
  $insert_form_id[] = $wpdb->insert_id;
308
- $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `submissions_limit`, `submissions_limit_text`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `header_hide`, `jsversion`, `privacy`) VALUES (NULL, 'Client List Form', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images fm-form-builder\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - First Name%</div></div><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - Last Name%</div></div><div class=\"wdform_column\"><div wdid=\"4\" class=\"wdform_row\">%4 - Email%</div></div><div class=\"wdform_column\"><div wdid=\"5\" class=\"wdform_row\">%5 - Phone%</div></div><div class=\"wdform_column\"><div wdid=\"6\" class=\"wdform_row\">%6 - Website%</div></div><div class=\"wdform_column\"><div wdid=\"7\" class=\"wdform_row\">%7 - Address%</div></div><div class=\"wdform_column\"><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', 1, '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', 1, '{all}', '{all}', 13, 1, '2#**id**#First Name#**label**#type_text#****#3#**id**#Last Name#**label**#type_text#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#Phone#**label**#type_text#****#6#**id**#Website#**label**#type_text#****#7#**id**#Street Address#**label**#type_address#****#8#**id**#Street Address Line 2#**label**#type_address#****#9#**id**#City#**label**#type_address#****#10#**id**#State / Province / Region#**label**#type_address#****#11#**id**#Postal / Zip Code#**label**#type_address#****#12#**id**#Country#**label**#type_address#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#7_street1form_id_temp#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '2#**id**#First Name#**label**#type_text#****#3#**id**#Last Name#**label**#type_text#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#Phone#**label**#type_text#****#6#**id**#Website#**label**#type_text#****#7#**id**#Street Address#**label**#type_address#****#8#**id**#Street Address Line 2#**label**#type_address#****#9#**id**#City#**label**#type_address#****#10#**id**#State / Province / Region#**label**#type_address#****#11#**id**#Postal / Zip Code#**label**#type_address#****#12#**id**#Country#**label**#type_address#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', 0, 'testmode', '', '', 0, '2*:*id*:*type_text*:*type*:*First Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*3*:*id*:*type_text*:*type*:*Last Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Phone*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*6*:*id*:*type_text*:*type*:*Website*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:*http://example.com*:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*7*:*id*:*type_address*:*type*:*Address*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***no***no***no***no***no***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', 1, 1, '*', 0, '', '', '', '', '', 1, '', '', '', '', '', '', '', '', '', '', '', 1, 1, 1, 1, 'administrator,', 0, '', '', 0, 0, 0, 0, 1, '', '', '', 'none', 0, 1, 0, '');");
309
  $insert_form_id[] = $wpdb->insert_id;
310
 
311
  if ( WDFMInstance(self::PLUGIN)->is_free != 2 ) {
312
- $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `submissions_limit`, `submissions_limit_text`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `header_hide`, `jsversion`, `privacy`) VALUES (NULL, 'Feedback Form', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images fm-form-builder\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - Name%</div></div><div class=\"wdform_column\"><div wdid=\"4\" class=\"wdform_row\">%4 - Email%</div></div><div class=\"wdform_column\"><div wdid=\"5\" class=\"wdform_row\" style=\"position: relative; left: 0px; top: 0px;\">%5 - CMS%</div></div><div class=\"wdform_column\"><div wdid=\"6\" class=\"wdform_row\">%6 - Extension%</div></div><div class=\"wdform_column\"><div wdid=\"7\" class=\"wdform_row\">%7 - Plugin%</div></div><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\" style=\"position: relative; left: 0px; top: 0px;\">%2 - Subject%</div></div><div class=\"wdform_column\"><div wdid=\"8\" class=\"wdform_row\">%8 - Message%</div></div><div class=\"wdform_column\"><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', 3, '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', 1, '{all}', '{all}', 9, 1, '3#**id**#Name#**label**#type_name#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#CMS#**label**#type_radio#****#6#**id**#Extension#**label**#type_own_select#****#7#**id**#Plugin#**label**#type_own_select#****#2#**id**#Subject#**label**#type_text#****#8#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#2_elementform_id_temp#**id**#Text#**label**#type_text#****#', '3#**id**#Name#**label**#type_name#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#CMS#**label**#type_radio#****#6#**id**#Extension#**label**#type_own_select#****#7#**id**#Plugin#**label**#type_own_select#****#2#**id**#Subject#**label**#type_text#****#8#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', 0, '0', '', 'USD', 0, '3*:*id*:*type_name*:*type*:*Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:***********:*w_first_val*:*First***Last*******:*w_title*:*Title*********Middle*:*w_mini_labels*:**:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no***no*:*w_name_fields*:*no*:*w_autofill*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*5*:*id*:*type_radio*:*type*:*CMS*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*hor*:*w_flow*:*Joomla!***Wordpress*:*w_choices*:*false***false*:*w_choices_checked*:*1*:*w_rowcol*:*yes*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Joomla!***Wordpress*:*w_choices_value*:*****:*w_choices_params*:**:*w_class*:**:*new_field*:*6*:*id*:*type_own_select*:*type*:*Extension*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Select extension***Form Maker***Gallery WD***Spider Calendar*:*w_choices*:*true***false***false***false*:*w_choices_checked*:*true***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****Form Maker***Gallery WD***Spider Calendar*:*w_choices_value*:***********:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*7*:*id*:*type_own_select*:*type*:*Plugin*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Select plugin***Form Maker***Photo Gallery***Ecommerce WD*:*w_choices*:*true***false***false***false*:*w_choices_checked*:*true***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****Form Maker***Photo Gallery***Ecommerce WD*:*w_choices_value*:***********:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*2*:*id*:*type_text*:*type*:*Subject*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*8*:*id*:*type_textarea*:*type*:*Message*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size_w*:*100*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*true*:*w_act*:**:*new_field*:*', 1, 1, '*', 0, '', '', '', '', '', 1, '', '', '', '', '1*:*show_hide*:*6*:*field_label*:*and*:*all_any*:*5***==***Joomla!*:*next_condition*:**:*new_condition*:*1*:*show_hide*:*7*:*field_label*:*and*:*all_any*:*5***==***Wordpress*:*next_condition*:**:*new_condition*:*', '', '', '', '', '', '', 1, 1, 1, 1, 'administrator,', 0, '', '', 0, 0, 0, 0, 1, 'Feedback Form', 'You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.', '" . WDFMInstance(self::PLUGIN)->plugin_url . "/images/demo/2.png', 'flash', 0, 1, 0, '');");
313
  $insert_form_id[] = $wpdb->insert_id;
314
- $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `submissions_limit`, `submissions_limit_text`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `header_hide`, `jsversion`, `privacy`) VALUES (NULL, 'Business Demographic Survey', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images fm-form-builder\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - What is your employment status?%</div></div><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - What is your level of education?%</div></div><div class=\"wdform_column\"><div wdid=\"4\" class=\"wdform_row\">%4 - In which industry do you work?%</div></div><div class=\"wdform_column\"><div wdid=\"6\" class=\"wdform_row\">%6 - What is the annual revenue of your company?%</div></div><div class=\"wdform_column\"><div wdid=\"5\" class=\"wdform_row\">%5 - Enter characters for verification.%</div></div><div class=\"wdform_column\"><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', 4, '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', 1, '{all}', '{all}', 7, 1, '2#**id**#What is your employment status?#**label**#type_radio#****#3#**id**#What is your level of education?#**label**#type_radio#****#4#**id**#In which industry do you work?#**label**#type_own_select#****#6#**id**#What is the annual revenue of your company?#**label**#type_radio#****#5#**id**#Enter characters for verification.#**label**#type_captcha#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#6_elementform_id_temp0#**id**#What is your employment status?#**label**#type_radio#****#6_elementform_id_temp1#**id**#What is your level of education?#**label**#type_radio#****#6_elementform_id_temp2#**id**#In which industry do you work?#**label**#type_own_select#****#6_elementform_id_temp3#**id**#Enter characters for verification.#**label**#type_captcha#****#6_elementform_id_temp4#**id**#type_submit_reset_1#**label**#type_submit_reset#****#6_elementform_id_temp5#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '2#**id**#What is your employment status?#**label**#type_radio#****#3#**id**#What is your level of education?#**label**#type_radio#****#4#**id**#In which industry do you work?#**label**#type_own_select#****#6#**id**#What is the annual revenue of your company?#**label**#type_radio#****#5#**id**#Enter characters for verification.#**label**#type_captcha#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', 0, 'testmode', '', '', 0, '2*:*id*:*type_radio*:*type*:*What is your employment status?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Employed full time***Trade or Vocational degree***Not employed, but looking for work***Not employed and not looking for work***Retired***Student***Homemaker***Prefer not to answer*:*w_choices*:*false***false***false***false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Employed full time***Trade or Vocational degree***Not employed, but looking for work***Not employed and not looking for work***Retired***Student***Homemaker***Prefer not to answer*:*w_choices_value*:***********************:*w_choices_params*:**:*w_class*:**:*new_field*:*3*:*id*:*type_radio*:*type*:*What is your level of education?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Some high school***High school graduate or equivalent***Trade or Vocational Degree***Some college***Associate degree***Bachelor\'s degree***Graduate or Professional degree***Prefer not to answer*:*w_choices*:*false***false***false***false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Some high school***High school graduate or equivalent***Trade or Vocational Degree***Some college***Associate degree***Bachelor\'s degree***Graduate or Professional degree***Prefer not to answer*:*w_choices_value*:***********************:*w_choices_params*:**:*w_class*:**:*new_field*:*4*:*id*:*type_own_select*:*type*:*In which industry do you work?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Select industry***Agriculture***Engineering***Information Technologies***Media***Local Business*:*w_choices*:*true***false***false***false***false***false*:*w_choices_checked*:*true***false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*no*:*w_value_disabled*:****Agriculture***Engineering***Information Technologies***Media***Local Business*:*w_choices_value*:*****************:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*6*:*id*:*type_radio*:*type*:*What is the annual revenue of your company?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Under $10,000***$10,001 to $50,000***$50,001 to $100,000***$100,001 to $500,000***$500,001 to $1 Million***$1 Million to $10 Million***$10 Million to $50 Million***$50 Million to $100 Million***Over $100 Million*:*w_choices*:*false***false***false***false***false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Under $10,000***$10,001 to $50,000***$50,001 to $100,000***$100,001 to $500,000***$500,001 to $1 Million***$1 Million to $10 Million***$10 Million to $50 Million***$50 Million to $100 Million***Over $100 Million*:*w_choices_value*:**************************:*w_choices_params*:**:*w_class*:**:*new_field*:*5*:*id*:*type_captcha*:*type*:*Enter characters for verification.*:*w_field_label*:**:*w_field_label_size*:*left*:*w_field_label_pos*:*yes*:*w_hide_label*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', 1, 1, '*', 0, '', '', '', '', '', 1, '', '', '', '', '', '', '', '', '', '', '', 1, 1, 1, 1, 'administrator,', 0, '', '', 0, 0, 0, 0, 1, 'Business Demographic Survey', 'Thank you for joining our business demographic survey. Please give us your feedback by filling in the information bellow.', '', 'none', 1, 1, 0, '');");
315
  $insert_form_id[] = $wpdb->insert_id;
316
- $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `submissions_limit`, `submissions_limit_text`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `header_hide`, `jsversion`, `privacy`) VALUES (NULL, 'Cupcake Order Form', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images fm-form-builder\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - Name%</div></div><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - Email%</div></div><div class=\"wdform_column\"><div wdid=\"4\" class=\"wdform_row\">%4 - Date%</div></div><div class=\"wdform_column\"><div wdid=\"5\" class=\"wdform_row\">%5 - Cupcakes Flavors (1 doz. minimum)%</div></div><div class=\"wdform_column\"><div wdid=\"6\" class=\"wdform_row\">%6 - Quantity%</div></div><div class=\"wdform_column\"><div wdid=\"7\" class=\"wdform_row\">%7 - Details (if any)%</div></div><div class=\"wdform_column\"><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', 6, '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', 1, '{all}', '{all}', 8, 1, '2#**id**#Name#**label**#type_name#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Date#**label**#type_date_new#****#5#**id**#Cupcakes Flavors (1 doz. minimum)#**label**#type_radio#****#6#**id**#Quantity#**label**#type_spinner#****#7#**id**#Details (if any)#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#5_elementform_id_temp0#**id**#Name#**label**#type_name#****#5_elementform_id_temp1#**id**#Email#**label**#type_submitter_mail#****#5_elementform_id_temp2#**id**#Date#**label**#type_date_new#****#5_elementform_id_temp3#**id**#Name:* Email:* Date* Cupcakes Flavors (1 doz. minimum)#**label**#type_radio#****#5_elementform_id_temp4#**id**#Quantity#**label**#type_spinner#****#5_elementform_id_temp5#**id**#Details (if any)#**label**#type_textarea#****#5_elementform_id_temp6#**id**#type_submit_reset_1#**label**#type_submit_reset#****#5_elementform_id_temp7#**id**#Name#**label**#type_name#****#5_elementform_id_temp8#**id**#Email#**label**#type_submitter_mail#****#5_elementform_id_temp9#**id**#Date#**label**#type_date_new#****#5_elementform_id_temp10#**id**#type_submit_reset_1#**label**#type_submit_reset#****#5_elementform_id_temp11#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '2#**id**#Name#**label**#type_name#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Date#**label**#type_date_new#****#5#**id**#Cupcakes Flavors (1 doz. minimum)#**label**#type_radio#****#6#**id**#Quantity#**label**#type_spinner#****#7#**id**#Details (if any)#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', 0, 'testmode', '', '', 0, '2*:*id*:*type_name*:*type*:*Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:***********:*w_first_val*:***********:*w_title*:*Title*********Middle*:*w_mini_labels*:**:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no***no*:*w_name_fields*:*no*:*w_autofill*:**:*new_field*:*3*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*4*:*id*:*type_date_new*:*type*:*Date*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_date*:*yes*:*w_required*:*yes*:*w_show_image*:**:*w_class*:*mm/dd/yy*:*w_format*:*0*:*w_start_day*:**:*w_default_date*:**:*w_min_date*:**:*w_max_date*:**:*w_invalid_dates*:*yes***yes***yes***yes***yes***yes***yes*:*w_show_days*:*yes*:*w_hide_time*:*...*:*w_but_val*:*no*:*w_disable_past_days*:**:*new_field*:*5*:*id*:*type_radio*:*type*:*Cupcakes Flavors (1 doz. minimum)*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Red Velvet***Vanilla***Chocolate***Guinness***Coconut***Lemon***Chocolate Mint*:*w_choices*:*false***false***false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Red Velvet***Vanilla***Chocolate***Guinness***Coconut***Lemon***Chocolate Mint*:*w_choices_value*:********************:*w_choices_params*:**:*w_class*:**:*new_field*:*6*:*id*:*type_spinner*:*type*:*Quantity*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*60*:*w_field_width*:**:*w_field_min_value*:**:*w_field_max_value*:*1*:*w_field_step*:*null*:*w_field_value*:*no*:*w_required*:**:*w_class*:**:*new_field*:*7*:*id*:*type_textarea*:*type*:*Details (if any)*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size_w*:*100*:*w_size_h*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', 1, 1, '*', 0, '', '', '', '', '', 1, '', '', '', '', '', '', '', '', '', '', '', 1, 1, 1, 1, 'administrator,', 0, '', '', 0, 0, 0, 0, 1, 'Cupcake Order Form', '', '', 'none', 1, 1, 0, '');");
317
  $insert_form_id[] = $wpdb->insert_id;
318
  }
319
  else {
83
  `header_hide_image` tinyint(4) NOT NULL DEFAULT '1',
84
  `header_hide` tinyint(4) NOT NULL DEFAULT '1',
85
  `jsversion` int(11) NOT NULL,
86
+ `privacy` text NOT NULL,
87
  PRIMARY KEY (`id`)
88
  ) " . $charset_collate . ";";
89
  $wpdb->query($formmaker);
290
  `header_image_animation` varchar(200) NOT NULL,
291
  `header_hide_image` tinyint(4) NOT NULL DEFAULT '1',
292
  `header_hide` tinyint(4) NOT NULL DEFAULT '1',
293
+ `privacy` text NOT NULL,
294
  `date` int(10) NOT NULL,
295
  PRIMARY KEY (`backup_id`)
296
  ) " . $charset_collate . ";";
303
  $form_maker_row = $wpdb->get_var('SELECT * FROM ' . $wpdb->prefix . 'formmaker' . (!WDFMInstance(self::PLUGIN)->is_free ? '' : ' WHERE id' . (WDFMInstance(self::PLUGIN)->is_free == 1 ? ' NOT ' : ' ') . 'IN (' . (get_option('contact_form_forms', '') != '' ? get_option('contact_form_forms') : 0) . ')'));
304
  if ( !$form_maker_row ) {
305
  $insert_form_id = array();
306
+ $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `submissions_limit`, `submissions_limit_text`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `header_hide`, `jsversion`, `privacy`) VALUES (NULL, 'Contact Us', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images fm-form-builder\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - Name%</div></div><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - Email%</div></div><div class=\"wdform_column\"><div wdid=\"4\" class=\"wdform_row\">%4 - Subject%</div></div><div class=\"wdform_column\"><div wdid=\"5\" class=\"wdform_row\">%5 - Message%</div></div><div class=\"wdform_column\"><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', 1, '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}\r\n// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', 1, '{all}', '{all}', 6, 1, '2#**id**#Name#**label**#type_text#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Subject#**label**#type_text#****#5#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#2_elementform_id_temp#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '2#**id**#Name#**label**#type_text#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Subject#**label**#type_text#****#5#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', 0, 'testmode', '', '', 0, '2*:*id*:*type_text*:*type*:*Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*3*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*4*:*id*:*type_text*:*type*:*Subject*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*5*:*id*:*type_textarea*:*type*:*Message*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size_w*:*100*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', 1, 1, '*', 0, 'The limit of submissions for this form has been reached.', '', '', '', '', 1, '', '', '', '', '', '', '', '', '', '', '', 1, 1, 1, 1, 'administrator,', 0, '', '', 0, 0, 0, 0, 1, 'Contact Us', 'You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.', '', 'none', 0, 1, 0, '');");
307
  $insert_form_id[] = $wpdb->insert_id;
308
+ $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `submissions_limit`, `submissions_limit_text`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `header_hide`, `jsversion`, `privacy`) VALUES (NULL, 'Client List Form', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images fm-form-builder\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - First Name%</div></div><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - Last Name%</div></div><div class=\"wdform_column\"><div wdid=\"4\" class=\"wdform_row\">%4 - Email%</div></div><div class=\"wdform_column\"><div wdid=\"5\" class=\"wdform_row\">%5 - Phone%</div></div><div class=\"wdform_column\"><div wdid=\"6\" class=\"wdform_row\">%6 - Website%</div></div><div class=\"wdform_column\"><div wdid=\"7\" class=\"wdform_row\">%7 - Address%</div></div><div class=\"wdform_column\"><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', 1, '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', 1, '{all}', '{all}', 13, 1, '2#**id**#First Name#**label**#type_text#****#3#**id**#Last Name#**label**#type_text#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#Phone#**label**#type_text#****#6#**id**#Website#**label**#type_text#****#7#**id**#Street Address#**label**#type_address#****#8#**id**#Street Address Line 2#**label**#type_address#****#9#**id**#City#**label**#type_address#****#10#**id**#State / Province / Region#**label**#type_address#****#11#**id**#Postal / Zip Code#**label**#type_address#****#12#**id**#Country#**label**#type_address#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#7_street1form_id_temp#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '2#**id**#First Name#**label**#type_text#****#3#**id**#Last Name#**label**#type_text#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#Phone#**label**#type_text#****#6#**id**#Website#**label**#type_text#****#7#**id**#Street Address#**label**#type_address#****#8#**id**#Street Address Line 2#**label**#type_address#****#9#**id**#City#**label**#type_address#****#10#**id**#State / Province / Region#**label**#type_address#****#11#**id**#Postal / Zip Code#**label**#type_address#****#12#**id**#Country#**label**#type_address#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', 0, 'testmode', '', '', 0, '2*:*id*:*type_text*:*type*:*First Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*3*:*id*:*type_text*:*type*:*Last Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Phone*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*6*:*id*:*type_text*:*type*:*Website*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:*http://example.com*:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*7*:*id*:*type_address*:*type*:*Address*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***no***no***no***no***no***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', 1, 1, '*', 0, 'The limit of submissions for this form has been reached.', '', '', '', '', 1, '', '', '', '', '', '', '', '', '', '', '', 1, 1, 1, 1, 'administrator,', 0, '', '', 0, 0, 0, 0, 1, '', '', '', 'none', 0, 1, 0, '');");
309
  $insert_form_id[] = $wpdb->insert_id;
310
 
311
  if ( WDFMInstance(self::PLUGIN)->is_free != 2 ) {
312
+ $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `submissions_limit`, `submissions_limit_text`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `header_hide`, `jsversion`, `privacy`) VALUES (NULL, 'Feedback Form', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images fm-form-builder\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - Name%</div></div><div class=\"wdform_column\"><div wdid=\"4\" class=\"wdform_row\">%4 - Email%</div></div><div class=\"wdform_column\"><div wdid=\"5\" class=\"wdform_row\" style=\"position: relative; left: 0px; top: 0px;\">%5 - CMS%</div></div><div class=\"wdform_column\"><div wdid=\"6\" class=\"wdform_row\">%6 - Extension%</div></div><div class=\"wdform_column\"><div wdid=\"7\" class=\"wdform_row\">%7 - Plugin%</div></div><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\" style=\"position: relative; left: 0px; top: 0px;\">%2 - Subject%</div></div><div class=\"wdform_column\"><div wdid=\"8\" class=\"wdform_row\">%8 - Message%</div></div><div class=\"wdform_column\"><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', 3, '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', 1, '{all}', '{all}', 9, 1, '3#**id**#Name#**label**#type_name#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#CMS#**label**#type_radio#****#6#**id**#Extension#**label**#type_own_select#****#7#**id**#Plugin#**label**#type_own_select#****#2#**id**#Subject#**label**#type_text#****#8#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#2_elementform_id_temp#**id**#Text#**label**#type_text#****#', '3#**id**#Name#**label**#type_name#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#CMS#**label**#type_radio#****#6#**id**#Extension#**label**#type_own_select#****#7#**id**#Plugin#**label**#type_own_select#****#2#**id**#Subject#**label**#type_text#****#8#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', 0, '0', '', 'USD', 0, '3*:*id*:*type_name*:*type*:*Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:***********:*w_first_val*:*First***Last*******:*w_title*:*Title*********Middle*:*w_mini_labels*:**:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no***no*:*w_name_fields*:*no*:*w_autofill*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*5*:*id*:*type_radio*:*type*:*CMS*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*hor*:*w_flow*:*Joomla!***Wordpress*:*w_choices*:*false***false*:*w_choices_checked*:*1*:*w_rowcol*:*yes*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Joomla!***Wordpress*:*w_choices_value*:*****:*w_choices_params*:**:*w_class*:**:*new_field*:*6*:*id*:*type_own_select*:*type*:*Extension*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Select extension***Form Maker***Gallery WD***Spider Calendar*:*w_choices*:*true***false***false***false*:*w_choices_checked*:*true***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****Form Maker***Gallery WD***Spider Calendar*:*w_choices_value*:***********:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*7*:*id*:*type_own_select*:*type*:*Plugin*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Select plugin***Form Maker***Photo Gallery***Ecommerce WD*:*w_choices*:*true***false***false***false*:*w_choices_checked*:*true***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****Form Maker***Photo Gallery***Ecommerce WD*:*w_choices_value*:***********:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*2*:*id*:*type_text*:*type*:*Subject*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*w_class*:**:*new_field*:*8*:*id*:*type_textarea*:*type*:*Message*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size_w*:*100*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*true*:*w_act*:**:*new_field*:*', 1, 1, '*', 0, 'The limit of submissions for this form has been reached.', '', '', '', '', 1, '', '', '', '', '1*:*show_hide*:*6*:*field_label*:*and*:*all_any*:*5***==***Joomla!*:*next_condition*:**:*new_condition*:*1*:*show_hide*:*7*:*field_label*:*and*:*all_any*:*5***==***Wordpress*:*next_condition*:**:*new_condition*:*', '', '', '', '', '', '', 1, 1, 1, 1, 'administrator,', 0, '', '', 0, 0, 0, 0, 1, 'Feedback Form', 'You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.', '" . WDFMInstance(self::PLUGIN)->plugin_url . "/images/demo/2.png', 'flash', 0, 1, 0, '');");
313
  $insert_form_id[] = $wpdb->insert_id;
314
+ $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `submissions_limit`, `submissions_limit_text`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `header_hide`, `jsversion`, `privacy`) VALUES (NULL, 'Business Demographic Survey', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images fm-form-builder\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - What is your employment status?%</div></div><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - What is your level of education?%</div></div><div class=\"wdform_column\"><div wdid=\"4\" class=\"wdform_row\">%4 - In which industry do you work?%</div></div><div class=\"wdform_column\"><div wdid=\"6\" class=\"wdform_row\">%6 - What is the annual revenue of your company?%</div></div><div class=\"wdform_column\"><div wdid=\"5\" class=\"wdform_row\">%5 - Enter characters for verification.%</div></div><div class=\"wdform_column\"><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', 4, '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', 1, '{all}', '{all}', 7, 1, '2#**id**#What is your employment status?#**label**#type_radio#****#3#**id**#What is your level of education?#**label**#type_radio#****#4#**id**#In which industry do you work?#**label**#type_own_select#****#6#**id**#What is the annual revenue of your company?#**label**#type_radio#****#5#**id**#Enter characters for verification.#**label**#type_captcha#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#6_elementform_id_temp0#**id**#What is your employment status?#**label**#type_radio#****#6_elementform_id_temp1#**id**#What is your level of education?#**label**#type_radio#****#6_elementform_id_temp2#**id**#In which industry do you work?#**label**#type_own_select#****#6_elementform_id_temp3#**id**#Enter characters for verification.#**label**#type_captcha#****#6_elementform_id_temp4#**id**#type_submit_reset_1#**label**#type_submit_reset#****#6_elementform_id_temp5#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '2#**id**#What is your employment status?#**label**#type_radio#****#3#**id**#What is your level of education?#**label**#type_radio#****#4#**id**#In which industry do you work?#**label**#type_own_select#****#6#**id**#What is the annual revenue of your company?#**label**#type_radio#****#5#**id**#Enter characters for verification.#**label**#type_captcha#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', 0, 'testmode', '', '', 0, '2*:*id*:*type_radio*:*type*:*What is your employment status?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Employed full time***Trade or Vocational degree***Not employed, but looking for work***Not employed and not looking for work***Retired***Student***Homemaker***Prefer not to answer*:*w_choices*:*false***false***false***false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Employed full time***Trade or Vocational degree***Not employed, but looking for work***Not employed and not looking for work***Retired***Student***Homemaker***Prefer not to answer*:*w_choices_value*:***********************:*w_choices_params*:**:*w_class*:**:*new_field*:*3*:*id*:*type_radio*:*type*:*What is your level of education?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Some high school***High school graduate or equivalent***Trade or Vocational Degree***Some college***Associate degree***Bachelor\'s degree***Graduate or Professional degree***Prefer not to answer*:*w_choices*:*false***false***false***false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Some high school***High school graduate or equivalent***Trade or Vocational Degree***Some college***Associate degree***Bachelor\'s degree***Graduate or Professional degree***Prefer not to answer*:*w_choices_value*:***********************:*w_choices_params*:**:*w_class*:**:*new_field*:*4*:*id*:*type_own_select*:*type*:*In which industry do you work?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Select industry***Agriculture***Engineering***Information Technologies***Media***Local Business*:*w_choices*:*true***false***false***false***false***false*:*w_choices_checked*:*true***false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*no*:*w_value_disabled*:****Agriculture***Engineering***Information Technologies***Media***Local Business*:*w_choices_value*:*****************:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*6*:*id*:*type_radio*:*type*:*What is the annual revenue of your company?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Under $10,000***$10,001 to $50,000***$50,001 to $100,000***$100,001 to $500,000***$500,001 to $1 Million***$1 Million to $10 Million***$10 Million to $50 Million***$50 Million to $100 Million***Over $100 Million*:*w_choices*:*false***false***false***false***false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Under $10,000***$10,001 to $50,000***$50,001 to $100,000***$100,001 to $500,000***$500,001 to $1 Million***$1 Million to $10 Million***$10 Million to $50 Million***$50 Million to $100 Million***Over $100 Million*:*w_choices_value*:**************************:*w_choices_params*:**:*w_class*:**:*new_field*:*5*:*id*:*type_captcha*:*type*:*Enter characters for verification.*:*w_field_label*:**:*w_field_label_size*:*left*:*w_field_label_pos*:*yes*:*w_hide_label*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', 1, 1, '*', 0, 'The limit of submissions for this form has been reached.', '', '', '', '', 1, '', '', '', '', '', '', '', '', '', '', '', 1, 1, 1, 1, 'administrator,', 0, '', '', 0, 0, 0, 0, 1, 'Business Demographic Survey', 'Thank you for joining our business demographic survey. Please give us your feedback by filling in the information bellow.', '', 'none', 1, 1, 0, '');");
315
  $insert_form_id[] = $wpdb->insert_id;
316
+ $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `submissions_limit`, `submissions_limit_text`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`, `header_hide`, `jsversion`, `privacy`) VALUES (NULL, 'Cupcake Order Form', 'embedded', '{adminemail}', '<div class=\"wdform-page-and-images fm-form-builder\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column\"><div wdid=\"2\" class=\"wdform_row\">%2 - Name%</div></div><div class=\"wdform_column\"><div wdid=\"3\" class=\"wdform_row\">%3 - Email%</div></div><div class=\"wdform_column\"><div wdid=\"4\" class=\"wdform_row\">%4 - Date%</div></div><div class=\"wdform_column\"><div wdid=\"5\" class=\"wdform_row\">%5 - Cupcakes Flavors (1 doz. minimum)%</div></div><div class=\"wdform_column\"><div wdid=\"6\" class=\"wdform_row\">%6 - Quantity%</div></div><div class=\"wdform_column\"><div wdid=\"7\" class=\"wdform_row\">%7 - Details (if any)%</div></div><div class=\"wdform_column\"><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', 6, '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don\'t need to return any value if you don\'t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}// Occurs after form is submitted and reloaded\r\nfunction after_submit() {\r\n \r\n}', '', '', 1, '{all}', '{all}', 8, 1, '2#**id**#Name#**label**#type_name#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Date#**label**#type_date_new#****#5#**id**#Cupcakes Flavors (1 doz. minimum)#**label**#type_radio#****#6#**id**#Quantity#**label**#type_spinner#****#7#**id**#Details (if any)#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#5_elementform_id_temp0#**id**#Name#**label**#type_name#****#5_elementform_id_temp1#**id**#Email#**label**#type_submitter_mail#****#5_elementform_id_temp2#**id**#Date#**label**#type_date_new#****#5_elementform_id_temp3#**id**#Name:* Email:* Date* Cupcakes Flavors (1 doz. minimum)#**label**#type_radio#****#5_elementform_id_temp4#**id**#Quantity#**label**#type_spinner#****#5_elementform_id_temp5#**id**#Details (if any)#**label**#type_textarea#****#5_elementform_id_temp6#**id**#type_submit_reset_1#**label**#type_submit_reset#****#5_elementform_id_temp7#**id**#Name#**label**#type_name#****#5_elementform_id_temp8#**id**#Email#**label**#type_submitter_mail#****#5_elementform_id_temp9#**id**#Date#**label**#type_date_new#****#5_elementform_id_temp10#**id**#type_submit_reset_1#**label**#type_submit_reset#****#5_elementform_id_temp11#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '2#**id**#Name#**label**#type_name#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Date#**label**#type_date_new#****#5#**id**#Cupcakes Flavors (1 doz. minimum)#**label**#type_radio#****#6#**id**#Quantity#**label**#type_spinner#****#7#**id**#Details (if any)#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', 0, 'testmode', '', '', 0, '2*:*id*:*type_name*:*type*:*Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:***********:*w_first_val*:***********:*w_title*:*Title*********Middle*:*w_mini_labels*:**:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no***no*:*w_name_fields*:*no*:*w_autofill*:**:*new_field*:*3*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*4*:*id*:*type_date_new*:*type*:*Date*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_date*:*yes*:*w_required*:*yes*:*w_show_image*:**:*w_class*:*mm/dd/yy*:*w_format*:*0*:*w_start_day*:**:*w_default_date*:**:*w_min_date*:**:*w_max_date*:**:*w_invalid_dates*:*yes***yes***yes***yes***yes***yes***yes*:*w_show_days*:*yes*:*w_hide_time*:*...*:*w_but_val*:*no*:*w_disable_past_days*:**:*new_field*:*5*:*id*:*type_radio*:*type*:*Cupcakes Flavors (1 doz. minimum)*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Red Velvet***Vanilla***Chocolate***Guinness***Coconut***Lemon***Chocolate Mint*:*w_choices*:*false***false***false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Red Velvet***Vanilla***Chocolate***Guinness***Coconut***Lemon***Chocolate Mint*:*w_choices_value*:********************:*w_choices_params*:**:*w_class*:**:*new_field*:*6*:*id*:*type_spinner*:*type*:*Quantity*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*60*:*w_field_width*:**:*w_field_min_value*:**:*w_field_max_value*:*1*:*w_field_step*:*null*:*w_field_value*:*no*:*w_required*:**:*w_class*:**:*new_field*:*7*:*id*:*type_textarea*:*type*:*Details (if any)*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size_w*:*100*:*w_size_h*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', 1, 1, '*', 0, 'The limit of submissions for this form has been reached.', '', '', '', '', 1, '', '', '', '', '', '', '', '', '', '', '', 1, 1, 1, 1, 'administrator,', 0, '', '', 0, 0, 0, 0, 1, 'Cupcake Order Form', '', '', 'none', 1, 1, 0, '');");
317
  $insert_form_id[] = $wpdb->insert_id;
318
  }
319
  else {
form_maker_update.php CHANGED
@@ -256,8 +256,8 @@ class WDFMUpdate {
256
  $wpdb->query($formmaker_groups);
257
  }
258
  if (version_compare($version, '1.12.31') == -1) {
259
- $wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker` ADD `privacy` longtext NOT NULL DEFAULT ''");
260
- $wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker_backup` ADD `privacy` longtext NOT NULL DEFAULT ''");
261
  }
262
 
263
  if (version_compare($version, '1.13.0') == -1) {
256
  $wpdb->query($formmaker_groups);
257
  }
258
  if (version_compare($version, '1.12.31') == -1) {
259
+ $wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker` ADD `privacy` text NOT NULL DEFAULT ''");
260
+ $wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker_backup` ADD `privacy` text NOT NULL DEFAULT ''");
261
  }
262
 
263
  if (version_compare($version, '1.13.0') == -1) {
frontend/models/form_maker.php CHANGED
@@ -72,7 +72,7 @@ class FMModelForm_maker {
72
  $fm_style_url = $front_urls[ 'upload_url' ] . $frontend_dir . 'css/fm-style-' . $theme_id . '.css';
73
  if ( WDFMInstance(self::PLUGIN)->fm_settings['fm_file_read'] == '1' || !file_exists($fm_style_dir) ) {
74
  $fm_css_content = $this->get_fm_css_content( $theme_id, $form_theme, $old );
75
- if ( function_exists('wp_add_inline_style') ) {
76
  wp_add_inline_style(WDFMInstance(self::PLUGIN)->handle_prefix . '-frontend', $fm_css_content);
77
  } else {
78
  echo '<style>' . $fm_css_content . '</style>';
@@ -3691,6 +3691,11 @@ class FMModelForm_maker {
3691
  // Add query arg to url to display message on cached pages.
3692
  $redirect_url = add_query_arg( array( 'succes' => time() ), $redirect_url );
3693
 
 
 
 
 
 
3694
  if ( !$str ) {
3695
  if( !$this->fm_ajax_submit || $row->submit_text_type != 4 ) {
3696
  wp_redirect( $redirect_url );
72
  $fm_style_url = $front_urls[ 'upload_url' ] . $frontend_dir . 'css/fm-style-' . $theme_id . '.css';
73
  if ( WDFMInstance(self::PLUGIN)->fm_settings['fm_file_read'] == '1' || !file_exists($fm_style_dir) ) {
74
  $fm_css_content = $this->get_fm_css_content( $theme_id, $form_theme, $old );
75
+ if ( function_exists('wp_add_inline_style') && !WDW_FM_Library(self::PLUGIN)->elementor_is_active() ) {
76
  wp_add_inline_style(WDFMInstance(self::PLUGIN)->handle_prefix . '-frontend', $fm_css_content);
77
  } else {
78
  echo '<style>' . $fm_css_content . '</style>';
3691
  // Add query arg to url to display message on cached pages.
3692
  $redirect_url = add_query_arg( array( 'succes' => time() ), $redirect_url );
3693
 
3694
+ /* Cleare message if form submit redirect to another page/post */
3695
+ if ( $row->article_id && ($row->submit_text_type == 2 || $row->submit_text_type == 5) ) {
3696
+ $_SESSION[ 'massage_after_submit' . $id ] = '';
3697
+ }
3698
+
3699
  if ( !$str ) {
3700
  if( !$this->fm_ajax_submit || $row->submit_text_type != 4 ) {
3701
  wp_redirect( $redirect_url );
frontend/views/form_maker.php CHANGED
@@ -2358,7 +2358,7 @@ class FMViewForm_maker {
2358
  }
2359
  $choice_value = isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice;
2360
  $html .= '<div class="checkbox-div wd-choice wd-flex ' . (($param['w_field_option_pos'] == "right") ? 'wd-flex-row' : 'wd-flex-row-reverse wd-justify-content') . '">';
2361
- $html .= '<input type="checkbox" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'other="1"' : '') . ' id="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '" name="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '" value="' . htmlspecialchars($choice_value) . '" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'onclick="if(set_checked(&quot;wdform_' . $id1 . '&quot;,&quot;' . $key1 . '&quot;,&quot;' . $form_id . '&quot;)) show_other_input(&quot;wdform_' . $id1 . '&quot;,&quot;' . $form_id . '&quot;);"' : '') . ' ' . $param['w_choices_checked'][$key] . ' ' . $param['attributes'] . ' />';
2362
  $html .= '<label class="wd-align-items-center wd-flex ' . ($param['w_field_option_pos'] == "right" ? "wd-flex-row" : "wd-flex-row-reverse wd-justify-content wd-width-100") . '" for="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '"><span></span>' . $choice . '</label>';
2363
  $html .= '</div>';
2364
  $param['w_allow_other_num'] = $param['w_allow_other_num'] == $key ? $key1 : $param['w_allow_other_num'];
@@ -2538,7 +2538,7 @@ class FMViewForm_maker {
2538
  }
2539
  $choice_value = isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice;
2540
  $html .= '<div class="radio-div wd-choice wd-flex ' . (($param['w_field_option_pos'] == "right") ? 'wd-flex-row' : 'wd-flex-row-reverse wd-justify-content' ) . '">';
2541
- $html .= '<input type="radio" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'other="1"' : '') . ' id="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '" name="wdform_' . $id1 . '_element' . $form_id . '" value="' . htmlspecialchars($choice_value) . '" onclick="set_default(&quot;wdform_' . $id1 . '&quot;,&quot;' . $key1 . '&quot;,&quot;' . $form_id . '&quot;); ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'show_other_input(&quot;wdform_' . $id1 . '&quot;,&quot;' . $form_id . '&quot;);' : '') . '" ' . $param['w_choices_checked'][$key] . ' ' . $param['attributes'] . ' />';
2542
  $html .= '<label class="wd-align-items-center wd-flex ' . ($param['w_field_option_pos'] == "right" ? "wd-flex-row" : "wd-flex-row-reverse wd-justify-content wd-width-100") . '" for="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '"><span></span>' . $choice . '</label>';
2543
  $html .= '</div>';
2544
  $param['w_allow_other_num'] = $param['w_allow_other_num'] == $key ? $key1 : $param['w_allow_other_num'];
@@ -2683,7 +2683,7 @@ class FMViewForm_maker {
2683
  $param['w_choices_checked'][$key] = ((isset($_POST['wdform_' . $id1 . "_element" . $form_id]) && htmlspecialchars($choice) == htmlspecialchars($_POST['wdform_' . $id1 . "_element" . $form_id])) ? 'selected="selected"' : '');
2684
  }
2685
  $choice_value = $param['w_choices_disabled'][$key] == "true" ? '' : (isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice);
2686
- $html .= '<option value="' . htmlspecialchars($choice_value) . '" ' . $param['w_choices_checked'][$key] . '>' . $choice . '</option>';
2687
  }
2688
  }
2689
  $html .= '</select>';
2358
  }
2359
  $choice_value = isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice;
2360
  $html .= '<div class="checkbox-div wd-choice wd-flex ' . (($param['w_field_option_pos'] == "right") ? 'wd-flex-row' : 'wd-flex-row-reverse wd-justify-content') . '">';
2361
+ $html .= '<input type="checkbox" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'other="1"' : '') . ' id="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '" name="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '" value="' . htmlspecialchars(html_entity_decode($choice_value)) . '" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'onclick="if(set_checked(&quot;wdform_' . $id1 . '&quot;,&quot;' . $key1 . '&quot;,&quot;' . $form_id . '&quot;)) show_other_input(&quot;wdform_' . $id1 . '&quot;,&quot;' . $form_id . '&quot;);"' : '') . ' ' . $param['w_choices_checked'][$key] . ' ' . $param['attributes'] . ' />';
2362
  $html .= '<label class="wd-align-items-center wd-flex ' . ($param['w_field_option_pos'] == "right" ? "wd-flex-row" : "wd-flex-row-reverse wd-justify-content wd-width-100") . '" for="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '"><span></span>' . $choice . '</label>';
2363
  $html .= '</div>';
2364
  $param['w_allow_other_num'] = $param['w_allow_other_num'] == $key ? $key1 : $param['w_allow_other_num'];
2538
  }
2539
  $choice_value = isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice;
2540
  $html .= '<div class="radio-div wd-choice wd-flex ' . (($param['w_field_option_pos'] == "right") ? 'wd-flex-row' : 'wd-flex-row-reverse wd-justify-content' ) . '">';
2541
+ $html .= '<input type="radio" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'other="1"' : '') . ' id="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '" name="wdform_' . $id1 . '_element' . $form_id . '" value="' . htmlspecialchars(html_entity_decode($choice_value)) . '" onclick="set_default(&quot;wdform_' . $id1 . '&quot;,&quot;' . $key1 . '&quot;,&quot;' . $form_id . '&quot;); ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'show_other_input(&quot;wdform_' . $id1 . '&quot;,&quot;' . $form_id . '&quot;);' : '') . '" ' . $param['w_choices_checked'][$key] . ' ' . $param['attributes'] . ' />';
2542
  $html .= '<label class="wd-align-items-center wd-flex ' . ($param['w_field_option_pos'] == "right" ? "wd-flex-row" : "wd-flex-row-reverse wd-justify-content wd-width-100") . '" for="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '"><span></span>' . $choice . '</label>';
2543
  $html .= '</div>';
2544
  $param['w_allow_other_num'] = $param['w_allow_other_num'] == $key ? $key1 : $param['w_allow_other_num'];
2683
  $param['w_choices_checked'][$key] = ((isset($_POST['wdform_' . $id1 . "_element" . $form_id]) && htmlspecialchars($choice) == htmlspecialchars($_POST['wdform_' . $id1 . "_element" . $form_id])) ? 'selected="selected"' : '');
2684
  }
2685
  $choice_value = $param['w_choices_disabled'][$key] == "true" ? '' : (isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice);
2686
+ $html .= '<option value="' . htmlspecialchars(html_entity_decode($choice_value)) . '" ' . $param['w_choices_checked'][$key] . '>' . $choice . '</option>';
2687
  }
2688
  }
2689
  $html .= '</select>';
js/main_div_front_end.js CHANGED
@@ -1909,7 +1909,7 @@ function fm_submit(form_id) {
1909
  jQuery('#closing-form' + form_id).remove();
1910
  jQuery('#fm-popover-background' + form_id).css("display", "none");
1911
  }
1912
- if ( typeof window['after_submit' + form_id] === 'function' ) {
1913
  window['after_submit' + form_id]();
1914
  }
1915
  }
@@ -2239,7 +2239,7 @@ function formOnload(form_id) {
2239
 
2240
  function fm_document_ready(form_id) {
2241
  // Form after submit event.
2242
- if (jQuery("#form"+form_id).hasClass('fm-form-submitted') && typeof window["after_submit" + form_id] == 'function') {
2243
  window["after_submit" + form_id]();
2244
  }
2245
 
1909
  jQuery('#closing-form' + form_id).remove();
1910
  jQuery('#fm-popover-background' + form_id).css("display", "none");
1911
  }
1912
+ if ( typeof window['after_submit' + form_id] === 'function' && !jQuery("#form"+form_id).find('.message_captcha').length) {
1913
  window['after_submit' + form_id]();
1914
  }
1915
  }
2239
 
2240
  function fm_document_ready(form_id) {
2241
  // Form after submit event.
2242
+ if (jQuery("#form"+form_id).hasClass('fm-form-submitted') && !jQuery("#form"+form_id).find('.message_captcha').length && typeof window["after_submit" + form_id] == 'function') {
2243
  window["after_submit" + form_id]();
2244
  }
2245
 
js/scripts.min.js CHANGED
@@ -1 +1 @@
1
- var c,a=new Array,rated=!1;function form_load_actions(){(jQuery(".wd-datepicker").each(function(){jQuery(this).datepicker(),jQuery(this).datepicker("option","dateFormat",jQuery(this).data("format"))}),0!==jQuery(".fm-form").find(".fm-message").length)&&(jQuery(window).scrollTop(jQuery(".fm-message").offset().top-100),-1<navigator.userAgent.toLowerCase().indexOf("safari/")&&(document.scrollingElement.scrollTop=jQuery(".fm-message").offset().top-100));if(0!==jQuery(".fm-form").find(".message_captcha").length){var e=jQuery(".fm-form").attr("name").split("form")[1];if(0!==jQuery("#form"+e+" .message_captcha").length){var t=jQuery(jQuery("#form"+e+" .message_captcha")).offset().top;jQuery(".fm-form").find(".message_captcha").parents(".wdform-field").find(".wdform-label").addClass("error_label"),jQuery("html").animate({scrollTop:t-150},500),document.scrollingElement.scrollTop=t-150}}}function set_total_value(form_id){var FormCurrency=window["FormCurrency_"+form_id]+" ";if(0!=jQuery(".paypal_total"+form_id).length){var div_paypal_show=jQuery(".paypal_total"+form_id),div_paypal_products=jQuery(".paypal_products"+form_id),div_paypal_tax=jQuery(".paypal_tax"+form_id),input_paypal_total=jQuery(".input_paypal_total"+form_id),total=0,total_shipping=0;div_paypal_products.html(""),div_paypal_tax.html(""),n=parseInt(jQuery("#counter"+form_id).val()),jQuery("#form"+form_id+" div[type='type_paypal_checkbox'], #form"+form_id+" div[type='type_paypal_radio']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");paypal_checkbox_qty=jQuery("#wdform_"+t+"_element_quantity"+form_id).val()?jQuery("#wdform_"+t+"_element_quantity"+form_id).val():0,jQuery(this).find("input:checked").each(function(){label=jQuery("label[for='"+jQuery(this).attr("id")+"']").html(),span_value=FormCurrency+jQuery(this).val()+(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?" x "+paypal_checkbox_qty:""),total+=jQuery(this).val()*parseInt(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?paypal_checkbox_qty:1),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>")})}}),jQuery("#form"+form_id+" div[type='type_paypal_shipping']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");paypal_shipping_qty=jQuery("#wdform_"+t+"_element_quantity"+form_id).val()?jQuery("#wdform_"+t+"_element_quantity"+form_id).val():0,jQuery(this).find("input:checked").each(function(){label=jQuery("label[for='"+jQuery(this).attr("id")+"']").html(),span_value=FormCurrency+jQuery(this).val()+(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?" x "+paypal_shipping_qty:""),total_shipping+=jQuery(this).val()*parseInt(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?paypal_shipping_qty:1),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>")})}}),jQuery("#form"+form_id+" div[type='type_paypal_select']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");paypal_select_qty=jQuery("#wdform_"+t+"_element_quantity"+form_id).val()?jQuery("#wdform_"+t+"_element_quantity"+form_id).val():0,""!=jQuery(this).find("select").val()&&(label=jQuery(this).find("select option:selected").html(),span_value=FormCurrency+jQuery(this).find("select").val()+(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?" x "+paypal_select_qty:""),total+=jQuery(this).find("select").val()*parseInt(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?paypal_select_qty:1),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>"))}}),jQuery("#form"+form_id+" div[type='type_paypal_price']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");label=jQuery(this).find(".wdform-label").html(),cents="00",dollars="0",""!=jQuery("#wdform_"+t+"_element_dollars"+form_id).val()&&(dollars=jQuery("#wdform_"+t+"_element_dollars"+form_id).val()),""!=jQuery("#wdform_"+t+"_element_cents"+form_id).val()&&(1==jQuery("#wdform_"+t+"_element_cents"+form_id).val().length?cents="0"+jQuery("#wdform_"+t+"_element_cents"+form_id).val():cents=jQuery("#wdform_"+t+"_element_cents"+form_id).val(),span_value=FormCurrency+dollars+"."+cents,total+=parseFloat(dollars+"."+cents),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>"))}}),jQuery("#form"+form_id+" div[type='type_paypal_price_new']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");label=jQuery(this).find(".wdform-label").html(),dollars="0",""!=jQuery("#wdform_"+t+"_element"+form_id).val()&&(dollars=jQuery("#wdform_"+t+"_element"+form_id).val()),span_value=FormCurrency+dollars,total+=parseFloat(dollars),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>")}});var FormPaypalTax=eval("FormPaypalTax_"+form_id);0!=FormPaypalTax&&div_paypal_tax.html("Tax: "+FormCurrency+(total*FormPaypalTax/100).toFixed(2)),jQuery(".div_total"+form_id).html(FormCurrency+(parseFloat((total*(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2)),input_paypal_total.val(FormCurrency+(parseFloat((total*(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2))}}function check_isnum_or_minus(e){var t=e.which||e.keyCode;return!(45!=t&&31<t&&(t<48||57<t))}function sum_grading_values(e,t){for(var r=0,i=0;i<100;i++)document.getElementById(e+"_element"+t+"_"+i)&&document.getElementById(e+"_element"+t+"_"+i).value&&(r+=parseInt(document.getElementById(e+"_element"+t+"_"+i).value)),document.getElementById(e+"_total_element"+t)&&(r>document.getElementById(e+"_total_element"+t).innerHTML?document.getElementById(e+"_text_element"+t).innerHTML=" "+fm_objectL10n.fm_grading_text+" "+document.getElementById(e+"_total_element"+t).innerHTML:document.getElementById(e+"_text_element"+t).innerHTML="");document.getElementById(e+"_sum_element"+t)&&(document.getElementById(e+"_sum_element"+t).innerHTML=r)}function change_src(e,t,r,i){if(0==rated)for(var n=0;n<=e;n++)document.getElementById(t+"_star_"+n+"_"+r).src=fm_objectL10n.plugin_url+"/images/star_"+i+".png"}function reset_src(e,t,r){if(0==rated)for(var i=0;i<=e;i++)document.getElementById(t+"_star_"+i+"_"+r).src=fm_objectL10n.plugin_url+"/images/star.png"}function select_star_rating(e,t,r,i,n){rated=!0;for(var a=0;a<=e;a++)document.getElementById(t+"_star_"+a+"_"+r).src=fm_objectL10n.plugin_url+"/images/star_"+i+".png";for(var o=e+1;o<=n-1;o++)document.getElementById(t+"_star_"+o+"_"+r).src=fm_objectL10n.plugin_url+"/images/star.png";document.getElementById(t+"_selected_star_amount"+r).value=e+1,jQuery("#"+t+"_selected_star_amount"+r).trigger("change")}function show_other_input(e,t){var r=jQuery(".form"+t+" [id^="+e+"_element"+t+'][other="1"]').parent(),i=document.createElement("br");i.setAttribute("id",e+"_other_br"+t);var n=e.split("_")[1],a=document.createElement("input");a.setAttribute("id",e+"_other_input"+t),a.setAttribute("name",e+"_other_input"+t),a.setAttribute("type","text"),a.setAttribute("class","other_input"),a.setAttribute("onchange","other_input_change(this, '"+t+"', '"+n+"')"),r.append(i),r.append(a)}function other_input_change(e,t,r){""==jQuery(e).val()?wd_is_filled(t,r):(jQuery("#form"+t+" #wd_required_"+r).remove(),jQuery("#form"+t+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"))}function check_isnum(e){var t=e.which||e.keyCode;return-1!=jQuery.inArray(t,[46,8,9,27,13,190])||!0===e.ctrlKey||35<=t&&t<39||45==t||!(31<t&&(t<48||57<t))}function captcha_refresh(e,t){srcArr=document.getElementById(e+t).src.split("&r="),document.getElementById(e+t).src=srcArr[0]+"&r="+Math.floor(100*Math.random()),document.getElementById(e+"_input"+t).value="",document.getElementById(e+t).style.display="inline-block"}function set_checked(e,t,r){return checking=document.getElementById(e+"_element"+r+t),!(checking.getAttribute("other")&&1==checking.getAttribute("other")&&!checking.checked)||(document.getElementById(e+"_other_input"+r)&&(document.getElementById(e+"_other_input"+r).parentNode.removeChild(document.getElementById(e+"_other_br"+r)),document.getElementById(e+"_other_input"+r).parentNode.removeChild(document.getElementById(e+"_other_input"+r))),!1)}function set_default(e,t,r){document.getElementById(e+"_other_input"+r)&&(document.getElementById(e+"_other_input"+r).parentNode.removeChild(document.getElementById(e+"_other_br"+r)),document.getElementById(e+"_other_input"+r).parentNode.removeChild(document.getElementById(e+"_other_input"+r)))}function add_0(e){1==jQuery(e).val().length&&jQuery(e).val("0"+jQuery(e).val())}function wd_validate(e,t){if(!jQuery(e).is("input"))return!0;var r,i,n=jQuery(e).val(),a=(jQuery(e).attr("id"),jQuery(e).data("valid-type")),o=jQuery(e).data("form-id"),d=jQuery(e).data("wdid");if(void 0===t)t=jQuery(e).data("addiotional-fields");var l="#form"+o+" div[wdid='"+d+"']",s=jQuery(l+" .wdform-label-section:first .wdform-label"),u=jQuery(l+" .wdform-element-section");switch(a){case"hour24":r=fm_objectL10n.time_validation,i=/^(0?[0-1]?[0-9]|2[0-3])?$/;break;case"hour12":r=fm_objectL10n.time_validation,i=/^(0?[0-9]|1[0-2])?$/;break;case"minute":case"second":r=fm_objectL10n.time_validation,i=/^([0-5]?[0-9])?$/;break;case"number":r=fm_objectL10n.number_validation,i=/^\-{0,1}\d+(.\d+){0,1}$/;break;case"quantity":r=fm_objectL10n.number_validation,i=/^[+]?\d+([.]\d+)?$/;break;case"day":r=fm_objectL10n.date_validation,i=/^(0?[0-2]?[0-9]|3[0-1])?$/;break;case"month":r=fm_objectL10n.date_validation,i=/^(0?[0-9]|1[0-2])?$/;break;case"year":r=fm_objectL10n.date_validation,i=/^([1-2]?[0-9]?[0-9]?[0-9])?$/}if(isValid=i.test(n),""==n&&(isValid=!0),isValid)for(var m in t)if(isValid=wd_validate("#"+t[m],""),!isValid)break;return jQuery("#check_email_"+d+"_"+o).remove(),isValid?(s.removeClass("wd-error-label"),delete window["check_before_submit"+o][d+"_"+o]):(u.parent().parent().append("<div id='check_email_"+d+"_"+o+"' class='fm-not-filled'>"+r+"</div>"),s.addClass("wd-error-label"),window["check_before_submit"+o][d+"_"+o]=!1),isValid}function check_isnum_interval(e,t,r,i){var n=e.which||e.keyCode;return-1!=jQuery.inArray(n,[46,8,9,27,13,190])||!0===e.ctrlKey||35<=n&&n<39||!(31<n&&(n<48||57<n))&&(val1=""+jQuery(t).val()+String.fromCharCode(n),!(2<val1.length)&&("00"!=val1&&!(val1<r||val1>i)))}function wd_year_validation(e){var t=parseInt(jQuery(e).val()),r=jQuery(e).data("form-id"),i=jQuery(e).data("wdid"),n=parseInt(jQuery(e).attr("from")),a=parseInt(jQuery(e).attr("to")),o="#form"+r+" div[wdid='"+i+"']",d=jQuery(o+" .wdform-label-section:first .wdform-label"),l=jQuery(o+" .wdform-element-section");if(t<n||a<t){var s=fm_objectL10n.year_validation.replace("%%start%%",n).replace("%%end%%",a);jQuery("#check_email_"+i+"_"+r).remove(),l.parent().parent().append("<div id='check_email_"+i+"_"+r+"' class='fm-not-filled'>"+s+"</div>"),d.addClass("wd-error-label"),window["check_before_submit"+r][i+"_"+r]=!1}}function destroyChildren(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function generate_page_nav(e,t,r){var i;if(form_view=e,page_nav=document.getElementById(t+"page_nav"+e),destroyChildren(page_nav),form_view_elemet=document.getElementById(t+"form_view"+e),remove_whitespace(form_view_elemet.parentNode.parentNode),display_none_form_views_all(t),form_view_elemet.parentNode.style.display="",(i=document.createElement("div")).setAttribute("valign","middle"),i.setAttribute("align","left"),i.style.display="table-cell",i.style.width="40%",page_nav.appendChild(i),form_view_elemet.parentNode.previousSibling&&-1!=form_view_elemet.parentNode.previousSibling.className.indexOf("wdform-page-and-images")&&form_view_elemet.parentNode.previousSibling.previousSibling&&("DIV"==form_view_elemet.parentNode.previousSibling.tagName?table=form_view_elemet.parentNode.previousSibling:"DIV"==form_view_elemet.parentNode.previousSibling.previousSibling.tagName?table=form_view_elemet.parentNode.previousSibling.previousSibling:table="none","none"!=table&&(table.firstChild.tagName||table.removeChild(table.firstChild),previous_title=form_view_elemet.getAttribute("previous_title"),previous_type=form_view_elemet.getAttribute("previous_type"),"text"==previous_type&&i.setAttribute("class","previous-page"),previous_class=form_view_elemet.getAttribute("previous_class"),previous_checkable=form_view_elemet.getAttribute("previous_checkable"),next_or_previous="previous",previous=make_pagebreak_button(next_or_previous,previous_title,previous_type,previous_class,previous_checkable,e,t,r),i.appendChild(previous))),(i=document.createElement("div")).setAttribute("id",t+"page_numbers"+form_view),i.setAttribute("valign","middle"),i.setAttribute("class","page-numbers"),i.setAttribute("align","center"),i.style.display="table-cell","true"==document.getElementById("fm-pages"+t).getAttribute("show_numbers")){var n=document.createElement("span");n.setAttribute("class","page_numbers"),i.appendChild(n)}page_nav.appendChild(i),(i=document.createElement("div")).setAttribute("valign","middle"),i.setAttribute("align","right"),i.style.cssText="display:table-cell; width:40%; text-align:right;",page_nav.appendChild(i),not_next=!1,form_view_elemet.parentNode.nextSibling?("DIV"==form_view_elemet.parentNode.nextSibling.tagName&&-1!=form_view_elemet.parentNode.nextSibling.className.indexOf("wdform-page-and-images")?table=form_view_elemet.parentNode.nextSibling:form_view_elemet.parentNode.nextSibling.nextSibling&&"DIV"==form_view_elemet.parentNode.nextSibling.nextSibling.tagName?table=form_view_elemet.parentNode.nextSibling.nextSibling:table="none","none"!=table?(next_title=form_view_elemet.getAttribute("next_title"),next_type=form_view_elemet.getAttribute("next_type"),"text"==next_type&&i.setAttribute("class","next-page"),next_class=form_view_elemet.getAttribute("next_class"),next_checkable=form_view_elemet.getAttribute("next_checkable"),next_or_previous="next",next=make_pagebreak_button(next_or_previous,next_title,next_type,next_class,next_checkable,e,t,r),i.appendChild(next)):not_next=!0):not_next=!0,generate_page_bar(e,t,r),fm_initilize_form(t)}function fm_initilize_form(e){jQuery("#form"+e+" div[type='type_map']").each(function(){for(id=jQuery(this).parent().attr("wdid"),if_gmap_init("wdform_"+id,e),q=0;q<20;q++)jQuery("#wdform_"+id+"_element"+e)[0].getAttribute("long"+q)&&(w_long=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("long"+q)),w_lat=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("lat"+q)),w_info=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("info"+q)),add_marker_on_map("wdform_"+id,q,w_long,w_lat,w_info,e,!1))}),jQuery("#form"+e+" div[type='type_mark_map']").each(function(){id=jQuery(this).parent().attr("wdid"),if_gmap_init("wdform_"+id,e),q=0,jQuery("#wdform_"+id+"_element"+e)[0].getAttribute("long"+q)&&(w_long=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("long"+q)),w_lat=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("lat"+q)),w_info=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("info"+q)),add_marker_on_map("wdform_"+id,q,w_long,w_lat,w_info,e,!0))}),jQuery(".wdform-element-section").each(function(){if("type_stripe"==jQuery(this).parent().parent().attr("type"))return!0;jQuery(this).parent()[0].style.width||0==parseInt(jQuery(this).width())||0==jQuery(this).parent().find(jQuery(".wdform-label-section")).length||"table-cell"==jQuery(this).css("display")&&("type_captcha"!=jQuery(this).parent().attr("type")?jQuery(this).parent().css("width",parseInt(jQuery(this).width())+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15):jQuery(this).parent().css("width",2*parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)+50+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15))})}function display_none_form_views_all(e){jQuery("#form"+e+" .wdform-page-and-images").css("display","none")}function generate_page_bar(t,r,e){if("steps"==document.getElementById("fm-pages"+r).getAttribute("type")?make_page_steps_front(t,r,e):"percentage"==document.getElementById("fm-pages"+r).getAttribute("type")?make_page_percentage_front(t,r,e):make_page_none_front(r),"true"==document.getElementById("fm-pages"+r).getAttribute("show_numbers")){if(td=document.getElementById(r+"page_numbers"+t),td){destroyChildren(td);var i=0,n=0;jQuery("#form"+r+" .wdform-page-and-images").each(function(){var e=jQuery(this).find(".wdform_page").attr("id");j=e.split("form_view")[1],document.getElementById(r+"form_view"+j)&&(i++,j==t&&(n=i))});var a=document.createElement("span");a.setAttribute("class","page_numbers"),a.innerHTML=n+"/"+i,td.appendChild(a)}}else td=document.getElementById(r+"page_numbers"+t),td&&destroyChildren(document.getElementById(r+"page_numbers"+t))}function make_page_steps_front(t,r,i){destroyChildren(document.getElementById("fm-pages"+r)),show_title="true"==document.getElementById("fm-pages"+r).getAttribute("show_title"),next_checkable="true"==document.getElementById(r+"form_view"+t).getAttribute("next_checkable"),previous_checkable="true"==document.getElementById(r+"form_view"+t).getAttribute("previous_checkable"),k=0,jQuery("#form"+r+" .wdform-page-and-images").each(function(){var e=jQuery(this).find(".wdform_page").attr("id");j=e.split("form_view")[1],document.getElementById(r+"form_view"+j)&&(document.getElementById(r+"form_view"+j).getAttribute("page_title")?w_pages=document.getElementById(r+"form_view"+j).getAttribute("page_title"):w_pages="",k++,page_number=document.createElement("span"),page_number.setAttribute("id","page_"+j),j<t&&(previous_checkable?page_number.setAttribute("onClick","if(fm_check("+t+", "+r+', false)) generate_page_nav("'+j+'", "'+r+'", "'+i+'")'):page_number.setAttribute("onClick",'generate_page_nav("'+j+'", "'+r+'", "'+i+'")')),j>t&&(next_checkable?page_number.setAttribute("onClick","if(fm_check("+t+", "+r+', false)) generate_page_nav("'+j+'", "'+r+'", "'+i+'")'):page_number.setAttribute("onClick",'generate_page_nav("'+j+'", "'+r+'", "'+i+'")')),j==t?page_number.setAttribute("class","page_active"):page_number.setAttribute("class","page_deactive"),show_title?page_number.innerHTML=w_pages:page_number.innerHTML=k,document.getElementById("fm-pages"+r).appendChild(page_number))})}function make_page_percentage_front(t,r,e){destroyChildren(document.getElementById("fm-pages"+r)),show_title="true"==document.getElementById("fm-pages"+r).getAttribute("show_title");var i=document.createElement("div");i.setAttribute("class","page_percentage_deactive");var n=document.createElement("div");n.setAttribute("id","div_percentage"),n.setAttribute("class","page_percentage_active"),n.setAttribute("align","right");var a=document.createElement("div");a.setAttribute("class","wdform_percentage_arrow");var o=document.createElement("b");o.setAttribute("class","wdform_percentage_text"),n.appendChild(o),k=0,cur_page_title="",jQuery(".wdform-page-and-images").each(function(){var e=jQuery(this).find(".wdform_page").attr("id");j=e.split("form_view")[1],document.getElementById(r+"form_view"+j)&&(document.getElementById(r+"form_view"+j).getAttribute("page_title")?w_pages=document.getElementById(r+"form_view"+j).getAttribute("page_title"):w_pages="",k++,j==t&&(show_title&&(cur_page_title=document.createElement("div"),cur_page_title.innerHTML=w_pages,cur_page_title.innerHTML=w_pages,cur_page_title.setAttribute("class","wdform_percentage_title")),page_number=k))}),o.innerHTML=Math.round((page_number-1)/k*100)+"%",n.style.width=(page_number-1)/k*100+"%",1==page_number&&(a.style.display="none"),i.appendChild(n),i.appendChild(a),cur_page_title&&i.appendChild(cur_page_title),document.getElementById("fm-pages"+r).appendChild(i)}function make_page_none_front(e){destroyChildren(document.getElementById("fm-pages"+e))}function make_pagebreak_button(e,t,r,i,n,a,o,d){switch(r){case"text":return(l=document.createElement("div")).setAttribute("id","page_"+e+"_"+a+"_"+o),l.setAttribute("class",i),"true"==n?l.setAttribute("onClick","if(fm_check("+a+", "+o+", false)) page_"+e+"("+a+","+o+","+d+")"):l.setAttribute("onClick","page_"+e+"("+a+","+o+","+d+")"),l.innerHTML=t,l;case"img":var l;return(l=document.createElement("img")).setAttribute("id","page_"+e+"_"+a),l.setAttribute("class",i),"true"==n?l.setAttribute("onClick","if(fm_check("+a+", "+o+", false)) page_"+e+"("+a+","+o+","+d+")"):l.setAttribute("onClick","page_"+e+"("+a+","+o+","+d+")"),0==t.indexOf("http")?l.src=t:l.src=fm_objectL10n.plugin_url+"/"+t,l}}function form_maker_findPos(e){var t=0;if(e.offsetParent){for(;t+=e.offsetTop,e=e.offsetParent;);return[t]}}function page_previous(e,t,r){form_view_elemet=document.getElementById(t+"form_view"+e),form_view_elemet.parentNode.previousSibling&&form_view_elemet.parentNode.previousSibling.previousSibling&&("DIV"==form_view_elemet.parentNode.previousSibling.tagName?table=form_view_elemet.parentNode.previousSibling:table=form_view_elemet.parentNode.previousSibling.previousSibling),table.firstChild.tagName||table.removeChild(table.firstChild),generate_page_nav(table.firstChild.id.replace(t+"form_view",""),t,r),form=jQuery("#form"+t),form.parent().hasClass("fm-scrollbox-form")||(jQuery("html").animate({scrollTop:form.offset().top-150},500),document.scrollingElement.scrollTop=form.offset().top-150)}function page_next(e,t,r){form_view_elemet=document.getElementById(t+"form_view"+e),form_view_elemet.parentNode.nextSibling&&("DIV"==form_view_elemet.parentNode.nextSibling.tagName?table=form_view_elemet.parentNode.nextSibling:table=form_view_elemet.parentNode.nextSibling.nextSibling),table.firstChild.tagName||table.removeChild(table.firstChild),generate_page_nav(table.firstChild.id.replace(t+"form_view",""),t,r),form=jQuery("#form"+t),form.parent().hasClass("fm-scrollbox-form")||(jQuery("html").animate({scrollTop:form.offset().top-150},500),document.scrollingElement.scrollTop=form.offset().top-150)}function fm_go_to_page(e,t,r){form_view_elemet=document.getElementById(t+"form_view"+e),table=form_view_elemet.parentNode,table.firstChild.tagName||table.removeChild(table.firstChild),generate_page_nav(table.firstChild.id.replace(t+"form_view",""),t,r),form=jQuery("#form"+t),form.parent().hasClass("fm-scrollbox-form")||(jQuery("html").animate({scrollTop:form.offset().top-150},500),document.scrollingElement.scrollTop=form.offset().top-150)}function getfileextension(e,t){if(void 0===e||0==e.length)return!0;var r=e.lastIndexOf("."),i=e.substr(r+1,e.length);t=t.split(",");for(var n=0;n<t.length;n++)if(t[n]=t[n].replace(/\./g,""),t[n]=t[n].replace(/ /g,""),i.toLowerCase()==t[n].toLowerCase())return!0;return!1}function reselect(e,t){t=void 0!==t?t:"",jQuery(e).wrap('<div class="sel-wrap '+t+'"/>');var r="",i=!1;jQuery(e).children("option").each(function(){jQuery(this).is(":selected")&&(i=jQuery(this).index()),r=r+'<div class="sel-option" value="'+jQuery(this).val()+'">'+jQuery(this).html()+"</div>"}),w=jQuery(e)[0].style.width,"100%"==w?w="100%":w=jQuery(e).width()+32+"px";var n='<div class="sel-imul" style="width:'+w+'"> <div class="sel-selected"> <div class="selected-text">'+jQuery(e).children("option").eq(i).html()+'</div> <div class="sel-arraw"></div> </div> <div class="sel-options">'+r+"</div> </div>";jQuery(e).addClass("no-width"),jQuery(e).before(n)}jQuery(window).on("load",function(){0<jQuery(".g-recaptcha").length&&1!=jQuery(".g-recaptcha").data("render")&&fmRecaptchaInit(0)}),jQuery(document).on("change",".wdform-element-section select",function(){var e=jQuery(this).children("option:selected").text();jQuery(this).parent(".sel-wrap ").children(".sel-imul").children(".sel-selected").children(".selected-text").html(e),jQuery(this).parent(".sel-wrap ").children(".sel-imul").children(".sel-options").children(".sel-option").removeClass("sel-ed"),jQuery(this).addClass("sel-ed"),jQuery(this).parent(".sel-wrap ").children(".sel-imul").children(".sel-options").each(function(){jQuery(this).html()==e&&jQuery(this).addClass("sel-ed")})}),jQuery(document).on("click",".sel-imul",function(){jQuery(".sel-imul").removeClass("act"),jQuery(this).addClass("act"),jQuery(this).children(".sel-options").is(":visible")?jQuery(".sel-options").hide():(jQuery(".sel-options").hide(),jQuery(this).children(".sel-options").show(),jQuery(this).children(".sel-options").css("width",jQuery(this).width()))}),jQuery(document).on("click",".sel-option",function(){var e=jQuery(this).html();jQuery(this).parent(".sel-options").parent(".sel-imul").children(".sel-selected").children(".selected-text").html(e),jQuery(this).parent(".sel-options").children(".sel-option").removeClass("sel-ed"),jQuery(this).addClass("sel-ed");var t=jQuery(this).attr("value");t=void 0!==t?t:e,jQuery(this).parent(".sel-options").parent(".sel-imul").parent(".sel-wrap").children("select").children("option").prop("selected",!1).each(function(){jQuery(this).html()==e&&jQuery(this).attr("selected","select")}),jQuery(this).parent(".sel-options").parent(".sel-imul").parent(".sel-wrap").children("select").change()});var selenter=!1;function remove_whitespace(e){var t;for(t=0;t<e.childNodes.length;t++)e.childNodes[t]&&"3"==e.childNodes[t].nodeType&&!/\S/.test(e.childNodes[t].nodeValue)?(e.removeChild(e.childNodes[t]),t--):e.childNodes[t].childNodes.length&&remove_whitespace(e.childNodes[t])}function change_value_range(e,t,r,i,n){r?jQuery("#"+e).datepicker("option",t,r):"today"==i?jQuery("#"+e).datepicker("option",t,new Date):(-1==i.indexOf("d")&&-1==i.indexOf("m")&&-1==i.indexOf("y")&&-1==i.indexOf("w")&&""!=i&&(i=jQuery.datepicker.formatDate(n,new Date(i))),jQuery("#"+e).datepicker("option",t,i))}function wd_check_confirmation_email(e,t,r,i){var n=jQuery("#wdform_"+e+"_element"+t),a=jQuery("#wdform_"+e+"_1_element"+t);0==window["check_before_submit"+t][e+"_"+t]||jQuery(n).val()!=jQuery(a).val()?(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm"),jQuery(n).val()!=jQuery(a).val()&&(jQuery(a).parent().parent().parent().append("<div id='confirm_"+e+"_"+t+"' class='fm-not-filled'>"+r+"</div>"),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_confirm")),window["check_before_submit"+t][e+"_"+t]=!(e+"_"+t in window["check_before_submit"+t])||window["check_before_submit"+t][e+"_"+t]):(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm"),1==window["check_before_submit"+t][e+"_"+t]&&delete window["check_before_submit"+t][e+"_"+t])}function wd_check_email(e,t,r){var i=jQuery("#wdform_"+e+"_element"+t),n=jQuery("#wdform_"+e+"_1_element"+t);""==jQuery(i).val()||/^[\u0400-\u04FFa-zA-Z0-9'.+_-]+@[\u0400-\u04FFa-zA-Z0-9.-]+\.[\u0400-\u04FFa-zA-Z]{2,61}$/.test(jQuery.trim(jQuery(i).val()))||jQuery(i).attr("title")==jQuery(i).val()?(jQuery("#check_email_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_check_mail").removeClass("error_label_check_mail"),window["check_before_submit"+t][e+"_"+t]=!0,void 0===n.val()&&delete window["check_before_submit"+t][e+"_"+t]):(jQuery("#check_email_"+e+"_"+t).remove(),jQuery(i).parent().parent().parent().append("<div id='check_email_"+e+"_"+t+"' class='fm-not-filled'>"+r+"</div>"),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_check_mail"),i.val()==n.val()&&(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm")),delete window["check_before_submit"+t][e+"_"+t],window["check_before_submit"+t][e+"_"+t]=!1)}function wd_check_confirmation_pass(e,t,r){var i=jQuery("#wdform_"+e+"_element"+t),n=jQuery("#wdform_"+e+"_1_element"+t);i.val()!==n.val()?(jQuery("#confirm_"+e+"_"+t).remove(),jQuery(n).parent().parent().parent().append("<div id='confirm_"+e+"_"+t+"' class='fm-not-filled'>"+r+"</div>"),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_check_pass"),window["check_before_submit"+t][e+"_"+t]=!1):(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_check_pass").removeClass("error_label_check_pass"),delete window["check_before_submit"+t][e+"_"+t])}function minimize_form(e){jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown fm-minimized"),jQuery("#fm-minimize-text"+e).removeClass("fm-animated fadeOutDown").addClass("fm-show fm-animated fadeInUp")}function fm_show_scrollbox(e){jQuery("#fm-minimize-text"+e).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown"),jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeOutDown fm-minimized").addClass("fm-show fm-animated fadeInUp")}function fm_hide_form(e,t,r){var i=new Date;i.setDate(i.getDate()+t),0<t&&localStorage.setItem("hide-"+e,i.getTime()),"function"==typeof r&&r()}function wd_check_regExp(a,o){var d=jQuery("#form"+a),l=!1,e=o||window["check_regExp_all"+a];return jQuery.each(e,function(e,t){var r="#wdform_"+e+"_element"+a,i="",n=unescape(t[0]);i=t[1].length<=0?new RegExp(n):new RegExp(n,t[1]),0!=d.find(jQuery("div[wdid='"+e+"']")).length&&"none"!=d.find(jQuery("div[wdid='"+e+"']")).css("display")&&0<jQuery(r).val().length&&jQuery(r).val()!=jQuery(r).attr("title")&&1!=i.test(jQuery(r).val())&&(jQuery("#form"+a+" #wd_exp_"+e).remove(),d.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_exp_"+e+"' class='fm-not-filled'>"+t[2]+"</div>"),jQuery("#form"+a+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp"),l=!0,o||scroll_on_element(a))}),!1===l}function scroll_on_element(e){if(0==jQuery("#form"+e+" .fm-not-filled").length)return!0;var t=!0;0==jQuery("#fm_shake"+e).val()&&(t=!1);var r=jQuery("#form"+e+" .fm-not-filled").closest(".wdform_row"),i=r.closest(".wdform_page");if("none"==i.parent().css("display")){var n=jQuery("#form"+e+" .wdform-page-and-images").length,a=jQuery("#form"+e+" .wdform_page").last().attr("id");a=a.split("form_view");var o=i.attr("id");fm_go_to_page(o=o.split("form_view")[1],e,n,a[1])}var d=jQuery(document).scrollTop(),l=document.body.clientHeight,s=jQuery("#form"+e+" .fm-not-filled").closest("div[wdid]").height(),u=jQuery("#form"+e+" .fm-not-filled").offset().top,m=function(){document.body.clientHeight!==l&&(l=document.body.clientHeight,s=jQuery("#form"+e+" .fm-not-filled").closest("div[wdid]").height(),u=jQuery("#form"+e+" .fm-not-filled").offset().top,jQuery("html").stop(),_())};function c(e){e&&(old_bg=jQuery(r).css("background-color"),jQuery(r).effect("shake",{},500).css("background-color","#FF8F8B").animate({backgroundColor:old_bg},{duration:500,queue:!1}))}function _(){jQuery("html").animate({scrollTop:u-(s+40)},500,function(){document.scrollingElement.scrollTop=u-(s+40),jQuery(window).off("scroll",m),c(t)})}jQuery(window).on("scroll",m),u<d?_():c(t)}function wd_file_upload_check(i,e){var n=jQuery("#form"+i),a=!1,t=e||window["file_upload_check"+i];return jQuery.each(t,function(e,t){var r="#wdform_"+e+"_element"+i;0!=n.find(jQuery("div[wdid='"+e+"']")).length&&"none"!=n.find(jQuery("div[wdid='"+e+"']")).css("display")&&(ext_available=getfileextension(jQuery(r).val(),t),ext_available?(jQuery("#form"+i+" #wd_upload_type_"+e).remove(),jQuery("#form"+i+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_upload").removeClass("error_label_upload")):(jQuery("#form"+i+" #wd_upload_type_"+e).remove(),n.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_upload_type_"+e+"' class='fm-not-filled'>"+fm_objectL10n.fm_file_type_error+"</div>"),jQuery("#form"+i+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_upload"),a=!0))}),e||!0!==a||scroll_on_element(i),!1===a}function wd_is_filled(s,u,m){null==m&&(m=!0);var c=jQuery("#form"+s),e=u?u.split():window["required_fields"+s],_={};return jQuery(e).each(function(e,i){if("none"===c.find(jQuery("div[wdid='"+i+"']")).css("display")&&(c.find(jQuery("div[wdid='"+i+"']")).find(".fm-not-filled").remove(),c.find(jQuery("div[wdid='"+i+"']")).css("background-color",""),c.find(jQuery("div[wdid='"+i+"'] label")).removeClass("error_label")),0!=c.find(jQuery("div[wdid='"+i+"']")).length&&"none"!==c.find(jQuery("div[wdid='"+i+"']")).css("display"))switch(window["labels_and_ids"+s][i]){case"type_text":case"type_textarea":case"type_paypal_price_new":case"type_spinner":case"type_number":case"type_phone_new":case"type_submitter_mail":var t="#wdform_"+i+"_element"+s,r=jQuery(t).val();r=jQuery.trim(r),(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==r&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(s,i)});break;case"type_own_select":case"type_country":case"type_paypal_select":t="#wdform_"+i+"_element"+s;(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(s,i)}).change(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),wd_is_filled(s,i)});break;case"type_phone":t=["#wdform_"+i+"_element_first"+s,"#wdform_"+i+"_element_last"+s];jQuery.each(t,function(e,t){(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(s,i)})});break;case"type_name":t=["#wdform_"+i+"_element_title"+s,"#wdform_"+i+"_element_first"+s,"#wdform_"+i+"_element_last"+s,"#wdform_"+i+"_element_middle"+s];jQuery.each(t,function(e,t){if((m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&jQuery(t).length){var r=jQuery(t).val();""==(r=jQuery.trim(r))&&void 0!==r&&(_[i]=t)}u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).blur(function(){wd_is_filled(s,i)})});break;case"type_address":t=["#wdform_"+i+"_street1"+s,"#wdform_"+i+"_street2"+s,"#wdform_"+i+"_city"+s,"#wdform_"+i+"_state"+s,"#wdform_"+i+"_postal"+s,"#wdform_"+i+"_country"+s];jQuery.each(t,function(e,t){if(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display")){var r=jQuery(t).val();void 0!==r&&(r=jQuery.trim(r)),""==r&&(_[i]=t)}u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).blur(function(){wd_is_filled(s,i)})});break;case"type_checkbox":case"type_radio":case"type_scale_rating":case"type_paypal_checkbox":case"type_paypal_radio":case"type_paypal_shipping":(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&(0!=c.find(jQuery("div[wdid='"+i+"'] input:checked")).length&&""!=jQuery("#wdform_"+i+"_other_input"+s).val()||(_[i]=!0)),u||window["check_submit"+s]||jQuery.each(jQuery("#form"+s+" div[wdid='"+i+"'] input"),function(e,t){jQuery(this).change(function(){0==c.find(jQuery("div[wdid='"+i+"'] input:checked")).length||""==jQuery("#wdform_"+i+"_other_input"+s).val()?wd_is_filled(s,i):(jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"))})});break;case"type_star_rating":t="#wdform_"+i+"_selected_star_amount"+s;(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=!0),u||window["check_submit"+s]||jQuery("#wdform_"+i+"_element"+s).click(function(){""!=jQuery(t).val()&&(jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove())});break;case"type_range":t=["#wdform_"+i+"_element"+s+"0","#wdform_"+i+"_element"+s+"1"];jQuery.each(t,function(e,t){(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).blur(function(){wd_is_filled(s,i)})});break;case"type_grading":if(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display")){var n=0;jQuery.each(jQuery("#wdform_"+i+"_element"+s+" input"),function(e,t){""!=jQuery(this).val()&&n++}),0==n&&(_[i]=!0)}u||window["check_submit"+s]||jQuery.each(jQuery("#wdform_"+i+"_element"+s+" input"),function(e,t){jQuery(this).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).blur(function(){wd_is_filled(s,i)})});break;case"type_slider":var a="#wdform_"+i+"_element"+s,o=(t="#wdform_"+i+"_slider_value"+s,"#wdform_"+i+"_element_min"+s);(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&jQuery(t).val()==jQuery(o).html()&&(_[i]=!0),u||window["check_submit"+s]||jQuery(a).slider({change:function(e,t){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove(),wd_is_filled(s,i)}});break;case"type_date":case"type_date_new":t="#wdform_"+i+"_element"+s;(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" #wd_required_"+i).remove()}).change(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),wd_is_filled(s,i)});break;case"type_date_range":t=["#wdform_"+i+"_element"+s+"0","#wdform_"+i+"_element"+s+"1"];jQuery.each(t,function(e,t){(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).change(function(){wd_is_filled(s,i)})});break;case"type_date_fields":t=["#wdform_"+i+"_day"+s,"#wdform_"+i+"_month"+s,"#wdform_"+i+"_year"+s];jQuery.each(t,function(e,t){(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).blur(function(){wd_is_filled(s,i)}).change(function(){wd_is_filled(s,i)})});break;case"type_time":t=["#wdform_"+i+"_hh"+s,"#wdform_"+i+"_mm"+s,"#wdform_"+i+"_ss"+s];jQuery.each(t,function(e,t){(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&void 0!==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).blur(function(){wd_is_filled(s,i)})});break;case"type_password":t="#wdform_"+i+"_element"+s;(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(s,i)});break;case"type_file_upload":t="#wdform_"+i+"_element"+s;(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).change(function(){jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),wd_is_filled(s,i)});break;case"type_matrix":if(jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),"radio"==jQuery("#form"+s+" div[wdid='"+i+"'] input").attr("type")||"checkbox"==jQuery("#form"+s+" div[wdid='"+i+"'] input").attr("type"))(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&(0==c.find(jQuery("div[wdid='"+i+"'] input:checked")).length&&(_[i]=!0),"radio"==jQuery("#form"+s+" div[wdid='"+i+"'] input").attr("type")&&jQuery.each(jQuery("#form"+s+" div[wdid='"+i+"'] div[class^='wdform-matrix-row']"),function(e,t){0==jQuery(t).find('input[type="radio"]:checked').length&&(_[i]=!0)})),"checkbox"==jQuery("#form"+s+" div[wdid='"+i+"'] input").attr("type")&&(u||window["check_submit"+s]||jQuery.each(jQuery("#form"+s+" div[wdid='"+i+"'] input"),function(e,t){jQuery(this).change(function(){0==c.find(jQuery("div[wdid='"+i+"'] input:checked")).length?wd_is_filled(s,i):(jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove())})}));else if("text"==jQuery("#form"+s+" div[wdid='"+i+"'] input").attr("type")){if(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display")){var d=0;jQuery.each(jQuery("#form"+s+" div[wdid='"+i+"'] input"),function(e,t){""!=jQuery(this).val()&&d++}),0==d&&(_[i]=!0)}u||window["check_submit"+s]||jQuery.each(jQuery("#form"+s+" div[wdid='"+i+"'] input"),function(e,t){jQuery(this).focus(function(){jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(s,i)})})}else{if(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display")){var l=0;jQuery.each(jQuery("#form"+s+" div[wdid='"+i+"'] select"),function(e,t){""!=jQuery(this).val()&&l++}),0==l&&(_[i]=!0)}u||window["check_submit"+s]||jQuery.each(jQuery("#form"+s+" div[wdid='"+i+"'] select"),function(e,t){jQuery(this).focus(function(){""==jQuery(this).val()&&(jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"))}).change(function(){wd_is_filled(s,i)}).blur(function(){wd_is_filled(s,i)})})}break;case"type_send_copy":(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&0==jQuery("div[wdid='"+i+"'] input:checked").length&&(_[i]=!0),u||window["check_submit"+s]||jQuery("#form"+s+" div[wdid='"+i+"'] input").change(function(){0==jQuery("div[wdid='"+i+"'] input:checked").length?wd_is_filled(s,i):(jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"))});break;case"type_captcha":case"type_arithmetic_captcha":t="";t="type_captcha"==window["labels_and_ids"+s][i]?"#wd_captcha_input"+s:"#wd_arithmetic_captcha_input"+s,(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(jQuery(".message_captcha").html(""),_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(s,i)})}}),0===Object.keys(_).length&&0===Object.keys(window["check_before_submit"+s]).length||(0!==Object.keys(_).length&&jQuery.each(_,function(e,t){jQuery("#form"+s+" #wd_required_"+e).remove(),jQuery("#form"+s+" div[wdid='"+e+"'] .wdform-element-section:first").parent().parent().append("<div id='wd_required_"+e+"' class='fm-not-filled'>"+fm_objectL10n.fm_field_is_required+"</div>"),jQuery("#form"+s+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label")}),u||scroll_on_element(s),!(window["check_submit"+s]=1))}function wd_check_price_min_max(a,o){var d=jQuery("#form"+a),e=o||window["check_paypal_price_min_max"+a],l=!1;return jQuery.each(e,function(e,t){var r="#wdform_"+e+"_element"+a,i=t[3]?t[3]:0,n=t[4]?t[4]:-1;!t[2]&&jQuery(r).val()==t[1]||(-1!=n&&parseFloat(jQuery(r).val())>n||parseFloat(jQuery(r).val())<i)&&(jQuery("#form"+a+" #wd_price_"+e).remove(),d.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_price_"+e+"' class='fm-not-filled'>"+fm_objectL10n.fm_min_max_check_1+t[0]+fm_objectL10n.fm_min_max_check_2+(t[3]?t[3]:0)+"-"+(t[4]?t[4]:"any")+"</div>"),jQuery("#form"+a+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"),l=!0,o||scroll_on_element(a))}),!1===l}function wd_spinner_check(i,n){var a=jQuery("#form"+i),o=!1,e=n||window["spinner_check"+i];return jQuery.each(e,function(e,t){var r="#wdform_"+e+"_element"+i;0!=a.find(jQuery("div[wdid='"+e+"']")).length&&"none"!=a.find(jQuery("div[wdid='"+e+"']")).css("display")&&(parseInt(jQuery(r).val())<parseInt(t[0])||parseInt(jQuery(r).val())>parseInt(t[1]))&&(jQuery("#form"+i+" #wd_price_"+e).remove(),a.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_price_"+e+"' class='fm-not-filled'>"+fm_objectL10n.fm_spinner_check+(t[0]?t[0]:0)+"-"+(t[1]?t[1]:"any")+"</div>"),jQuery("#form"+i+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"),o=!0,n||scroll_on_element(i))}),!1===o}function fmscrollHandler(e){var t=100*jQuery(window).scrollTop()/(jQuery(document).height()-jQuery(window).height());!jQuery("#fm-scrollbox"+e).hasClass("fm-minimized")&&t>=window["scrollbox_trigger_point"+e]?setTimeout(function(){jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeOutDown").addClass("fm-animated fadeInUp"),jQuery("#fm-scrollbox"+e).css("visibility",""),jQuery("#fm-scrollbox"+e+" .fm-header-img").addClass("fm-animated "+window["header_image_animation"+e])},1e3*window["scrollbox_loading_delay"+e]):window["scrollbox_auto_hide"+e]&&(jQuery("#fm-scrollbox"+e+" .fm-header-img").removeClass("fm-animated "+window["header_image_animation"+e]),jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown"))}function fm_submit_form(e){if("function"==typeof window["before_submit"+e]&&window["before_submit"+e]())return!1;if(!fm_check(0,e))return!1;(jQuery("#form"+e+" button").each(function(){jQuery(this).attr("disabled","disabled")}),jQuery('<input type="hidden" name="save_or_submit'+e+'" value ="submit" />').appendTo("#form"+e),window["onsubmit_js"+e](),1==window["checkStripe"+e])?"none"!=jQuery("form[id='form"+e+"']").find(".StripeElement").first().parents(".wdform_row").css("display")?wdfm_call_stripe(!0):0<jQuery("#form"+e).find(".g-recaptcha[data-size=invisible]").length?grecaptcha.execute():fm_submit(e):0<jQuery("#form"+e).find(".g-recaptcha[data-size=invisible]").length?grecaptcha.execute():fm_submit(e)}function getHostName(e){var t=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);return null!=t&&2<t.length&&"string"==typeof t[2]&&0<t[2].length?t[2]:null}function isJson(e){try{JSON.parse(e)}catch(e){return!1}return!0}function fm_submit(s){if(fm_set_input_value("fm_empty_field_validation"+s,jQuery("#fm_empty_field_validation"+s).attr("data-value")),"0"!=jQuery("#form"+s+" .button-submit:not(.save_button)").attr("data-ajax")){jQuery("#form"+s+" .fm-submit-loading").css("display","inline-block");var e=jQuery("#form"+s)[0],t=new FormData(e),r=jQuery("#fm_ajax_url"+s).data("ajax_url"),u=jQuery("#form"+s+" #fm_ajax_redirect_url"+s).data("ajax_redirect_url");jQuery.ajax({type:"POST",enctype:"multipart/form-data",url:r,data:t,contentType:!1,processData:!1,success:function(e){if(isJson(e)){var t=JSON.parse(e),r=new Date,i=window.location.href,n="&return="+(i=-1<i.indexOf("?")?i+"&succes="+r.getTime():i+"?succes="+r.getTime());if(void 0!==t.paypal_url){var a=t.paypal_url+n;return void window.location.replace(a)}}if(0==u){jQuery("#form"+s+" .button-submit").prop("disabled",!1),jQuery("#form"+s+" .fm-submit-loading").hide();var o=jQuery(e).find("#form"+s).html();jQuery("#form"+s).html(o),"function"==typeof window["fm_save_progress_"+s]&&window["fm_save_progress_"+s](),0<jQuery(document).find(".g-recaptcha").length&&fmRecaptchaInit(1);var d="fm_script_ready"+s;if(void 0!==window[d]&&window[d](),0<jQuery(o).find(".fm-not-filled.message_captcha").length){var l=jQuery(o).find(".fm-not-filled.message_captcha").text();jQuery("#form"+s+" .fm-message").remove(),jQuery("#form"+s).prepend('<div class="fm-message fm-notice-error">'+l+"</div>")}else fm_reset_form(s);if(0!=u)document.domain==getHostName(u)?window.location.href=u:(jQuery("#form"+s+" .fm-message").remove(),jQuery("#form"+s).prepend('<div class="fm-message fm-notice-error">Form submitted successfully done, but there is a problem with redirection.</div>'))}else window.location.replace(u)},complete:function(){0==jQuery("#form"+s+" .fm-message").length&&(jQuery("#closing-form"+s).remove(),jQuery("#fm-popover-background"+s).css("display","none")),"function"==typeof window["after_submit"+s]&&window["after_submit"+s]()}})}else jQuery("#form"+s).submit()}function fm_reset_form(form_id){"function"==typeof window["before_reset"+form_id]&&window["before_reset"+form_id]();var privacy_policy_check=jQuery("#fm_privacy_policy"+form_id);privacy_policy_check&&(privacy_policy_check.prop("checked",!1),fm_privacy_policy_check(privacy_policy_check)),jQuery.each(window["labels_and_ids"+form_id],function(index,elem){switch(elem){case"type_text":case"type_textarea":case"type_number":case"type_spinner":case"type_own_select":case"type_country":case"type_date":case"type_date_new":case"type_hidden":case"type_paypal_price_new":case"type_phone_new":jQuery("#wdform_"+index+"_element"+form_id).val("");break;case"type_submitter_mail":case"type_password":jQuery("#wdform_"+index+"_element"+form_id).val(""),jQuery("#wdform_"+index+"_1_element"+form_id)&&(jQuery("#wdform_"+index+"_1_element"+form_id).val(""),jQuery("#confirm_"+index+"_"+form_id)&&jQuery("#confirm_"+index+"_"+form_id).remove(),"type_submitter_mail"==elem&&jQuery("#check_email_"+index+"_"+form_id)&&jQuery("#check_email_"+index+"_"+form_id).remove());break;case"type_date_range":jQuery("#wdform_"+index+"_element"+form_id+"0").val(""),jQuery("#wdform_"+index+"_element"+form_id+"1").val("");break;case"type_send_copy":jQuery("#wdform_"+index+"_element"+form_id).prop("checked",!1);break;case"type_phone":jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id).val("");break;case"type_name":jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id+", #wdform_"+index+"_element_title"+form_id+", #wdform_"+index+"_element_middle"+form_id).val("");break;case"type_address":jQuery("#wdform_"+index+"_street1"+form_id+", #wdform_"+index+"_street2"+form_id+", #wdform_"+index+"_city"+form_id+", #wdform_"+index+"_state"+form_id+", #wdform_"+index+"_postal"+form_id+", #wdform_"+index+"_country"+form_id).val("");break;case"type_checkbox":jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop("checked",!1),jQuery("#wdform_"+index+"_other_br"+form_id).remove(),jQuery("#wdform_"+index+"_other_input"+form_id).remove();break;case"type_radio":jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1),jQuery("#wdform_"+index+"_other_br"+form_id).remove(),jQuery("#wdform_"+index+"_other_input"+form_id).remove();break;case"type_time":jQuery("#wdform_"+index+"_hh"+form_id+", #wdform_"+index+"_mm"+form_id+", #wdform_"+index+"_ss"+form_id+", #wdform_"+index+"_am_pm"+form_id).val("");break;case"type_date_fields":jQuery("#wdform_"+index+"_day"+form_id+", #wdform_"+index+"_month"+form_id+", #wdform_"+index+"_year"+form_id).val("");break;case"type_file_upload":jQuery("#wdform_"+index+"_element"+form_id+"_save").remove();break;case"type_paypal_price":jQuery("#wdform_"+index+"_element_dollars"+form_id+", #wdform_"+index+"_element_cents"+form_id).val("");break;case"type_paypal_select":jQuery("#wdform_"+index+"_element"+form_id+", #wdform_"+index+"_element_quantity"+form_id+", #form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val("");break;case"type_paypal_radio":jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val(""),jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1);break;case"type_paypal_shipping":jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1);break;case"type_paypal_checkbox":jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val(""),jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop("checked",!1);break;case"type_star_rating":jQuery("#wdform_"+index+"_selected_star_amount"+form_id).val(""),jQuery("#wdform_"+index+"_element"+form_id+" img").attr("src",fm_objectL10n.plugin_url+"/images/star.png");break;case"type_scale_rating":jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1);break;case"type_slider":jQuery("#wdform_"+index+"_element"+form_id).slider({value:eval(0)}),jQuery("#wdform_"+index+"_element_value"+form_id).html("0");break;case"type_range":jQuery("#wdform_"+index+"_element"+form_id+"0, #wdform_"+index+"_element"+form_id+"1").val("");break;case"type_grading":jQuery("#wdform_"+index+"_element"+form_id+" input").val("");break;case"type_matrix":jQuery("#wdform_"+index+"_element"+form_id+" .radio-div input").prop("checked",!1),jQuery("#wdform_"+index+"_element"+form_id+" .checkbox-div input").prop("checked",!1),jQuery("#wdform_"+index+"_element"+form_id+" input[type='text']").val(""),jQuery("#wdform_"+index+"_element"+form_id+" select").val("");break;case"type_paypal_total":jQuery("#wdform_"+index+"div_total"+form_id).html("$0"),jQuery("#wdform_"+index+"paypal_products"+form_id).empty();break;case"type_captcha":jQuery("#wd_captcha_input"+form_id).val("")}})}function fm_save_form(e){jQuery('<input type="hidden" name="save_or_submit'+e+'" value ="save" />').appendTo("#form"+e),window["onsubmit_js"+e](),jQuery("#form"+e+" button").each(function(){jQuery(this).attr("disabled","disabled")}),fm_set_input_value("fm_empty_field_validation"+e,jQuery("#fm_empty_field_validation"+e).attr("data-value")),jQuery("#form"+e).submit()}function fm_clear_form(e){1==confirm(fm_objectL10n.fm_clear_data)&&(jQuery("#form"+e+" button").each(function(){jQuery(this).attr("disabled","disabled")}),jQuery.get(fm_objectL10n.form_maker_admin_ajax+"?action=FMClearProg&addon_task=clear_data&nonce="+fm_ajax.ajaxnonce+"&form_id="+e).done(function(){window.location=jQuery("#form"+e).attr("action")}))}function fm_set_input_value(e,t){jQuery("#"+e).val(t)}function formOnload(i){var n;-1!=navigator.userAgent.toLowerCase().indexOf("msie")&&8===parseInt(navigator.userAgent.toLowerCase().split("msie")[1])&&(jQuery("#form"+i).find(jQuery("input[type='radio']")).click(function(){jQuery("input[type='radio']+label").removeClass("if-ie-div-label"),jQuery("input[type='radio']:checked+label").addClass("if-ie-div-label")}),jQuery("#form"+i).find(jQuery("input[type='radio']:checked+label")).addClass("if-ie-div-label"),jQuery("#form"+i).find(jQuery("input[type='checkbox']")).click(function(){jQuery("input[type='checkbox']+label").removeClass("if-ie-div-label"),jQuery("input[type='checkbox']:checked+label").addClass("if-ie-div-label")}),jQuery("#form"+i).find(jQuery("input[type='checkbox']:checked+label")).addClass("if-ie-div-label")),jQuery.each(window["check_regExp_all"+i],function(e,t){var r={};r[e]=t,jQuery("div[wdid='"+e+"'] input").blur(function(){wd_check_regExp(i,r)}).focus(function(){jQuery("#form"+i+" #wd_exp_"+e).remove(),jQuery("#form"+i+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")})}),jQuery.each(window["check_paypal_price_min_max"+i],function(e,t){var r={};r[e]=t,jQuery("div[wdid='"+e+"'] input").blur(function(){wd_check_price_min_max(i,r)}).focus(function(){jQuery("#form"+i+" #wd_price_"+e).remove(),jQuery("#form"+i+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")})}),jQuery.each(window["spinner_check"+i],function(e,t){var r={};r[e]=t,jQuery("div[wdid='"+e+"'] input").blur(function(){wd_spinner_check(i,r)}).focus(function(){jQuery("#form"+i+" #wd_price_"+e).remove(),jQuery("#form"+i+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")})}),jQuery.each(window["file_upload_check"+i],function(e,t){var r={};r[e]=t,jQuery("div[wdid='"+e+"'] input").change(function(){wd_file_upload_check(i,r)})}),jQuery("#form"+i+" input").on("keypress",function(e){if(13==(e.keyCode?e.keyCode:e.which))return!1}),jQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity, div[type='type_paypal_price_new'] input").keypress(function(e){return check_isnum(e)}),jQuery("div[type='type_grading'] input").keypress(function(e){return check_isnum_or_minus(e)}),jQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function(){set_total_value(i)}),jQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input, div[type='type_paypal_price_new'] input").change(function(){set_total_value(i)}),jQuery(".wdform-quantity").change(function(){set_total_value(i)}),jQuery("div[type='type_address'] select").change(function(){set_total_value(i)}),jQuery("div[type='type_time'] input").blur(function(){add_0(this)}),jQuery(".wdform-element-section").each(function(){if("type_stripe"==jQuery(this).parent().parent().attr("type"))return!0;jQuery(this).parent()[0].style.width||0==parseInt(jQuery(this).width())||0==jQuery(this).parent().find(jQuery(".wdform-label-section")).length||"table-cell"==jQuery(this).css("display")&&("type_captcha"!=jQuery(this).parent().attr("type")?jQuery(this).parent().css("width",parseInt(jQuery(this).width())+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15):jQuery(this).parent().css("width",2*parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)+50+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15)),parseInt(jQuery(this)[0].style.width.replace("px",""))<parseInt(jQuery(this).css("min-width").replace("px",""))&&jQuery(this).css("min-width",parseInt(jQuery(this)[0].style.width.replace("px",""))-10)}),jQuery(".wdform-label").each(function(){parseInt(jQuery(this).height())>=2*parseInt(jQuery(this).css("line-height").replace("px",""))&&(jQuery(this).parent().css("max-width",jQuery(this).parent().width()),jQuery(this).parent().css("width",""))}),(n=jQuery).fn.shuffle=function(){var i=n(this).find(".wd-choice"),t=n.map(i,function(){var e,t=(e=i.length,Math.floor(Math.random()*e)),r=n(i[parseInt(t)]).clone(!0)[0];return i.splice(t,1),r});return n(this).find(".wd-choice").each(function(e){n(this).replaceWith(n(t[e]))}),n(t)},window["onload_js"+i](),"function"==typeof window["before_load"+i]&&window["before_load"+i]()}function fm_document_ready(e){jQuery("#form"+e).hasClass("fm-form-submitted")&&"function"==typeof window["after_submit"+e]&&window["after_submit"+e]();var t=jQuery("#form"+e+" .wdform-page-and-images").length;window["form_view_count"+e]=t,1<window["form_view_count"+e]&&(firstid=jQuery("#form"+e+" .wdform_page").first().attr("id"),firstid=firstid.split("form_view"),window["first_form_view"+e]=firstid[1],generate_page_nav(window["first_form_view"+e],e,window["form_view_count"+e])),fm_initilize_form(e),window["condition_js"+e](),jQuery(document).trigger("fm_document_ready")}function fm_check(e,t,r){if(!wd_is_filled(t,void 0,r))return!1;if(1==window["checkStripe"+t]){var i=jQuery("form[id='form"+t+"']");if("none"!=i.find(".StripeElement").first().closest(".wdform-page-and-images").css("display")&&"none"!=i.find(".StripeElement").first().parents(".wdform_row").css("display")&&0==wdfm_call_stripe(!1))return!1}return!!wd_check_regExp(t)&&(!!wd_check_price_min_max(t)&&(!!wd_spinner_check(t)&&(!!wd_file_upload_check(t)&&0!=window["check_js"+t](e,t))))}function fmRecaptchaInit(e){void 0===e&&(e=0),jQuery(".g-recaptcha").each(function(){if(type=jQuery(this).attr("data-size"),jQuery(this).attr("data-render",1),"invisible"==type)r=jQuery(this).attr("data-form_id"),grecaptcha.render(jQuery(this).attr("id"),{sitekey:jQuery(this).attr("data-sitekey"),badge:jQuery(this).attr("data-badge"),callback:function(){fm_submit(r)}});else if("v3"==type){if("undefined"==jQuery(this).attr("data-sitekey")||""==jQuery(this).attr("data-sitekey"))return;var t=jQuery(this).attr("data-id"),r=jQuery(this).attr("data-form-id"),e=jQuery(this).attr("data-sitekey");grecaptcha.ready(function(){grecaptcha.execute(e).then(function(e){document.getElementById("recaptchaV3Response_"+r+t).value=e})})}else grecaptcha.render(jQuery(this).attr("id"),{sitekey:jQuery(this).attr("data-sitekey"),theme:"light"})})}function wd_change_state_input(e,t){if(document.getElementById(e+"_country"+t)&&document.getElementById(e+"_state"+t)){var r=!1,i=document.getElementById(e+"_state"+t);if("United States"==document.getElementById(e+"_country"+t).value){var n=document.createElement("select"),a=fm_objectL10n.states;for(var o in a){(d=document.createElement("option")).setAttribute("value",o),d.innerHTML=a[o],n.appendChild(d)}r=!0}else if("Canada"==document.getElementById(e+"_country"+t).value){n=document.createElement("select"),a=fm_objectL10n.provinces;for(var o in a){var d;(d=document.createElement("option")).setAttribute("value",o),d.innerHTML=a[o],n.appendChild(d)}r=!0}else if("SELECT"==document.getElementById(e+"_state"+t).tagName){n=document.createElement("input");r=!0}if(r){n.setAttribute("type","text"),n.setAttribute("id",e+"_state"+t),n.setAttribute("name","wdform_"+(parseInt(e.replace("wdform_",""))+3)+"_state"+t),n.setAttribute("class","wd-width-100");var l=i.parentNode;l.removeChild(i),l.insertBefore(n,l.firstChild)}}}function fm_privacy_policy_check(e){var t=jQuery(e),r=t.parents(".wdform_row").find(".button-submit");t.is(":checked")?r.prop("disabled",!1):r.prop("disabled",!0)}function fm_html_entities(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}jQuery(document).on("mouseenter",".sel-imul",function(){selenter=!0}),jQuery(document).on("mouseleave",".sel-imul",function(){selenter=!1}),jQuery(document).click(function(){selenter||(jQuery(".sel-options").hide(),jQuery(".sel-imul").removeClass("act"))}),function(t){"function"==typeof define&&define.amd?define(["jquery"],function(e){t(e,window,document)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window,document):t(jQuery,window,document)}(function(l,d,e,a){"use strict";var o="intlTelInput",r=1,i={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:"polite",customPlaceholder:null,dropdownContainer:"",excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},s=38,u=40,m=13,c=27,t=43,_=65,f=90,p=32,n=9,y=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"];function h(e,t){this.telInput=l(e),this.options=l.extend({},i,t),this.ns="."+o+r++,this.isGoodBrowser=Boolean(e.setSelectionRange),this.hadInitialPlaceholder=Boolean(l(e).attr("placeholder"))}l(d).on("load",function(){l.fn[o].windowLoaded=!0}),h.prototype={_init:function(){return this.options.nationalMode&&(this.options.autoHideDialCode=!1),this.options.separateDialCode&&(this.options.autoHideDialCode=this.options.nationalMode=!1),this.isMobile=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.isMobile&&(l("body").addClass("iti-mobile"),this.options.dropdownContainer||(this.options.dropdownContainer="body")),this.autoCountryDeferred=new l.Deferred,this.utilsScriptDeferred=new l.Deferred,this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests(),[this.autoCountryDeferred,this.utilsScriptDeferred]},_processCountryData:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries()},_addCountryCode:function(e,t,r){t in this.countryCodes||(this.countryCodes[t]=[]);var i=r||0;this.countryCodes[t][i]=e},_filterCountries:function(e,t){var r;for(r=0;r<e.length;r++)e[r]=e[r].toLowerCase();for(this.countries=[],r=0;r<w.length;r++)t(l.inArray(w[r].iso2,e))&&this.countries.push(w[r])},_processAllCountries:function(){this.options.onlyCountries.length?this._filterCountries(this.options.onlyCountries,function(e){return-1<e}):this.options.excludeCountries.length?this._filterCountries(this.options.excludeCountries,function(e){return-1==e}):this.countries=w},_processCountryCodes:function(){this.countryCodes={};for(var e=0;e<this.countries.length;e++){var t=this.countries[e];if(this._addCountryCode(t.iso2,t.dialCode,t.priority),t.areaCodes)for(var r=0;r<t.areaCodes.length;r++)this._addCountryCode(t.iso2,t.dialCode+t.areaCodes[r])}},_processPreferredCountries:function(){this.preferredCountries=[];for(var e=0;e<this.options.preferredCountries.length;e++){var t=this.options.preferredCountries[e].toLowerCase(),r=this._getCountryData(t,!1,!0);r&&this.preferredCountries.push(r)}},_generateMarkup:function(){this.telInput.attr("autocomplete","off");var e="intl-tel-input";this.options.allowDropdown&&(e+=" allow-dropdown"),this.options.separateDialCode&&(e+=" separate-dial-code"),this.telInput.wrap(l("<div>",{class:e})),this.flagsContainer=l("<div>",{class:"flag-container"}).insertBefore(this.telInput);var t=l("<div>",{class:"selected-flag"});t.appendTo(this.flagsContainer),this.selectedFlagInner=l("<div>",{class:"iti-flag"}).appendTo(t),this.options.separateDialCode&&(this.selectedDialCode=l("<div>",{class:"selected-dial-code"}).appendTo(t)),this.options.allowDropdown?(t.attr("tabindex","0"),l("<div>",{class:"iti-arrow"}).appendTo(t),this.countryList=l("<ul>",{class:"country-list hide"}),this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"preferred"),l("<li>",{class:"divider"}).appendTo(this.countryList)),this._appendListItems(this.countries,""),this.countryListItems=this.countryList.children(".country"),this.options.dropdownContainer?this.dropdown=l("<div>",{class:"intl-tel-input iti-container"}).append(this.countryList):this.countryList.appendTo(this.flagsContainer)):this.countryListItems=l()},_appendListItems:function(e,t){for(var r="",i=0;i<e.length;i++){var n=e[i];r+="<li class='country "+t+"' data-dial-code='"+n.dialCode+"' data-country-code='"+n.iso2+"'>",r+="<div class='flag-box'><div class='iti-flag "+n.iso2+"'></div></div>",r+="<span class='country-name'>"+n.name+"</span>",r+="<span class='dial-code'>+"+n.dialCode+"</span>",r+="</li>"}this.countryList.append(r)},_setInitialState:function(){var e=this.telInput.val();this._getDialCode(e)&&!this._isRegionlessNanp(e)?this._updateFlagFromNumber(e):"auto"!==this.options.initialCountry&&(this.options.initialCountry?this._setFlag(this.options.initialCountry.toLowerCase()):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,e||this._setFlag(this.defaultCountry)),e||this.options.nationalMode||this.options.autoHideDialCode||this.options.separateDialCode||this.telInput.val("+"+this.selectedCountryData.dialCode)),e&&this._updateValFromNumber(e)},_initListeners:function(){this._initKeyListeners(),this.options.autoHideDialCode&&this._initFocusListeners(),this.options.allowDropdown&&this._initDropdownListeners()},_initDropdownListeners:function(){var t=this,e=this.telInput.closest("label");e.length&&e.on("click"+this.ns,function(e){t.countryList.hasClass("hide")?t.telInput.focus():e.preventDefault()}),this.selectedFlagInner.parent().on("click"+this.ns,function(e){!t.countryList.hasClass("hide")||t.telInput.prop("disabled")||t.telInput.prop("readonly")||t._showDropdown()}),this.flagsContainer.on("keydown"+t.ns,function(e){!t.countryList.hasClass("hide")||e.which!=s&&e.which!=u&&e.which!=p&&e.which!=m||(e.preventDefault(),e.stopPropagation(),t._showDropdown()),e.which==n&&t._closeDropdown()})},_initRequests:function(){var e=this;this.options.utilsScript?l.fn[o].windowLoaded?l.fn[o].loadUtils(this.options.utilsScript,this.utilsScriptDeferred):l(d).on("load",function(){l.fn[o].loadUtils(e.options.utilsScript,e.utilsScriptDeferred)}):this.utilsScriptDeferred.resolve(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.autoCountryDeferred.resolve()},_loadAutoCountry:function(){l.fn[o].autoCountry?this.handleAutoCountry():l.fn[o].startedLoadingAutoCountry||(l.fn[o].startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup(function(e){l.fn[o].autoCountry=e.toLowerCase(),setTimeout(function(){l(".intl-tel-input input").intlTelInput("handleAutoCountry")})}))},_initKeyListeners:function(){var e=this;this.telInput.on("keyup"+this.ns,function(){e._updateFlagFromNumber(e.telInput.val())&&e._triggerCountryChange()}),this.telInput.on("cut"+this.ns+" paste"+this.ns,function(){setTimeout(function(){e._updateFlagFromNumber(e.telInput.val())&&e._triggerCountryChange()})})},_cap:function(e){var t=this.telInput.attr("maxlength");return t&&e.length>t?e.substr(0,t):e},_initFocusListeners:function(){var r=this;this.telInput.on("mousedown"+this.ns,function(e){r.telInput.is(":focus")||r.telInput.val()||(e.preventDefault(),r.telInput.focus())}),this.telInput.on("focus"+this.ns,function(e){r.telInput.val()||r.telInput.prop("readonly")||!r.selectedCountryData.dialCode||(r.telInput.val("+"+r.selectedCountryData.dialCode),r.telInput.one("keypress.plus"+r.ns,function(e){e.which==t&&r.telInput.val("")}),setTimeout(function(){var e=r.telInput[0];if(r.isGoodBrowser){var t=r.telInput.val().length;e.setSelectionRange(t,t)}}))});var e=this.telInput.prop("form");e&&l(e).on("submit"+this.ns,function(){r._removeEmptyDialCode()}),this.telInput.on("blur"+this.ns,function(){r._removeEmptyDialCode()})},_removeEmptyDialCode:function(){var e=this.telInput.val();if("+"==e.charAt(0)){var t=this._getNumeric(e);t&&this.selectedCountryData.dialCode!=t||this.telInput.val("")}this.telInput.off("keypress.plus"+this.ns)},_getNumeric:function(e){return e.replace(/\D/g,"")},_showDropdown:function(){this._setDropdownPosition();var e=this.countryList.children(".active");e.length&&(this._highlightListItem(e),this._scrollTo(e)),this._bindDropdownListeners(),this.selectedFlagInner.children(".iti-arrow").addClass("up")},_setDropdownPosition:function(){var e=this;if(this.options.dropdownContainer&&this.dropdown.appendTo(this.options.dropdownContainer),this.dropdownHeight=this.countryList.removeClass("hide").outerHeight(),!this.isMobile){var t=this.telInput.offset(),r=t.top,i=l(d).scrollTop(),n=r+this.telInput.outerHeight()+this.dropdownHeight<i+l(d).height(),a=r-this.dropdownHeight>i;if(this.countryList.toggleClass("dropup",!n&&a),this.options.dropdownContainer){var o=!n&&a?0:this.telInput.innerHeight();this.dropdown.css({top:r+o,left:t.left}),l(d).on("scroll"+this.ns,function(){e._closeDropdown()})}}},_bindDropdownListeners:function(){var t=this;this.countryList.on("mouseover"+this.ns,".country",function(e){t._highlightListItem(l(this))}),this.countryList.on("click"+this.ns,".country",function(e){t._selectListItem(l(this))});var r=!0;l("html").on("click"+this.ns,function(e){r||t._closeDropdown(),r=!1});var i="",n=null;l(e).on("keydown"+this.ns,function(e){e.preventDefault(),e.which==s||e.which==u?t._handleUpDownKey(e.which):e.which==m?t._handleEnterKey():e.which==c?t._closeDropdown():(e.which>=_&&e.which<=f||e.which==p)&&(n&&clearTimeout(n),i+=String.fromCharCode(e.which),t._searchForCountry(i),n=setTimeout(function(){i=""},1e3))})},_handleUpDownKey:function(e){var t=this.countryList.children(".highlight").first(),r=e==s?t.prev():t.next();r.length&&(r.hasClass("divider")&&(r=e==s?r.prev():r.next()),this._highlightListItem(r),this._scrollTo(r))},_handleEnterKey:function(){var e=this.countryList.children(".highlight").first();e.length&&this._selectListItem(e)},_searchForCountry:function(e){for(var t=0;t<this.countries.length;t++)if(this._startsWith(this.countries[t].name,e)){var r=this.countryList.children("[data-country-code="+this.countries[t].iso2+"]").not(".preferred");this._highlightListItem(r),this._scrollTo(r,!0);break}},_startsWith:function(e,t){return e.substr(0,t.length).toUpperCase()==t},_updateValFromNumber:function(e){if(this.options.formatOnDisplay&&d.intlTelInputUtils&&this.selectedCountryData){var t=this.options.separateDialCode||!this.options.nationalMode&&"+"==e.charAt(0)?intlTelInputUtils.numberFormat.INTERNATIONAL:intlTelInputUtils.numberFormat.NATIONAL;e=intlTelInputUtils.formatNumber(e,this.selectedCountryData.iso2,t)}e=this._beforeSetNumber(e),this.telInput.val(e)},_updateFlagFromNumber:function(e){e&&this.options.nationalMode&&this.selectedCountryData&&"1"==this.selectedCountryData.dialCode&&"+"!=e.charAt(0)&&("1"!=e.charAt(0)&&(e="1"+e),e="+"+e);var t=this._getDialCode(e),r=null,i=this._getNumeric(e);if(t){var n=this.countryCodes[this._getNumeric(t)],a=this.selectedCountryData&&-1<l.inArray(this.selectedCountryData.iso2,n),o="+1"==t&&4<=i.length;if((!(this.selectedCountryData&&"1"==this.selectedCountryData.dialCode)||!this._isRegionlessNanp(i))&&(!a||o))for(var d=0;d<n.length;d++)if(n[d]){r=n[d];break}}else"+"==e.charAt(0)&&i.length?r="":e&&"+"!=e||(r=this.defaultCountry);return null!==r&&this._setFlag(r)},_isRegionlessNanp:function(e){var t=this._getNumeric(e);if("1"!=t.charAt(0))return!1;var r=t.substr(1,3);return-1<l.inArray(r,y)},_highlightListItem:function(e){this.countryListItems.removeClass("highlight"),e.addClass("highlight")},_getCountryData:function(e,t,r){for(var i=t?w:this.countries,n=0;n<i.length;n++)if(i[n].iso2==e)return i[n];if(r)return null;throw new Error("No country data for '"+e+"'")},_setFlag:function(e){var t=this.selectedCountryData&&this.selectedCountryData.iso2?this.selectedCountryData:{};this.selectedCountryData=e?this._getCountryData(e,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.selectedFlagInner.attr("class","iti-flag "+e);var r=e?this.selectedCountryData.name+": +"+this.selectedCountryData.dialCode:"Unknown";if(this.selectedFlagInner.parent().attr("title",r),this.options.separateDialCode){var i=this.selectedCountryData.dialCode?"+"+this.selectedCountryData.dialCode:"",n=this.telInput.parent();t.dialCode&&n.removeClass("iti-sdc-"+(t.dialCode.length+1)),i&&n.addClass("iti-sdc-"+i.length),this.selectedDialCode.text(i)}return this._updatePlaceholder(),this.countryListItems.removeClass("active"),e&&this.countryListItems.find(".iti-flag."+e).first().closest(".country").addClass("active"),t.iso2!==e},_updatePlaceholder:function(){var e="aggressive"===this.options.autoPlaceholder||!this.hadInitialPlaceholder&&(!0===this.options.autoPlaceholder||"polite"===this.options.autoPlaceholder);if(d.intlTelInputUtils&&e&&this.selectedCountryData){var t=intlTelInputUtils.numberType[this.options.placeholderNumberType],r=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,t):"";r=this._beforeSetNumber(r),"function"==typeof this.options.customPlaceholder&&(r=this.options.customPlaceholder(r,this.selectedCountryData)),this.telInput.attr("placeholder",r)}},_selectListItem:function(e){var t=this._setFlag(e.attr("data-country-code"));if(this._closeDropdown(),this._updateDialCode(e.attr("data-dial-code"),!0),this.telInput.focus(),this.isGoodBrowser){var r=this.telInput.val().length;this.telInput[0].setSelectionRange(r,r)}t&&this._triggerCountryChange()},_closeDropdown:function(){this.countryList.addClass("hide"),this.selectedFlagInner.children(".iti-arrow").removeClass("up"),l(e).off(this.ns),l("html").off(this.ns),this.countryList.off(this.ns),this.options.dropdownContainer&&(this.isMobile||l(d).off("scroll"+this.ns),this.dropdown.detach())},_scrollTo:function(e,t){var r=this.countryList,i=r.height(),n=r.offset().top,a=n+i,o=e.outerHeight(),d=e.offset().top,l=d+o,s=d-n+r.scrollTop(),u=i/2-o/2;if(d<n)t&&(s-=u),r.scrollTop(s);else if(a<l){t&&(s+=u);var m=i-o;r.scrollTop(s-m)}},_updateDialCode:function(e,t){var r,i=this.telInput.val();if(e="+"+e,"+"==i.charAt(0)){var n=this._getDialCode(i);r=n?i.replace(n,e):e}else{if(this.options.nationalMode||this.options.separateDialCode)return;if(i)r=e+i;else{if(!t&&this.options.autoHideDialCode)return;r=e}}this.telInput.val(r)},_getDialCode:function(e){var t="";if("+"==e.charAt(0))for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if(l.isNumeric(n)&&(r+=n,this.countryCodes[r]&&(t=e.substr(0,i+1)),4==r.length))break}return t},_getFullNumber:function(){var e=l.trim(this.telInput.val()),t=this.selectedCountryData.dialCode,r=this._getNumeric(e),i="1"==r.charAt(0)?r:"1"+r;return(this.options.separateDialCode?"+"+t:"+"!=e.charAt(0)&&"1"!=e.charAt(0)&&t&&"1"==t.charAt(0)&&4==t.length&&t!=i.substr(0,4)?t.substr(1):"")+e},_beforeSetNumber:function(e){if(this.options.separateDialCode){var t=this._getDialCode(e);if(t){null!==this.selectedCountryData.areaCodes&&(t="+"+this.selectedCountryData.dialCode);var r=" "===e[t.length]||"-"===e[t.length]?t.length+1:t.length;e=e.substr(r)}}return this._cap(e)},_triggerCountryChange:function(){this.telInput.trigger("countrychange",this.selectedCountryData)},handleAutoCountry:function(){"auto"===this.options.initialCountry&&(this.defaultCountry=l.fn[o].autoCountry,this.telInput.val()||this.setCountry(this.defaultCountry),this.autoCountryDeferred.resolve())},handleUtils:function(){d.intlTelInputUtils&&(this.telInput.val()&&this._updateValFromNumber(this.telInput.val()),this._updatePlaceholder()),this.utilsScriptDeferred.resolve()},destroy:function(){if(this.allowDropdown&&(this._closeDropdown(),this.selectedFlagInner.parent().off(this.ns),this.telInput.closest("label").off(this.ns)),this.options.autoHideDialCode){var e=this.telInput.prop("form");e&&l(e).off(this.ns)}this.telInput.off(this.ns),this.telInput.parent().before(this.telInput).remove()},getExtension:function(){return d.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""},getNumber:function(e){return d.intlTelInputUtils?intlTelInputUtils.formatNumber(this._getFullNumber(),this.selectedCountryData.iso2,e):""},getNumberType:function(){return d.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99},getSelectedCountryData:function(){return this.selectedCountryData||{}},getValidationError:function(){return d.intlTelInputUtils?intlTelInputUtils.getValidationError(this._getFullNumber(),this.selectedCountryData.iso2):-99},isValidNumber:function(){var e=l.trim(this._getFullNumber()),t=this.options.nationalMode?this.selectedCountryData.iso2:"";return d.intlTelInputUtils?intlTelInputUtils.isValidNumber(e,t):null},setCountry:function(e){e=e.toLowerCase(),this.selectedFlagInner.hasClass(e)||(this._setFlag(e),this._updateDialCode(this.selectedCountryData.dialCode,!1),this._triggerCountryChange())},setNumber:function(e){var t=this._updateFlagFromNumber(e);this._updateValFromNumber(e),t&&this._triggerCountryChange()}},l.fn[o]=function(r){var t,i=arguments;if(r===a||"object"==typeof r){var n=[];return this.each(function(){if(!l.data(this,"plugin_"+o)){var e=new h(this,r),t=e._init();n.push(t[0]),n.push(t[1]),l.data(this,"plugin_"+o,e)}}),l.when.apply(null,n)}if("string"==typeof r&&"_"!==r[0])return this.each(function(){var e=l.data(this,"plugin_"+o);e instanceof h&&"function"==typeof e[r]&&(t=e[r].apply(e,Array.prototype.slice.call(i,1))),"destroy"===r&&l.data(this,"plugin_"+o,null)}),t!==a?t:this},l.fn[o].getCountryData=function(){return w},l.fn[o].loadUtils=function(e,t){l.fn[o].loadedUtilsScript?t&&t.resolve():(l.fn[o].loadedUtilsScript=!0,l.ajax({type:"GET",url:e,complete:function(){l(".intl-tel-input input").intlTelInput("handleUtils")},dataType:"script",cache:!0}))},l.fn[o].version="11.0.0",l.fn[o].defaults=i;for(var w=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria","at","43"],["Azerbaijan","az","994"],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375"],["Belgium","be","32"],["Belize","bz","501"],["Benin","bj","229"],["Bermuda","bm","1441"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599",1],["Cayman Islands","ky","1345"],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Cote d'Ivoire","ci","225"],["Croatia","hr","385"],["Cuba","cu","53"],["Curacao","cw","599",0],["Cyprus","cy","357"],["Czech Republic","cz","420"],["Denmark","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372"],["Ethiopia","et","251"],["Falkland Islands","fk","500"],["Faroe Islands","fo","298"],["Fiji","fj","679"],["Finland","fi","358",0],["France","fr","33"],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49"],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30"],["Greenland","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590",0],["Guam","gu","1671"],["Guatemala","gt","502"],["Guernsey","gg","44",1],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong","hk","852"],["Hungary","hu","36"],["Iceland","is","354"],["India","in","91"],["Indonesia","ia","62"],["Iran","ir","98"],["Iraq","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2],["Israel","il","972"],["Italy","it","39",0],["Jamaica","jm","1876"],["Japan","jp","81"],["Jersey","je","44",3],["Jordan","jo","962"],["Kazakhstan","kz","7",1],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996"],["Laos","la","856"],["Latvia","lv","371"],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262",1],["Mexico","mx","52"],["Micronesia","fm","691"],["Moldova","md","373"],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Montserrat","ms","1664"],["Morocco","ma","212",0],["Mozambique","mz","258"],["Myanmar (Burma)","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea","kp","850"],["Northern Mariana Islands","mp","1670"],["Norway (Norge)","no","47",0],["Oman","om","968"],["Pakistan","pk","92"],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63"],["Poland","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar","qa","974"],["Reunion","re","262",0],["Romania","ro","40"],["Russia","ru","7",0],["Rwanda","rw","250"],["Saint Barthelemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin","mf","590",2],["Saint Pierre and Miquelon","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["Sao Tome and Principe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1721"],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82"],["South Sudan","ss","211"],["Spain","es","34"],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland","ch","41"],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine","ua","380"],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan","uz","998"],["Vanuatu","vu","678"],["Vatican City","va","39",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis and Futuna","wf","681"],["Western Sahara","eh","212",1],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Aland Islands","ax","358",1]],v=0;v<w.length;v++){var g=w[v];w[v]={name:g[0],iso2:g[1],dialCode:g[2],priority:g[3]||0,areaCodes:g[4]||null}}});var gmapdata=new Array,gmapmarker=new Array;function if_gmap_init(e,t){if(document.getElementById(e+"_element"+t)){map=document.getElementById(e+"_element"+t);var r=parseInt(map.getAttribute("zoom")),i=map.getAttribute("center_x"),n=map.getAttribute("center_y"),a=new google.maps.LatLng(n,i);return gmapdata[e]=new google.maps.Map(document.getElementById(e+"_element"+t),{center:a,zoom:r,mapTypeId:"roadmap"}),gmapmarker[e]=new Array,!1}draggab=!1,map=document.getElementById(e);r=parseInt(map.getAttribute("zoom")),i=map.getAttribute("long"),n=map.getAttribute("lat"),a=new google.maps.LatLng(n,i);return gmapdata=new google.maps.Map(document.getElementById(e),{center:a,zoom:r,mapTypeId:"roadmap"}),geocoder=new google.maps.Geocoder,(gmapmarker=new google.maps.Marker({map:gmapdata,position:a,draggable:draggab})).setDraggable(draggab),infoW=new google.maps.InfoWindow,google.maps.event.addListener(gmapdata,"mouseover",function(e){document.getElementById("longval")||(gmapmarker.draggable=!1)}),google.maps.event.addListener(gmapdata,"click",function(e){document.getElementById("longval")&&(document.getElementById("longval").value=e.latLng.lng().toFixed(6),document.getElementById("latval").value=e.latLng.lat().toFixed(6),gmapmarker.setPosition(e.latLng),if_gmap_updateMap(),geocoder.geocode({latLng:gmapmarker.getPosition()},function(e,t){t==google.maps.GeocoderStatus.OK&&e[0]&&document.getElementById("addrval")&&(document.getElementById("addrval").value=e[0].formatted_address)}))}),google.maps.event.addListener(gmapmarker,"drag",function(){document.getElementById("longval")&&(geocoder.geocode({latLng:gmapmarker.getPosition()},function(e,t){t==google.maps.GeocoderStatus.OK&&e[0]&&document.getElementById("addrval")&&(document.getElementById("addrval").value=e[0].formatted_address)}),if_gmap_updateMap(),document.getElementById("latval").value=gmapmarker.getPosition().lat().toFixed(6),document.getElementById("longval").value=gmapmarker.getPosition().lng().toFixed(6))}),google.maps.event.addListener(gmapmarker,"click",function(){infoW.setContent('<div style="overflow: hidden;">'+document.getElementById(e).getAttribute("info")+"</div>");infoW.setOptions({maxWidth:"300"}),infoW.open(this.getMap(),this)}),document.getElementById("longval")&&(document.getElementById("longval").value=i,document.getElementById("latval").value=n,geocoder.geocode({latLng:gmapmarker.getPosition()},function(e,t){t==google.maps.GeocoderStatus.OK&&e[0]&&document.getElementById("addrval")&&(document.getElementById("addrval").value=e[0].formatted_address)})),!1}function add_marker_on_map(e,t,r,i,n,a,o){var d=new google.maps.LatLng(i,r);return gmapmarker[e][t]=new google.maps.Marker({map:gmapdata[e],position:d,draggable:o}),gmapmarker[e][t].setDraggable(o),o&&google.maps.event.addListener(gmapmarker[e][t],"drag",function(){document.getElementById(e+"_lat"+a).value=gmapmarker[e][t].getPosition().lat().toFixed(6),document.getElementById(e+"_long"+a).value=gmapmarker[e][t].getPosition().lng().toFixed(6)}),infoW=new google.maps.InfoWindow,google.maps.event.addListener(gmapmarker[e][t],"click",function(){infoW.setContent('<div style="overflow: hidden;">'+document.getElementById(e+"_element"+a).getAttribute("info"+t)+"</div>");infoW.setOptions({maxWidth:"300"}),infoW.open(this.getMap(),this)}),!1}
1
+ var c,a=new Array,rated=!1;function form_load_actions(){(jQuery(".wd-datepicker").each(function(){jQuery(this).datepicker(),jQuery(this).datepicker("option","dateFormat",jQuery(this).data("format"))}),0!==jQuery(".fm-form").find(".fm-message").length)&&(jQuery(window).scrollTop(jQuery(".fm-message").offset().top-100),-1<navigator.userAgent.toLowerCase().indexOf("safari/")&&(document.scrollingElement.scrollTop=jQuery(".fm-message").offset().top-100));if(0!==jQuery(".fm-form").find(".message_captcha").length){var e=jQuery(".fm-form").attr("name").split("form")[1];if(0!==jQuery("#form"+e+" .message_captcha").length){var t=jQuery(jQuery("#form"+e+" .message_captcha")).offset().top;jQuery(".fm-form").find(".message_captcha").parents(".wdform-field").find(".wdform-label").addClass("error_label"),jQuery("html").animate({scrollTop:t-150},500),document.scrollingElement.scrollTop=t-150}}}function set_total_value(form_id){var FormCurrency=window["FormCurrency_"+form_id]+" ";if(0!=jQuery(".paypal_total"+form_id).length){var div_paypal_show=jQuery(".paypal_total"+form_id),div_paypal_products=jQuery(".paypal_products"+form_id),div_paypal_tax=jQuery(".paypal_tax"+form_id),input_paypal_total=jQuery(".input_paypal_total"+form_id),total=0,total_shipping=0;div_paypal_products.html(""),div_paypal_tax.html(""),n=parseInt(jQuery("#counter"+form_id).val()),jQuery("#form"+form_id+" div[type='type_paypal_checkbox'], #form"+form_id+" div[type='type_paypal_radio']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");paypal_checkbox_qty=jQuery("#wdform_"+t+"_element_quantity"+form_id).val()?jQuery("#wdform_"+t+"_element_quantity"+form_id).val():0,jQuery(this).find("input:checked").each(function(){label=jQuery("label[for='"+jQuery(this).attr("id")+"']").html(),span_value=FormCurrency+jQuery(this).val()+(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?" x "+paypal_checkbox_qty:""),total+=jQuery(this).val()*parseInt(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?paypal_checkbox_qty:1),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>")})}}),jQuery("#form"+form_id+" div[type='type_paypal_shipping']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");paypal_shipping_qty=jQuery("#wdform_"+t+"_element_quantity"+form_id).val()?jQuery("#wdform_"+t+"_element_quantity"+form_id).val():0,jQuery(this).find("input:checked").each(function(){label=jQuery("label[for='"+jQuery(this).attr("id")+"']").html(),span_value=FormCurrency+jQuery(this).val()+(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?" x "+paypal_shipping_qty:""),total_shipping+=jQuery(this).val()*parseInt(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?paypal_shipping_qty:1),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>")})}}),jQuery("#form"+form_id+" div[type='type_paypal_select']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");paypal_select_qty=jQuery("#wdform_"+t+"_element_quantity"+form_id).val()?jQuery("#wdform_"+t+"_element_quantity"+form_id).val():0,""!=jQuery(this).find("select").val()&&(label=jQuery(this).find("select option:selected").html(),span_value=FormCurrency+jQuery(this).find("select").val()+(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?" x "+paypal_select_qty:""),total+=jQuery(this).find("select").val()*parseInt(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?paypal_select_qty:1),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>"))}}),jQuery("#form"+form_id+" div[type='type_paypal_price']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");label=jQuery(this).find(".wdform-label").html(),cents="00",dollars="0",""!=jQuery("#wdform_"+t+"_element_dollars"+form_id).val()&&(dollars=jQuery("#wdform_"+t+"_element_dollars"+form_id).val()),""!=jQuery("#wdform_"+t+"_element_cents"+form_id).val()&&(1==jQuery("#wdform_"+t+"_element_cents"+form_id).val().length?cents="0"+jQuery("#wdform_"+t+"_element_cents"+form_id).val():cents=jQuery("#wdform_"+t+"_element_cents"+form_id).val(),span_value=FormCurrency+dollars+"."+cents,total+=parseFloat(dollars+"."+cents),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>"))}}),jQuery("#form"+form_id+" div[type='type_paypal_price_new']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");label=jQuery(this).find(".wdform-label").html(),dollars="0",""!=jQuery("#wdform_"+t+"_element"+form_id).val()&&(dollars=jQuery("#wdform_"+t+"_element"+form_id).val()),span_value=FormCurrency+dollars,total+=parseFloat(dollars),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>")}});var FormPaypalTax=eval("FormPaypalTax_"+form_id);0!=FormPaypalTax&&div_paypal_tax.html("Tax: "+FormCurrency+(total*FormPaypalTax/100).toFixed(2)),jQuery(".div_total"+form_id).html(FormCurrency+(parseFloat((total*(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2)),input_paypal_total.val(FormCurrency+(parseFloat((total*(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2))}}function check_isnum_or_minus(e){var t=e.which||e.keyCode;return!(45!=t&&31<t&&(t<48||57<t))}function sum_grading_values(e,t){for(var r=0,i=0;i<100;i++)document.getElementById(e+"_element"+t+"_"+i)&&document.getElementById(e+"_element"+t+"_"+i).value&&(r+=parseInt(document.getElementById(e+"_element"+t+"_"+i).value)),document.getElementById(e+"_total_element"+t)&&(r>document.getElementById(e+"_total_element"+t).innerHTML?document.getElementById(e+"_text_element"+t).innerHTML=" "+fm_objectL10n.fm_grading_text+" "+document.getElementById(e+"_total_element"+t).innerHTML:document.getElementById(e+"_text_element"+t).innerHTML="");document.getElementById(e+"_sum_element"+t)&&(document.getElementById(e+"_sum_element"+t).innerHTML=r)}function change_src(e,t,r,i){if(0==rated)for(var n=0;n<=e;n++)document.getElementById(t+"_star_"+n+"_"+r).src=fm_objectL10n.plugin_url+"/images/star_"+i+".png"}function reset_src(e,t,r){if(0==rated)for(var i=0;i<=e;i++)document.getElementById(t+"_star_"+i+"_"+r).src=fm_objectL10n.plugin_url+"/images/star.png"}function select_star_rating(e,t,r,i,n){rated=!0;for(var a=0;a<=e;a++)document.getElementById(t+"_star_"+a+"_"+r).src=fm_objectL10n.plugin_url+"/images/star_"+i+".png";for(var o=e+1;o<=n-1;o++)document.getElementById(t+"_star_"+o+"_"+r).src=fm_objectL10n.plugin_url+"/images/star.png";document.getElementById(t+"_selected_star_amount"+r).value=e+1,jQuery("#"+t+"_selected_star_amount"+r).trigger("change")}function show_other_input(e,t){var r=jQuery(".form"+t+" [id^="+e+"_element"+t+'][other="1"]').parent(),i=document.createElement("br");i.setAttribute("id",e+"_other_br"+t);var n=e.split("_")[1],a=document.createElement("input");a.setAttribute("id",e+"_other_input"+t),a.setAttribute("name",e+"_other_input"+t),a.setAttribute("type","text"),a.setAttribute("class","other_input"),a.setAttribute("onchange","other_input_change(this, '"+t+"', '"+n+"')"),r.append(i),r.append(a)}function other_input_change(e,t,r){""==jQuery(e).val()?wd_is_filled(t,r):(jQuery("#form"+t+" #wd_required_"+r).remove(),jQuery("#form"+t+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"))}function check_isnum(e){var t=e.which||e.keyCode;return-1!=jQuery.inArray(t,[46,8,9,27,13,190])||!0===e.ctrlKey||35<=t&&t<39||45==t||!(31<t&&(t<48||57<t))}function captcha_refresh(e,t){srcArr=document.getElementById(e+t).src.split("&r="),document.getElementById(e+t).src=srcArr[0]+"&r="+Math.floor(100*Math.random()),document.getElementById(e+"_input"+t).value="",document.getElementById(e+t).style.display="inline-block"}function set_checked(e,t,r){return checking=document.getElementById(e+"_element"+r+t),!(checking.getAttribute("other")&&1==checking.getAttribute("other")&&!checking.checked)||(document.getElementById(e+"_other_input"+r)&&(document.getElementById(e+"_other_input"+r).parentNode.removeChild(document.getElementById(e+"_other_br"+r)),document.getElementById(e+"_other_input"+r).parentNode.removeChild(document.getElementById(e+"_other_input"+r))),!1)}function set_default(e,t,r){document.getElementById(e+"_other_input"+r)&&(document.getElementById(e+"_other_input"+r).parentNode.removeChild(document.getElementById(e+"_other_br"+r)),document.getElementById(e+"_other_input"+r).parentNode.removeChild(document.getElementById(e+"_other_input"+r)))}function add_0(e){1==jQuery(e).val().length&&jQuery(e).val("0"+jQuery(e).val())}function wd_validate(e,t){if(!jQuery(e).is("input"))return!0;var r,i,n=jQuery(e).val(),a=(jQuery(e).attr("id"),jQuery(e).data("valid-type")),o=jQuery(e).data("form-id"),d=jQuery(e).data("wdid");if(void 0===t)t=jQuery(e).data("addiotional-fields");var l="#form"+o+" div[wdid='"+d+"']",s=jQuery(l+" .wdform-label-section:first .wdform-label"),u=jQuery(l+" .wdform-element-section");switch(a){case"hour24":r=fm_objectL10n.time_validation,i=/^(0?[0-1]?[0-9]|2[0-3])?$/;break;case"hour12":r=fm_objectL10n.time_validation,i=/^(0?[0-9]|1[0-2])?$/;break;case"minute":case"second":r=fm_objectL10n.time_validation,i=/^([0-5]?[0-9])?$/;break;case"number":r=fm_objectL10n.number_validation,i=/^\-{0,1}\d+(.\d+){0,1}$/;break;case"quantity":r=fm_objectL10n.number_validation,i=/^[+]?\d+([.]\d+)?$/;break;case"day":r=fm_objectL10n.date_validation,i=/^(0?[0-2]?[0-9]|3[0-1])?$/;break;case"month":r=fm_objectL10n.date_validation,i=/^(0?[0-9]|1[0-2])?$/;break;case"year":r=fm_objectL10n.date_validation,i=/^([1-2]?[0-9]?[0-9]?[0-9])?$/}if(isValid=i.test(n),""==n&&(isValid=!0),isValid)for(var m in t)if(isValid=wd_validate("#"+t[m],""),!isValid)break;return jQuery("#check_email_"+d+"_"+o).remove(),isValid?(s.removeClass("wd-error-label"),delete window["check_before_submit"+o][d+"_"+o]):(u.parent().parent().append("<div id='check_email_"+d+"_"+o+"' class='fm-not-filled'>"+r+"</div>"),s.addClass("wd-error-label"),window["check_before_submit"+o][d+"_"+o]=!1),isValid}function check_isnum_interval(e,t,r,i){var n=e.which||e.keyCode;return-1!=jQuery.inArray(n,[46,8,9,27,13,190])||!0===e.ctrlKey||35<=n&&n<39||!(31<n&&(n<48||57<n))&&(val1=""+jQuery(t).val()+String.fromCharCode(n),!(2<val1.length)&&("00"!=val1&&!(val1<r||val1>i)))}function wd_year_validation(e){var t=parseInt(jQuery(e).val()),r=jQuery(e).data("form-id"),i=jQuery(e).data("wdid"),n=parseInt(jQuery(e).attr("from")),a=parseInt(jQuery(e).attr("to")),o="#form"+r+" div[wdid='"+i+"']",d=jQuery(o+" .wdform-label-section:first .wdform-label"),l=jQuery(o+" .wdform-element-section");if(t<n||a<t){var s=fm_objectL10n.year_validation.replace("%%start%%",n).replace("%%end%%",a);jQuery("#check_email_"+i+"_"+r).remove(),l.parent().parent().append("<div id='check_email_"+i+"_"+r+"' class='fm-not-filled'>"+s+"</div>"),d.addClass("wd-error-label"),window["check_before_submit"+r][i+"_"+r]=!1}}function destroyChildren(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function generate_page_nav(e,t,r){var i;if(form_view=e,page_nav=document.getElementById(t+"page_nav"+e),destroyChildren(page_nav),form_view_elemet=document.getElementById(t+"form_view"+e),remove_whitespace(form_view_elemet.parentNode.parentNode),display_none_form_views_all(t),form_view_elemet.parentNode.style.display="",(i=document.createElement("div")).setAttribute("valign","middle"),i.setAttribute("align","left"),i.style.display="table-cell",i.style.width="40%",page_nav.appendChild(i),form_view_elemet.parentNode.previousSibling&&-1!=form_view_elemet.parentNode.previousSibling.className.indexOf("wdform-page-and-images")&&form_view_elemet.parentNode.previousSibling.previousSibling&&("DIV"==form_view_elemet.parentNode.previousSibling.tagName?table=form_view_elemet.parentNode.previousSibling:"DIV"==form_view_elemet.parentNode.previousSibling.previousSibling.tagName?table=form_view_elemet.parentNode.previousSibling.previousSibling:table="none","none"!=table&&(table.firstChild.tagName||table.removeChild(table.firstChild),previous_title=form_view_elemet.getAttribute("previous_title"),previous_type=form_view_elemet.getAttribute("previous_type"),"text"==previous_type&&i.setAttribute("class","previous-page"),previous_class=form_view_elemet.getAttribute("previous_class"),previous_checkable=form_view_elemet.getAttribute("previous_checkable"),next_or_previous="previous",previous=make_pagebreak_button(next_or_previous,previous_title,previous_type,previous_class,previous_checkable,e,t,r),i.appendChild(previous))),(i=document.createElement("div")).setAttribute("id",t+"page_numbers"+form_view),i.setAttribute("valign","middle"),i.setAttribute("class","page-numbers"),i.setAttribute("align","center"),i.style.display="table-cell","true"==document.getElementById("fm-pages"+t).getAttribute("show_numbers")){var n=document.createElement("span");n.setAttribute("class","page_numbers"),i.appendChild(n)}page_nav.appendChild(i),(i=document.createElement("div")).setAttribute("valign","middle"),i.setAttribute("align","right"),i.style.cssText="display:table-cell; width:40%; text-align:right;",page_nav.appendChild(i),not_next=!1,form_view_elemet.parentNode.nextSibling?("DIV"==form_view_elemet.parentNode.nextSibling.tagName&&-1!=form_view_elemet.parentNode.nextSibling.className.indexOf("wdform-page-and-images")?table=form_view_elemet.parentNode.nextSibling:form_view_elemet.parentNode.nextSibling.nextSibling&&"DIV"==form_view_elemet.parentNode.nextSibling.nextSibling.tagName?table=form_view_elemet.parentNode.nextSibling.nextSibling:table="none","none"!=table?(next_title=form_view_elemet.getAttribute("next_title"),next_type=form_view_elemet.getAttribute("next_type"),"text"==next_type&&i.setAttribute("class","next-page"),next_class=form_view_elemet.getAttribute("next_class"),next_checkable=form_view_elemet.getAttribute("next_checkable"),next_or_previous="next",next=make_pagebreak_button(next_or_previous,next_title,next_type,next_class,next_checkable,e,t,r),i.appendChild(next)):not_next=!0):not_next=!0,generate_page_bar(e,t,r),fm_initilize_form(t)}function fm_initilize_form(e){jQuery("#form"+e+" div[type='type_map']").each(function(){for(id=jQuery(this).parent().attr("wdid"),if_gmap_init("wdform_"+id,e),q=0;q<20;q++)jQuery("#wdform_"+id+"_element"+e)[0].getAttribute("long"+q)&&(w_long=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("long"+q)),w_lat=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("lat"+q)),w_info=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("info"+q)),add_marker_on_map("wdform_"+id,q,w_long,w_lat,w_info,e,!1))}),jQuery("#form"+e+" div[type='type_mark_map']").each(function(){id=jQuery(this).parent().attr("wdid"),if_gmap_init("wdform_"+id,e),q=0,jQuery("#wdform_"+id+"_element"+e)[0].getAttribute("long"+q)&&(w_long=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("long"+q)),w_lat=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("lat"+q)),w_info=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("info"+q)),add_marker_on_map("wdform_"+id,q,w_long,w_lat,w_info,e,!0))}),jQuery(".wdform-element-section").each(function(){if("type_stripe"==jQuery(this).parent().parent().attr("type"))return!0;jQuery(this).parent()[0].style.width||0==parseInt(jQuery(this).width())||0==jQuery(this).parent().find(jQuery(".wdform-label-section")).length||"table-cell"==jQuery(this).css("display")&&("type_captcha"!=jQuery(this).parent().attr("type")?jQuery(this).parent().css("width",parseInt(jQuery(this).width())+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15):jQuery(this).parent().css("width",2*parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)+50+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15))})}function display_none_form_views_all(e){jQuery("#form"+e+" .wdform-page-and-images").css("display","none")}function generate_page_bar(t,r,e){if("steps"==document.getElementById("fm-pages"+r).getAttribute("type")?make_page_steps_front(t,r,e):"percentage"==document.getElementById("fm-pages"+r).getAttribute("type")?make_page_percentage_front(t,r,e):make_page_none_front(r),"true"==document.getElementById("fm-pages"+r).getAttribute("show_numbers")){if(td=document.getElementById(r+"page_numbers"+t),td){destroyChildren(td);var i=0,n=0;jQuery("#form"+r+" .wdform-page-and-images").each(function(){var e=jQuery(this).find(".wdform_page").attr("id");j=e.split("form_view")[1],document.getElementById(r+"form_view"+j)&&(i++,j==t&&(n=i))});var a=document.createElement("span");a.setAttribute("class","page_numbers"),a.innerHTML=n+"/"+i,td.appendChild(a)}}else td=document.getElementById(r+"page_numbers"+t),td&&destroyChildren(document.getElementById(r+"page_numbers"+t))}function make_page_steps_front(t,r,i){destroyChildren(document.getElementById("fm-pages"+r)),show_title="true"==document.getElementById("fm-pages"+r).getAttribute("show_title"),next_checkable="true"==document.getElementById(r+"form_view"+t).getAttribute("next_checkable"),previous_checkable="true"==document.getElementById(r+"form_view"+t).getAttribute("previous_checkable"),k=0,jQuery("#form"+r+" .wdform-page-and-images").each(function(){var e=jQuery(this).find(".wdform_page").attr("id");j=e.split("form_view")[1],document.getElementById(r+"form_view"+j)&&(document.getElementById(r+"form_view"+j).getAttribute("page_title")?w_pages=document.getElementById(r+"form_view"+j).getAttribute("page_title"):w_pages="",k++,page_number=document.createElement("span"),page_number.setAttribute("id","page_"+j),j<t&&(previous_checkable?page_number.setAttribute("onClick","if(fm_check("+t+", "+r+', false)) generate_page_nav("'+j+'", "'+r+'", "'+i+'")'):page_number.setAttribute("onClick",'generate_page_nav("'+j+'", "'+r+'", "'+i+'")')),j>t&&(next_checkable?page_number.setAttribute("onClick","if(fm_check("+t+", "+r+', false)) generate_page_nav("'+j+'", "'+r+'", "'+i+'")'):page_number.setAttribute("onClick",'generate_page_nav("'+j+'", "'+r+'", "'+i+'")')),j==t?page_number.setAttribute("class","page_active"):page_number.setAttribute("class","page_deactive"),show_title?page_number.innerHTML=w_pages:page_number.innerHTML=k,document.getElementById("fm-pages"+r).appendChild(page_number))})}function make_page_percentage_front(t,r,e){destroyChildren(document.getElementById("fm-pages"+r)),show_title="true"==document.getElementById("fm-pages"+r).getAttribute("show_title");var i=document.createElement("div");i.setAttribute("class","page_percentage_deactive");var n=document.createElement("div");n.setAttribute("id","div_percentage"),n.setAttribute("class","page_percentage_active"),n.setAttribute("align","right");var a=document.createElement("div");a.setAttribute("class","wdform_percentage_arrow");var o=document.createElement("b");o.setAttribute("class","wdform_percentage_text"),n.appendChild(o),k=0,cur_page_title="",jQuery(".wdform-page-and-images").each(function(){var e=jQuery(this).find(".wdform_page").attr("id");j=e.split("form_view")[1],document.getElementById(r+"form_view"+j)&&(document.getElementById(r+"form_view"+j).getAttribute("page_title")?w_pages=document.getElementById(r+"form_view"+j).getAttribute("page_title"):w_pages="",k++,j==t&&(show_title&&(cur_page_title=document.createElement("div"),cur_page_title.innerHTML=w_pages,cur_page_title.innerHTML=w_pages,cur_page_title.setAttribute("class","wdform_percentage_title")),page_number=k))}),o.innerHTML=Math.round((page_number-1)/k*100)+"%",n.style.width=(page_number-1)/k*100+"%",1==page_number&&(a.style.display="none"),i.appendChild(n),i.appendChild(a),cur_page_title&&i.appendChild(cur_page_title),document.getElementById("fm-pages"+r).appendChild(i)}function make_page_none_front(e){destroyChildren(document.getElementById("fm-pages"+e))}function make_pagebreak_button(e,t,r,i,n,a,o,d){switch(r){case"text":return(l=document.createElement("div")).setAttribute("id","page_"+e+"_"+a+"_"+o),l.setAttribute("class",i),"true"==n?l.setAttribute("onClick","if(fm_check("+a+", "+o+", false)) page_"+e+"("+a+","+o+","+d+")"):l.setAttribute("onClick","page_"+e+"("+a+","+o+","+d+")"),l.innerHTML=t,l;case"img":var l;return(l=document.createElement("img")).setAttribute("id","page_"+e+"_"+a),l.setAttribute("class",i),"true"==n?l.setAttribute("onClick","if(fm_check("+a+", "+o+", false)) page_"+e+"("+a+","+o+","+d+")"):l.setAttribute("onClick","page_"+e+"("+a+","+o+","+d+")"),0==t.indexOf("http")?l.src=t:l.src=fm_objectL10n.plugin_url+"/"+t,l}}function form_maker_findPos(e){var t=0;if(e.offsetParent){for(;t+=e.offsetTop,e=e.offsetParent;);return[t]}}function page_previous(e,t,r){form_view_elemet=document.getElementById(t+"form_view"+e),form_view_elemet.parentNode.previousSibling&&form_view_elemet.parentNode.previousSibling.previousSibling&&("DIV"==form_view_elemet.parentNode.previousSibling.tagName?table=form_view_elemet.parentNode.previousSibling:table=form_view_elemet.parentNode.previousSibling.previousSibling),table.firstChild.tagName||table.removeChild(table.firstChild),generate_page_nav(table.firstChild.id.replace(t+"form_view",""),t,r),form=jQuery("#form"+t),form.parent().hasClass("fm-scrollbox-form")||(jQuery("html").animate({scrollTop:form.offset().top-150},500),document.scrollingElement.scrollTop=form.offset().top-150)}function page_next(e,t,r){form_view_elemet=document.getElementById(t+"form_view"+e),form_view_elemet.parentNode.nextSibling&&("DIV"==form_view_elemet.parentNode.nextSibling.tagName?table=form_view_elemet.parentNode.nextSibling:table=form_view_elemet.parentNode.nextSibling.nextSibling),table.firstChild.tagName||table.removeChild(table.firstChild),generate_page_nav(table.firstChild.id.replace(t+"form_view",""),t,r),form=jQuery("#form"+t),form.parent().hasClass("fm-scrollbox-form")||(jQuery("html").animate({scrollTop:form.offset().top-150},500),document.scrollingElement.scrollTop=form.offset().top-150)}function fm_go_to_page(e,t,r){form_view_elemet=document.getElementById(t+"form_view"+e),table=form_view_elemet.parentNode,table.firstChild.tagName||table.removeChild(table.firstChild),generate_page_nav(table.firstChild.id.replace(t+"form_view",""),t,r),form=jQuery("#form"+t),form.parent().hasClass("fm-scrollbox-form")||(jQuery("html").animate({scrollTop:form.offset().top-150},500),document.scrollingElement.scrollTop=form.offset().top-150)}function getfileextension(e,t){if(void 0===e||0==e.length)return!0;var r=e.lastIndexOf("."),i=e.substr(r+1,e.length);t=t.split(",");for(var n=0;n<t.length;n++)if(t[n]=t[n].replace(/\./g,""),t[n]=t[n].replace(/ /g,""),i.toLowerCase()==t[n].toLowerCase())return!0;return!1}function reselect(e,t){t=void 0!==t?t:"",jQuery(e).wrap('<div class="sel-wrap '+t+'"/>');var r="",i=!1;jQuery(e).children("option").each(function(){jQuery(this).is(":selected")&&(i=jQuery(this).index()),r=r+'<div class="sel-option" value="'+jQuery(this).val()+'">'+jQuery(this).html()+"</div>"}),w=jQuery(e)[0].style.width,"100%"==w?w="100%":w=jQuery(e).width()+32+"px";var n='<div class="sel-imul" style="width:'+w+'"> <div class="sel-selected"> <div class="selected-text">'+jQuery(e).children("option").eq(i).html()+'</div> <div class="sel-arraw"></div> </div> <div class="sel-options">'+r+"</div> </div>";jQuery(e).addClass("no-width"),jQuery(e).before(n)}jQuery(window).on("load",function(){0<jQuery(".g-recaptcha").length&&1!=jQuery(".g-recaptcha").data("render")&&fmRecaptchaInit(0)}),jQuery(document).on("change",".wdform-element-section select",function(){var e=jQuery(this).children("option:selected").text();jQuery(this).parent(".sel-wrap ").children(".sel-imul").children(".sel-selected").children(".selected-text").html(e),jQuery(this).parent(".sel-wrap ").children(".sel-imul").children(".sel-options").children(".sel-option").removeClass("sel-ed"),jQuery(this).addClass("sel-ed"),jQuery(this).parent(".sel-wrap ").children(".sel-imul").children(".sel-options").each(function(){jQuery(this).html()==e&&jQuery(this).addClass("sel-ed")})}),jQuery(document).on("click",".sel-imul",function(){jQuery(".sel-imul").removeClass("act"),jQuery(this).addClass("act"),jQuery(this).children(".sel-options").is(":visible")?jQuery(".sel-options").hide():(jQuery(".sel-options").hide(),jQuery(this).children(".sel-options").show(),jQuery(this).children(".sel-options").css("width",jQuery(this).width()))}),jQuery(document).on("click",".sel-option",function(){var e=jQuery(this).html();jQuery(this).parent(".sel-options").parent(".sel-imul").children(".sel-selected").children(".selected-text").html(e),jQuery(this).parent(".sel-options").children(".sel-option").removeClass("sel-ed"),jQuery(this).addClass("sel-ed");var t=jQuery(this).attr("value");t=void 0!==t?t:e,jQuery(this).parent(".sel-options").parent(".sel-imul").parent(".sel-wrap").children("select").children("option").prop("selected",!1).each(function(){jQuery(this).html()==e&&jQuery(this).attr("selected","select")}),jQuery(this).parent(".sel-options").parent(".sel-imul").parent(".sel-wrap").children("select").change()});var selenter=!1;function remove_whitespace(e){var t;for(t=0;t<e.childNodes.length;t++)e.childNodes[t]&&"3"==e.childNodes[t].nodeType&&!/\S/.test(e.childNodes[t].nodeValue)?(e.removeChild(e.childNodes[t]),t--):e.childNodes[t].childNodes.length&&remove_whitespace(e.childNodes[t])}function change_value_range(e,t,r,i,n){r?jQuery("#"+e).datepicker("option",t,r):"today"==i?jQuery("#"+e).datepicker("option",t,new Date):(-1==i.indexOf("d")&&-1==i.indexOf("m")&&-1==i.indexOf("y")&&-1==i.indexOf("w")&&""!=i&&(i=jQuery.datepicker.formatDate(n,new Date(i))),jQuery("#"+e).datepicker("option",t,i))}function wd_check_confirmation_email(e,t,r,i){var n=jQuery("#wdform_"+e+"_element"+t),a=jQuery("#wdform_"+e+"_1_element"+t);0==window["check_before_submit"+t][e+"_"+t]||jQuery(n).val()!=jQuery(a).val()?(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm"),jQuery(n).val()!=jQuery(a).val()&&(jQuery(a).parent().parent().parent().append("<div id='confirm_"+e+"_"+t+"' class='fm-not-filled'>"+r+"</div>"),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_confirm")),window["check_before_submit"+t][e+"_"+t]=!(e+"_"+t in window["check_before_submit"+t])||window["check_before_submit"+t][e+"_"+t]):(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm"),1==window["check_before_submit"+t][e+"_"+t]&&delete window["check_before_submit"+t][e+"_"+t])}function wd_check_email(e,t,r){var i=jQuery("#wdform_"+e+"_element"+t),n=jQuery("#wdform_"+e+"_1_element"+t);""==jQuery(i).val()||/^[\u0400-\u04FFa-zA-Z0-9'.+_-]+@[\u0400-\u04FFa-zA-Z0-9.-]+\.[\u0400-\u04FFa-zA-Z]{2,61}$/.test(jQuery.trim(jQuery(i).val()))||jQuery(i).attr("title")==jQuery(i).val()?(jQuery("#check_email_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_check_mail").removeClass("error_label_check_mail"),window["check_before_submit"+t][e+"_"+t]=!0,void 0===n.val()&&delete window["check_before_submit"+t][e+"_"+t]):(jQuery("#check_email_"+e+"_"+t).remove(),jQuery(i).parent().parent().parent().append("<div id='check_email_"+e+"_"+t+"' class='fm-not-filled'>"+r+"</div>"),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_check_mail"),i.val()==n.val()&&(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm")),delete window["check_before_submit"+t][e+"_"+t],window["check_before_submit"+t][e+"_"+t]=!1)}function wd_check_confirmation_pass(e,t,r){var i=jQuery("#wdform_"+e+"_element"+t),n=jQuery("#wdform_"+e+"_1_element"+t);i.val()!==n.val()?(jQuery("#confirm_"+e+"_"+t).remove(),jQuery(n).parent().parent().parent().append("<div id='confirm_"+e+"_"+t+"' class='fm-not-filled'>"+r+"</div>"),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_check_pass"),window["check_before_submit"+t][e+"_"+t]=!1):(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_check_pass").removeClass("error_label_check_pass"),delete window["check_before_submit"+t][e+"_"+t])}function minimize_form(e){jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown fm-minimized"),jQuery("#fm-minimize-text"+e).removeClass("fm-animated fadeOutDown").addClass("fm-show fm-animated fadeInUp")}function fm_show_scrollbox(e){jQuery("#fm-minimize-text"+e).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown"),jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeOutDown fm-minimized").addClass("fm-show fm-animated fadeInUp")}function fm_hide_form(e,t,r){var i=new Date;i.setDate(i.getDate()+t),0<t&&localStorage.setItem("hide-"+e,i.getTime()),"function"==typeof r&&r()}function wd_check_regExp(a,o){var d=jQuery("#form"+a),l=!1,e=o||window["check_regExp_all"+a];return jQuery.each(e,function(e,t){var r="#wdform_"+e+"_element"+a,i="",n=unescape(t[0]);i=t[1].length<=0?new RegExp(n):new RegExp(n,t[1]),0!=d.find(jQuery("div[wdid='"+e+"']")).length&&"none"!=d.find(jQuery("div[wdid='"+e+"']")).css("display")&&0<jQuery(r).val().length&&jQuery(r).val()!=jQuery(r).attr("title")&&1!=i.test(jQuery(r).val())&&(jQuery("#form"+a+" #wd_exp_"+e).remove(),d.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_exp_"+e+"' class='fm-not-filled'>"+t[2]+"</div>"),jQuery("#form"+a+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp"),l=!0,o||scroll_on_element(a))}),!1===l}function scroll_on_element(e){if(0==jQuery("#form"+e+" .fm-not-filled").length)return!0;var t=!0;0==jQuery("#fm_shake"+e).val()&&(t=!1);var r=jQuery("#form"+e+" .fm-not-filled").closest(".wdform_row"),i=r.closest(".wdform_page");if("none"==i.parent().css("display")){var n=jQuery("#form"+e+" .wdform-page-and-images").length,a=jQuery("#form"+e+" .wdform_page").last().attr("id");a=a.split("form_view");var o=i.attr("id");fm_go_to_page(o=o.split("form_view")[1],e,n,a[1])}var d=jQuery(document).scrollTop(),l=document.body.clientHeight,s=jQuery("#form"+e+" .fm-not-filled").closest("div[wdid]").height(),u=jQuery("#form"+e+" .fm-not-filled").offset().top,m=function(){document.body.clientHeight!==l&&(l=document.body.clientHeight,s=jQuery("#form"+e+" .fm-not-filled").closest("div[wdid]").height(),u=jQuery("#form"+e+" .fm-not-filled").offset().top,jQuery("html").stop(),_())};function c(e){e&&(old_bg=jQuery(r).css("background-color"),jQuery(r).effect("shake",{},500).css("background-color","#FF8F8B").animate({backgroundColor:old_bg},{duration:500,queue:!1}))}function _(){jQuery("html").animate({scrollTop:u-(s+40)},500,function(){document.scrollingElement.scrollTop=u-(s+40),jQuery(window).off("scroll",m),c(t)})}jQuery(window).on("scroll",m),u<d?_():c(t)}function wd_file_upload_check(i,e){var n=jQuery("#form"+i),a=!1,t=e||window["file_upload_check"+i];return jQuery.each(t,function(e,t){var r="#wdform_"+e+"_element"+i;0!=n.find(jQuery("div[wdid='"+e+"']")).length&&"none"!=n.find(jQuery("div[wdid='"+e+"']")).css("display")&&(ext_available=getfileextension(jQuery(r).val(),t),ext_available?(jQuery("#form"+i+" #wd_upload_type_"+e).remove(),jQuery("#form"+i+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_upload").removeClass("error_label_upload")):(jQuery("#form"+i+" #wd_upload_type_"+e).remove(),n.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_upload_type_"+e+"' class='fm-not-filled'>"+fm_objectL10n.fm_file_type_error+"</div>"),jQuery("#form"+i+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_upload"),a=!0))}),e||!0!==a||scroll_on_element(i),!1===a}function wd_is_filled(s,u,m){null==m&&(m=!0);var c=jQuery("#form"+s),e=u?u.split():window["required_fields"+s],_={};return jQuery(e).each(function(e,i){if("none"===c.find(jQuery("div[wdid='"+i+"']")).css("display")&&(c.find(jQuery("div[wdid='"+i+"']")).find(".fm-not-filled").remove(),c.find(jQuery("div[wdid='"+i+"']")).css("background-color",""),c.find(jQuery("div[wdid='"+i+"'] label")).removeClass("error_label")),0!=c.find(jQuery("div[wdid='"+i+"']")).length&&"none"!==c.find(jQuery("div[wdid='"+i+"']")).css("display"))switch(window["labels_and_ids"+s][i]){case"type_text":case"type_textarea":case"type_paypal_price_new":case"type_spinner":case"type_number":case"type_phone_new":case"type_submitter_mail":var t="#wdform_"+i+"_element"+s,r=jQuery(t).val();r=jQuery.trim(r),(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==r&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(s,i)});break;case"type_own_select":case"type_country":case"type_paypal_select":t="#wdform_"+i+"_element"+s;(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(s,i)}).change(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),wd_is_filled(s,i)});break;case"type_phone":t=["#wdform_"+i+"_element_first"+s,"#wdform_"+i+"_element_last"+s];jQuery.each(t,function(e,t){(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(s,i)})});break;case"type_name":t=["#wdform_"+i+"_element_title"+s,"#wdform_"+i+"_element_first"+s,"#wdform_"+i+"_element_last"+s,"#wdform_"+i+"_element_middle"+s];jQuery.each(t,function(e,t){if((m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&jQuery(t).length){var r=jQuery(t).val();""==(r=jQuery.trim(r))&&void 0!==r&&(_[i]=t)}u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).blur(function(){wd_is_filled(s,i)})});break;case"type_address":t=["#wdform_"+i+"_street1"+s,"#wdform_"+i+"_street2"+s,"#wdform_"+i+"_city"+s,"#wdform_"+i+"_state"+s,"#wdform_"+i+"_postal"+s,"#wdform_"+i+"_country"+s];jQuery.each(t,function(e,t){if(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display")){var r=jQuery(t).val();void 0!==r&&(r=jQuery.trim(r)),""==r&&(_[i]=t)}u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).blur(function(){wd_is_filled(s,i)})});break;case"type_checkbox":case"type_radio":case"type_scale_rating":case"type_paypal_checkbox":case"type_paypal_radio":case"type_paypal_shipping":(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&(0!=c.find(jQuery("div[wdid='"+i+"'] input:checked")).length&&""!=jQuery("#wdform_"+i+"_other_input"+s).val()||(_[i]=!0)),u||window["check_submit"+s]||jQuery.each(jQuery("#form"+s+" div[wdid='"+i+"'] input"),function(e,t){jQuery(this).change(function(){0==c.find(jQuery("div[wdid='"+i+"'] input:checked")).length||""==jQuery("#wdform_"+i+"_other_input"+s).val()?wd_is_filled(s,i):(jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"))})});break;case"type_star_rating":t="#wdform_"+i+"_selected_star_amount"+s;(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=!0),u||window["check_submit"+s]||jQuery("#wdform_"+i+"_element"+s).click(function(){""!=jQuery(t).val()&&(jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove())});break;case"type_range":t=["#wdform_"+i+"_element"+s+"0","#wdform_"+i+"_element"+s+"1"];jQuery.each(t,function(e,t){(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).blur(function(){wd_is_filled(s,i)})});break;case"type_grading":if(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display")){var n=0;jQuery.each(jQuery("#wdform_"+i+"_element"+s+" input"),function(e,t){""!=jQuery(this).val()&&n++}),0==n&&(_[i]=!0)}u||window["check_submit"+s]||jQuery.each(jQuery("#wdform_"+i+"_element"+s+" input"),function(e,t){jQuery(this).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).blur(function(){wd_is_filled(s,i)})});break;case"type_slider":var a="#wdform_"+i+"_element"+s,o=(t="#wdform_"+i+"_slider_value"+s,"#wdform_"+i+"_element_min"+s);(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&jQuery(t).val()==jQuery(o).html()&&(_[i]=!0),u||window["check_submit"+s]||jQuery(a).slider({change:function(e,t){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove(),wd_is_filled(s,i)}});break;case"type_date":case"type_date_new":t="#wdform_"+i+"_element"+s;(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" #wd_required_"+i).remove()}).change(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),wd_is_filled(s,i)});break;case"type_date_range":t=["#wdform_"+i+"_element"+s+"0","#wdform_"+i+"_element"+s+"1"];jQuery.each(t,function(e,t){(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).change(function(){wd_is_filled(s,i)})});break;case"type_date_fields":t=["#wdform_"+i+"_day"+s,"#wdform_"+i+"_month"+s,"#wdform_"+i+"_year"+s];jQuery.each(t,function(e,t){(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).blur(function(){wd_is_filled(s,i)}).change(function(){wd_is_filled(s,i)})});break;case"type_time":t=["#wdform_"+i+"_hh"+s,"#wdform_"+i+"_mm"+s,"#wdform_"+i+"_ss"+s];jQuery.each(t,function(e,t){(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&void 0!==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).blur(function(){wd_is_filled(s,i)})});break;case"type_password":t="#wdform_"+i+"_element"+s;(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(s,i)});break;case"type_file_upload":t="#wdform_"+i+"_element"+s;(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove()}).change(function(){jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),wd_is_filled(s,i)});break;case"type_matrix":if(jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),"radio"==jQuery("#form"+s+" div[wdid='"+i+"'] input").attr("type")||"checkbox"==jQuery("#form"+s+" div[wdid='"+i+"'] input").attr("type"))(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&(0==c.find(jQuery("div[wdid='"+i+"'] input:checked")).length&&(_[i]=!0),"radio"==jQuery("#form"+s+" div[wdid='"+i+"'] input").attr("type")&&jQuery.each(jQuery("#form"+s+" div[wdid='"+i+"'] div[class^='wdform-matrix-row']"),function(e,t){0==jQuery(t).find('input[type="radio"]:checked').length&&(_[i]=!0)})),"checkbox"==jQuery("#form"+s+" div[wdid='"+i+"'] input").attr("type")&&(u||window["check_submit"+s]||jQuery.each(jQuery("#form"+s+" div[wdid='"+i+"'] input"),function(e,t){jQuery(this).change(function(){0==c.find(jQuery("div[wdid='"+i+"'] input:checked")).length?wd_is_filled(s,i):(jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+s+" #wd_required_"+i).remove())})}));else if("text"==jQuery("#form"+s+" div[wdid='"+i+"'] input").attr("type")){if(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display")){var d=0;jQuery.each(jQuery("#form"+s+" div[wdid='"+i+"'] input"),function(e,t){""!=jQuery(this).val()&&d++}),0==d&&(_[i]=!0)}u||window["check_submit"+s]||jQuery.each(jQuery("#form"+s+" div[wdid='"+i+"'] input"),function(e,t){jQuery(this).focus(function(){jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(s,i)})})}else{if(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display")){var l=0;jQuery.each(jQuery("#form"+s+" div[wdid='"+i+"'] select"),function(e,t){""!=jQuery(this).val()&&l++}),0==l&&(_[i]=!0)}u||window["check_submit"+s]||jQuery.each(jQuery("#form"+s+" div[wdid='"+i+"'] select"),function(e,t){jQuery(this).focus(function(){""==jQuery(this).val()&&(jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"))}).change(function(){wd_is_filled(s,i)}).blur(function(){wd_is_filled(s,i)})})}break;case"type_send_copy":(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&0==jQuery("div[wdid='"+i+"'] input:checked").length&&(_[i]=!0),u||window["check_submit"+s]||jQuery("#form"+s+" div[wdid='"+i+"'] input").change(function(){0==jQuery("div[wdid='"+i+"'] input:checked").length?wd_is_filled(s,i):(jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"))});break;case"type_captcha":case"type_arithmetic_captcha":t="";t="type_captcha"==window["labels_and_ids"+s][i]?"#wd_captcha_input"+s:"#wd_arithmetic_captcha_input"+s,(m||"none"!=c.find(jQuery("div[wdid='"+i+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(jQuery(".message_captcha").html(""),_[i]=t),u||window["check_submit"+s]||jQuery(t).focus(function(){jQuery("#form"+s+" #wd_required_"+i).remove(),jQuery("#form"+s+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(s,i)})}}),0===Object.keys(_).length&&0===Object.keys(window["check_before_submit"+s]).length||(0!==Object.keys(_).length&&jQuery.each(_,function(e,t){jQuery("#form"+s+" #wd_required_"+e).remove(),jQuery("#form"+s+" div[wdid='"+e+"'] .wdform-element-section:first").parent().parent().append("<div id='wd_required_"+e+"' class='fm-not-filled'>"+fm_objectL10n.fm_field_is_required+"</div>"),jQuery("#form"+s+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label")}),u||scroll_on_element(s),!(window["check_submit"+s]=1))}function wd_check_price_min_max(a,o){var d=jQuery("#form"+a),e=o||window["check_paypal_price_min_max"+a],l=!1;return jQuery.each(e,function(e,t){var r="#wdform_"+e+"_element"+a,i=t[3]?t[3]:0,n=t[4]?t[4]:-1;!t[2]&&jQuery(r).val()==t[1]||(-1!=n&&parseFloat(jQuery(r).val())>n||parseFloat(jQuery(r).val())<i)&&(jQuery("#form"+a+" #wd_price_"+e).remove(),d.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_price_"+e+"' class='fm-not-filled'>"+fm_objectL10n.fm_min_max_check_1+t[0]+fm_objectL10n.fm_min_max_check_2+(t[3]?t[3]:0)+"-"+(t[4]?t[4]:"any")+"</div>"),jQuery("#form"+a+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"),l=!0,o||scroll_on_element(a))}),!1===l}function wd_spinner_check(i,n){var a=jQuery("#form"+i),o=!1,e=n||window["spinner_check"+i];return jQuery.each(e,function(e,t){var r="#wdform_"+e+"_element"+i;0!=a.find(jQuery("div[wdid='"+e+"']")).length&&"none"!=a.find(jQuery("div[wdid='"+e+"']")).css("display")&&(parseInt(jQuery(r).val())<parseInt(t[0])||parseInt(jQuery(r).val())>parseInt(t[1]))&&(jQuery("#form"+i+" #wd_price_"+e).remove(),a.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_price_"+e+"' class='fm-not-filled'>"+fm_objectL10n.fm_spinner_check+(t[0]?t[0]:0)+"-"+(t[1]?t[1]:"any")+"</div>"),jQuery("#form"+i+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"),o=!0,n||scroll_on_element(i))}),!1===o}function fmscrollHandler(e){var t=100*jQuery(window).scrollTop()/(jQuery(document).height()-jQuery(window).height());!jQuery("#fm-scrollbox"+e).hasClass("fm-minimized")&&t>=window["scrollbox_trigger_point"+e]?setTimeout(function(){jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeOutDown").addClass("fm-animated fadeInUp"),jQuery("#fm-scrollbox"+e).css("visibility",""),jQuery("#fm-scrollbox"+e+" .fm-header-img").addClass("fm-animated "+window["header_image_animation"+e])},1e3*window["scrollbox_loading_delay"+e]):window["scrollbox_auto_hide"+e]&&(jQuery("#fm-scrollbox"+e+" .fm-header-img").removeClass("fm-animated "+window["header_image_animation"+e]),jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown"))}function fm_submit_form(e){if("function"==typeof window["before_submit"+e]&&window["before_submit"+e]())return!1;if(!fm_check(0,e))return!1;(jQuery("#form"+e+" button").each(function(){jQuery(this).attr("disabled","disabled")}),jQuery('<input type="hidden" name="save_or_submit'+e+'" value ="submit" />').appendTo("#form"+e),window["onsubmit_js"+e](),1==window["checkStripe"+e])?"none"!=jQuery("form[id='form"+e+"']").find(".StripeElement").first().parents(".wdform_row").css("display")?wdfm_call_stripe(!0):0<jQuery("#form"+e).find(".g-recaptcha[data-size=invisible]").length?grecaptcha.execute():fm_submit(e):0<jQuery("#form"+e).find(".g-recaptcha[data-size=invisible]").length?grecaptcha.execute():fm_submit(e)}function getHostName(e){var t=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);return null!=t&&2<t.length&&"string"==typeof t[2]&&0<t[2].length?t[2]:null}function isJson(e){try{JSON.parse(e)}catch(e){return!1}return!0}function fm_submit(s){if(fm_set_input_value("fm_empty_field_validation"+s,jQuery("#fm_empty_field_validation"+s).attr("data-value")),"0"!=jQuery("#form"+s+" .button-submit:not(.save_button)").attr("data-ajax")){jQuery("#form"+s+" .fm-submit-loading").css("display","inline-block");var e=jQuery("#form"+s)[0],t=new FormData(e),r=jQuery("#fm_ajax_url"+s).data("ajax_url"),u=jQuery("#form"+s+" #fm_ajax_redirect_url"+s).data("ajax_redirect_url");jQuery.ajax({type:"POST",enctype:"multipart/form-data",url:r,data:t,contentType:!1,processData:!1,success:function(e){if(isJson(e)){var t=JSON.parse(e),r=new Date,i=window.location.href,n="&return="+(i=-1<i.indexOf("?")?i+"&succes="+r.getTime():i+"?succes="+r.getTime());if(void 0!==t.paypal_url){var a=t.paypal_url+n;return void window.location.replace(a)}}if(0==u){jQuery("#form"+s+" .button-submit").prop("disabled",!1),jQuery("#form"+s+" .fm-submit-loading").hide();var o=jQuery(e).find("#form"+s).html();jQuery("#form"+s).html(o),"function"==typeof window["fm_save_progress_"+s]&&window["fm_save_progress_"+s](),0<jQuery(document).find(".g-recaptcha").length&&fmRecaptchaInit(1);var d="fm_script_ready"+s;if(void 0!==window[d]&&window[d](),0<jQuery(o).find(".fm-not-filled.message_captcha").length){var l=jQuery(o).find(".fm-not-filled.message_captcha").text();jQuery("#form"+s+" .fm-message").remove(),jQuery("#form"+s).prepend('<div class="fm-message fm-notice-error">'+l+"</div>")}else fm_reset_form(s);if(0!=u)document.domain==getHostName(u)?window.location.href=u:(jQuery("#form"+s+" .fm-message").remove(),jQuery("#form"+s).prepend('<div class="fm-message fm-notice-error">Form submitted successfully done, but there is a problem with redirection.</div>'))}else window.location.replace(u)},complete:function(){0==jQuery("#form"+s+" .fm-message").length&&(jQuery("#closing-form"+s).remove(),jQuery("#fm-popover-background"+s).css("display","none")),"function"!=typeof window["after_submit"+s]||jQuery("#form"+s).find(".message_captcha").length||window["after_submit"+s]()}})}else jQuery("#form"+s).submit()}function fm_reset_form(form_id){"function"==typeof window["before_reset"+form_id]&&window["before_reset"+form_id]();var privacy_policy_check=jQuery("#fm_privacy_policy"+form_id);privacy_policy_check&&(privacy_policy_check.prop("checked",!1),fm_privacy_policy_check(privacy_policy_check)),jQuery.each(window["labels_and_ids"+form_id],function(index,elem){switch(elem){case"type_text":case"type_textarea":case"type_number":case"type_spinner":case"type_own_select":case"type_country":case"type_date":case"type_date_new":case"type_hidden":case"type_paypal_price_new":case"type_phone_new":jQuery("#wdform_"+index+"_element"+form_id).val("");break;case"type_submitter_mail":case"type_password":jQuery("#wdform_"+index+"_element"+form_id).val(""),jQuery("#wdform_"+index+"_1_element"+form_id)&&(jQuery("#wdform_"+index+"_1_element"+form_id).val(""),jQuery("#confirm_"+index+"_"+form_id)&&jQuery("#confirm_"+index+"_"+form_id).remove(),"type_submitter_mail"==elem&&jQuery("#check_email_"+index+"_"+form_id)&&jQuery("#check_email_"+index+"_"+form_id).remove());break;case"type_date_range":jQuery("#wdform_"+index+"_element"+form_id+"0").val(""),jQuery("#wdform_"+index+"_element"+form_id+"1").val("");break;case"type_send_copy":jQuery("#wdform_"+index+"_element"+form_id).prop("checked",!1);break;case"type_phone":jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id).val("");break;case"type_name":jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id+", #wdform_"+index+"_element_title"+form_id+", #wdform_"+index+"_element_middle"+form_id).val("");break;case"type_address":jQuery("#wdform_"+index+"_street1"+form_id+", #wdform_"+index+"_street2"+form_id+", #wdform_"+index+"_city"+form_id+", #wdform_"+index+"_state"+form_id+", #wdform_"+index+"_postal"+form_id+", #wdform_"+index+"_country"+form_id).val("");break;case"type_checkbox":jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop("checked",!1),jQuery("#wdform_"+index+"_other_br"+form_id).remove(),jQuery("#wdform_"+index+"_other_input"+form_id).remove();break;case"type_radio":jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1),jQuery("#wdform_"+index+"_other_br"+form_id).remove(),jQuery("#wdform_"+index+"_other_input"+form_id).remove();break;case"type_time":jQuery("#wdform_"+index+"_hh"+form_id+", #wdform_"+index+"_mm"+form_id+", #wdform_"+index+"_ss"+form_id+", #wdform_"+index+"_am_pm"+form_id).val("");break;case"type_date_fields":jQuery("#wdform_"+index+"_day"+form_id+", #wdform_"+index+"_month"+form_id+", #wdform_"+index+"_year"+form_id).val("");break;case"type_file_upload":jQuery("#wdform_"+index+"_element"+form_id+"_save").remove();break;case"type_paypal_price":jQuery("#wdform_"+index+"_element_dollars"+form_id+", #wdform_"+index+"_element_cents"+form_id).val("");break;case"type_paypal_select":jQuery("#wdform_"+index+"_element"+form_id+", #wdform_"+index+"_element_quantity"+form_id+", #form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val("");break;case"type_paypal_radio":jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val(""),jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1);break;case"type_paypal_shipping":jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1);break;case"type_paypal_checkbox":jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val(""),jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop("checked",!1);break;case"type_star_rating":jQuery("#wdform_"+index+"_selected_star_amount"+form_id).val(""),jQuery("#wdform_"+index+"_element"+form_id+" img").attr("src",fm_objectL10n.plugin_url+"/images/star.png");break;case"type_scale_rating":jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1);break;case"type_slider":jQuery("#wdform_"+index+"_element"+form_id).slider({value:eval(0)}),jQuery("#wdform_"+index+"_element_value"+form_id).html("0");break;case"type_range":jQuery("#wdform_"+index+"_element"+form_id+"0, #wdform_"+index+"_element"+form_id+"1").val("");break;case"type_grading":jQuery("#wdform_"+index+"_element"+form_id+" input").val("");break;case"type_matrix":jQuery("#wdform_"+index+"_element"+form_id+" .radio-div input").prop("checked",!1),jQuery("#wdform_"+index+"_element"+form_id+" .checkbox-div input").prop("checked",!1),jQuery("#wdform_"+index+"_element"+form_id+" input[type='text']").val(""),jQuery("#wdform_"+index+"_element"+form_id+" select").val("");break;case"type_paypal_total":jQuery("#wdform_"+index+"div_total"+form_id).html("$0"),jQuery("#wdform_"+index+"paypal_products"+form_id).empty();break;case"type_captcha":jQuery("#wd_captcha_input"+form_id).val("")}})}function fm_save_form(e){jQuery('<input type="hidden" name="save_or_submit'+e+'" value ="save" />').appendTo("#form"+e),window["onsubmit_js"+e](),jQuery("#form"+e+" button").each(function(){jQuery(this).attr("disabled","disabled")}),fm_set_input_value("fm_empty_field_validation"+e,jQuery("#fm_empty_field_validation"+e).attr("data-value")),jQuery("#form"+e).submit()}function fm_clear_form(e){1==confirm(fm_objectL10n.fm_clear_data)&&(jQuery("#form"+e+" button").each(function(){jQuery(this).attr("disabled","disabled")}),jQuery.get(fm_objectL10n.form_maker_admin_ajax+"?action=FMClearProg&addon_task=clear_data&nonce="+fm_ajax.ajaxnonce+"&form_id="+e).done(function(){window.location=jQuery("#form"+e).attr("action")}))}function fm_set_input_value(e,t){jQuery("#"+e).val(t)}function formOnload(i){var n;-1!=navigator.userAgent.toLowerCase().indexOf("msie")&&8===parseInt(navigator.userAgent.toLowerCase().split("msie")[1])&&(jQuery("#form"+i).find(jQuery("input[type='radio']")).click(function(){jQuery("input[type='radio']+label").removeClass("if-ie-div-label"),jQuery("input[type='radio']:checked+label").addClass("if-ie-div-label")}),jQuery("#form"+i).find(jQuery("input[type='radio']:checked+label")).addClass("if-ie-div-label"),jQuery("#form"+i).find(jQuery("input[type='checkbox']")).click(function(){jQuery("input[type='checkbox']+label").removeClass("if-ie-div-label"),jQuery("input[type='checkbox']:checked+label").addClass("if-ie-div-label")}),jQuery("#form"+i).find(jQuery("input[type='checkbox']:checked+label")).addClass("if-ie-div-label")),jQuery.each(window["check_regExp_all"+i],function(e,t){var r={};r[e]=t,jQuery("div[wdid='"+e+"'] input").blur(function(){wd_check_regExp(i,r)}).focus(function(){jQuery("#form"+i+" #wd_exp_"+e).remove(),jQuery("#form"+i+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")})}),jQuery.each(window["check_paypal_price_min_max"+i],function(e,t){var r={};r[e]=t,jQuery("div[wdid='"+e+"'] input").blur(function(){wd_check_price_min_max(i,r)}).focus(function(){jQuery("#form"+i+" #wd_price_"+e).remove(),jQuery("#form"+i+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")})}),jQuery.each(window["spinner_check"+i],function(e,t){var r={};r[e]=t,jQuery("div[wdid='"+e+"'] input").blur(function(){wd_spinner_check(i,r)}).focus(function(){jQuery("#form"+i+" #wd_price_"+e).remove(),jQuery("#form"+i+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")})}),jQuery.each(window["file_upload_check"+i],function(e,t){var r={};r[e]=t,jQuery("div[wdid='"+e+"'] input").change(function(){wd_file_upload_check(i,r)})}),jQuery("#form"+i+" input").on("keypress",function(e){if(13==(e.keyCode?e.keyCode:e.which))return!1}),jQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity, div[type='type_paypal_price_new'] input").keypress(function(e){return check_isnum(e)}),jQuery("div[type='type_grading'] input").keypress(function(e){return check_isnum_or_minus(e)}),jQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function(){set_total_value(i)}),jQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input, div[type='type_paypal_price_new'] input").change(function(){set_total_value(i)}),jQuery(".wdform-quantity").change(function(){set_total_value(i)}),jQuery("div[type='type_address'] select").change(function(){set_total_value(i)}),jQuery("div[type='type_time'] input").blur(function(){add_0(this)}),jQuery(".wdform-element-section").each(function(){if("type_stripe"==jQuery(this).parent().parent().attr("type"))return!0;jQuery(this).parent()[0].style.width||0==parseInt(jQuery(this).width())||0==jQuery(this).parent().find(jQuery(".wdform-label-section")).length||"table-cell"==jQuery(this).css("display")&&("type_captcha"!=jQuery(this).parent().attr("type")?jQuery(this).parent().css("width",parseInt(jQuery(this).width())+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15):jQuery(this).parent().css("width",2*parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)+50+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15)),parseInt(jQuery(this)[0].style.width.replace("px",""))<parseInt(jQuery(this).css("min-width").replace("px",""))&&jQuery(this).css("min-width",parseInt(jQuery(this)[0].style.width.replace("px",""))-10)}),jQuery(".wdform-label").each(function(){parseInt(jQuery(this).height())>=2*parseInt(jQuery(this).css("line-height").replace("px",""))&&(jQuery(this).parent().css("max-width",jQuery(this).parent().width()),jQuery(this).parent().css("width",""))}),(n=jQuery).fn.shuffle=function(){var i=n(this).find(".wd-choice"),t=n.map(i,function(){var e,t=(e=i.length,Math.floor(Math.random()*e)),r=n(i[parseInt(t)]).clone(!0)[0];return i.splice(t,1),r});return n(this).find(".wd-choice").each(function(e){n(this).replaceWith(n(t[e]))}),n(t)},window["onload_js"+i](),"function"==typeof window["before_load"+i]&&window["before_load"+i]()}function fm_document_ready(e){jQuery("#form"+e).hasClass("fm-form-submitted")&&!jQuery("#form"+e).find(".message_captcha").length&&"function"==typeof window["after_submit"+e]&&window["after_submit"+e]();var t=jQuery("#form"+e+" .wdform-page-and-images").length;window["form_view_count"+e]=t,1<window["form_view_count"+e]&&(firstid=jQuery("#form"+e+" .wdform_page").first().attr("id"),firstid=firstid.split("form_view"),window["first_form_view"+e]=firstid[1],generate_page_nav(window["first_form_view"+e],e,window["form_view_count"+e])),fm_initilize_form(e),window["condition_js"+e](),jQuery(document).trigger("fm_document_ready")}function fm_check(e,t,r){if(!wd_is_filled(t,void 0,r))return!1;if(1==window["checkStripe"+t]){var i=jQuery("form[id='form"+t+"']");if("none"!=i.find(".StripeElement").first().closest(".wdform-page-and-images").css("display")&&"none"!=i.find(".StripeElement").first().parents(".wdform_row").css("display")&&0==wdfm_call_stripe(!1))return!1}return!!wd_check_regExp(t)&&(!!wd_check_price_min_max(t)&&(!!wd_spinner_check(t)&&(!!wd_file_upload_check(t)&&0!=window["check_js"+t](e,t))))}function fmRecaptchaInit(e){void 0===e&&(e=0),jQuery(".g-recaptcha").each(function(){if(type=jQuery(this).attr("data-size"),jQuery(this).attr("data-render",1),"invisible"==type)r=jQuery(this).attr("data-form_id"),grecaptcha.render(jQuery(this).attr("id"),{sitekey:jQuery(this).attr("data-sitekey"),badge:jQuery(this).attr("data-badge"),callback:function(){fm_submit(r)}});else if("v3"==type){if("undefined"==jQuery(this).attr("data-sitekey")||""==jQuery(this).attr("data-sitekey"))return;var t=jQuery(this).attr("data-id"),r=jQuery(this).attr("data-form-id"),e=jQuery(this).attr("data-sitekey");grecaptcha.ready(function(){grecaptcha.execute(e).then(function(e){document.getElementById("recaptchaV3Response_"+r+t).value=e})})}else grecaptcha.render(jQuery(this).attr("id"),{sitekey:jQuery(this).attr("data-sitekey"),theme:"light"})})}function wd_change_state_input(e,t){if(document.getElementById(e+"_country"+t)&&document.getElementById(e+"_state"+t)){var r=!1,i=document.getElementById(e+"_state"+t);if("United States"==document.getElementById(e+"_country"+t).value){var n=document.createElement("select"),a=fm_objectL10n.states;for(var o in a){(d=document.createElement("option")).setAttribute("value",o),d.innerHTML=a[o],n.appendChild(d)}r=!0}else if("Canada"==document.getElementById(e+"_country"+t).value){n=document.createElement("select"),a=fm_objectL10n.provinces;for(var o in a){var d;(d=document.createElement("option")).setAttribute("value",o),d.innerHTML=a[o],n.appendChild(d)}r=!0}else if("SELECT"==document.getElementById(e+"_state"+t).tagName){n=document.createElement("input");r=!0}if(r){n.setAttribute("type","text"),n.setAttribute("id",e+"_state"+t),n.setAttribute("name","wdform_"+(parseInt(e.replace("wdform_",""))+3)+"_state"+t),n.setAttribute("class","wd-width-100");var l=i.parentNode;l.removeChild(i),l.insertBefore(n,l.firstChild)}}}function fm_privacy_policy_check(e){var t=jQuery(e),r=t.parents(".wdform_row").find(".button-submit");t.is(":checked")?r.prop("disabled",!1):r.prop("disabled",!0)}function fm_html_entities(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}jQuery(document).on("mouseenter",".sel-imul",function(){selenter=!0}),jQuery(document).on("mouseleave",".sel-imul",function(){selenter=!1}),jQuery(document).click(function(){selenter||(jQuery(".sel-options").hide(),jQuery(".sel-imul").removeClass("act"))}),function(t){"function"==typeof define&&define.amd?define(["jquery"],function(e){t(e,window,document)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window,document):t(jQuery,window,document)}(function(l,d,e,a){"use strict";var o="intlTelInput",r=1,i={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:"polite",customPlaceholder:null,dropdownContainer:"",excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},s=38,u=40,m=13,c=27,t=43,_=65,f=90,p=32,n=9,y=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"];function h(e,t){this.telInput=l(e),this.options=l.extend({},i,t),this.ns="."+o+r++,this.isGoodBrowser=Boolean(e.setSelectionRange),this.hadInitialPlaceholder=Boolean(l(e).attr("placeholder"))}l(d).on("load",function(){l.fn[o].windowLoaded=!0}),h.prototype={_init:function(){return this.options.nationalMode&&(this.options.autoHideDialCode=!1),this.options.separateDialCode&&(this.options.autoHideDialCode=this.options.nationalMode=!1),this.isMobile=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.isMobile&&(l("body").addClass("iti-mobile"),this.options.dropdownContainer||(this.options.dropdownContainer="body")),this.autoCountryDeferred=new l.Deferred,this.utilsScriptDeferred=new l.Deferred,this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests(),[this.autoCountryDeferred,this.utilsScriptDeferred]},_processCountryData:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries()},_addCountryCode:function(e,t,r){t in this.countryCodes||(this.countryCodes[t]=[]);var i=r||0;this.countryCodes[t][i]=e},_filterCountries:function(e,t){var r;for(r=0;r<e.length;r++)e[r]=e[r].toLowerCase();for(this.countries=[],r=0;r<w.length;r++)t(l.inArray(w[r].iso2,e))&&this.countries.push(w[r])},_processAllCountries:function(){this.options.onlyCountries.length?this._filterCountries(this.options.onlyCountries,function(e){return-1<e}):this.options.excludeCountries.length?this._filterCountries(this.options.excludeCountries,function(e){return-1==e}):this.countries=w},_processCountryCodes:function(){this.countryCodes={};for(var e=0;e<this.countries.length;e++){var t=this.countries[e];if(this._addCountryCode(t.iso2,t.dialCode,t.priority),t.areaCodes)for(var r=0;r<t.areaCodes.length;r++)this._addCountryCode(t.iso2,t.dialCode+t.areaCodes[r])}},_processPreferredCountries:function(){this.preferredCountries=[];for(var e=0;e<this.options.preferredCountries.length;e++){var t=this.options.preferredCountries[e].toLowerCase(),r=this._getCountryData(t,!1,!0);r&&this.preferredCountries.push(r)}},_generateMarkup:function(){this.telInput.attr("autocomplete","off");var e="intl-tel-input";this.options.allowDropdown&&(e+=" allow-dropdown"),this.options.separateDialCode&&(e+=" separate-dial-code"),this.telInput.wrap(l("<div>",{class:e})),this.flagsContainer=l("<div>",{class:"flag-container"}).insertBefore(this.telInput);var t=l("<div>",{class:"selected-flag"});t.appendTo(this.flagsContainer),this.selectedFlagInner=l("<div>",{class:"iti-flag"}).appendTo(t),this.options.separateDialCode&&(this.selectedDialCode=l("<div>",{class:"selected-dial-code"}).appendTo(t)),this.options.allowDropdown?(t.attr("tabindex","0"),l("<div>",{class:"iti-arrow"}).appendTo(t),this.countryList=l("<ul>",{class:"country-list hide"}),this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"preferred"),l("<li>",{class:"divider"}).appendTo(this.countryList)),this._appendListItems(this.countries,""),this.countryListItems=this.countryList.children(".country"),this.options.dropdownContainer?this.dropdown=l("<div>",{class:"intl-tel-input iti-container"}).append(this.countryList):this.countryList.appendTo(this.flagsContainer)):this.countryListItems=l()},_appendListItems:function(e,t){for(var r="",i=0;i<e.length;i++){var n=e[i];r+="<li class='country "+t+"' data-dial-code='"+n.dialCode+"' data-country-code='"+n.iso2+"'>",r+="<div class='flag-box'><div class='iti-flag "+n.iso2+"'></div></div>",r+="<span class='country-name'>"+n.name+"</span>",r+="<span class='dial-code'>+"+n.dialCode+"</span>",r+="</li>"}this.countryList.append(r)},_setInitialState:function(){var e=this.telInput.val();this._getDialCode(e)&&!this._isRegionlessNanp(e)?this._updateFlagFromNumber(e):"auto"!==this.options.initialCountry&&(this.options.initialCountry?this._setFlag(this.options.initialCountry.toLowerCase()):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,e||this._setFlag(this.defaultCountry)),e||this.options.nationalMode||this.options.autoHideDialCode||this.options.separateDialCode||this.telInput.val("+"+this.selectedCountryData.dialCode)),e&&this._updateValFromNumber(e)},_initListeners:function(){this._initKeyListeners(),this.options.autoHideDialCode&&this._initFocusListeners(),this.options.allowDropdown&&this._initDropdownListeners()},_initDropdownListeners:function(){var t=this,e=this.telInput.closest("label");e.length&&e.on("click"+this.ns,function(e){t.countryList.hasClass("hide")?t.telInput.focus():e.preventDefault()}),this.selectedFlagInner.parent().on("click"+this.ns,function(e){!t.countryList.hasClass("hide")||t.telInput.prop("disabled")||t.telInput.prop("readonly")||t._showDropdown()}),this.flagsContainer.on("keydown"+t.ns,function(e){!t.countryList.hasClass("hide")||e.which!=s&&e.which!=u&&e.which!=p&&e.which!=m||(e.preventDefault(),e.stopPropagation(),t._showDropdown()),e.which==n&&t._closeDropdown()})},_initRequests:function(){var e=this;this.options.utilsScript?l.fn[o].windowLoaded?l.fn[o].loadUtils(this.options.utilsScript,this.utilsScriptDeferred):l(d).on("load",function(){l.fn[o].loadUtils(e.options.utilsScript,e.utilsScriptDeferred)}):this.utilsScriptDeferred.resolve(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.autoCountryDeferred.resolve()},_loadAutoCountry:function(){l.fn[o].autoCountry?this.handleAutoCountry():l.fn[o].startedLoadingAutoCountry||(l.fn[o].startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup(function(e){l.fn[o].autoCountry=e.toLowerCase(),setTimeout(function(){l(".intl-tel-input input").intlTelInput("handleAutoCountry")})}))},_initKeyListeners:function(){var e=this;this.telInput.on("keyup"+this.ns,function(){e._updateFlagFromNumber(e.telInput.val())&&e._triggerCountryChange()}),this.telInput.on("cut"+this.ns+" paste"+this.ns,function(){setTimeout(function(){e._updateFlagFromNumber(e.telInput.val())&&e._triggerCountryChange()})})},_cap:function(e){var t=this.telInput.attr("maxlength");return t&&e.length>t?e.substr(0,t):e},_initFocusListeners:function(){var r=this;this.telInput.on("mousedown"+this.ns,function(e){r.telInput.is(":focus")||r.telInput.val()||(e.preventDefault(),r.telInput.focus())}),this.telInput.on("focus"+this.ns,function(e){r.telInput.val()||r.telInput.prop("readonly")||!r.selectedCountryData.dialCode||(r.telInput.val("+"+r.selectedCountryData.dialCode),r.telInput.one("keypress.plus"+r.ns,function(e){e.which==t&&r.telInput.val("")}),setTimeout(function(){var e=r.telInput[0];if(r.isGoodBrowser){var t=r.telInput.val().length;e.setSelectionRange(t,t)}}))});var e=this.telInput.prop("form");e&&l(e).on("submit"+this.ns,function(){r._removeEmptyDialCode()}),this.telInput.on("blur"+this.ns,function(){r._removeEmptyDialCode()})},_removeEmptyDialCode:function(){var e=this.telInput.val();if("+"==e.charAt(0)){var t=this._getNumeric(e);t&&this.selectedCountryData.dialCode!=t||this.telInput.val("")}this.telInput.off("keypress.plus"+this.ns)},_getNumeric:function(e){return e.replace(/\D/g,"")},_showDropdown:function(){this._setDropdownPosition();var e=this.countryList.children(".active");e.length&&(this._highlightListItem(e),this._scrollTo(e)),this._bindDropdownListeners(),this.selectedFlagInner.children(".iti-arrow").addClass("up")},_setDropdownPosition:function(){var e=this;if(this.options.dropdownContainer&&this.dropdown.appendTo(this.options.dropdownContainer),this.dropdownHeight=this.countryList.removeClass("hide").outerHeight(),!this.isMobile){var t=this.telInput.offset(),r=t.top,i=l(d).scrollTop(),n=r+this.telInput.outerHeight()+this.dropdownHeight<i+l(d).height(),a=r-this.dropdownHeight>i;if(this.countryList.toggleClass("dropup",!n&&a),this.options.dropdownContainer){var o=!n&&a?0:this.telInput.innerHeight();this.dropdown.css({top:r+o,left:t.left}),l(d).on("scroll"+this.ns,function(){e._closeDropdown()})}}},_bindDropdownListeners:function(){var t=this;this.countryList.on("mouseover"+this.ns,".country",function(e){t._highlightListItem(l(this))}),this.countryList.on("click"+this.ns,".country",function(e){t._selectListItem(l(this))});var r=!0;l("html").on("click"+this.ns,function(e){r||t._closeDropdown(),r=!1});var i="",n=null;l(e).on("keydown"+this.ns,function(e){e.preventDefault(),e.which==s||e.which==u?t._handleUpDownKey(e.which):e.which==m?t._handleEnterKey():e.which==c?t._closeDropdown():(e.which>=_&&e.which<=f||e.which==p)&&(n&&clearTimeout(n),i+=String.fromCharCode(e.which),t._searchForCountry(i),n=setTimeout(function(){i=""},1e3))})},_handleUpDownKey:function(e){var t=this.countryList.children(".highlight").first(),r=e==s?t.prev():t.next();r.length&&(r.hasClass("divider")&&(r=e==s?r.prev():r.next()),this._highlightListItem(r),this._scrollTo(r))},_handleEnterKey:function(){var e=this.countryList.children(".highlight").first();e.length&&this._selectListItem(e)},_searchForCountry:function(e){for(var t=0;t<this.countries.length;t++)if(this._startsWith(this.countries[t].name,e)){var r=this.countryList.children("[data-country-code="+this.countries[t].iso2+"]").not(".preferred");this._highlightListItem(r),this._scrollTo(r,!0);break}},_startsWith:function(e,t){return e.substr(0,t.length).toUpperCase()==t},_updateValFromNumber:function(e){if(this.options.formatOnDisplay&&d.intlTelInputUtils&&this.selectedCountryData){var t=this.options.separateDialCode||!this.options.nationalMode&&"+"==e.charAt(0)?intlTelInputUtils.numberFormat.INTERNATIONAL:intlTelInputUtils.numberFormat.NATIONAL;e=intlTelInputUtils.formatNumber(e,this.selectedCountryData.iso2,t)}e=this._beforeSetNumber(e),this.telInput.val(e)},_updateFlagFromNumber:function(e){e&&this.options.nationalMode&&this.selectedCountryData&&"1"==this.selectedCountryData.dialCode&&"+"!=e.charAt(0)&&("1"!=e.charAt(0)&&(e="1"+e),e="+"+e);var t=this._getDialCode(e),r=null,i=this._getNumeric(e);if(t){var n=this.countryCodes[this._getNumeric(t)],a=this.selectedCountryData&&-1<l.inArray(this.selectedCountryData.iso2,n),o="+1"==t&&4<=i.length;if((!(this.selectedCountryData&&"1"==this.selectedCountryData.dialCode)||!this._isRegionlessNanp(i))&&(!a||o))for(var d=0;d<n.length;d++)if(n[d]){r=n[d];break}}else"+"==e.charAt(0)&&i.length?r="":e&&"+"!=e||(r=this.defaultCountry);return null!==r&&this._setFlag(r)},_isRegionlessNanp:function(e){var t=this._getNumeric(e);if("1"!=t.charAt(0))return!1;var r=t.substr(1,3);return-1<l.inArray(r,y)},_highlightListItem:function(e){this.countryListItems.removeClass("highlight"),e.addClass("highlight")},_getCountryData:function(e,t,r){for(var i=t?w:this.countries,n=0;n<i.length;n++)if(i[n].iso2==e)return i[n];if(r)return null;throw new Error("No country data for '"+e+"'")},_setFlag:function(e){var t=this.selectedCountryData&&this.selectedCountryData.iso2?this.selectedCountryData:{};this.selectedCountryData=e?this._getCountryData(e,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.selectedFlagInner.attr("class","iti-flag "+e);var r=e?this.selectedCountryData.name+": +"+this.selectedCountryData.dialCode:"Unknown";if(this.selectedFlagInner.parent().attr("title",r),this.options.separateDialCode){var i=this.selectedCountryData.dialCode?"+"+this.selectedCountryData.dialCode:"",n=this.telInput.parent();t.dialCode&&n.removeClass("iti-sdc-"+(t.dialCode.length+1)),i&&n.addClass("iti-sdc-"+i.length),this.selectedDialCode.text(i)}return this._updatePlaceholder(),this.countryListItems.removeClass("active"),e&&this.countryListItems.find(".iti-flag."+e).first().closest(".country").addClass("active"),t.iso2!==e},_updatePlaceholder:function(){var e="aggressive"===this.options.autoPlaceholder||!this.hadInitialPlaceholder&&(!0===this.options.autoPlaceholder||"polite"===this.options.autoPlaceholder);if(d.intlTelInputUtils&&e&&this.selectedCountryData){var t=intlTelInputUtils.numberType[this.options.placeholderNumberType],r=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,t):"";r=this._beforeSetNumber(r),"function"==typeof this.options.customPlaceholder&&(r=this.options.customPlaceholder(r,this.selectedCountryData)),this.telInput.attr("placeholder",r)}},_selectListItem:function(e){var t=this._setFlag(e.attr("data-country-code"));if(this._closeDropdown(),this._updateDialCode(e.attr("data-dial-code"),!0),this.telInput.focus(),this.isGoodBrowser){var r=this.telInput.val().length;this.telInput[0].setSelectionRange(r,r)}t&&this._triggerCountryChange()},_closeDropdown:function(){this.countryList.addClass("hide"),this.selectedFlagInner.children(".iti-arrow").removeClass("up"),l(e).off(this.ns),l("html").off(this.ns),this.countryList.off(this.ns),this.options.dropdownContainer&&(this.isMobile||l(d).off("scroll"+this.ns),this.dropdown.detach())},_scrollTo:function(e,t){var r=this.countryList,i=r.height(),n=r.offset().top,a=n+i,o=e.outerHeight(),d=e.offset().top,l=d+o,s=d-n+r.scrollTop(),u=i/2-o/2;if(d<n)t&&(s-=u),r.scrollTop(s);else if(a<l){t&&(s+=u);var m=i-o;r.scrollTop(s-m)}},_updateDialCode:function(e,t){var r,i=this.telInput.val();if(e="+"+e,"+"==i.charAt(0)){var n=this._getDialCode(i);r=n?i.replace(n,e):e}else{if(this.options.nationalMode||this.options.separateDialCode)return;if(i)r=e+i;else{if(!t&&this.options.autoHideDialCode)return;r=e}}this.telInput.val(r)},_getDialCode:function(e){var t="";if("+"==e.charAt(0))for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if(l.isNumeric(n)&&(r+=n,this.countryCodes[r]&&(t=e.substr(0,i+1)),4==r.length))break}return t},_getFullNumber:function(){var e=l.trim(this.telInput.val()),t=this.selectedCountryData.dialCode,r=this._getNumeric(e),i="1"==r.charAt(0)?r:"1"+r;return(this.options.separateDialCode?"+"+t:"+"!=e.charAt(0)&&"1"!=e.charAt(0)&&t&&"1"==t.charAt(0)&&4==t.length&&t!=i.substr(0,4)?t.substr(1):"")+e},_beforeSetNumber:function(e){if(this.options.separateDialCode){var t=this._getDialCode(e);if(t){null!==this.selectedCountryData.areaCodes&&(t="+"+this.selectedCountryData.dialCode);var r=" "===e[t.length]||"-"===e[t.length]?t.length+1:t.length;e=e.substr(r)}}return this._cap(e)},_triggerCountryChange:function(){this.telInput.trigger("countrychange",this.selectedCountryData)},handleAutoCountry:function(){"auto"===this.options.initialCountry&&(this.defaultCountry=l.fn[o].autoCountry,this.telInput.val()||this.setCountry(this.defaultCountry),this.autoCountryDeferred.resolve())},handleUtils:function(){d.intlTelInputUtils&&(this.telInput.val()&&this._updateValFromNumber(this.telInput.val()),this._updatePlaceholder()),this.utilsScriptDeferred.resolve()},destroy:function(){if(this.allowDropdown&&(this._closeDropdown(),this.selectedFlagInner.parent().off(this.ns),this.telInput.closest("label").off(this.ns)),this.options.autoHideDialCode){var e=this.telInput.prop("form");e&&l(e).off(this.ns)}this.telInput.off(this.ns),this.telInput.parent().before(this.telInput).remove()},getExtension:function(){return d.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""},getNumber:function(e){return d.intlTelInputUtils?intlTelInputUtils.formatNumber(this._getFullNumber(),this.selectedCountryData.iso2,e):""},getNumberType:function(){return d.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99},getSelectedCountryData:function(){return this.selectedCountryData||{}},getValidationError:function(){return d.intlTelInputUtils?intlTelInputUtils.getValidationError(this._getFullNumber(),this.selectedCountryData.iso2):-99},isValidNumber:function(){var e=l.trim(this._getFullNumber()),t=this.options.nationalMode?this.selectedCountryData.iso2:"";return d.intlTelInputUtils?intlTelInputUtils.isValidNumber(e,t):null},setCountry:function(e){e=e.toLowerCase(),this.selectedFlagInner.hasClass(e)||(this._setFlag(e),this._updateDialCode(this.selectedCountryData.dialCode,!1),this._triggerCountryChange())},setNumber:function(e){var t=this._updateFlagFromNumber(e);this._updateValFromNumber(e),t&&this._triggerCountryChange()}},l.fn[o]=function(r){var t,i=arguments;if(r===a||"object"==typeof r){var n=[];return this.each(function(){if(!l.data(this,"plugin_"+o)){var e=new h(this,r),t=e._init();n.push(t[0]),n.push(t[1]),l.data(this,"plugin_"+o,e)}}),l.when.apply(null,n)}if("string"==typeof r&&"_"!==r[0])return this.each(function(){var e=l.data(this,"plugin_"+o);e instanceof h&&"function"==typeof e[r]&&(t=e[r].apply(e,Array.prototype.slice.call(i,1))),"destroy"===r&&l.data(this,"plugin_"+o,null)}),t!==a?t:this},l.fn[o].getCountryData=function(){return w},l.fn[o].loadUtils=function(e,t){l.fn[o].loadedUtilsScript?t&&t.resolve():(l.fn[o].loadedUtilsScript=!0,l.ajax({type:"GET",url:e,complete:function(){l(".intl-tel-input input").intlTelInput("handleUtils")},dataType:"script",cache:!0}))},l.fn[o].version="11.0.0",l.fn[o].defaults=i;for(var w=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria","at","43"],["Azerbaijan","az","994"],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375"],["Belgium","be","32"],["Belize","bz","501"],["Benin","bj","229"],["Bermuda","bm","1441"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599",1],["Cayman Islands","ky","1345"],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Cote d'Ivoire","ci","225"],["Croatia","hr","385"],["Cuba","cu","53"],["Curacao","cw","599",0],["Cyprus","cy","357"],["Czech Republic","cz","420"],["Denmark","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372"],["Ethiopia","et","251"],["Falkland Islands","fk","500"],["Faroe Islands","fo","298"],["Fiji","fj","679"],["Finland","fi","358",0],["France","fr","33"],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49"],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30"],["Greenland","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590",0],["Guam","gu","1671"],["Guatemala","gt","502"],["Guernsey","gg","44",1],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong","hk","852"],["Hungary","hu","36"],["Iceland","is","354"],["India","in","91"],["Indonesia","ia","62"],["Iran","ir","98"],["Iraq","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2],["Israel","il","972"],["Italy","it","39",0],["Jamaica","jm","1876"],["Japan","jp","81"],["Jersey","je","44",3],["Jordan","jo","962"],["Kazakhstan","kz","7",1],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996"],["Laos","la","856"],["Latvia","lv","371"],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262",1],["Mexico","mx","52"],["Micronesia","fm","691"],["Moldova","md","373"],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Montserrat","ms","1664"],["Morocco","ma","212",0],["Mozambique","mz","258"],["Myanmar (Burma)","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea","kp","850"],["Northern Mariana Islands","mp","1670"],["Norway (Norge)","no","47",0],["Oman","om","968"],["Pakistan","pk","92"],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63"],["Poland","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar","qa","974"],["Reunion","re","262",0],["Romania","ro","40"],["Russia","ru","7",0],["Rwanda","rw","250"],["Saint Barthelemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin","mf","590",2],["Saint Pierre and Miquelon","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["Sao Tome and Principe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1721"],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82"],["South Sudan","ss","211"],["Spain","es","34"],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland","ch","41"],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine","ua","380"],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan","uz","998"],["Vanuatu","vu","678"],["Vatican City","va","39",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis and Futuna","wf","681"],["Western Sahara","eh","212",1],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Aland Islands","ax","358",1]],v=0;v<w.length;v++){var g=w[v];w[v]={name:g[0],iso2:g[1],dialCode:g[2],priority:g[3]||0,areaCodes:g[4]||null}}});var gmapdata=new Array,gmapmarker=new Array;function if_gmap_init(e,t){if(document.getElementById(e+"_element"+t)){map=document.getElementById(e+"_element"+t);var r=parseInt(map.getAttribute("zoom")),i=map.getAttribute("center_x"),n=map.getAttribute("center_y"),a=new google.maps.LatLng(n,i);return gmapdata[e]=new google.maps.Map(document.getElementById(e+"_element"+t),{center:a,zoom:r,mapTypeId:"roadmap"}),gmapmarker[e]=new Array,!1}draggab=!1,map=document.getElementById(e);r=parseInt(map.getAttribute("zoom")),i=map.getAttribute("long"),n=map.getAttribute("lat"),a=new google.maps.LatLng(n,i);return gmapdata=new google.maps.Map(document.getElementById(e),{center:a,zoom:r,mapTypeId:"roadmap"}),geocoder=new google.maps.Geocoder,(gmapmarker=new google.maps.Marker({map:gmapdata,position:a,draggable:draggab})).setDraggable(draggab),infoW=new google.maps.InfoWindow,google.maps.event.addListener(gmapdata,"mouseover",function(e){document.getElementById("longval")||(gmapmarker.draggable=!1)}),google.maps.event.addListener(gmapdata,"click",function(e){document.getElementById("longval")&&(document.getElementById("longval").value=e.latLng.lng().toFixed(6),document.getElementById("latval").value=e.latLng.lat().toFixed(6),gmapmarker.setPosition(e.latLng),if_gmap_updateMap(),geocoder.geocode({latLng:gmapmarker.getPosition()},function(e,t){t==google.maps.GeocoderStatus.OK&&e[0]&&document.getElementById("addrval")&&(document.getElementById("addrval").value=e[0].formatted_address)}))}),google.maps.event.addListener(gmapmarker,"drag",function(){document.getElementById("longval")&&(geocoder.geocode({latLng:gmapmarker.getPosition()},function(e,t){t==google.maps.GeocoderStatus.OK&&e[0]&&document.getElementById("addrval")&&(document.getElementById("addrval").value=e[0].formatted_address)}),if_gmap_updateMap(),document.getElementById("latval").value=gmapmarker.getPosition().lat().toFixed(6),document.getElementById("longval").value=gmapmarker.getPosition().lng().toFixed(6))}),google.maps.event.addListener(gmapmarker,"click",function(){infoW.setContent('<div style="overflow: hidden;">'+document.getElementById(e).getAttribute("info")+"</div>");infoW.setOptions({maxWidth:"300"}),infoW.open(this.getMap(),this)}),document.getElementById("longval")&&(document.getElementById("longval").value=i,document.getElementById("latval").value=n,geocoder.geocode({latLng:gmapmarker.getPosition()},function(e,t){t==google.maps.GeocoderStatus.OK&&e[0]&&document.getElementById("addrval")&&(document.getElementById("addrval").value=e[0].formatted_address)})),!1}function add_marker_on_map(e,t,r,i,n,a,o){var d=new google.maps.LatLng(i,r);return gmapmarker[e][t]=new google.maps.Marker({map:gmapdata[e],position:d,draggable:o}),gmapmarker[e][t].setDraggable(o),o&&google.maps.event.addListener(gmapmarker[e][t],"drag",function(){document.getElementById(e+"_lat"+a).value=gmapmarker[e][t].getPosition().lat().toFixed(6),document.getElementById(e+"_long"+a).value=gmapmarker[e][t].getPosition().lng().toFixed(6)}),infoW=new google.maps.InfoWindow,google.maps.event.addListener(gmapmarker[e][t],"click",function(){infoW.setContent('<div style="overflow: hidden;">'+document.getElementById(e+"_element"+a).getAttribute("info"+t)+"</div>");infoW.setOptions({maxWidth:"300"}),infoW.open(this.getMap(),this)}),!1}
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: webdorado,10web,wdsupport,formmakersupport
3
  Tags: form, forms, form builder, contact form, feedback, custom form, contact, web contact form, captcha, email, form manager, survey
4
  Requires at least: 4.6
5
- Tested up to: 5.6
6
- Stable tag: 1.13.47
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -562,6 +562,13 @@ Where **{{field_id}}** is the ID of the field you wish to prefill. Also, **{{par
562
 
563
  == Changelog ==
564
 
 
 
 
 
 
 
 
565
  = 1.13.47 =
566
  * Improved: Allow using html as field label.
567
  * Improved: Added functionality to use shortcode in email body.
2
  Contributors: webdorado,10web,wdsupport,formmakersupport
3
  Tags: form, forms, form builder, contact form, feedback, custom form, contact, web contact form, captcha, email, form manager, survey
4
  Requires at least: 4.6
5
+ Tested up to: 5.5
6
+ Stable tag: 1.13.48
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
562
 
563
  == Changelog ==
564
 
565
+ = 1.13.48 =
566
+ * Updated: Fancybox library.
567
+ * Fixed: Do not execute after_submit if captcha is not passed.
568
+ * Fixed: Conditional fields with & symbol in single/multiple choice fields.
569
+ * Fixed: Do not show success message on redirecting to the other page.
570
+ * Fixed: Non editable forms in some cases.
571
+
572
  = 1.13.47 =
573
  * Improved: Allow using html as field label.
574
  * Improved: Added functionality to use shortcode in email body.