var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); Site.bookingSubmitPanel={},function(E,b,w){var a,o=0,s=480,l=540,d=0,p=0,z={},c="",H="#module44",x=[],P=Fai.isIE6()||Fai.isIE7()||Fai.isIE8(),N=[],D={};b.dom={};var m=2052==Fai.top._lcid||1028==Fai.top._lcid;function i(){var t=(Fai.top.$("body").width()-p)/2,e=(Fai.top.$("body").height()-d)/2,i=[];return i.push('"),i}function u(){var t=[];if(D.bookingOpen){var e=z.verticalShowType,i=d-110;t.push('
'),e?h(t):r(t),t.push("
")}else{var n=D.bookingClosedTip;Fai.top._manageMode&&(n+=","+D.pleaseClick+""+D.setUp+""),t.push('\t\t'),t.push('\t\t\t"),t.push("\t\t
'),t.push('\t\t\t\t
'),t.push('\t\t\t\t
'+n+"
"),t.push("\t\t\t
")}var a=document.getElementById("tableWrap");null!=a&&a.parentNode.removeChild(a);var o=b.dom;o.innerContent.append(t.join("")),o.content.find(".f-content-title").text(z.moduleTitle),F()}function r(i){i.push('\t'),i.push("\t\t"),E.each(D.contentList,function(t,e){if(e.hide)return!0;i.push('\t\t'),""==e.headline?i.push('\t\t\t"):i.push('\t\t\t"),i.push('\t\t\t"),i.push("\t\t")}),D.validation&&(i.push('\t\t'),i.push('\t\t\t"),i.push('\t\t\t"),i.push("\t\t")),i.push('\t\t\t'),i.push("\t\t\t\t"),i.push('\t\t\t\t"),i.push("\t\t\t"),i.push("\t\t"),i.push("\t
'+Fai.encodeHtml(e.name)+"
'+Fai.encodeHtml(e.headline)+"
'),i.push('\t\t\t\t
'),i.push(n(e)),e.must&&5!=e.type?i.push('\t\t*'):i.push(""),i.push("\t\t\t\t
"),i.push("\t\t\t
'+LS.loginDialogCaptcha+"
'),i.push('\t\t\t\t
'),i.push('\t\t\t\t\t
'),i.push('\t\t\t\t\t\t\t'),i.push('\t\t\t\t\t\t\t'),i.push("\t\t\t\t\t
"),i.push('\t\t\t\t\t*'),i.push("\t\t\t\t
"),i.push("\t\t\t
'),i.push('\t\t\t\t\t
'),i.push('\t\t\t\t\t\t
'),i.push('\t\t\t\t\t\t\t
'),i.push('\t\t\t\t\t\t\t\t
'),i.push('\t\t\t\t\t\t\t\t
'+Fai.encodeHtml(D.buttonName)+"
"),i.push('\t\t\t\t\t\t\t\t
'),i.push("\t\t\t\t\t\t\t
"),i.push("\t\t\t\t\t\t
"),i.push("\t\t\t\t\t
"),i.push("\t\t\t\t
")}function h(i){i.push('\t'),i.push("\t\t"),E.each(D.contentList,function(t,e){if(e.hide)return!0;i.push('\t\t'),i.push('\t\t\t"),i.push("\t\t")}),D.validation&&(i.push('\t\t'),i.push('\t\t\t"),i.push("\t\t")),i.push('\t\t\t'),i.push('\t\t\t\t"),i.push("\t\t\t"),i.push("\t\t"),i.push("\t
'),""==e.headline?i.push('\t\t\t\t
'+Fai.encodeHtml(e.name)+"
"):i.push('\t\t\t\t
'+Fai.encodeHtml(e.headline)+"
"),i.push('\t\t\t\t
'),i.push(n(e)),e.must&&5!=e.type?i.push('\t\t*'):i.push(""),i.push("\t\t\t\t
"),i.push("\t\t\t
'),i.push('\t\t\t\t
'+LS.loginDialogCaptcha+"
"),i.push('\t\t\t\t
'),i.push('\t\t\t\t\t
'),i.push('\t\t\t\t\t\t\t'),i.push('\t\t\t\t\t\t\t'),i.push("\t\t\t\t\t
"),i.push('\t\t\t\t\t*'),i.push("\t\t\t\t
"),i.push("\t\t\t
'),i.push('\t\t\t\t\t
'),i.push('\t\t\t\t\t\t
'),i.push('\t\t\t\t\t\t\t
'),i.push('\t\t\t\t\t\t\t\t
'),i.push('\t\t\t\t\t\t\t\t
'+Fai.encodeHtml(D.buttonName)+"
"),i.push('\t\t\t\t\t\t\t\t
'),i.push("\t\t\t\t\t\t\t
"),i.push("\t\t\t\t\t\t
"),i.push("\t\t\t\t\t
"),i.push("\t\t\t\t
")}function n(t){var n=t.id,e=t.type,i=(t.name,t.must,t.input);p=t.placeholder==w?"":t.placeholder;var a=z[D.Def_BookingSubmit_ARRAY_STYLE],o=(D.Def_BookingSubmit_ARRAY_AUTO,D.Def_BookingSubmit_ARRAY_FIX),s=z[D.Def_BookingSubmit_FIX_NUM],l=i.split("\n"),c="",d=t.openAreaCode==w||t.openAreaCode,p=t.placeholder==w?"":t.placeholder,u=D.Def_LIMIT_INPUT_MAXLENTH,r=t.wordLimit;if(void 0===r?r={o:0,i:0,a:100}:1==(r=JSON.parse(r)).o&&(u=r.a),t.wordLimit=r,e==D.Def_ContentList_Type_SINGLE_LINE)c="";else if(e==D.Def_ContentList_Type_MULTI_LINE)c="";else if(e==D.Def_ContentList_Type_RADIO){var m=[];E.each(l,function(t,e){var i="radioR_"+n+"_"+t;t%s==0&&a==o&&m.push("
"),m.push("\t\t\t
"),P?m.push("\t\t\t\t"):m.push(T("radioR_"+n,e)),m.push("\t\t\t
"),t%s!=s-1&&t!=l.length-1||a!=o||m.push("
")}),c=m.join("")}else if(e==D.Def_ContentList_Type_MULTIPLECHOICE){var h=[];E.each(l,function(t,e){var i="radioC_"+n+"_"+t;t%s==0&&a==o&&h.push("
"),h.push("
"),P?h.push(""):h.push(U("radioC_"+n,e)),h.push("
"),t%s!=s-1&&t!=l.length-1||a!=o||h.push("
")}),c=h.join("")}else if(e==D.Def_ContentList_Type_DROPDOWN){var f=[];P?(f.push("")):f.push(""),c=f.join("")}else if(e==D.Def_ContentList_Type_DESC)c=Fai.encodeHtml(i);else if(e==D.Def_ContentList_Type_DATE){var _=[],v="bookingDate_"+n,g=t.dateSetting,b=1==(g.type==w?0:g.type),S={id:v,dateSetting:g};if(x.push(S),_.push("
"),_.push(""),b){var F="bookingDate_"+n+"_end";S={id:F,dateSetting:g};x.push(S),_.push(""+LS.to+""),_.push("
"),_.push("\t"),_.push("\t
"),_.push("
")}_.push("
"),c=_.join("")}else if(e==D.Def_ContentList_Type_FILE_UPLOAD){var y=t.size>D.fileSizeLimit?D.fileSizeLimit:t.size,k=[];if(t.isAllFile)k.push("*.*;");else{var C=((t.dftl||"")+(t.cftl||"")).split(" ");E.each(C,function(t,e){if(0"),I.push(""),I.push(""+D.siteFormFileSizeLimit+":"+y+"M"),c=I.join("")}else if(e==D.Def_ContentList_Type_PHONE){var L=[];c=d?(P?(L.push("")):L.push("
"),L.push(""),L.join("")):""}else e==D.Def_ContentList_Type_MAIL?c="":e==D.Def_ContentList_Type_IDENTITY?c="":e==D.Def_ContentList_Type_ADDRESS&&(c=j(t));return c}function T(t,e){var i=[];return i.push("\t"),i.push("\t\t"),i.push("\t\t"),i.push("\t\t"+Fai.encodeHtml(e)+""),i.push("\t"),i.join("")}function U(t,e){E(H).off("click.ncheckbox").on("click.ncheckbox",".jz-checkBox",function(){E(this).hasClass("jz-check-checked")?(E(this).removeClass("jz-check-checked"),E(this).find(".jz-radio-input").attr("checked",!1)):(E(this).addClass("jz-check-checked"),E(this).find(".jz-radio-input").attr("checked",!0))});var i=[];return i.push("\t"),i.push("\t\t"),i.push("\t\t"),i.push("\t\t"+Fai.encodeHtml(e)+""),i.push("\t"),i.join("")}function f(t){var g=function g(t){var a,i,e,o,n,s,l,c,d,p,u,r,m={container:E("body"),widgetClass:"selectTool",width:75,id:0,selectList:null,checkIndex:0,onchange:null,selectIcon:!1,selectListHeight:185,selectItemHeight:28,enable:!1},h="";if(!((a=this.opts=E.extend({},m,t,!0)).selectList.length<=0)){if(a.selectList.length*a.selectItemHeight
'+Fai.encodeHtml(a.selectList[n].content)+'
',a.container.append(h),i="",e=this.widgetDom=a.container.find("#J_"+a.widgetClass+a.id),b.dom.panel.find("#"+a.container.attr("id")+"_select_list").remove(),b.dom.panel.append(''),o=b.dom.panel.find("#"+a.container.attr("id")+"_select_list"),E.each(a.selectList,function(t,e){i='
  • '+Fai.encodeHtml(e.content)+"
  • ",o.append(i),i=""}),this.itemDom=c=o.find(".J_select_item"),l=a.selectItemHeight*a.selectList.length,a.selectIcon){var f="";f='',this.itemDom.find(".J_radio_label").append(f)}a.selectListHeightFai.top.$("body").height()&&(i=a.container.offset().top-a.container.height()-e+10-E(window).scrollTop()),o.css({width:a.container.width(),position:"absolute",top:i,left:a.container.offset().left}),u.find(".J_select_widget .J_select_arrow").removeClass("f-select-ratate-arrow"),o.slideDown(150),p.addClass("f-select-ratate-arrow")}else o.slideUp(150),p.removeClass("f-select-ratate-arrow");r.focus(),t.stopPropagation()}}),r.on("blur",function(){o.slideUp(150),o.parent().find(".J_select_arrow").removeClass("f-select-ratate-arrow")});var _="",v=navigator.userAgent.toLowerCase();_=/msie/.test(v)?"-ms-":/chrome/.test(v)||/safari/.test(v)||/yandex/.test(v)?"-webkit-":/mozilla/.test(v)?"-moz-":/opera/.test(v)?"-o-":/konqueror/.test(v)?"-khtml-":"",o.css(_+"user-select","none").attr("unselectable","on").on("selectstart mousedown",!1)}};return E.extend(g.prototype,{selectValue:function i(e){this.itemDom.each(function(){var t=E(this).find(".J_radio_label").attr("value");e!=t||E(this).trigger("click")})},getValue:function e(){return this.widgetDom.find(".J_select_text").attr("value")},destroy:function n(){this.widgetDom.find(".J_select_list").mCustomScrollbar("destroy"),this.opts=null,this.widgetDom=null},hideList:function a(){var t=this.widgetDom.find(".J_select_widget");t.slideUp(150),t.parent().find(".J_select_arrow").removeClass("f-select-ratate-arrow")}}),new g(t)}function j(t){var e,i=[],n=t.id,a=t.openMunicipalCode;return P?(i.push(""),i.push(""),a&&(i.push(""))):(i.push("
    "),i.push("
    "),a&&i.push("
    ")),i.join("")}function _(t){var e,i,n=t.fileSize,a=t.itemId,o=t.moduleId,s=t.fileTypeList,l=t.buttonValue,c=(t.isModuleButtonStyle,t.showType,t.srcjQueryUploadPath),d=document.documentElement||document.body,p=E("#bookingUploadBtn_"+a);p.width();if(Fai.isIE()){var u={file_post_name:"Filedata",upload_url:"/ajax/upsiteimg_h.jsp",button_placeholder_id:"bookingUploadBtn_"+a,file_size_limit:n+"MB",button_image_type:6,file_queue_limit:1,requeue_on_error:!1,button_height:32,button_width:128,button_text:""+l+"",button_text_style:".fk_btText{text-align:center; font-family: 微软雅黑; color: #333;}",button_text_top_padding:6,post_params:{ctrl:"Filedata",app:21,type:0,isSiteForm:!0},file_types:s.join(""),file_dialog_complete_handler:function h(t){this._allSuccess=!1,this.startUpload()},file_queue_error_handler:function f(t,e,i){switch(e){case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT:Fai.ing(LS.siteFormSubmitCheckFileSizeErr,!0);break;case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE:Fai.ing(LS.siteFormSubmitFileUploadNotAllow,!0);break;case SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED:Fai.ing(Fai.format(LS.siteFormSubmitFileUploadOneTimeNum,"一"),!0);break;default:Fai.ing(LS.siteFormSubmitFileUploadReSelect,!0)}},upload_success_handler:function _(t,e){var i=jQuery.parseJSON(e);this._allSuccess=i.success,this._sysResult=i.msg,i.success?(Fai.ing(Fai.format(LS.siteFormSubmitFileUploadSucess,Fai.encodeHtml(t.name)),!0),k("upload",i,o,a)):Fai.ing(LS.siteFormSubmitFileUploadFile+t.name+","+i.msg)},upload_error_handler:function v(t,e,i){-280==e?Fai.ing(LS.siteFormSubmitFileUploadFileCancle,!1):-270==e?Fai.ing(Fai.format(LS.siteFormSubmitFileUploadFileExist,Fai.encodeHtml(t.name)),!0):Fai.ing(Fai.format(LS.siteFormSubmitFileUploadSvrBusy,Fai.encodeHtml(t.name)))},upload_complete_handler:function g(t){t.filestatus==SWFUpload.FILE_STATUS.COMPLETE?setTimeout(function(){e.startUpload()},e.upload_delay):t.filestatus==SWFUpload.FILE_STATUS.ERROR&&Fai.ing(Fai.format(LS.siteFormSubmitFileUploadSvrBusy,Fai.encodeHtml(t.name)))},upload_start_handler:function b(t){Fai.enablePopupWindowBtn(0,"save",!1),Fai.ing(LS.siteFormSubmitFileUploadPrepare,!1)},view_progress:function S(t,e,i,n){Fai.ing(LS.siteFormSubmitFileUploadIng+n+"%",!1)}};e=SWFUploadCreator.create(u)}else{var r=function r(){e=p.uploadify(m),p.on("click",function(){p.find("a")[0].click()})},m={auto:!0,fileTypeExts:s.join(""),multi:!0,fileSizeLimit:1024*n*1024,fileSplitSize:20971520,breakPoints:!0,isBurst:!1,saveInfoLocal:!1,showUploadedPercent:!0,showUploadedSize:!0,removeTimeout:9999999,post_params:{app:21,type:0,fileUploadLimit:n},getFileSizeUrl:"/ajax/advanceUpload.jsp?cmd=_getUploadSize",uploader:"/ajax/advanceUpload.jsp?cmd=_mobiupload",onUploadSuccess:function F(t,e){var i=E.parseJSON(e);i.success?(Fai.ing(Fai.format(LS.siteFormSubmitFileUploadSucess,Fai.encodeHtml(t.name)),!0),k("upload",i,o,a)):Fai.ing("文件:"+t.name+","+i.msg)},onUploadError:function y(t,e){E("#progressBody_"+t.id).remove(),E("#progressWrap_"+t.id).remove(),Fai.ing(Fai.format(LS.siteFormSubmitFileUploadSvrBusy,Fai.encodeHtml(t.name)))}};"function"==typeof p.uploadify?r():((i=document.createElement("script")).src=c,i.type="text/javascript",d.appendChild(i),i.onload=function(){r()})}}function k(t,e,i,n){if("upload"==t){var a=e.id,o=e.name,s=e.type,l=(e.size,e.path,e.createTime,e.groupId,e.fileId),c=e.width||0,d=e.height||0,p=(s=e.type||0,E("#bookingUploadFile_"+n));E("#bookingUploadDESC_"+n).hide(),p.css("display","inline-block"),p.html(o),p.attr("_tmpFileId",a).attr("_tmpFileName",o).attr("title",o).attr("_fileId",l).attr("_width",c).attr("_height",d).attr("_type",s)}}function v(t){var e=[];e.push("pid="+o),e.push("&cmd=getWafNotCk_getPanelData"),e.push("&_colId="+Fai.top._colId),e.push("&_extId="+Fai.top._extId),E.ajax({type:"get",cache:!1,url:Site.addRequestPrefix({newPath:"/ajax/booking_h.jsp?",oldPath:Site.genAjaxUrl("booking_h.jsp?")})+e.join(""),error:function i(){Fai.ing("服务繁忙,请稍候重试",!1)},success:function n(t){var e=E.parseJSON(t);e.success?(D=e.pageData,c=D.css,z=D.moduleInfo,Fai.top._manageMode&&(a=D.itemList),u(),B()):Fai.ing("获取数据失败",!1)}})}function t(){var t=D.contentList,e=(D.Def_LIMIT_INPUT_MAXLENTH,D.Def_LIMIT_TEXTAREA_MAXLEN),i=[],n=[],a=!0;if(!(t.length<1)){for(var o=0;od)return M(Fai.format(LS.siteFormSubmitInputMaxLength,Fai.encodeHtml(name),d)),a=!1;if(must&&l.lengthe)return M(Fai.format(LS.siteFormSubmitInputMaxLength,Fai.encodeHtml(name),e)),a=!1;tmpItemContentList.val=u}else if(2==type){if(must&&0==E("input[name=radioR_"+id+"]:checked").length)return M(Fai.format(LS.siteFormSubmitCheckIsEmpty,Fai.encodeHtml(name))),a=!1;0b[1]))return M(Fai.format(LS.site_newMobileNumRegular,s.phoneNumberLength)),a=!1;if(openAreaCode){var S="";S=P?E("#phoneSelect_"+id).val():E("#phoneNewSelect_"+id).find(".f-select-text").attr("value"),E.trim(g)?tmpItemContentList.val=S+g:tmpItemContentList.val=""}else tmpItemContentList.val=g}else if(9==type){var F=E("#bookingMailInput_"+id).val();if(must&&""==F)return M(Fai.format(LS.siteFormSubmitInputIsEmpty,Fai.encodeHtml(name))),a=!1;if(must&&!Fai.isEmail(F))return M(Fai.format(LS.memberSignupUserAddItemCorrect,Fai.encodeHtml(name))),a=!1;tmpItemContentList.val=F}else if(10==type){var y=E("#bookingIdentityInput_"+id).val();if(must&&""==y)return M(Fai.format(LS.siteFormSubmitInputIsEmpty,Fai.encodeHtml(name))),a=!1;if(must&&!Fai.isCardNo(y))return M(Fai.format(LS.memberSignupUserAddItemCorrect,Fai.encodeHtml(name))),a=!1;tmpItemContentList.val=y}else if(11==type){var k=E("#proSelect_"+id).find("option:selected").attr("value"),C=E("#citySelect_"+id).find("option:selected").attr("value"),I=E("#countySelect_"+id).find("option:selected").attr("value"),L=E("#proSelect_"+id).find("option:selected").attr("_val"),w=E("#citySelect_"+id).find("option:selected").attr("_val"),x=E("#countySelect_"+id).find("option:selected").attr("_val");if(P||(k=E("#proNewSelect_"+id).find(".f-select-text").attr("value"),C=E("#cityNewSelect_"+id).find(".f-select-text").attr("value"),I=E("#countyNewSelect_"+id).find(".f-select-text").attr("value"),L=E("#proNewSelect_"+id).find(".f-select-text").text(),w=E("#cityNewSelect_"+id).find(".f-select-text").text(),x=E("#countyNewSelect_"+id).find(".f-select-text").text()),must&&("-1"==k||"-1"==C))return M(Fai.format(LS.siteFormSubmitInputIsEmpty,Fai.encodeHtml(name))),a=!1;L=-1==k?"":L,w=-1==C?"":w,x=-1==I?"":x,tmpItemContentList.val=L+w+x}}i.push(tmpItemContentList)}var N=E("#bookingVolidationCode").val();if(D.validation&&""==N)return M(Fai.format(LS.siteFormSubmitInputIsEmpty,LS.loginDialogCaptcha)),a=!1;if(!a)return!1;M(LS.siteFormSubmitIng),void 0!==E(H).data("bookingHasCommit")&&0!=E(H).data("bookingHasCommit")||(E(H).data("bookingHasCommit",!0),E.ajax({type:"post",url:Site.addRequestPrefix({newPath:"/ajax/booking_h.jsp?",oldPath:"ajax/booking_h.jsp"}),data:"cmd=addWafCk_add&pid="+D.pid+"&validateCode="+N+"&submitContentList="+Fai.encodeUrl(E.toJSON(i))+"&tmpFileList="+Fai.encodeUrl(E.toJSON(n)),error:function T(){E(H).data("bookingHasCommit",!1),J(!1)},success:function U(t){if(E(H).data("bookingHasCommit",!1),(t=E.parseJSON(t)).success){var e=z[D.Def_BookingSubmit_JUMP_URL];setTimeout(function(){1==e.lt?Fai.top.location.href=z.jumpToUrl:Fai.top.location.reload(),A()},2500),J(!0,"",2e3)}else-401==t.rt?(J(!1,t.msg),E(".validateInputAndCode #bookingVolidationCode").val(""),E(".validateInputAndCode .voteCodePic").trigger("click")):-4==t.rt?J(!1,LS.bookingSubmitFullTips):-7==t.rt?J(!1,LS.siteImgFull):-2==t.rt?J(!1,LS.js_argsError):J(!1,LS.memberLoginError)}}))}}function M(t){var e=b.dom;e.bookingPanelMsg.html(t);var i=e.content.width(),n=e.bookingPanelMsg.width();e.bookingPanelMsg.css("left",(i-n)/2+"px"),e.bookingPanelMsg.show(),setTimeout(function(){e.bookingPanelMsg.hide()},3e3)}function J(t,e,i){var n={htmlContent:Site.getDialogContent(!1,Fai.format(e||LS.siteFormSubmitError)),width:205,height:78};if(t){var a=[];a.push("
    "),a.push("\t
    "),a.push("\t\t"),a.push("\t\t"),a.push("\t\t
    "),a.push("\t\t
    "),a.push("\t
    "),a.push("\t
    "+LS.siteFormSubmitOk+"
    "),a.push("
    "),n={htmlContent:a.join(""),width:500,height:320,autoClose:i||0}}Site.popupBox(n)}function e(){P&&(E(".proSelect").change(function(){var t=E(this).attr("_contentId"),e=E(this).val(),i=[];i=m?site_cityUtil.getCities(e):site_cityUtil.getCitiesEn(e);var n=[];n.push(""),E.each(i,function(t,e){m?n.push(""):n.push("")}),E("#citySelect_"+t).removeAttr("disabled").html(n.join(""))}),E(".citySelect").change(function(){var t=E(this).attr("_contentId"),e=E(this).val(),i=[];i=m?site_cityUtil.getCounty(e):site_cityUtil.getCountyEn(e);var n=[];n.push(""),E.each(i,function(t,e){m?n.push(""):n.push("")}),E("#countySelect_"+t).removeAttr("disabled").html(n.join(""))}))}function g(){if(!P){var u=[];E.each(D.mobileCtNameList,function(t,e){u.push({content:e.ctShowName+e.ctCode,value:e.ctName})});var r=0;E(u).each(function(t,e){e.value==D.memberMobileCt&&(r=t)}),E.each(D.contentList,function(t,a){var o=a.id,e=a.type,i=a.input;if(e==D.Def_ContentList_Type_PHONE&&a.openAreaCode)f({container:E("#phoneNewSelect_"+o),widgetClass:"phoneCode",id:"phoneNewSelect",checkIndex:a.sys?r:0,width:120,selectList:u,onchange:function p(){}});else if(e==D.Def_ContentList_Type_DROPDOWN){var n=[],s=i.split("\n");E.each(s,function(t,e){n.push({content:e,value:e})}),f({container:E("#dropDownNewSelect_"+o),widgetClass:"drowDown",id:"dropDownNewSelect_",checkIndex:0,width:120,selectList:n,onchange:function p(){}})}else if(e==D.Def_ContentList_Type_ADDRESS){var l;l=m?site_cityUtil.getProvince():site_cityUtil.getProvinceEn();var c=[];c.push({content:D.siteFormPleaseSelect,value:-1}),E.each(l,function(t,e){c.push({content:e.name,value:e.id})});var d=f({container:E("#proNewSelect_"+o),widgetClass:"proAddr",id:"proNewSelect",checkIndex:0,width:120,selectList:c,onchange:function p(){var t;E("#countyNewSelect_"+o).empty(),f({container:E("#countyNewSelect_"+o),widgetClass:"cityAddr",id:"countyNewSelect_",checkIndex:0,width:120,selectList:[{content:D.siteFormPleaseSelect,value:-1}],enable:!0,onchange:function Ge(){}});var e=d.getValue();t=m?site_cityUtil.getCities(e):site_cityUtil.getCitiesEn(e);var i=[];i.push({content:D.siteFormPleaseSelect,value:-1}),E.each(t,function(t,e){i.push({content:e.name,value:e.id})}),E("#cityNewSelect_"+o).empty();var n=f({container:E("#cityNewSelect_"+o),widgetClass:"cityAddr",id:"cityNewSelect",checkIndex:0,width:120,selectList:i,onchange:function Ge(){var t,e=n.getValue();t=m?site_cityUtil.getCounty(e):site_cityUtil.getCountyEn(e);var i=[];i.push({content:D.siteFormPleaseSelect,value:-1}),E.each(t,function(t,e){i.push({content:e.name,value:e.id})}),a.openMunicipalCode&&(E("#countyNewSelect_"+o).empty(),f({container:E("#countyNewSelect_"+o),widgetClass:"cityAddr",id:"countyNewSelect_",checkIndex:0,width:120,selectList:i,onchange:function Ge(){}}))}})}});f({container:E("#cityNewSelect_"+o),widgetClass:"cityAddr",id:"cityNewSelect",checkIndex:0,width:120,selectList:[{content:D.siteFormPleaseSelect,value:-1}],enable:!0,onchange:function p(){}}),f({container:E("#countyNewSelect_"+o),widgetClass:"cityAddr",id:"countyNewSelect_",checkIndex:0,width:120,selectList:[{content:D.siteFormPleaseSelect,value:-1}],enable:!0,onchange:function p(){}})}})}}function S(){P||E(H).off("click.nradio").on("click.nradio",".jz-radio",function(){var t=E(this).attr("inputName");E(".R_"+t).removeClass("jz-radio-checked"),E(this).find("input[name="+t+"]").attr("checked",!1),E(this).addClass("jz-radio-checked"),E(this).find(".jz-radio-input").attr("checked",!0)})}function F(){S(),e(),g(),Site.siteFormTimeBtn(x),Fai.top._manageMode?(E(".fileUploadBtn").click(function(){M("当前为管理态状态,文件上传无效")}),E("#bookingSubmitBtn .s_ibutton").click(function(){M("当前为管理态状态,提交无效")}),y()):(E.each(N,function(t,e){_(e)}),E("#bookingSubmitBtn .s_ibutton").click(function(){t()})),Fai.top.$("#fk-bookingSubmitPanel f-innerContent>.mCustomScrollbar").length<1&&Fai.top.$("#fk-bookingSubmitPanel .tableWrap").mCustomScrollbar({theme:"fk-gray",advanced:{updateOnContentResize:!0},axis:"y"})}function y(){var c=b.dom.content;if(!(c.length<0||0"),b.dom.content.find(".J_resizableTip").click(function(){var t=(Fai.top.$("body").width()-l)/2;t=t<0?0:t;var e=(Fai.top.$("body").height()-s)/2;e=e<0?0:e,b.dom.content.css({width:+l,height:s,left:t,top:e}),b.dom.content.find("#tableWrap").css("height",s-110),E(this).hide(),i(l,s)}),c.children(".ui-resizable-handle").off("mousedown.pzresize").on("mousedown.pzresize",function(t){if(0==t.button){var s={clientX:t.clientX,clientY:t.clientY},l=c.width();startHeight=c.height(),handle=E(this),documentElem=E(document),direction=parseInt(handle.attr("_dir")),documentElem.off("mousemove.pzresize").on("mousemove.pzresize",function(t){E("#fk-moduleToolbar44").hide(),b.dom.content.find(".J_resizableTip").hide();var e={clientX:t.clientX,clientY:t.clientY},i=0,n=c.width();switch(resizeHeight=c.height(),direction){case 0:i=parseInt(e.clientX-s.clientX),n=l+2*i;break;case 1:i=parseInt(e.clientX-s.clientX),n=l-2*i;break;case 2:i=parseInt(e.clientY-s.clientY),resizeHeight=startHeight+2*i;break;case 3:i=parseInt(e.clientY-s.clientY),resizeHeight=startHeight-2*i}if(n=n<450?450:n,resizeHeight=resizeHeight<100?100:resizeHeight,direction<2){var a=(Fai.top.$("body").width()-n)/2;20<(a=a<=20?20:a)&&(c.css("width",n),b.dom.content.css("left",a))}else if(direction<4){var o=(Fai.top.$("body").height()-resizeHeight)/2;20<(o=o<=20?20:o)&&(c.css("height",resizeHeight),b.dom.content.find("#tableWrap").css("height",resizeHeight-110),b.dom.content.css("top",o))}}),documentElem.off("selectstart.pzsel").on("selectstart.pzsel",function(){return!1}),documentElem.off("mouseup.pzresize").on("mouseup.pzresize",function(t){documentElem.off("mousemove.pzresize").off("mouseup.pzresize").off("selectstart.pzsel"),i(c.width(),c.height())})}})}function i(i,n){var t={};t.w=i,t.h=n,E.ajax({type:"get",cache:!1,url:Site.addRequestPrefix({newPath:"/ajax/module_h.jsp?",oldPath:Site.genAjaxUrl("module_h.jsp?")})+"cmd=setWafCk_set&id=44&style=104&pattern="+Fai.encodeUrl(JSON.stringify(t)),error:function e(){Fai.ing("服务繁忙,请稍候重试",!1)},success:function a(t){var e=jQuery.parseJSON(t);e.success?(p=i,s==(d=n)&&l==p?b.dom.content.find(".J_resizableTip").addClass("J_resizableTipHide"):b.dom.content.find(".J_resizableTip").removeClass("J_resizableTipHide")):Fai.ing(e.msg,!1)}})}}function C(){var t=b.dom;t.panel;t.panelBtn.close.click(function(){A()}),t.contentBg.click(function(){A()}),t.panel.on("mousewheel DOMMouseScroll",function(t){return!1})}function I(){var t=b.dom;1