function gformBindFormatPricingFields(){jQuery(".ginput_amount, .ginput_donation_amount").bind("change",function(){gformFormatPricingField(this)}),jQuery(".ginput_amount, .ginput_donation_amount").each(function(){gformFormatPricingField(this)})}function Currency(a){this.currency=a,this.toNumber=function(a){return this.isNumeric(a)?parseFloat(a):gformCleanNumber(a,this.currency.symbol_right,this.currency.symbol_left,this.currency.decimal_separator)},this.toMoney=function(a,b){if(b=b||!1,b||(a=gformCleanNumber(a,this.currency.symbol_right,this.currency.symbol_left,this.currency.decimal_separator)),!1===a)return"";a+="",negative="","-"==a[0]&&(a=parseFloat(a.substr(1)),negative="-"),money=this.numberFormat(a,this.currency.decimals,this.currency.decimal_separator,this.currency.thousand_separator),"0.00"==money&&(negative="");var c=this.currency.symbol_left?this.currency.symbol_left+this.currency.symbol_padding:"",d=this.currency.symbol_right?this.currency.symbol_padding+this.currency.symbol_right:"";return money=negative+this.htmlDecode(c)+money+this.htmlDecode(d),money},this.numberFormat=function(a,b,c,d,e){var e=void 0===e;a=(a+"").replace(",","").replace(" ","");var f=isFinite(+a)?+a:0,g=isFinite(+b)?Math.abs(b):0,h=void 0===d?",":d,i=void 0===c?".":c,j="",k=function(a,b){var c=Math.pow(10,b);return""+Math.round(a*c)/c};return"0"==b?(f+=1e-10,j=(""+Math.round(f)).split(".")):-1==b?j=(""+f).split("."):(f+=1e-10,j=k(f,g).split(".")),j[0].length>3&&(j[0]=j[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,h)),e&&(j[1]||"").length=-32768&&b<=65535?d.replace(c,String.fromCharCode(b)):d.replace(c,"");return d}}function gformCleanNumber(a,b,c,d){var e="",f="",g="",h=!1;a+=" ",a=a.replace(/&.*?;/g,""),a=a.replace(b,""),a=a.replace(c,"");for(var i=0;i=0&&parseInt(g)<=9||g==d?e+=g:"-"==g&&(h=!0);for(var i=0;i="0"&&g<="9"?f+=g:g==d&&(f+=".");return h&&(f="-"+f),!!gformIsNumber(f)&&parseFloat(f)}function gformGetDecimalSeparator(a){var b;switch(a){case"currency":b=new Currency(gf_global.gf_currency_config).currency.decimal_separator;break;case"decimal_comma":b=",";break;default:b="."}return b}function gformIsNumber(a){return!isNaN(parseFloat(a))&&isFinite(a)}function gformIsNumeric(a,b){switch(b){case"decimal_dot":var c=new RegExp("^(-?[0-9]{1,3}(?:,?[0-9]{3})*(?:.[0-9]+)?)$");return c.test(a);case"decimal_comma":var c=new RegExp("^(-?[0-9]{1,3}(?:.?[0-9]{3})*(?:,[0-9]+)?)$");return c.test(a)}return!1}function gformDeleteUploadedFile(a,b,c){var d=jQuery("#field_"+a+"_"+b),e=jQuery(c).parent().index();d.find(".ginput_preview").eq(e).remove(),d.find('input[type="file"],.validation_message,#extensions_message_'+a+"_"+b).removeClass("gform_hidden"),d.find(".ginput_post_image_file").show(),d.find('input[type="text"]').val("");var f=jQuery("#gform_uploaded_files_"+a).val();if(f){var g=jQuery.secureEvalJSON(f);if(g){var h="input_"+b,i=d.find("#gform_multifile_upload_"+a+"_"+b);if(i.length>0){g[h].splice(e,1);var j=i.data("settings"),k=j.gf_vars.max_files;jQuery("#"+j.gf_vars.message_id).html(""),g[h].length0){var e=d.next().val(),f=gformFormatMoney(b,!0);e!=b&&d.next().val(b).change(),f!=d.first().text()&&d.html(f)}}}function gformGetShippingPrice(a){var b=jQuery(".gfield_shipping_"+a+' input[type="hidden"], .gfield_shipping_'+a+" select, .gfield_shipping_"+a+" input:checked"),c=0;return 1!=b.length||gformIsHidden(b)||(c=b.attr("type")&&"hidden"==b.attr("type").toLowerCase()?b.val():gformGetPrice(b.val())),gformToNumber(c)}function gformGetFieldId(a){var b=jQuery(a).attr("id"),c=b.split("_");return c.length<=0?0:c[c.length-1]}function gformCalculateProductPrice(a,b){var c="_"+a+"_"+b;jQuery(".gfield_option"+c+", .gfield_shipping_"+a).find("select").each(function(){var b=jQuery(this),c=gformGetPrice(b.val()),d=b.attr("id").split("_")[2];b.children("option").each(function(){var b=jQuery(this),e=gformGetOptionLabel(b,b.val(),c,a,d);b.html(e)}),b.trigger("chosen:updated")}),jQuery(".gfield_option"+c).find(".gfield_checkbox").find("input:checkbox").each(function(){var b=jQuery(this),c=b.attr("id"),d=c.split("_")[2],e=c.replace("choice_","#label_"),f=jQuery(e),g=gformGetOptionLabel(f,b.val(),0,a,d);f.html(g)}),jQuery(".gfield_option"+c+", .gfield_shipping_"+a).find(".gfield_radio").each(function(){var b=0,c=jQuery(this),d=c.attr("id"),e=d.split("_")[2],f=c.find("input:radio:checked").val();f&&(b=gformGetPrice(f)),c.find("input:radio").each(function(){var c=jQuery(this),d=c.attr("id").replace("choice_","#label_"),f=jQuery(d);if(f){var g=gformGetOptionLabel(f,c.val(),b,a,e);f.html(g)}})});var d=gformGetBasePrice(a,b),e=gformGetProductQuantity(a,b);return e>0&&(jQuery(".gfield_option"+c).find("input:checked, select").each(function(){gformIsHidden(jQuery(this))||(d+=gformGetPrice(jQuery(this).val()))}),_anyProductSelected=!0),d*=e,d=Math.round(100*d)/100}function gformGetProductQuantity(a,b){if(!gformIsProductSelected(a,b))return 0;var c,d,e=jQuery("#ginput_quantity_"+a+"_"+b);if(e.length>0)c=e.val();else if(e=jQuery(".gfield_quantity_"+a+"_"+b+" :input"),c=1,e.length>0){c=e.val();var f=e.attr("id"),g=gf_get_input_id_by_html_id(f);d=gf_get_field_number_format(g,a,"value")}return d||(d="currency"),c=gformCleanNumber(c,"","",gformGetDecimalSeparator(d)),c||(c=0),c}function gformIsProductSelected(a,b){var c="_"+a+"_"+b,d=jQuery("#ginput_base_price"+c+", .gfield_donation"+c+' input[type="text"], .gfield_product'+c+" .ginput_amount");return!(!d.val()||gformIsHidden(d))||(d=jQuery(".gfield_product"+c+" select, .gfield_product"+c+" input:checked, .gfield_donation"+c+" select, .gfield_donation"+c+" input:checked"),!(!d.val()||gformIsHidden(d)))}function gformGetBasePrice(a,b){var c="_"+a+"_"+b,d=0,e=jQuery("#ginput_base_price"+c+", .gfield_donation"+c+' input[type="text"], .gfield_product'+c+" .ginput_amount");if(e.length>0)d=e.val(),gformIsHidden(e)&&(d=0);else{e=jQuery(".gfield_product"+c+" select, .gfield_product"+c+" input:checked, .gfield_donation"+c+" select, .gfield_donation"+c+" input:checked");var f=e.val();f&&(f=f.split("|"),d=f.length>1?f[1]:0),gformIsHidden(e)&&(d=0)}return d=new Currency(gf_global.gf_currency_config).toNumber(d),!1===d?0:d}function gformFormatMoney(a,b){return gf_global.gf_currency_config?new Currency(gf_global.gf_currency_config).toMoney(a,b):a}function gformFormatPricingField(a){if(gf_global.gf_currency_config){var b=new Currency(gf_global.gf_currency_config),c=b.toMoney(jQuery(a).val());jQuery(a).val(c)}}function gformToNumber(a){return new Currency(gf_global.gf_currency_config).toNumber(a)}function gformGetPriceDifference(a,b){var c=parseFloat(b)-parseFloat(a);return price=gformFormatMoney(c,!0),c>0&&(price="+"+price),price}function gformGetOptionLabel(a,b,c,d,e){a=jQuery(a);var f=gformGetPrice(b),g=a.attr("price"),h=a.html().replace(//i,"").replace(g,""),i=gformGetPriceDifference(c,f);i=0==gformToNumber(i)?"":" "+i,a.attr("price",i);var j="option"==a[0].tagName.toLowerCase()?" "+i:""+i+"",k=h+j;return window.gform_format_option_label&&(k=gform_format_option_label(k,h,j,c,f,d,e)),k}function gformGetProductIds(a,b){for(var c=jQuery(b).hasClass(a)?jQuery(b).attr("class").split(" "):jQuery(b).parents("."+a).attr("class").split(" "),d=0;d1&&!1!==c.toNumber(b[1])?c.toNumber(b[1]):0}function gformRegisterPriceField(a){_gformPriceFields[a.formId]||(_gformPriceFields[a.formId]=new Array);for(var b=0;b<_gformPriceFields[a.formId].length;b++)if(_gformPriceFields[a.formId][b]==a.productFieldId)return;_gformPriceFields[a.formId].push(a.productFieldId)}function gformInitPriceFields(){jQuery(".gfield_price").each(function(){gformRegisterPriceField(gformGetProductIds("gfield_price",this)),jQuery(this).on("change",'input[type="text"], input[type="number"], select',function(){var a=gformGetProductIds("gfield_price",this);0==a.formId&&(a=gformGetProductIds("gfield_shipping",this)),jQuery(document).trigger("gform_price_change",[a,this]),gformCalculateTotalPrice(a.formId)}),jQuery(this).on("click",'input[type="radio"], input[type="checkbox"]',function(){var a=gformGetProductIds("gfield_price",this);0==a.formId&&(a=gformGetProductIds("gfield_shipping",this)),jQuery(document).trigger("gform_price_change",[a,this]),gformCalculateTotalPrice(a.formId)})});for(formId in _gformPriceFields)_gformPriceFields.hasOwnProperty(formId)&&gformCalculateTotalPrice(formId)}function gformShowPasswordStrength(a){var b=jQuery("#"+a).val(),c=jQuery("#"+a+"_2").val(),d=gformPasswordStrength(b,c),e=window.gf_text["password_"+d];jQuery("#"+a+"_strength").val(d),jQuery("#"+a+"_strength_indicator").removeClass("blank mismatch short good bad strong").addClass(d).html(e)}function gformPasswordStrength(a,b){var c,d,e=0;return a.length<=0?"blank":a!=b&&b.length>0?"mismatch":a.length<4?"short":(a.match(/[0-9]/)&&(e+=10),a.match(/[a-z]/)&&(e+=26),a.match(/[A-Z]/)&&(e+=26),a.match(/[^a-zA-Z0-9]/)&&(e+=31),c=Math.log(Math.pow(e,a.length)),d=c/Math.LN2,d<40?"bad":d<56?"good":"strong")}function gformAddListItem(a,b){var c=jQuery(a);if(!c.hasClass("gfield_icon_disabled")){var d=c.parents(".gfield_list_group"),e=d.clone(),f=d.parents(".gfield_list_container"),g=e.find(":input:last").attr("tabindex");e.find("input, select, textarea").attr("tabindex",g).not(":checkbox, :radio").val(""),e.find(":checkbox, :radio").prop("checked",!1),e=gform.applyFilters("gform_list_item_pre_add",e,d),d.after(e),gformToggleIcons(f,b),gformAdjustClasses(f),gform.doAction("gform_list_post_item_add",e,f)}}function gformDeleteListItem(a,b){var c=jQuery(a),d=c.parents(".gfield_list_group"),e=d.parents(".gfield_list_container");d.remove(),gformToggleIcons(e,b),gformAdjustClasses(e),gform.doAction("gform_list_post_item_delete",e)}function gformAdjustClasses(a){a.find(".gfield_list_group").each(function(a){var b=jQuery(this),c=(a+1)%2==0?"gfield_list_row_even":"gfield_list_row_odd";b.removeClass("gfield_list_row_odd gfield_list_row_even").addClass(c)})}function gformToggleIcons(a,b){var c=a.find(".gfield_list_group").length,d=a.find(".add_list_item");a.find(".delete_list_item").css("visibility",1==c?"hidden":"visible"),b>0&&c>=b?(d.data("title",a.find(".add_list_item").attr("title")),d.addClass("gfield_icon_disabled").attr("title","")):b>0&&(d.removeClass("gfield_icon_disabled"),d.data("title")&&d.attr("title",d.data("title")))}function gformMatchCard(a){var b=gformFindCardType(jQuery("#"+a).val()),c=jQuery("#"+a).parents(".gfield").find(".gform_card_icon_container");b?(jQuery(c).find(".gform_card_icon").removeClass("gform_card_icon_selected").addClass("gform_card_icon_inactive"),jQuery(c).find(".gform_card_icon_"+b).removeClass("gform_card_icon_inactive").addClass("gform_card_icon_selected")):jQuery(c).find(".gform_card_icon").removeClass("gform_card_icon_selected gform_card_icon_inactive")}function gformFindCardType(a){if(a.length<4)return!1;var b=window.gf_cc_rules,c=new Array;for(type in b)if(b.hasOwnProperty(type))for(i in b[type])if(b[type].hasOwnProperty(i)&&0===b[type][i].indexOf(a.substring(0,b[type][i].length))){c[c.length]=type;break}return 1==c.length&&c[0].toLowerCase()}function gformToggleCreditCard(){jQuery("#gform_payment_method_creditcard").is(":checked")?jQuery(".gform_card_fields_container").slideDown():jQuery(".gform_card_fields_container").slideUp()}function gformInitChosenFields(a,b){return jQuery(a).each(function(){var a=jQuery(this);if("rtl"==jQuery("html").attr("dir")&&a.addClass("chosen-rtl chzn-rtl"),a.is(":visible")&&0==a.siblings(".chosen-container").length){var c=gform.applyFilters("gform_chosen_options",{no_results_text:b},a);a.chosen(c)}})}function gformInitCurrencyFormatFields(a){jQuery(a).each(function(){jQuery(this).val(gformFormatMoney(jQuery(this).val()))}).change(function(a){jQuery(this).val(gformFormatMoney(jQuery(this).val()))})}function gformFormatNumber(a,b,c,d){if(void 0===c)if(window.gf_global){var e=new Currency(gf_global.gf_currency_config);c=e.currency.decimal_separator}else c=".";if(void 0===d)if(window.gf_global){var e=new Currency(gf_global.gf_currency_config);d=e.currency.thousand_separator}else d=",";var e=new Currency;return e.numberFormat(a,b,c,d,!1)}function gformToNumber(a){return new Currency(gf_global.gf_currency_config).toNumber(a)}function getMatchGroups(a,b){for(var c=new Array;b.test(a);){var d=c.length;c[d]=b.exec(a),a=a.replace(""+c[d][0],"")}return c}function gf_get_field_number_format(a,b,c){var d=rgars(window,"gf_global/number_formats/{0}/{1}".format(b,a)),e=!1;return""===d?e:e=void 0===c?!1!==d.price?d.price:d.value:d[c]}function renderRecaptcha(){jQuery(".ginput_recaptcha").each(function(){var a=jQuery(this),b={sitekey:a.data("sitekey"),theme:a.data("theme")};a.is(":empty")&&(a.data("stoken")&&(b.stoken=a.data("stoken")),grecaptcha.render(this.id,b),gform.doAction("gform_post_recaptcha_render",a))})}function gformValidateFileSize(a,b){if(jQuery(a).closest("div").siblings(".validation_message").length>0)var c=jQuery(a).closest("div").siblings(".validation_message");else var c=jQuery(a).siblings(".validation_message");if(window.FileReader&&window.File&&window.FileList&&window.Blob){var d=a.files[0];if(d.size>b){c.html(d.name+" - "+gform_gravityforms.strings.file_exceeds_limit);var e=jQuery(a);e.replaceWith(e.val("").clone(!0))}else c.html("")}}function gformInitSpinner(a,b){jQuery("#gform_"+a).submit(function(){gformAddSpinner(a,b)})}function gformAddSpinner(a,b){if(void 0!==b&&b||(b=gform.applyFilters("gform_spinner_url",gf_global.spinnerUrl,a)),0==jQuery("#gform_ajax_spinner_"+a).length){gform.applyFilters("gform_spinner_target_elem",jQuery("#gform_submit_button_"+a+", #gform_wrapper_"+a+" .gform_next_button, #gform_send_resume_link_button_"+a),a).after('')}}function gf_raw_input_change(a,b){clearTimeout(__gf_keyup_timeout);var c=jQuery(b),d=c.attr("id"),e=gf_get_input_id_by_html_id(d),f=gf_get_form_id_by_html_id(d);if(e){var g=c.is(":checkbox")||c.is(":radio")||c.is("select"),h=!g||c.is("textarea");("keyup"!=a.type||h)&&("change"!=a.type||g||h)&&("keyup"==a.type?__gf_keyup_timeout=setTimeout(function(){gf_input_change(this,f,e)},300):gf_input_change(this,f,e))}}function gf_get_input_id_by_html_id(a){var b=gf_get_ids_by_html_id(a),c=b[2];return b[3]&&(c+="."+b[3]),c}function gf_get_form_id_by_html_id(a){return gf_get_ids_by_html_id(a)[1]}function gf_get_ids_by_html_id(a){return!!a&&a.split("_")}function gf_input_change(a,b,c){gform.doAction("gform_input_change",a,b,c)}function gformExtractFieldId(a){var b=parseInt(a.toString().split(".")[0]);return b||a}function gformExtractInputIndex(a){var b=parseInt(a.toString().split(".")[1]);return b||!1}function rgars(a,b){for(var c=b.split("/"),d=a,e=0;e1||"checkbox"==h.prop("type"))&&(h=h.filter(":checked"));var j=!window.gf_check_field_rule||"show"==gf_check_field_rule(a,f,!0,"");if(h.length>0&&j){var k=h.val();k=k.split("|"),g=k.length>1?k[1]:h.val()}var l=gf_get_field_number_format(f,a);l||(l=gf_get_field_number_format(c.field_id,a));var m=gformGetDecimalSeparator(l);g=gform.applyFilters("gform_merge_tag_value_pre_calculation",g,d[i],j,c,a),g=gformCleanNumber(g,"","",m),g||(g=0),b=b.replace(d[i][0],g)}return b},this.init(formId,formulaFields)},gform={hooks:{action:{},filter:{}},addAction:function(a,b,c,d){gform.addHook("action",a,b,c,d)},addFilter:function(a,b,c,d){gform.addHook("filter",a,b,c,d)},doAction:function(a){gform.doHook("action",a,arguments)},applyFilters:function(a){return gform.doHook("filter",a,arguments)},removeAction:function(a,b){gform.removeHook("action",a,b)},removeFilter:function(a,b,c){gform.removeHook("filter",a,b,c)},addHook:function(a,b,c,d,e){void 0==gform.hooks[a][b]&&(gform.hooks[a][b]=[]);var f=gform.hooks[a][b];void 0==e&&(e=b+"_"+f.length),void 0==d&&(d=10),gform.hooks[a][b].push({tag:e,callable:c,priority:d})},doHook:function(a,b,c){if(c=Array.prototype.slice.call(c,1),void 0!=gform.hooks[a][b]){var d,e=gform.hooks[a][b];e.sort(function(a,b){return a.priority-b.priority});for(var f=0;f=0;f--)void 0!=d&&d!=e[f].tag||void 0!=c&&c!=e[f].priority||e.splice(f,1)}};!function(a,b){function c(c){function g(a,c){b("#"+a).prepend("
  • "+c+"
  • ")}function h(){var a,c="#gform_uploaded_files_"+q,d=b(c);return a=d.val(),a=void 0===a||""===a?{}:b.parseJSON(a)}function i(a){var b=h(),c=m(a);return void 0===b[c]&&(b[c]=[]),b[c]}function j(a){return i(a).length}function k(a,b){var c=i(a);c.unshift(b),l(a,c)}function l(a,c){var d=h(),e=b("#gform_uploaded_files_"+q);d[m(a)]=c,e.val(b.toJSON(d))}function m(a){return"input_"+a}function n(a){a.preventDefault()}var o=b(c).data("settings"),p=new plupload.Uploader(o);q=p.settings.multipart_params.form_id,a.uploaders[o.container]=p;var q,r;p.bind("Init",function(c,d){c.features.dragdrop||b(".gform_drop_instructions").hide();var e=c.settings.multipart_params.field_id,f=parseInt(c.settings.gf_vars.max_files),g=j(e);f>0&&g>=f&&a.toggleDisabled(c.settings,!0)}),a.toggleDisabled=function(a,c){b("string"==typeof a.browse_button?"#"+a.browse_button:a.browse_button).prop("disabled",c)},p.init(),p.bind("FilesAdded",function(c,f){var h,i=parseInt(c.settings.gf_vars.max_files),k=c.settings.multipart_params.field_id,l=j(k),m=c.settings.gf_vars.disallowed_extensions;if(i>0&&l>=i)return void b.each(f,function(a,b){c.removeFile(b)});b.each(f,function(a,d){if(h=d.name.split(".").pop(),b.inArray(h,m)>-1)return g(c.settings.gf_vars.message_id,d.name+" - "+e.illegal_extension),void c.removeFile(d);if(d.status==plupload.FAILED||i>0&&l>=i)return void c.removeFile(d);var f=void 0!==d.size?plupload.formatSize(d.size):e.in_progress,j='
    '+d.name+" ("+f+') "+e.cancel+"
    ";b("#"+c.settings.filelist).prepend(j),l++}),c.refresh();var n="form#gform_"+q,o="input:hidden[name='gform_unique_id']",p=n+" "+o,s=b(p);0==s.length&&(s=b(o)),r=s.val(),""===r&&(r=d(),s.val(r)),i>0&&l>=i&&(a.toggleDisabled(c.settings,!0),g(c.settings.gf_vars.message_id,e.max_reached)),c.settings.multipart_params.gform_unique_id=r,c.start()}),p.bind("UploadProgress",function(a,c){var d=c.percent+"%";b("#"+c.id+" b").html(d)}),p.bind("Error",function(a,c){if(c.code===plupload.FILE_EXTENSION_ERROR){var d=void 0!==a.settings.filters.mime_types?a.settings.filters.mime_types[0].extensions:a.settings.filters[0].extensions;g(a.settings.gf_vars.message_id,c.file.name+" - "+e.invalid_file_extension+" "+d)}else if(c.code===plupload.FILE_SIZE_ERROR)g(a.settings.gf_vars.message_id,c.file.name+" - "+e.file_exceeds_limit);else{var f="
  • Error: "+c.code+", Message: "+c.message+(c.file?", File: "+c.file.name:"")+"
  • ";g(a.settings.gf_vars.message_id,f)}b("#"+c.file.id).html(""),a.refresh()}),p.bind("FileUploaded",function(a,c,d){var h=b.secureEvalJSON(d.response);if("error"==h.status)return g(a.settings.gf_vars.message_id,c.name+" - "+h.error.message),void b("#"+c.id).html("");var i=""+c.name+"",j=a.settings.multipart_params.form_id,l=a.settings.multipart_params.field_id;i=""+e.delete_file+" "+i,i=gform.applyFilters("gform_file_upload_markup",i,c,a,e,f),b("#"+c.id).html(i);var m=a.settings.multipart_params.field_id;100==c.percent&&(h.status&&"ok"==h.status?k(m,h.data):g(a.settings.gf_vars.message_id,e.unknown_error+": "+c.name))}),b("#"+o.drop_element).on({dragenter:n,dragover:n})}function d(){return"xxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:3&b|8).toString(16)})}a.uploaders={};var e="undefined"!=typeof gform_gravityforms?gform_gravityforms.strings:{},f="undefined"!=typeof gform_gravityforms?gform_gravityforms.vars.images_url:"";b(document).bind("gform_post_render",function(d,f){b("form#gform_"+f+" .gform_fileupload_multifile").each(function(){c(this)});var g=b("form#gform_"+f);g.length>0&&g.submit(function(){var c=!1;if(b.each(a.uploaders,function(a,b){if(b.total.queued>0)return c=!0,!1}),c)return alert(e.currently_uploading),window["gf_submitting_"+f]=!1,b("#gform_ajax_spinner_"+f).remove(),!1})}),b(document).bind("gform_post_conditional_logic",function(c,d,e,f){f||b.each(a.uploaders,function(a,b){b.refresh()})}),b(document).ready(function(){"undefined"!=typeof adminpage&&"toplevel_page_gf_edit_forms"===adminpage||"undefined"==typeof plupload?b(".gform_button_select_files").prop("disabled",!0):"undefined"!=typeof adminpage&&adminpage.indexOf("_page_gf_entries")>-1&&b(".gform_fileupload_multifile").each(function(){c(this)})}),a.setup=function(a){c(a)}}(window.gfMultiFileUploader=window.gfMultiFileUploader||{},jQuery);var __gf_keyup_timeout;jQuery(document).on("change keyup",".gfield_trigger_change input, .gfield_trigger_change select, .gfield_trigger_change textarea",function(a){gf_raw_input_change(a,this)}),window.rgars,window.rgar,String.prototype.format=function(){var a=arguments;return this.replace(/{(\d+)}/g,function(b,c){return void 0!==a[c]?a[c]:b})}; function gf_apply_rules(a,b,c){var d=0;jQuery(document).trigger("gform_pre_conditional_logic",[a,b,c]);for(var e=0;e0?b.actionType:"show"==b.actionType?"hide":"show"}function gf_is_match(a,b){var c,d=jQuery,e=b.fieldId,f=gformExtractFieldId(e),g=gformExtractInputIndex(e),h=!1!==g;c=d(h?"#input_{0}_{1}_{2}".format(a,f,g):'input[id="input_{0}_{1}"], input[id^="input_{0}_{1}_"], input[id^="choice_{0}_{1}_"], select#input_{0}_{1}, textarea#input_{0}_{1}'.format(a,b.fieldId));var i=-1!==d.inArray(c.attr("type"),["checkbox","radio"]),j=i?gf_is_match_checkable(c,b,a,f):gf_is_match_default(c.eq(0),b,a,f);return gform.applyFilters("gform_is_value_match",j,a,b)}function gf_is_match_checkable(a,b,c,d){var e=!1;return a.each(function(){var a=jQuery(this),f=gf_get_value(a.val()),g=-1!==jQuery.inArray(b.operator,["<",">"]),h=-1!==jQuery.inArray(b.operator,["contains","starts_with","ends_with"]);if(f==b.value||g||h)return a.is(":checked")?"gf_other_choice"==f&&(f=$("#input_{0}_{1}_other".format(c,d)).val()):f="",gf_matches_operation(f,b.value,b.operator)?(e=!0,!1):void 0}),e}function gf_is_match_default(a,b,c,d){for(var e=a.val(),f=e instanceof Array?e:[e],g=0,h=0;h=0,j=gf_get_value(f[h]),k=gf_get_field_number_format(b.fieldId,c,"value");k&&!i&&(j=gf_format_number(j,k));gf_matches_operation(j,b.value,b.operator)&&g++}return"isnot"==b.operator?g==f.length:g>0}function gf_format_number(a,b){return decimalSeparator=".","currency"==b?decimalSeparator=gformGetDecimalSeparator("currency"):"decimal_comma"==b?decimalSeparator=",":"decimal_dot"==b&&(decimalSeparator="."),a=gformCleanNumber(a,"","",decimalSeparator),a||(a=0),number=a.toString(),number}function gf_try_convert_float(a){var b="decimal_dot";if(gformIsNumeric(a,b)){var c="decimal_comma"==b?",":".";return gformCleanNumber(a,"","",c)}return a}function gf_matches_operation(a,b,c){switch(a=a?a.toLowerCase():"",b=b?b.toLowerCase():"",c){case"is":return a==b;case"isnot":return a!=b;case">":return a=gf_try_convert_float(a),b=gf_try_convert_float(b),!(!gformIsNumber(a)||!gformIsNumber(b))&&a>b;case"<":return a=gf_try_convert_float(a),b=gf_try_convert_float(b),!(!gformIsNumber(a)||!gformIsNumber(b))&&a=0;case"starts_with":return 0==a.indexOf(b);case"ends_with":var d=a.length-b.length;if(d<0)return!1;return b==a.substring(d)}return!1}function gf_get_value(a){return a?(a=a.split("|"),a[0]):""}function gf_do_field_action(a,b,c,d,e){for(var f=window.gf_form_conditional_logic[a],g=f.dependents[c],h=0;h0?h.slideDown(f):f&&f();else{var i=h.data("gf_display");""!=i&&"none"!=i||(i="list-item"),h.css("display",i),f&&f()}else{var j=h.children().first();if(j.length>0){gform.applyFilters("gform_reset_pre_conditional_logic_field_action",!0,g,b,d,e)&&!gformIsHidden(j)&&gf_reset_to_default(b,d)}h.find("select").each(function(){$select=jQuery(this),$select.data("tabindex",$select.attr("tabindex")).removeAttr("tabindex")}),h.data("gf_display")||h.data("gf_display",h.css("display")),c&&!e?h.length>0&&h.is(":visible")?h.slideUp(f):f&&f():(h.hide(),f&&f())}}function gf_reset_to_default(a,b){var c=jQuery(a).find(".gfield_date_month input, .gfield_date_day input, .gfield_date_year input, .gfield_date_dropdown_month select, .gfield_date_dropdown_day select, .gfield_date_dropdown_year select");if(c.length>0)return void c.each(function(){var a=jQuery(this);if(b){var c="d";a.parents().hasClass("gfield_date_month")||a.parents().hasClass("gfield_date_dropdown_month")?c="m":(a.parents().hasClass("gfield_date_year")||a.parents().hasClass("gfield_date_dropdown_year"))&&(c="y"),val=b[c]}else val="";"SELECT"==a.prop("tagName")&&""!=val&&(val=parseInt(val)),a.val()!=val?a.val(val).trigger("change"):a.val(val)});var d=jQuery(a).find('select, input[type="text"]:not([id*="_shim"]), input[type="number"], textarea'),e=0;d.each(function(){var a="",c=jQuery(this);if("gf_other_choice"==c.prev("input").attr("value"))a=c.attr("value");else if(jQuery.isArray(b))a=b[e];else if(jQuery.isPlainObject(b)){if(!(a=b[c.attr("name")])){var d=c.attr("id").split("_").slice(2).join(".");a=b[d]}}else b&&(a=b);c.is("select:not([multiple])")&&!a&&(a=c.find("option").not(":disabled").eq(0).val()),c.val()!=a?(c.val(a).trigger("change"),c.is("select")&&c.next().hasClass("chosen-container")&&c.trigger("chosen:updated")):c.val(a),e++}),jQuery(a).find('input[type="radio"], input[type="checkbox"]:not(".copy_values_activated")').each(function(){var a=!!jQuery(this).is(":checked"),c=!!b&&jQuery.inArray(jQuery(this).attr("id"),b)>-1;a!=c&&("checkbox"==jQuery(this).attr("type")?jQuery(this).trigger("click"):(jQuery(this).prop("checked",c),jQuery(this).trigger("click").prop("checked",c)))})}var __gf_timeout_handle;gform.addAction("gform_input_change",function(a,b,c){var d=rgars(gf_form_conditional_logic,[b,"fields",gformExtractFieldId(c)].join("/"));d&&gf_apply_rules(b,d)},10); !function(a){a.fn.textareaCount=function(b,c){function d(a){var b,c=0;for(b=0;b0&&(a=a.replace("#max",q),a=a.replace("#left",r)),a}function f(){return{input:p,max:q,left:r,words:s}}function g(a){return a.next(".charleft")}function h(){return-1!==navigator.appVersion.toLowerCase().indexOf("win")}function i(a){var b=a+" ",c=/^[^A-Za-z0-9]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9]+/gi;return d.replace(e," ").split(" ")}function j(a){return a.length-1}function k(){var a,c,f,g=o.val(),k="function"==typeof b.charCounter?b.charCounter:t[b.charCounter],l=k(g);return b.maxCharacterSize>0?(b.truncate&&l>=b.maxCharacterSize&&(g=g.substring(0,b.maxCharacterSize)),a=d(g),c=b.maxCharacterSize,h()&&(c=b.maxCharacterSize-a),b.truncate&&l>c&&(f=this.scrollTop,o.val(g.substring(0,c)),this.scrollTop=f),m.removeClass(b.warningStyle+" "+b.errorStyle),c-l<=b.warningNumber&&m.addClass(b.warningStyle),c-l<0&&m.addClass(b.errorStyle),p=l,h()&&(p=l+a),s=j(i(o.val())),r=q-p):(a=d(g),p=l,h()&&(p=l+a),s=j(i(o.val()))),e()}function l(){return m.html(k()),void 0!==c&&c.call(this,f()),!0}var m,n={maxCharacterSize:-1,truncate:!0,charCounter:"standard",originalStyle:"originalTextareaInfo",warningStyle:"warningTextareaInfo",errorStyle:"errorTextareaInfo",warningNumber:20,displayFormat:"#input characters | #words words"},o=a(this),p=0,q=b.maxCharacterSize,r=0,s=0,t={};t.standard=function(a){return a.length},t.twitter=function(a){var b=22,c=Array(b+1).join("*"),d="(https?://)?([a-z0-9+!*(),;?&=$_.-]+(:[a-z0-9+!*(),;?&=$_.-]+)?@)?([a-z0-9-.]*)\\.(travel|museum|[a-z]{2,4})(:[0-9]{2,5})?(/([a-z0-9+$_-]\\.?)+)*/?(\\?[a-z+&$_.-][a-z0-9;:@&%=+/$_.-]*)?(#[a-z_.-][a-z0-9+$_.-]*)?",e=new RegExp(d,"gi");return a.replace(e,c).length},b=a.extend(n,b),a("
     
    ").insertAfter(o),m=g(o),m.addClass(b.originalStyle),l(),o.bind("keyup",function(){l()}).bind("mouseover paste",function(){setTimeout(function(){l()},10)})}}(jQuery); !function(){var a,AbstractChosen,Chosen,SelectParser,b,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};SelectParser=function(){function SelectParser(){this.options_index=0,this.parsed=[]}return SelectParser.prototype.add_node=function(a){return"OPTGROUP"===a.nodeName.toUpperCase()?this.add_group(a):this.add_option(a)},SelectParser.prototype.add_group=function(a){var b,c,d,e,f,g;for(b=this.parsed.length,this.parsed.push({array_index:b,group:!0,label:this.escapeExpression(a.label),children:0,disabled:a.disabled}),f=a.childNodes,g=[],d=0,e=f.length;e>d;d++)c=f[d],g.push(this.add_option(c,b,a.disabled));return g},SelectParser.prototype.add_option=function(a,b,c){return"OPTION"===a.nodeName.toUpperCase()?(""!==a.text?(null!=b&&(this.parsed[b].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:a.value,text:a.text,html:a.innerHTML,selected:a.selected,disabled:c===!0?c:a.disabled,group_array_index:b,classes:a.className,style:a.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},SelectParser.prototype.escapeExpression=function(a){var b,c;return null==a||a===!1?"":/[\&\<\>\"\'\`]/.test(a)?(b={"<":"<",">":">",'"':""","'":"'","`":"`"},c=/&(?!\w+;)|[\<\>\"\'\`]/g,a.replace(c,function(a){return b[a]||"&"})):a},SelectParser}(),SelectParser.select_to_array=function(a){var b,c,d,e,f;for(c=new SelectParser,f=a.childNodes,d=0,e=f.length;e>d;d++)b=f[d],c.add_node(b);return c.parsed},AbstractChosen=function(){function AbstractChosen(a,b){this.form_field=a,this.options=null!=b?b:{},AbstractChosen.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers())}return AbstractChosen.prototype.set_default_values=function(){var a=this;return this.click_test_action=function(b){return a.test_active_click(b)},this.activate_action=function(b){return a.activate_field(b)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null!=this.options.enable_split_word_search?this.options.enable_split_word_search:!0,this.group_search=null!=this.options.group_search?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null!=this.options.single_backstroke_delete?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null!=this.options.display_selected_options?this.options.display_selected_options:!0,this.display_disabled_options=null!=this.options.display_disabled_options?this.options.display_disabled_options:!0},AbstractChosen.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||AbstractChosen.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||AbstractChosen.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||AbstractChosen.default_no_result_text},AbstractChosen.prototype.mouse_enter=function(){return this.mouse_on_container=!0},AbstractChosen.prototype.mouse_leave=function(){return this.mouse_on_container=!1},AbstractChosen.prototype.input_focus=function(){var a=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return a.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},AbstractChosen.prototype.input_blur=function(){var a=this;return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return a.blur_test()},100))},AbstractChosen.prototype.results_option_build=function(a){var b,c,d,e,f;for(b="",f=this.results_data,d=0,e=f.length;e>d;d++)c=f[d],b+=c.group?this.result_add_group(c):this.result_add_option(c),(null!=a?a.first:void 0)&&(c.selected&&this.is_multiple?this.choice_build(c):c.selected&&!this.is_multiple&&this.single_set_selected_text(c.text));return b},AbstractChosen.prototype.result_add_option=function(a){var b,c;return a.search_match?this.include_option_in_results(a)?(b=[],a.disabled||a.selected&&this.is_multiple||b.push("active-result"),!a.disabled||a.selected&&this.is_multiple||b.push("disabled-result"),a.selected&&b.push("result-selected"),null!=a.group_array_index&&b.push("group-option"),""!==a.classes&&b.push(a.classes),c=document.createElement("li"),c.className=b.join(" "),c.style.cssText=a.style,c.setAttribute("data-option-array-index",a.array_index),c.innerHTML=a.search_text,this.outerHTML(c)):"":""},AbstractChosen.prototype.result_add_group=function(a){var b;return a.search_match||a.group_match?a.active_options>0?(b=document.createElement("li"),b.className="group-result",b.innerHTML=a.search_text,this.outerHTML(b)):"":""},AbstractChosen.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing?this.winnow_results():void 0},AbstractChosen.prototype.reset_single_select_options=function(){var a,b,c,d,e;for(d=this.results_data,e=[],b=0,c=d.length;c>b;b++)a=d[b],a.selected?e.push(a.selected=!1):e.push(void 0);return e},AbstractChosen.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},AbstractChosen.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},AbstractChosen.prototype.winnow_results=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m;for(this.no_results_clear(),e=0,g=this.get_search_text(),a=g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),d=this.search_contains?"":"^",c=new RegExp(d+a,"i"),j=new RegExp(a,"i"),m=this.results_data,k=0,l=m.length;l>k;k++)b=m[k],b.search_match=!1,f=null,this.include_option_in_results(b)&&(b.group&&(b.group_match=!1,b.active_options=0),null!=b.group_array_index&&this.results_data[b.group_array_index]&&(f=this.results_data[b.group_array_index],0===f.active_options&&f.search_match&&(e+=1),f.active_options+=1),(!b.group||this.group_search)&&(b.search_text=b.group?b.label:b.html,b.search_match=this.search_string_match(b.search_text,c),b.search_match&&!b.group&&(e+=1),b.search_match?(g.length&&(h=b.search_text.search(j),i=b.search_text.substr(0,h+g.length)+""+b.search_text.substr(h+g.length),b.search_text=i.substr(0,h)+""+i.substr(h)),null!=f&&(f.group_match=!0)):null!=b.group_array_index&&this.results_data[b.group_array_index].search_match&&(b.search_match=!0)));return this.result_clear_highlight(),1>e&&g.length?(this.update_results_content(""),this.no_results(g)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},AbstractChosen.prototype.search_string_match=function(a,b){var c,d,e,f;if(b.test(a))return!0;if(this.enable_split_word_search&&(a.indexOf(" ")>=0||0===a.indexOf("["))&&(d=a.replace(/\[|\]/g,"").split(" "),d.length))for(e=0,f=d.length;f>e;e++)if(c=d[e],b.test(c))return!0},AbstractChosen.prototype.choices_count=function(){var a,b,c,d;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,d=this.form_field.options,b=0,c=d.length;c>b;b++)a=d[b],a.selected&&(this.selected_option_count+=1);return this.selected_option_count},AbstractChosen.prototype.choices_click=function(a){return a.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},AbstractChosen.prototype.keyup_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),b){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(a.preventDefault(),this.results_showing)return this.result_select(a);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},AbstractChosen.prototype.clipboard_event_checker=function(){var a=this;return setTimeout(function(){return a.results_search()},50)},AbstractChosen.prototype.container_width=function(){return null!=this.options.width?this.options.width:""+this.form_field.offsetWidth+"px"},AbstractChosen.prototype.include_option_in_results=function(a){return this.is_multiple&&!this.display_selected_options&&a.selected?!1:!this.display_disabled_options&&a.disabled?!1:a.empty?!1:!0},AbstractChosen.prototype.search_results_touchstart=function(a){return this.touch_started=!0,this.search_results_mouseover(a)},AbstractChosen.prototype.search_results_touchmove=function(a){return this.touch_started=!1,this.search_results_mouseout(a)},AbstractChosen.prototype.search_results_touchend=function(a){return this.touch_started?this.search_results_mouseup(a):void 0},AbstractChosen.prototype.outerHTML=function(a){var b;return a.outerHTML?a.outerHTML:(b=document.createElement("div"),b.appendChild(a),b.innerHTML)},AbstractChosen.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:/iP(od|hone)/i.test(window.navigator.userAgent)?!1:/Android/i.test(window.navigator.userAgent)&&/Mobile/i.test(window.navigator.userAgent)?!1:!0},AbstractChosen.default_multiple_text="Select Some Options",AbstractChosen.default_single_text="Select an Option",AbstractChosen.default_no_result_text="No results match",AbstractChosen}(),a=jQuery,a.fn.extend({chosen:function(b){return AbstractChosen.browser_is_supported()?this.each(function(){var c,d;c=a(this),d=c.data("chosen"),"destroy"===b&&d?d.destroy():d||c.data("chosen",new Chosen(this,b))}):this}}),Chosen=function(c){function Chosen(){return b=Chosen.__super__.constructor.apply(this,arguments)}return d(Chosen,c),Chosen.prototype.setup=function(){return this.form_field_jq=a(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},Chosen.prototype.set_up_html=function(){var b,c;return b=["chosen-container"],b.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&b.push(this.form_field.className),this.is_rtl&&b.push("chosen-rtl"),c={"class":b.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(c.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=a("
    ",c),this.is_multiple?this.container.html('
      '):this.container.html(''+this.default_text+'
        '),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("chosen:ready",{chosen:this})},Chosen.prototype.register_observers=function(){var a=this;return this.container.bind("mousedown.chosen",function(b){a.container_mousedown(b)}),this.container.bind("mouseup.chosen",function(b){a.container_mouseup(b)}),this.container.bind("mouseenter.chosen",function(b){a.mouse_enter(b)}),this.container.bind("mouseleave.chosen",function(b){a.mouse_leave(b)}),this.search_results.bind("mouseup.chosen",function(b){a.search_results_mouseup(b)}),this.search_results.bind("mouseover.chosen",function(b){a.search_results_mouseover(b)}),this.search_results.bind("mouseout.chosen",function(b){a.search_results_mouseout(b)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(b){a.search_results_mousewheel(b)}),this.search_results.bind("touchstart.chosen",function(b){a.search_results_touchstart(b)}),this.search_results.bind("touchmove.chosen",function(b){a.search_results_touchmove(b)}),this.search_results.bind("touchend.chosen",function(b){a.search_results_touchend(b)}),this.form_field_jq.bind("chosen:updated.chosen",function(b){a.results_update_field(b)}),this.form_field_jq.bind("chosen:activate.chosen",function(b){a.activate_field(b)}),this.form_field_jq.bind("chosen:open.chosen",function(b){a.container_mousedown(b)}),this.form_field_jq.bind("chosen:close.chosen",function(b){a.input_blur(b)}),this.search_field.bind("blur.chosen",function(b){a.input_blur(b)}),this.search_field.bind("keyup.chosen",function(b){a.keyup_checker(b)}),this.search_field.bind("keydown.chosen",function(b){a.keydown_checker(b)}),this.search_field.bind("focus.chosen",function(b){a.input_focus(b)}),this.search_field.bind("cut.chosen",function(b){a.clipboard_event_checker(b)}),this.search_field.bind("paste.chosen",function(b){a.clipboard_event_checker(b)}),this.is_multiple?this.search_choices.bind("click.chosen",function(b){a.choices_click(b)}):this.container.bind("click.chosen",function(a){a.preventDefault()})},Chosen.prototype.destroy=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},Chosen.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},Chosen.prototype.container_mousedown=function(b){return this.is_disabled||(b&&"mousedown"===b.type&&!this.results_showing&&b.preventDefault(),null!=b&&a(b.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!b||a(b.target)[0]!==this.selected_item[0]&&!a(b.target).parents("a.chosen-single").length||(b.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),a(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},Chosen.prototype.container_mouseup=function(a){return"ABBR"!==a.target.nodeName||this.is_disabled?void 0:this.results_reset(a)},Chosen.prototype.search_results_mousewheel=function(a){var b;return a.originalEvent&&(b=-a.originalEvent.wheelDelta||a.originalEvent.detail),null!=b?(a.preventDefault(),"DOMMouseScroll"===a.type&&(b=40*b),this.search_results.scrollTop(b+this.search_results.scrollTop())):void 0},Chosen.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},Chosen.prototype.close_field=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},Chosen.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},Chosen.prototype.test_active_click=function(b){var c;return c=a(b.target).closest(".chosen-container"),c.length&&this.container[0]===c[0]?this.active_field=!0:this.close_field()},Chosen.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=SelectParser.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},Chosen.prototype.result_do_highlight=function(a){var b,c,d,e,f;if(a.length){if(this.result_clear_highlight(),this.result_highlight=a,this.result_highlight.addClass("highlighted"),d=parseInt(this.search_results.css("maxHeight"),10),f=this.search_results.scrollTop(),e=d+f,c=this.result_highlight.position().top+this.search_results.scrollTop(),b=c+this.result_highlight.outerHeight(),b>=e)return this.search_results.scrollTop(b-d>0?b-d:0);if(f>c)return this.search_results.scrollTop(c)}},Chosen.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},Chosen.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},Chosen.prototype.update_results_content=function(a){return this.search_results.html(a)},Chosen.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},Chosen.prototype.set_tab_index=function(){var a;return this.form_field.tabIndex?(a=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=a):void 0},Chosen.prototype.set_label_behavior=function(){var b=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=a("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(a){return b.is_multiple?b.container_mousedown(a):b.activate_field()}):void 0},Chosen.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},Chosen.prototype.search_results_mouseup=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c.length?(this.result_highlight=c,this.result_select(b),this.search_field.focus()):void 0},Chosen.prototype.search_results_mouseover=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c?this.result_do_highlight(c):void 0},Chosen.prototype.search_results_mouseout=function(b){return a(b.target).hasClass("active-result")?this.result_clear_highlight():void 0},Chosen.prototype.choice_build=function(b){var c,d,e=this;return c=a("
      • ",{"class":"search-choice"}).html(""+b.html+""),b.disabled?c.addClass("search-choice-disabled"):(d=a("",{"class":"search-choice-close","data-option-array-index":b.array_index}),d.bind("click.chosen",function(a){return e.choice_destroy_link_click(a)}),c.append(d)),this.search_container.before(c)},Chosen.prototype.choice_destroy_link_click=function(b){return b.preventDefault(),b.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(a(b.target))},Chosen.prototype.choice_destroy=function(a){return this.result_deselect(a[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),a.parents("li").first().remove(),this.search_field_scale()):void 0},Chosen.prototype.results_reset=function(){return this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},Chosen.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},Chosen.prototype.result_select=function(a){var b,c;return this.result_highlight?(b=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?b.removeClass("active-result"):this.reset_single_select_options(),c=this.results_data[b[0].getAttribute("data-option-array-index")],c.selected=!0,this.form_field.options[c.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(c):this.single_set_selected_text(c.text),(a.metaKey||a.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[c.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())):void 0},Chosen.prototype.single_set_selected_text=function(a){return null==a&&(a=this.default_text),a===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").text(a)},Chosen.prototype.result_deselect=function(a){var b;return b=this.results_data[a],this.form_field.options[b.options_index].disabled?!1:(b.selected=!1,this.form_field.options[b.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[b.options_index].value}),this.search_field_scale(),!0)},Chosen.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after(''),this.selected_item.addClass("chosen-single-with-deselect")):void 0},Chosen.prototype.get_search_text=function(){return this.search_field.val()===this.default_text?"":a("
        ").text(a.trim(this.search_field.val())).html()},Chosen.prototype.winnow_results_set_highlight=function(){var a,b;return b=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),a=b.length?b.first():this.search_results.find(".active-result").first(),null!=a?this.result_do_highlight(a):void 0},Chosen.prototype.no_results=function(b){var c;return c=a('
      • '+this.results_none_found+' ""
      • '),c.find("span").first().html(b),this.search_results.append(c),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},Chosen.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},Chosen.prototype.keydown_arrow=function(){var a;return this.results_showing&&this.result_highlight?(a=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(a):void 0:this.results_show()},Chosen.prototype.keyup_arrow=function(){var a;return this.results_showing||this.is_multiple?this.result_highlight?(a=this.result_highlight.prevAll("li.active-result"),a.length?this.result_do_highlight(a.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},Chosen.prototype.keydown_backstroke=function(){var a;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(a=this.search_container.siblings("li.search-choice").last(),a.length&&!a.hasClass("search-choice-disabled")?(this.pending_backstroke=a,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},Chosen.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},Chosen.prototype.keydown_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),8!==b&&this.pending_backstroke&&this.clear_backstroke(),b){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(a),this.mouse_on_container=!1;break;case 13:a.preventDefault();break;case 38:a.preventDefault(),this.keyup_arrow();break;case 40:a.preventDefault(),this.keydown_arrow()}},Chosen.prototype.search_field_scale=function(){var b,c,d,e,f,g,h,i,j;if(this.is_multiple){for(d=0,h=0,f="position:absolute; left: -1000px; top: -1000px; display:none;",g=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],i=0,j=g.length;j>i;i++)e=g[i],f+=e+":"+this.search_field.css(e)+";";return b=a("
        ",{style:f}),b.text(this.search_field.val()),a("body").append(b),h=b.width()+25,b.remove(),c=this.container.outerWidth(),h>c-10&&(h=c-10),this.search_field.css({width:h+"px"})}},Chosen}(AbstractChosen)}.call(this); (function(t){"use strict";function e(t,e,r){return t.addEventListener?t.addEventListener(e,r,!1):t.attachEvent?t.attachEvent("on"+e,r):void 0}function r(t,e){var r,n;for(r=0,n=t.length;n>r;r++)if(t[r]===e)return!0;return!1}function n(t,e){var r;t.createTextRange?(r=t.createTextRange(),r.move("character",e),r.select()):t.selectionStart&&(t.focus(),t.setSelectionRange(e,e))}function a(t,e){try{return t.type=e,!0}catch(r){return!1}}t.Placeholders={Utils:{addEventListener:e,inArray:r,moveCaret:n,changeType:a}}})(this),function(t){"use strict";function e(){}function r(){try{return document.activeElement}catch(t){}}function n(t,e){var r,n,a=!!e&&t.value!==e,u=t.value===t.getAttribute(V);return(a||u)&&"true"===t.getAttribute(P)?(t.removeAttribute(P),t.value=t.value.replace(t.getAttribute(V),""),t.className=t.className.replace(R,""),n=t.getAttribute(z),parseInt(n,10)>=0&&(t.setAttribute("maxLength",n),t.removeAttribute(z)),r=t.getAttribute(D),r&&(t.type=r),!0):!1}function a(t){var e,r,n=t.getAttribute(V);return""===t.value&&n?(t.setAttribute(P,"true"),t.value=n,t.className+=" "+I,r=t.getAttribute(z),r||(t.setAttribute(z,t.maxLength),t.removeAttribute("maxLength")),e=t.getAttribute(D),e?t.type="text":"password"===t.type&&K.changeType(t,"text")&&t.setAttribute(D,"password"),!0):!1}function u(t,e){var r,n,a,u,i,l,o;if(t&&t.getAttribute(V))e(t);else for(a=t?t.getElementsByTagName("input"):f,u=t?t.getElementsByTagName("textarea"):h,r=a?a.length:0,n=u?u.length:0,o=0,l=r+n;l>o;o++)i=r>o?a[o]:u[o-r],e(i)}function i(t){u(t,n)}function l(t){u(t,a)}function o(t){return function(){b&&t.value===t.getAttribute(V)&&"true"===t.getAttribute(P)?K.moveCaret(t,0):n(t)}}function c(t){return function(){a(t)}}function s(t){return function(e){return A=t.value,"true"===t.getAttribute(P)&&A===t.getAttribute(V)&&K.inArray(C,e.keyCode)?(e.preventDefault&&e.preventDefault(),!1):void 0}}function d(t){return function(){n(t,A),""===t.value&&(t.blur(),K.moveCaret(t,0))}}function v(t){return function(){t===r()&&t.value===t.getAttribute(V)&&"true"===t.getAttribute(P)&&K.moveCaret(t,0)}}function g(t){return function(){i(t)}}function p(t){t.form&&(T=t.form,"string"==typeof T&&(T=document.getElementById(T)),T.getAttribute(U)||(K.addEventListener(T,"submit",g(T)),T.setAttribute(U,"true"))),K.addEventListener(t,"focus",o(t)),K.addEventListener(t,"blur",c(t)),b&&(K.addEventListener(t,"keydown",s(t)),K.addEventListener(t,"keyup",d(t)),K.addEventListener(t,"click",v(t))),t.setAttribute(j,"true"),t.setAttribute(V,x),(b||t!==r())&&a(t)}var f,h,b,m,A,y,E,x,L,T,S,N,w,B=["text","search","url","tel","email","password","number","textarea"],C=[27,33,34,35,36,37,38,39,40,8,46],k="#ccc",I="placeholdersjs",R=RegExp("(?:^|\\s)"+I+"(?!\\S)"),V="data-placeholder-value",P="data-placeholder-active",D="data-placeholder-type",U="data-placeholder-submit",j="data-placeholder-bound",q="data-placeholder-focus",Q="data-placeholder-live",z="data-placeholder-maxlength",F=document.createElement("input"),G=document.getElementsByTagName("head")[0],H=document.documentElement,J=t.Placeholders,K=J.Utils;if(J.nativeSupport=void 0!==F.placeholder,!J.nativeSupport){for(f=document.getElementsByTagName("input"),h=document.getElementsByTagName("textarea"),b="false"===H.getAttribute(q),m="false"!==H.getAttribute(Q),y=document.createElement("style"),y.type="text/css",E=document.createTextNode("."+I+" { color:"+k+"; }"),y.styleSheet?y.styleSheet.cssText=E.nodeValue:y.appendChild(E),G.insertBefore(y,G.firstChild),w=0,N=f.length+h.length;N>w;w++)S=f.length>w?f[w]:h[w-f.length],x=S.attributes.placeholder,x&&(x=x.nodeValue,x&&K.inArray(B,S.type)&&p(S));L=setInterval(function(){for(w=0,N=f.length+h.length;N>w;w++)S=f.length>w?f[w]:h[w-f.length],x=S.attributes.placeholder,x?(x=x.nodeValue,x&&K.inArray(B,S.type)&&(S.getAttribute(j)||p(S),(x!==S.getAttribute(V)||"password"===S.type&&!S.getAttribute(D))&&("password"===S.type&&!S.getAttribute(D)&&K.changeType(S,"text")&&S.setAttribute(D,"password"),S.value===S.getAttribute(V)&&(S.value=x),S.setAttribute(V,x)))):S.getAttribute(P)&&(n(S),S.removeAttribute(V));m||clearInterval(L)},100)}K.addEventListener(t,"beforeunload",function(){J.disable()}),J.disable=J.nativeSupport?e:i,J.enable=J.nativeSupport?e:l}(this),function(t){"use strict";var e=t.fn.val,r=t.fn.prop;Placeholders.nativeSupport||(t.fn.val=function(t){var r=e.apply(this,arguments),n=this.eq(0).data("placeholder-value");return void 0===t&&this.eq(0).data("placeholder-active")&&r===n?"":r},t.fn.prop=function(t,e){return void 0===e&&this.eq(0).data("placeholder-active")&&"value"===t?"":r.apply(this,arguments)})}(jQuery); function cityName_by_melliCode_hannanstd(t){return"169"==t&&(cityN="استان آذربایجان شرقی - شهر آذر شهر"),"170"==t&&(cityN="استان آذربایجان شرقی - شهر اسکو"),("149"==t||"150"==t)&&(cityN="استان آذربایجان شرقی - شهر اهر"),"171"==t&&(cityN="استان آذربایجان شرقی - شهر بستان آباد"),"168"==t&&(cityN="استان آذربایجان شرقی - شهر بناب"),("136"==t||"137"==t||"138"==t)&&(cityN="استان آذربایجان شرقی - شهر تبریز"),"545"==t&&(cityN="استان آذربایجان شرقی - شهر ترکمانچای"),"505"==t&&(cityN="استان آذربایجان شرقی - شهر جلفا"),"636"==t&&(cityN="استان آذربایجان شرقی - شهر چاروایماق"),("164"==t||"165"==t)&&(cityN="استان آذربایجان شرقی - شهر سراب"),"172"==t&&(cityN="استان آذربایجان شرقی - شهر شبستر"),"623"==t&&(cityN="استان آذربایجان شرقی - شهر صوفیان"),"506"==t&&(cityN="استان آذربایجان شرقی - شهر عجب شیر"),"519"==t&&(cityN="استان آذربایجان شرقی - شهر کلیبر"),("154"==t||"155"==t)&&(cityN="استان آذربایجان شرقی - شهر مراغه"),"567"==t&&(cityN="استان آذربایجان شرقی - شهر ورزقان"),"173"==t&&(cityN="استان آذربایجان شرقی - شهر هریس"),("159"==t||"160"==t)&&(cityN="استان آذربایجان شرقی - شهر هشترود"),"604"==t&&(cityN="استان آذربایجان شرقی - شهر هوراند"),("274"==t||"275"==t)&&(cityN="استان آذربایجان غربی - شهر ارومیه"),"295"==t&&(cityN="استان آذربایجان غربی - شهر اشنویه"),"637"==t&&(cityN="استان آذربایجان غربی - شهر انزل"),"292"==t&&(cityN="استان آذربایجان غربی - شهر بوکان"),"492"==t&&(cityN="استان آذربایجان غربی - شهر پلدشت"),"289"==t&&(cityN="استان آذربایجان غربی - شهر پیرانشهر"),"677"==t&&(cityN="استان آذربایجان غربی - شهر تخت سلیمان"),"294"==t&&(cityN="استان آذربایجان غربی - شهر تکاب"),"493"==t&&(cityN="استان آذربایجان غربی - شهر چایپاره"),("279"==t||"280"==t)&&(cityN="استان آذربایجان غربی - شهر خوی"),"288"==t&&(cityN="استان آذربایجان غربی - شهر سردشت"),("284"==t||"285"==t)&&(cityN="استان آذربایجان غربی - شهر سلماس"),"638"==t&&(cityN="استان آذربایجان غربی - شهر سیلوانه"),"291"==t&&(cityN="استان آذربایجان غربی - شهر سیه چشمه(چالدران)"),"640"==t&&(cityN="استان آذربایجان غربی - شهر شوط"),"293"==t&&(cityN="استان آذربایجان غربی - شهر شاهین دژ"),"675"==t&&(cityN="استان آذربایجان غربی - شهر کشاورز"),("282"==t||"283"==t)&&(cityN="استان آذربایجان غربی - شهر ماکو"),("286"==t||"287"==t)&&(cityN="استان آذربایجان غربی - شهر مهاباد"),("296"==t||"297"==t)&&(cityN="استان آذربایجان غربی - شهر میاندوآب"),"290"==t&&(cityN="استان آذربایجان غربی - شهر نقده"),("400"==t||"401"==t)&&(cityN="استان همدان - شهر اسدآباد"),("404"==t||"405"==t)&&(cityN="استان همدان - شهر بهار"),"397"==t&&(cityN="استان همدان - شهر تویسرکان"),("398"==t||"399"==t)&&(cityN="استان همدان - شهر رزن"),"647"==t&&(cityN="استان همدان - شهر شراء و پیشخوار"),"502"==t&&(cityN="استان همدان - شهر فامنین"),"584"==t&&(cityN="استان همدان - شهر قلقل رود"),("402"==t||"403"==t)&&(cityN="استان همدان - شهر کبودرآهنگ"),("392"==t||"393"==t)&&(cityN="استان همدان - شهر ملایر"),("395"==t||"396"==t)&&(cityN="استان همدان - شهر نهاوند"),("386"==t||"387"==t)&&(cityN="استان همدان - شهر همدان"),"503"==t&&(cityN="استان یزد - شهر ابرکوه"),"444"==t&&(cityN="استان یزد - شهر اردکان"),"551"==t&&(cityN="استان یزد - شهر اشکذر"),"447"==t&&(cityN="استان یزد - شهر بافق"),"561"==t&&(cityN="استان یزد - شهر بهاباد"),"445"==t&&(cityN="استان یزد - شهر تفت"),"718"==t&&(cityN="استان یزد - شهر دستگردان"),"083"==t&&(cityN="استان یزد - شهر طبس"),"446"==t&&(cityN="استان یزد - شهر مهریز"),"448"==t&&(cityN="استان یزد - شهر میبد"),"552"==t&&(cityN="استان یزد - شهر نیر"),"543"==t&&(cityN="استان یزد - شهر هرات و مروست"),("442"==t||"443"==t)&&(cityN="استان یزد - شهر یزد"),"051"==t&&(cityN="استان مرکزی - شهر آشتیان"),("052"==t||"053"==t)&&(cityN="استان مرکزی - شهر اراک"),"058"==t&&(cityN="استان مرکزی - شهر تفرش"),"055"==t&&(cityN="استان مرکزی - شهر خمین"),"617"==t&&(cityN="استان مرکزی - شهر خنداب"),"057"==t&&(cityN="استان مرکزی - شهر دلیجان"),"618"==t&&(cityN="استان مرکزی - شهر زرند مرکزی"),("059"==t||"060"==t)&&(cityN="استان مرکزی - شهر ساوه"),("061"==t||"062"==t)&&(cityN="استان مرکزی - شهر سربند"),"544"==t&&(cityN="استان مرکزی - شهر فراهان"),"056"==t&&(cityN="استان مرکزی - شهر محلات"),"571"==t&&(cityN="استان مرکزی - شهر وفس"),"593"==t&&(cityN="استان مرکزی - شهر هندودر"),"667"==t&&(cityN="استان هرمزگان - شهر ابوموسی"),"348"==t&&(cityN="استان هرمزگان - شهر بستک"),"586"==t&&(cityN="استان هرمزگان - شهر بشاگرد"),("338"==t||"339"==t)&&(cityN="استان هرمزگان - شهر بندرعباس"),("343"==t||"344"==t)&&(cityN="استان هرمزگان - شهر بندرلنگه"),"346"==t&&(cityN="استان هرمزگان - شهر جاسک"),"337"==t&&(cityN="استان هرمزگان - شهر حاجی آباد"),"554"==t&&(cityN="استان هرمزگان - شهر خمیر"),"469"==t&&(cityN="استان هرمزگان - شهر رودان"),"537"==t&&(cityN="استان هرمزگان - شهر فین"),"345"==t&&(cityN="استان هرمزگان - شهر قشم"),"470"==t&&(cityN="استان هرمزگان - شهر گاوبندی"),("341"==t||"342"==t)&&(cityN="استان هرمزگان - شهر میناب"),("483"==t||"484"==t)&&(cityN="استان لرستان - شهر ازنا"),"557"==t&&(cityN="استان لرستان - شهر اشترینان"),"418"==t&&(cityN="استان لرستان - شهر الشتر"),("416"==t||"417"==t)&&(cityN="استان لرستان - شهر الیگودرز"),("412"==t||"413"==t)&&(cityN="استان لرستان - شهر بروجرد"),"592"==t&&(cityN="استان لرستان - شهر پاپی"),"612"==t&&(cityN="استان لرستان - شهر چغلوندی"),"613"==t&&(cityN="استان لرستان - شهر چگنی"),("406"==t||"407"==t)&&(cityN="استان لرستان - شهر خرم آباد"),"421"==t&&(cityN="استان لرستان - شهر دورود"),"598"==t&&(cityN="استان لرستان - شهر رومشکان"),"419"==t&&(cityN="استان لرستان - شهر کوهدشت"),"385"==t&&(cityN="استان لرستان - شهر ملاوی(پلدختر)"),"420"==t&&(cityN="استان لرستان - شهر نورآباد(دلفان)"),"528"==t&&(cityN="استان لرستان - شهر ویسیان"),("213"==t||"214"==t)&&(cityN="استان مازندران - شهر آمل"),("205"==t||"206"==t)&&(cityN="استان مازندران - شهر بابل"),"498"==t&&(cityN="استان مازندران - شهر بابل"),"568"==t&&(cityN="استان مازندران - شهر بندپی"),"711"==t&&(cityN="استان مازندران - شهر بندپی شرقی"),("217"==t||"218"==t)&&(cityN="استان مازندران - شهر بهشهر"),"221"==t&&(cityN="استان مازندران - شهر تنکابن"),"582"==t&&(cityN="استان مازندران - شهر جویبار"),"483"==t&&(cityN="استان مازندران - شهر چالوس"),"625"==t&&(cityN="استان مازندران - شهر چمستان"),"576"==t&&(cityN="استان مازندران - شهر چهاردانگه"),"578"==t&&(cityN="استان مازندران - شهر دودانگه"),"227"==t&&(cityN="استان مازندران - شهر رامسر"),("208"==t||"209"==t)&&(cityN="استان مازندران - شهر ساری"),"225"==t&&(cityN="استان مازندران - شهر سوادکوه"),"577"==t&&(cityN="استان مازندران - شهر شیرگاه"),"712"==t&&(cityN="استان مازندران - شهر عباس آباد"),("215"==t||"216"==t)&&(cityN="استان مازندران - شهر قائمشهر"),"626"==t&&(cityN="استان مازندران - شهر کجور"),"627"==t&&(cityN="استان مازندران - شهر کلاردشت"),"579"==t&&(cityN="استان مازندران - شهر گلوگاه"),"713"==t&&(cityN="استان مازندران - شهر میاندورود"),"499"==t&&(cityN="استان مازندران - شهر نکاء"),"222"==t&&(cityN="استان مازندران - شهر نور"),("219"==t||"220"==t)&&(cityN="استان مازندران - شهر نوشهر"),("500"==t||"501"==t)&&(cityN="استان مازندران - شهر هراز و محمودآباد"),"623"==t&&(cityN="استان گلستان - شهر آزادشهر"),"497"==t&&(cityN="استان گلستان - شهر آق قلا"),"223"==t&&(cityN="استان گلستان - شهر بندرترکمن"),"689"==t&&(cityN="استان گلستان - شهر بندرگز"),"487"==t&&(cityN="استان گلستان - شهر رامیان"),"226"==t&&(cityN="استان گلستان - شهر علی آباد"),"224"==t&&(cityN="استان گلستان - شهر کردکوی"),"386"==t&&(cityN="استان گلستان - شهر کلاله"),("211"==t||"212"==t)&&(cityN="استان گلستان - شهر گرگان"),"628"==t&&(cityN="استان گلستان - شهر گمیشان"),("202"==t||"203"==t)&&(cityN="استان گلستان - شهر گنبد کاووس"),"531"==t&&(cityN="استان گلستان - شهر مراوه تپه"),"288"==t&&(cityN="استان گلستان - شهر مینودشت"),"261"==t&&(cityN="استان گیلان - شهر آستارا"),"273"==t&&(cityN="استان گیلان - شهر آستانه"),"630"==t&&(cityN="استان گیلان - شهر املش"),"264"==t&&(cityN="استان گیلان - شهر بندرانزلی"),"518"==t&&(cityN="استان گیلان - شهر خمام"),"631"==t&&(cityN="استان گیلان - شهر رحیم آباد"),("258"==t||"259"==t)&&(cityN="استان گیلان - شهر رشت"),"570"==t&&(cityN="استان گیلان - شهر رضوانشهر"),"265"==t&&(cityN="استان گیلان - شهر رودبار"),("268"==t||"269"==t)&&(cityN="استان گیلان - شهر رودسر"),"653"==t&&(cityN="استان گیلان - شهر سنگر"),"517"==t&&(cityN="استان گیلان - شهر سیاهکل"),"569"==t&&(cityN="استان گیلان - شهر شفت"),"267"==t&&(cityN="استان گیلان - شهر صومعه سرا"),("262"==t||"263"==t)&&(cityN="استان گیلان - شهر طالش"),"593"==t&&(cityN="استان گیلان - شهر عمارلو"),"266"==t&&(cityN="استان گیلان - شهر فومن"),"693"==t&&(cityN="استان گیلان - شهر کوچصفهان"),("271"==t||"272"==t)&&(cityN="استان گیلان - شهر لاهیجان"),"694"==t&&(cityN="استان گیلان - شهر لشت نشاء"),"270"==t&&(cityN="استان گیلان - شهر لنگرود"),"516"==t&&(cityN="استان گیلان - شهر ماسال و شاندرمن"),("333"==t||"334"==t)&&(cityN="استان کرمانشاه - شهر اسلام آباد"),"691"==t&&(cityN="استان کرمانشاه - شهر باینگان"),("322"==t||"323"==t)&&(cityN="استان کرمانشاه - شهر پاوه"),"595"==t&&(cityN="استان کرمانشاه - شهر ثلاث باباجانی"),"395"==t&&(cityN="استان کرمانشاه - شهر جوانرود"),"641"==t&&(cityN="استان کرمانشاه - شهر حمیل"),"596"==t&&(cityN="استان کرمانشاه - شهر روانسر"),"336"==t&&(cityN="استان کرمانشاه - شهر سرپل ذهاب"),"335"==t&&(cityN="استان کرمانشاه - شهر سنقر"),"496"==t&&(cityN="استان کرمانشاه - شهر صحنه"),"337"==t&&(cityN="استان کرمانشاه - شهر قصرشیرین"),("324"==t||"325"==t)&&(cityN="استان کرمانشاه - شهر کرمانشاه"),"394"==t&&(cityN="استان کرمانشاه - شهر کرند"),"330"==t&&(cityN="استان کرمانشاه - شهر کنگاور"),"332"==t&&(cityN="استان کرمانشاه - شهر گیلانغرب"),"331"==t&&(cityN="استان کرمانشاه - شهر هرسین"),"687"==t&&(cityN="استان کهکیلویه و بویراحمد - شهر باشت"),("422"==t||"423"==t)&&(cityN="استان کهکیلویه و بویراحمد - شهر بویراحمد(یاسوج)"),"599"==t&&(cityN="استان کهکیلویه و بویراحمد - شهر بهمنی"),"600"==t&&(cityN="استان کهکیلویه و بویراحمد - شهر چاروسا"),"688"==t&&(cityN="استان کهکیلویه و بویراحمد - شهر دروهان"),("424"==t||"425"==t)&&(cityN="استان کهکیلویه و بویراحمد - شهر کهکیلویه(دهدشت)"),"426"==t&&(cityN="استان کهکیلویه و بویراحمد - شهر گچساران(دوگنبدان)"),"550"==t&&(cityN="استان کهکیلویه و بویراحمد - شهر لنده"),"697"==t&&(cityN="استان کهکیلویه و بویراحمد - شهر مارگون"),"384"==t&&(cityN="استان کردستان - شهر بانه"),("377"==t||"378"==t)&&(cityN="استان کردستان - شهر بیجار"),"558"==t&&(cityN="استان کردستان - شهر دهگلان"),"385"==t&&(cityN="استان کردستان - شهر دیواندره"),"646"==t&&(cityN="استان کردستان - شهر سروآباد"),("375"==t||"376"==t)&&(cityN="استان کردستان - شهر سقز"),("372"==t||"373"==t)&&(cityN="استان کردستان - شهر سنندج"),("379"==t||"380"==t)&&(cityN="استان کردستان - شهر قروه"),"383"==t&&(cityN="استان کردستان - شهر کامیاران"),"674"==t&&(cityN="استان کردستان - شهر کرانی"),("381"==t||"382"==t)&&(cityN="استان کردستان - شهر مریوان"),"676"==t&&(cityN="استان کردستان - شهر نمشیر"),"722"==t&&(cityN="استان کرمان - شهر ارزونیه"),"542"==t&&(cityN="استان کرمان - شهر انار"),("312"==t||"313"==t)&&(cityN="استان کرمان - شهر بافت"),"317"==t&&(cityN="استان کرمان - شهر بردسیر"),("310"==t||"311"==t)&&(cityN="استان کرمان - شهر بم"),("302"==t||"303"==t)&&(cityN="استان کرمان - شهر جیرفت"),"583"==t&&(cityN="استان کرمان - شهر رابر"),"321"==t&&(cityN="استان کرمان - شهر راور"),"382"==t&&(cityN="استان کرمان - شهر راین"),("304"==t||"305"==t)&&(cityN="استان کرمان - شهر رفسنجان"),"536"==t&&(cityN="استان کرمان - شهر رودبار کهنوج"),"605"==t&&(cityN="استان کرمان - شهر ریگان"),("308"==t||"309"==t)&&(cityN="استان کرمان - شهر زرند"),("306"==t||"307"==t)&&(cityN="استان کرمان - شهر سیرجان"),"319"==t&&(cityN="استان کرمان - شهر شهداد"),("313"==t||"314"==t)&&(cityN="استان کرمان - شهر شهربابک"),"606"==t&&(cityN="استان کرمان - شهر عنبرآباد"),"320"==t&&(cityN="استان کرمان - شهر فهرج"),"698"==t&&(cityN="استان کرمان - شهر قلعه گنج"),("298"==t||"299"==t)&&(cityN="استان کرمان - شهر کرمان"),"535"==t&&(cityN="استان کرمان - شهر کوهبنان"),("315"==t||"316"==t)&&(cityN="استان کرمان - شهر کهنوج"),"318"==t&&(cityN="استان کرمان - شهر گلباف"),"607"==t&&(cityN="استان کرمان - شهر ماهان"),"608"==t&&(cityN="استان کرمان - شهر منوجان"),"508"==t&&(cityN="استان قزوین - شهر آبیک"),"538"==t&&(cityN="استان قزوین - شهر آوج"),"728"==t&&(cityN="استان قزوین - شهر البرز"),"509"==t&&(cityN="استان قزوین - شهر بوئین زهرا"),("438"==t||"439"==t)&&(cityN="استان قزوین - شهر تاکستان"),"580"==t&&(cityN="استان قزوین - شهر رودبار الموت"),"590"==t&&(cityN="استان قزوین - شهر رودبار شهرستان"),"559"==t&&(cityN="استان قزوین - شهر ضیاءآباد"),"588"==t&&(cityN="استان قزوین - شهر طارم سفلی"),("431"==t||"432"==t)&&(cityN="استان قزوین - شهر قزوین"),("037"==t||"038"==t)&&(cityN="استان قم - شهر قم"),"702"==t&&(cityN="استان قم - شهر کهک"),("240"==t||"241"==t)&&(cityN="استان فارس - شهر آباده"),"670"==t&&(cityN="استان فارس - شهر آباده طشک"),"648"==t&&(cityN="استان فارس - شهر ارسنجان"),"252"==t&&(cityN="استان فارس - شهر استهبان"),"678"==t&&(cityN="استان فارس - شهر اشکنان"),"253"==t&&(cityN="استان فارس - شهر اقلید"),"649"==t&&(cityN="استان فارس - شهر اوز"),"513"==t&&(cityN="استان فارس - شهر بوانات"),"546"==t&&(cityN="استان فارس - شهر بیضا"),"671"==t&&(cityN="استان فارس - شهر جویم"),("246"==t||"247"==t)&&(cityN="استان فارس - شهر جهرم"),"654"==t&&(cityN="استان فارس - شهر حاجی آباد(زرین دشت)"),"548"==t&&(cityN="استان فارس - شهر خرامه"),"547"==t&&(cityN="استان فارس - شهر خشت و کمارج"),"655"==t&&(cityN="استان فارس - شهر خفر"),("248"==t||"249"==t)&&(cityN="استان فارس - شهر داراب"),"253"==t&&(cityN="استان فارس - شهر سپیدان"),"514"==t&&(cityN="استان فارس - شهر سروستان"),"665"==t&&(cityN="استان فارس - شهر سعادت آباد"),"673"==t&&(cityN="استان فارس - شهر شیبکوه"),("228"==t||"229"==t||"230"==t)&&(cityN="استان فارس - شهر شیراز"),"679"==t&&(cityN="استان فارس - شهر فراشبند"),("256"==t||"257"==t)&&(cityN="استان فارس - شهر فسا"),("244"==t||"245"==t)&&(cityN="استان فارس - شهر فیروزآباد"),"681"==t&&(cityN="استان فارس - شهر قنقری(خرم بید)"),"723"==t&&(cityN="استان فارس - شهر قیروکارزین"),("236"==t||"237"==t)&&(cityN="استان فارس - شهر کازرون"),"683"==t&&(cityN="استان فارس - شهر کوار"),"656"==t&&(cityN="استان فارس - شهر کراش"),("250"==t||"251"==t)&&(cityN="استان فارس - شهر لارستان"),"515"==t&&(cityN="استان فارس - شهر لامرد"),("242"==t||"243"==t)&&(cityN="استان فارس - شهر مرودشت"),("238"==t||"239"==t)&&(cityN="استان فارس - شهر ممسنی"),"657"==t&&(cityN="استان فارس - شهر مهر"),"255"==t&&(cityN="استان فارس - شهر نی ریز"),"684"==t&&(cityN="استان سمنان - شهر ایوانکی"),"700"==t&&(cityN="استان سمنان - شهر بسطام"),"642"==t&&(cityN="استان سمنان - شهر بیارجمند"),"457"==t&&(cityN="استان سمنان - شهر دامغان"),"456"==t&&(cityN="استان سمنان - شهر سمنان"),("458"==t||"459"==t)&&(cityN="استان سمنان - شهر شاهرود"),"460"==t&&(cityN="استان سمنان - شهر گرمسار"),"530"==t&&(cityN="استان سمنان - شهر مهدیشهر"),"520"==t&&(cityN="استان سمنان - شهر میامی"),("358"==t||"359"==t)&&(cityN="استان سیستان و بلوچستان - شهر ایرانشهر"),"682"==t&&(cityN="استان سیستان و بلوچستان - شهر بزمان"),"703"==t&&(cityN="استان سیستان و بلوچستان - شهر بمپور"),("364"==t||"365"==t)&&(cityN="استان سیستان و بلوچستان - شهر چابهار"),"371"==t&&(cityN="استان سیستان و بلوچستان - شهر خاش"),"701"==t&&(cityN="استان سیستان و بلوچستان - شهر دشتیاری"),"720"==t&&(cityN="استان سیستان و بلوچستان - شهر راسک"),("366"==t||"367"==t)&&(cityN="استان سیستان و بلوچستان - شهر زابل"),"704"==t&&(cityN="استان سیستان و بلوچستان - شهر زابلی"),("361"==t||"362"==t)&&(cityN="استان سیستان و بلوچستان - شهر زاهدان"),("369"==t||"370"==t)&&(cityN="استان سیستان و بلوچستان - شهر سراوان"),"635"==t&&(cityN="استان سیستان و بلوچستان - شهر سرباز"),"668"==t&&(cityN="استان سیستان و بلوچستان - شهر سیب و سوران"),"533"==t&&(cityN="استان سیستان و بلوچستان - شهر شهرکی و ناروئی(زهک)"),"705"==t&&(cityN="استان سیستان و بلوچستان - شهر شیب آب"),"699"==t&&(cityN="استان سیستان و بلوچستان - شهر فنوج"),"669"==t&&(cityN="استان سیستان و بلوچستان - شهر قصرقند"),"725"==t&&(cityN="استان سیستان و بلوچستان - شهر کنارک"),"597"==t&&(cityN="استان سیستان و بلوچستان - شهر لاشار(اسپکه)"),"611"==t&&(cityN="استان سیستان و بلوچستان - شهر میرجاوه"),"525"==t&&(cityN="استان سیستان و بلوچستان - شهر نیک شهر"),"181"==t&&(cityN="استان خوزستان - شهر آبادان"),"527"==t&&(cityN="استان خوزستان - شهر آغاجاری"),"585"==t&&(cityN="استان خوزستان - شهر اروندکنار"),"685"==t&&(cityN="استان خوزستان - شهر امیدیه"),"663"==t&&(cityN="استان خوزستان - شهر اندیکا"),("192"==t||"193"==t)&&(cityN="استان خوزستان - شهر اندیمشک"),("174"==t||"175"==t)&&(cityN="استان خوزستان - شهر اهواز"),("183"==t||"184"==t)&&(cityN="استان خوزستان - شهر ایذه"),"481"==t&&(cityN="استان خوزستان - شهر باغ ملک"),"706"==t&&(cityN="استان خوزستان - شهر بندر امام خمینی"),("194"==t||"195"==t)&&(cityN="استان خوزستان - شهر بندرماهشهر"),("185"==t||"186"==t)&&(cityN="استان خوزستان - شهر بهبهان"),"182"==t&&(cityN="استان خوزستان - شهر خرمشهر"),("199"==t||"200"==t)&&(cityN="استان خوزستان - شهر دزفول"),"198"==t&&(cityN="استان خوزستان - شهر دشت آزادگان"),"662"==t&&(cityN="استان خوزستان - شهر رامشیر"),("190"==t||"191"==t)&&(cityN="استان خوزستان - شهر رامهرمز"),"692"==t&&(cityN="استان خوزستان - شهر سردشت"),"189"==t&&(cityN="استان خوزستان - شهر شادگان"),"707"==t&&(cityN="استان خوزستان - شهر شاوور"),"526"==t&&(cityN="استان خوزستان - شهر شوش"),("187"==t||"188"==t)&&(cityN="استان خوزستان - شهر شوشتر"),"729"==t&&(cityN="استان خوزستان - شهر گتوند"),"730"==t&&(cityN="استان خوزستان - شهر لالی"),("196"==t||"197"==t)&&(cityN="استان خوزستان - شهر مسجدسلیمان"),"661"==t&&(cityN="استان خوزستان - شهر هندیجان"),"680"==t&&(cityN="استان خوزستان - شهر هویزه"),"643"==t&&(cityN="استان خراسان رضوی - شهر احمدآباد"),"562"==t&&(cityN="استان خراسان رضوی - شهر بجستان"),"572"==t&&(cityN="استان خراسان رضوی - شهر بردسکن"),"074"==t&&(cityN="استان خراسان رضوی - شهر تایباد"),"644"==t&&(cityN="استان خراسان رضوی - شهر تخت جلگه"),("072"==t||"073"==t)&&(cityN="استان خراسان رضوی - شهر تربت جام"),("069"==t||"070"==t)&&(cityN="استان خراسان رضوی - شهر تربت حیدریه"),"521"==t&&(cityN="استان خراسان رضوی - شهر جغتای"),"573"==t&&(cityN="استان خراسان رضوی - شهر جوین"),"522"==t&&(cityN="استان خراسان رضوی - شهر چناران"),"724"==t&&(cityN="استان خراسان رضوی - شهر خلیل آباد"),"076"==t&&(cityN="استان خراسان رضوی - شهر خواف"),"077"==t&&(cityN="استان خراسان رضوی - شهر درگز"),"650"==t&&(cityN="استان خراسان رضوی - شهر رشتخوار"),"574"==t&&(cityN="استان خراسان رضوی - شهر زبرخان"),("078"==t||"079"==t)&&(cityN="استان خراسان رضوی - شهر سبزوار"),"081"==t&&(cityN="استان خراسان رضوی - شهر سرخس"),"084"==t&&(cityN="استان خراسان رضوی - شهر فریمان"),"651"==t&&(cityN="استان خراسان رضوی - شهر فیض آباد"),("086"==t||"087"==t)&&(cityN="استان خراسان رضوی - شهر قوچان"),("089"==t||"090"==t)&&(cityN="استان خراسان رضوی - شهر کاشمر"),"553"==t&&(cityN="استان خراسان رضوی - شهر کلات"),"091"==t&&(cityN="استان خراسان رضوی - شهر گناباد"),("092"==t||"093"==t||"094"==t)&&(cityN="استان خراسان رضوی - شهر مشهد"),"097"==t&&(cityN="استان خراسان رضوی - شهر مشهد منطقه2"),"098"==t&&(cityN="استان خراسان رضوی - شهر مشهد منطقه3"),"096"==t&&(cityN="استان خراسان رضوی - شهر مشهد منطقه1"),("105"==t||"106"==t)&&(cityN="استان خراسان رضوی - شهر نیشابور"),"063"==t&&(cityN="استان خراسان شمالی - شهر اسفراین"),("067"==t||"068"==t)&&(cityN="استان خراسان شمالی - شهر بجنورد"),"075"==t&&(cityN="استان خراسان شمالی - شهر جاجرم"),"591"==t&&(cityN="استان خراسان شمالی - شهر رازوجرکلان"),"082"==t&&(cityN="استان خراسان شمالی - شهر شیروان"),"635"==t&&(cityN="استان خراسان شمالی - شهر فاروج"),"524"==t&&(cityN="استان خراسان شمالی - شهر مانه و سملقان"),"468"==t&&(cityN="استان چهارمحال و بختیاری - شهر اردل"),"465"==t&&(cityN="استان چهارمحال و بختیاری - شهر بروجن"),("461"==t||"462"==t)&&(cityN="استان چهارمحال و بختیاری - شهر شهرکرد"),"467"==t&&(cityN="استان چهارمحال و بختیاری - شهر فارسان"),"555"==t&&(cityN="استان چهارمحال و بختیاری - شهر کوهرنگ"),"633"==t&&(cityN="استان چهارمحال و بختیاری - شهر کیار"),"629"==t&&(cityN="استان چهارمحال و بختیاری - شهر گندمان"),"466"==t&&(cityN="استان چهارمحال و بختیاری - شهر لردگان"),"696"==t&&(cityN="استان چهارمحال و بختیاری - شهر میانکوه"),"721"==t&&(cityN="استان خراسان جنوبی - شهر بشرویه"),("064"==t||"065"==t)&&(cityN="استان خراسان جنوبی - شهر بیرجند"),"523"==t&&(cityN="استان خراسان جنوبی - شهر درمیان"),"652"==t&&(cityN="استان خراسان جنوبی - شهر زیرکوه"),"719"==t&&(cityN="استان خراسان جنوبی - شهر سرایان"),"716"==t&&(cityN="استان خراسان جنوبی - شهر سربیشه"),"085"==t&&(cityN="استان خراسان جنوبی - شهر فردوس"),"088"==t&&(cityN="استان خراسان جنوبی - شهر قائنات"),"563"==t&&(cityN="استان خراسان جنوبی - شهر نهبندان"),"529"==t&&(cityN="استان بوشهر - شهر بندر دیلم"),"353"==t&&(cityN="استان بوشهر - شهر بندر گناوه"),("349"==t||"350"==t)&&(cityN="استان بوشهر - شهر بوشهر"),"355"==t&&(cityN="استان بوشهر - شهر تنگستان"),"609"==t&&(cityN="استان بوشهر - شهر جم"),("351"==t||"352"==t)&&(cityN="استان بوشهر - شهر دشتستان"),"354"==t&&(cityN="استان بوشهر - شهر دشتی"),"732"==t&&(cityN="استان بوشهر - شهر دلوار"),"357"==t&&(cityN="استان بوشهر - شهر دیر"),"532"==t&&(cityN="استان بوشهر - شهر سعد آباد"),"610"==t&&(cityN="استان بوشهر - شهر شبانکاره"),"356"==t&&(cityN="استان بوشهر - شهر کنگان"),"556"==t&&(cityN="استان تهران - شهر اسلامشهر"),"658"==t&&(cityN="استان تهران - شهر پاکدشت"),("001"==t||"002"==t||"003"==t||"004"==t||"005"==t||"006"==t||"007"==t||"008"==t)&&(cityN="استان تهران - شهر تهران مرکزی"),"011"==t&&(cityN="استان تهران - شهر تهران جنوب"),"020"==t&&(cityN="استان تهران - شهر تهران شرق"),"025"==t&&(cityN="استان تهران - شهر تهرانشمال"),"015"==t&&(cityN="استان تهران - شهر تهران غرب"),"043"==t&&(cityN="استان تهران - شهر دماوند"),"666"==t&&(cityN="استان تهران - شهر رباط کریم"),"489"==t&&(cityN="استان تهران - شهر ساوجبلاغ"),("044"==t||"045"==t)&&(cityN="استان تهران - شهر شمیران"),("048"==t||"049"==t)&&(cityN="استان تهران - شهر شهرری"),("490"==t||"491"==t)&&(cityN="استان تهران - شهر شهریار"),"695"==t&&(cityN="استان تهران - شهر طالقان"),"659"==t&&(cityN="استان تهران - شهر فیروزکوه"),("031"==t||"032"==t)&&(cityN="استان تهران - شهر کرج"),"664"==t&&(cityN="استان تهران - شهر کهریزک"),"717"==t&&(cityN="استان تهران - شهر نظرآباد"),("041"==t||"042"==t)&&(cityN="استان تهران - شهر ورامین"),("471"==t||"472"==t)&&(cityN=" امور خارجه - امور خارجه"),"454"==t&&(cityN="استان ایلام - شهر آبدانان"),"581"==t&&(cityN="استان ایلام - شهر ارکوازی(ملکشاهی)"),("449"==t||"450"==t)&&(cityN="استان ایلام - شهر ایلام"),"616"==t&&(cityN="استان ایلام - شهر ایوان"),"534"==t&&(cityN="استان ایلام - شهر بدره"),"455"==t&&(cityN="استان ایلام - شهر دره شهر"),"451"==t&&(cityN="استان ایلام - شهر دهلران"),"726"==t&&(cityN="استان ایلام - شهر زرین آباد"),"634"==t&&(cityN="استان ایلام - شهر شیروان لومار"),"453"==t&&(cityN="استان ایلام - شهر شیروان و چرداول"),"727"==t&&(cityN="استان ایلام - شهر موسیان"),"452"==t&&(cityN="استان ایلام - شهر مهران"),("145"==t||"146"==t)&&(cityN="استان اردبیل - شهر اردبیل"),"731"==t&&(cityN="استان اردبیل - شهر ارشق"),"690"==t&&(cityN="استان اردبیل - شهر انگوت"),"601"==t&&(cityN="استان اردبیل - شهر بیله سوار"),"504"==t&&(cityN="استان اردبیل - شهر پارس آباد"),"163"==t&&(cityN="استان اردبیل - شهر خلخال"),"714"==t&&(cityN="استان اردبیل - شهر خورش رستم"),"715"==t&&(cityN="استان اردبیل - شهر سرعین"),"566"==t&&(cityN="استان اردبیل - شهر سنجبد(کوثر)"),("166"==t||"167"==t)&&(cityN="استان اردبیل - شهر مشکین شهر"),("161"==t||"162"==t)&&(cityN="استان اردبیل - شهر مغان"),"686"==t&&(cityN="استان اردبیل - شهر نمین"),"603"==t&&(cityN="استان اردبیل - شهر نیر"),"619"==t&&(cityN="استان اصفهان - شهر آران و بیدگل"),"118"==t&&(cityN="استان اصفهان - شهر اردستان"),("127"==t||"128"==t||"129"==t)&&(cityN="استان اصفهان - شهر اصفهان"),"620"==t&&(cityN="استان اصفهان - شهر باغ بهادران"),"621"==t&&(cityN="استان اصفهان - شهر بوئین و میاندشت"),"549"==t&&(cityN="استان اصفهان - شهر تیران و کرون"),"564"==t&&(cityN="استان اصفهان - شهر جرقویه"),"575"==t&&(cityN="استان اصفهان - شهر چادگان"),("113"==t||"114"==t)&&(cityN="استان اصفهان - شهر خمینی شهر"),"122"==t&&(cityN="استان اصفهان - شهر خوانسار"),"540"==t&&(cityN="استان اصفهان - شهر خور و بیابانک"),"660"==t&&(cityN="استان اصفهان - شهر دولت آباد"),"120"==t&&(cityN="استان اصفهان - شهر سمیرم"),"512"==t&&(cityN="استان اصفهان - شهر سمیرم سفلی (دهاقان)"),("510"==t||"511"==t)&&(cityN="استان اصفهان - شهر شاهین شهر"),"119"==t&&(cityN="استان اصفهان - شهر شهرضا"),"115"==t&&(cityN="استان اصفهان - شهر فریدن"),"112"==t&&(cityN="استان اصفهان - شهر فریدونشهر"),("110"==t||"111"==t)&&(cityN="استان اصفهان - شهر فلاورجان"),("125"==t||"126"==t)&&(cityN="استان اصفهان - شهر کاشان"),"565"==t&&(cityN="استان اصفهان - شهر کوهپایه"),"121"==t&&(cityN="استان اصفهان - شهر گلپایگان"),("116"==t||"117"==t)&&(cityN="استان اصفهان - شهر لنجان(زرینشهر)"),"541"==t&&(cityN="استان اصفهان - شهر مبارکه"),"622"==t&&(cityN="استان اصفهان - شهر میمه"),"124"==t&&(cityN="استان اصفهان - شهر نائین"),("108"==t||"109"==t)&&(cityN="استان اصفهان - شهر نجف آباد"),"123"==t&&(cityN="استان اصفهان - شهر نطنز"),("427"==t||"428"==t)&&(cityN="استان زنجان - شهر زنجان"),"507"==t&&(cityN="استان آذربایجان شرقی - شهر ملکان"),"158"==t&&(cityN="استان آذربایجان شرقی - شهر مرند"),("152"==t||"153"==t)&&(cityN="استان آذربایجان شرقی - شهر میانه"),"615"==t&&(cityN="استان قزوین - شهر ابهر و خرمدره"),cityN}function melli_code_function(t,i,y,N,e,a,l){if(document.getElementById("city_"+i).innerHTML="",""==t.value)return!1;if(t.value=t.value.replace("-","").replace("-",""),8==t.value.length&&(t.value="00"+t.value),9==t.value.length&&(t.value="0"+t.value),isNaN(t.value))return document.getElementById("city_"+i).innerHTML=y,!1;if(t.value.length>10||t.value.length<8)return document.getElementById("city_"+i).innerHTML=N,!1;var u=["0000000000","1111111111","2222222222","3333333333","4444444444","5555555555","6666666666","7777777777","8888888888","9999999999"],v=u.indexOf(t.value);return"-1"!=v?(document.getElementById("city_"+i).innerHTML=e,!1):(city=t.value.substring(0,3),c=parseInt(t.value.charAt(9)),n=10*parseInt(t.value.charAt(0))+9*parseInt(t.value.charAt(1))+8*parseInt(t.value.charAt(2))+7*parseInt(t.value.charAt(3))+6*parseInt(t.value.charAt(4))+5*parseInt(t.value.charAt(5))+4*parseInt(t.value.charAt(6))+3*parseInt(t.value.charAt(7))+2*parseInt(t.value.charAt(8)),r=n-11*parseInt(n/11),0==r&&r==c||1==r&&1==c||r>1&&c==11-r?(a&&10==t.value.length&&(t.value=t.value.substring(0,3)+"-"+t.value.substring(3,9)+"-"+t.value.substring(9,10)),l?(document.getElementById("city_"+i).innerHTML=cityName_by_melliCode_hannanstd(city),!0):void 0):(document.getElementById("city_"+i).innerHTML=e,!1))};