text: function checkCity(a){var b;return $.ajax({type:"POST",async:!1,url:ctx+"/jobs/checkCity.json",data:{city:a}}).done(function(a){b=a.success}),b}function img_check(a,b,c,d){var e=$("#"+d).val();this.AllowExt=".jpg,.gif,.jpeg,.png,.pjpeg",this.FileExt=a.value.substr(a.value.lastIndexOf(".")).toLowerCase(),0!=this.AllowExt&&-1==this.AllowExt.indexOf(this.FileExt)?$("#"+c+"_error").text("只支持jpg、gif、png、jpeg格式，请重新上传").show():($("#"+c+"_error").text("").hide(),$.ajaxFileUpload({url:b,secureuri:!1,fileElementId:c,data:{type:e},dataType:"text",success:function(a){""!=a?($("#logoShow img").attr("src",ctx+"/"+a),$("#logoNo").hide(),$("#logoShow").show(),$("#logo").val(a)):$("#"+c+"_error").text("上传失败，请重新上传").show()},error:function(){$("#"+c+"_error").text("上传失败，请重新上传").show()}}))}$(function(){var b,c,a=!1;$("#stepTip a").bind("click",function(){$(this).parent("#stepTip").remove()}),b={expires:1},null==$.cookie("viewTimes")?($("#stepTip img").attr("src",ctx+"/jsp/style/images/img_tiponce.jpg").parent("#stepTip").fadeIn(200),$.cookie("viewTimes","1",b)):(c=parseInt($.cookie("viewTimes"))+1,$("#stepTip img").attr("src",ctx+"/jsp/style/images/img_tipagain.jpg").parent("#stepTip").fadeIn(200),$.cookie("viewTimes",c,b)),$(document).click(function(){$("#box_industry").hide(),$("#box_scale").hide()}),$("#select_industry").bind("click",function(a){a.stopPropagation(),$("#box_scale").hide(),$("#box_industry").show()}),$("#box_industry").on("click","ul li",function(a){a.stopPropagation();var b=$(this).text();$("#select_industry,#hangyevalue").val(b),$("#hangye").val($(this).attr("value")),$("#box_industry").hide(),$("#stepForm").validate().element("#hangyevalue")}),$("#select_scale").bind("click",function(a){a.stopPropagation(),$("#box_scale").show(),$("#box_industry").hide()}),$("#box_scale").on("click","ul li",function(a){a.stopPropagation();var b=$(this).text();$("#select_scale,#guimovalue").val(b),$("#guimo").val($(this).attr("value")),$("#box_scale").hide(),$("#stepForm").validate().element("#guimovalue")}),$("#box_industry,#box_scale").bind("click",function(a){a.stopPropagation()}),jQuery.validator.addMethod("cityAvailable",function(a,b){return this.optional(b)||checkCity(a)},"请输入有效的公司所在城市，如：北京")});