var c,a=new Array,rated=!1;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()+"
"+label+" - "+span_value+"
")})}}),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()+""+label+" - "+span_value+"
")})}}),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()+""+label+" - "+span_value+"
"))}}),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()+""+label+" - "+span_value+"
"))}}),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()+""+label+" - "+span_value+"
")}});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&&31document.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"+r+""),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||!(31i)))}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"+s+""),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),k=0,cur_page_number=0,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)&&(k++,j==t&&(cur_page_number=k))});var i=document.createElement("span");i.setAttribute("class","page_numbers"),i.innerHTML=cur_page_number+"/"+k,td.appendChild(i)}}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),jt&&(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),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');var r="",i=!1;jQuery(e).children("option").each(function(){jQuery(this).is(":selected")&&(i=jQuery(this).index()),r=r+''+jQuery(this).html()+"
"}),w=jQuery(e)[0].style.width,"100%"==w?w="100%":w=jQuery(e).width()+32+"px";var n=' '+jQuery(e).children("option").eq(i).html()+'
'+r+"
";jQuery(e).addClass("no-width"),jQuery(e).before(n)}jQuery(document).ready(function(){if(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),document.scrollingElement.scrollTop=jQuery(".fm-message").offset().top-100),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}}}),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").removeAttr("selected").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"+r+""),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()||/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-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(""+r+"
"),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(""+r+"
"),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[2]+""),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=jQuery("#form"+e+" .fm-not-filled").closest(".wdform_row"),r=t.closest(".wdform_page");if("none"==r.parent().css("display")){var i=jQuery("#form"+e+" .wdform-page-and-images").length,n=jQuery("#form"+e+" .wdform_page").last().attr("id");n=n.split("form_view");var a=r.attr("id");fm_go_to_page(a=a.split("form_view")[1],e,i,n[1])}var o=jQuery(document).scrollTop(),d=document.body.clientHeight,l=jQuery("#form"+e+" .fm-not-filled").closest("div[wdid]").height(),s=jQuery("#form"+e+" .fm-not-filled").offset().top,u=function(){document.body.clientHeight!==d&&(d=document.body.clientHeight,l=jQuery("#form"+e+" .fm-not-filled").closest("div[wdid]").height(),s=jQuery("#form"+e+" .fm-not-filled").offset().top,jQuery("html").stop(),c())};function m(){old_bg=jQuery(t).css("background-color"),jQuery(t).effect("shake",{},500).css("background-color","#FF8F8B").animate({backgroundColor:old_bg},{duration:500,queue:!1})}function c(){jQuery("html").animate({scrollTop:s-(l+40)},500,function(){document.scrollingElement.scrollTop=s-(l+40),jQuery(window).off("scroll",u),m()})}jQuery(window).on("scroll",u),s"+fm_objectL10n.fm_file_type_error+""),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&&r!=jQuery(t).attr("title")||(_[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()&&jQuery(t).val()!=jQuery(t).attr("title")||(_[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))&&r!=jQuery(t).attr("title")||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()!=jQuery(t).attr("title")&&""!=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(""+fm_objectL10n.fm_field_is_required+"
"),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())"+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")+""),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[1]))&&(jQuery("#form"+i+" #wd_price_"+e).remove(),a.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append(""+fm_objectL10n.fm_spinner_check+(t[0]?t[0]:0)+"-"+(t[1]?t[1]:"any")+"
"),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('').appendTo("#form"+e),window["onsubmit_js"+e](),1==window["checkStripe"+e])?"none"!=jQuery("form[id='form"+e+"']").find(".wdfm_stripe_elem").first().parents(".wdform_row").parents(".wdform_row").css("display")?wdfm_call_stripe(!0):0').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",""))=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",{class:e})),this.flagsContainer=l("",{class:"flag-container"}).insertBefore(this.telInput);var t=l("
",{class:"selected-flag"});t.appendTo(this.flagsContainer),this.selectedFlagInner=l("
",{class:"iti-flag"}).appendTo(t),this.options.separateDialCode&&(this.selectedDialCode=l("
",{class:"selected-dial-code"}).appendTo(t)),this.options.allowDropdown?(t.attr("tabindex","0"),l("
",{class:"iti-arrow"}).appendTo(t),this.countryList=l("