var FrontProducts_generalSearch01={patternDate:/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/,patternCurrency:/^\d{1,8}(\.\d{0,2})?$/,compId:"",mustInputKeyword:"false",inputkeyword:"",keyover:function(a,b){if(jQuery("#"+a+"_keyword").val()==b){jQuery("#"+a+"_keyword").val("");jQuery("#"+a+"_keyword").focus()}},keyout:function(a,b){if(this.trim(jQuery("#"+a+"_keyword").val())==""){jQuery("#"+a+"_keyword").val(b);jQuery("#"+a+"_keyword").addClass("input-keyword")}else{jQuery("#"+a+"_keyword").val(this.trim(jQuery("#"+a+"_keyword").val()));jQuery("#"+a+"_keyword").removeClass("input-keyword")}},trim:function(b,c){b=""+b;if(c=="l"||c=="L"){RegularExp=/^\s+/gi;return b.replace(RegularExp,"")}else{if(c=="r"||c=="R"){RegularExp=/\s+$/gi;return b.replace(RegularExp,"")}else{RegularExp=/^\s+|\s+$/gi;var a=b.replace(RegularExp,"");return a}}},validateForm:function(k,c,g){this.compId=k;this.mustInputKeyword=c;this.inputkeyword=g;if(this.checkKeywords()==false){return false}var j=jQuery("#"+this.compId+"_beginValue").val();var i=jQuery("#"+this.compId+"_endValue").val();var d=jQuery("#"+this.compId+"_propertyId").val();var b=jQuery("#"+this.compId+"_propertyType").val();var a=jQuery("#"+this.compId+"_areaType").val();var f=this.trim(jQuery("#"+this.compId+"_keyword").val());jQuery("#"+this.compId+"_keyword").val(f);if(f==this.inputkeyword){jQuery("#"+this.compId+"_keyword").val("")}var h="1";if(d!=null&&d!=""){if(b=="3"){h="3"}else{h="2"}}jQuery("#"+this.compId+"_searchType").val(h);if(a!=""){if(a=="BigDecimal"){if(this.checkNumber()==false){return false}}else{if(a=="Date"){if(this.isCheckAreaDate()==false){return false}}}}var e=jQuery("#"+this.compId+"_keyword").serialize();jQuery.ajax({type:"POST",url:"/FrontProducts.do?method=keywordStat",data:e,dataType:"text",cache:false,success:function(l){}});return true},checkKeywords:function(){if(this.mustInputKeyword=="true"){if(this.trim(jQuery("#"+this.compId+"_keyword").val())==this.inputkeyword||this.trim(jQuery("#"+this.compId+"_keyword").val())==""){alert(this.inputkeyword);jQuery("#"+this.compId+"_keyword").val("");jQuery("#"+this.compId+"_keyword").focus();return false}}return true},checkNumber:function(){if(jQuery("#"+this.compId+"_beginValue").val()&&!this.patternCurrency.test(jQuery("#"+this.compId+"_beginValue").val())){alert(i18n_products_error_beginValue);jQuery("#"+this.compId+"_beginValue").focus();return false}if(jQuery("#"+this.compId+"_endValue").val()&&!this.patternCurrency.test(jQuery("#"+this.compId+"_endValue").val())){alert(i18n_products_error_endValue);jQuery("#"+this.compId+"_endValue").focus();return false}if(jQuery("#"+this.compId+"_beginValue").val()&&jQuery("#"+this.compId+"_endValue").val()&&(parseInt(jQuery("#"+this.compId+"_beginValue").val())>parseInt(jQuery("#"+this.compId+"_endValue").val()))){alert(i18n_products_mustaboveprice);jQuery("#"+this.compId+"_endValue").focus();return false}return true},queryadvance:function(a,b){if(b=="_self"){location.href=/publicScripts/components/a}else{window.open(a)}},changecategory:function(b,d,c,a){jQuery.getJSON("/FrontProducts.do?method=doGetTemplatePropertiesByCategoryId",{pmcId:c},function(g){if(g){var f="";_getElementById(b,d,"template").innerHTML=f}})},isCheckAreaDate:function(){if(jQuery("#"+this.compId+"_beginValue").val()&&!this.patternDate.test(jQuery("#"+this.compId+"_beginValue").val())){alert(i18n_products_inputcorrectdate);jQuery("#"+this.compId+"_beginValue").focus();return false}if(jQuery("#"+this.compId+"_endValue").val()&&!this.patternDate.test(jQuery("#"+this.compId+"_endValue").val())){alert(i18n_products_inputcorrectdate);jQuery("#"+this.compId+"_endValue").focus();return false}if(jQuery("#"+this.compId+"_beginValue").val()&&jQuery("#"+this.compId+"_endValue").val()&&(jQuery("#"+this.compId+"_beginValue").val()>jQuery("#"+this.compId+"_endValue").val())){alert(i18n_products_mustlessenddate);jQuery("#"+this.compId+"_endValue").focus();return false}return true}};var FrontComContent_list01={alternate:function(A){$("#"+A+" h5").each(function(B){$(this).toggle(function(){$("#"+A+"UL"+B).hide();$(this).find(":first-child").attr("src","../../images/comcontent/2.jpg")},function(){$("#"+A+"UL"+B).show();$(this).find(":first-child").attr("src","../../images/comcontent/1.jpg")})})},getUrlParam:function(C){var B=new RegExp("(^|&)"+C+"=([^&]*)(&|$)");if(C=="c"){var D=window.location.toString().split("c=");if(D!=null&&D.length>=2){return D[1].split("&")[0]}}var A=window.location.toString().match(B);if(A!=null){return unescape(A[2])}return null},d1extContainCategoryAlternate:function(B){var F=this.getUrlParam(B+"CurrentIds");var A="3";if(F==null){F=this.getUrlParam(B+"ContId");A="2";if(F==null){F=this.getUrlParam("c");A="1"}}var D="";var E="";if(F!=null){if(A=="1"){D=this.getUrlParam("i");if(D!=null){D=D.replace(".html","")}E="comContent_"+F}else{D=this.getUrlParam("comContentId");if(D!=null){D=D.replace(".html","")}var C=F.indexOf("__");E="comContent_"+F.substring(0,C)}$("#"+B+" #comContent2_"+D).addClass("current")}else{E=$("#"+B+" .menu-first ul li:first a:first").attr("id");D=$("#"+B+" .menu-first ul li:first ul li:first a").attr("id");$("#"+B+" #"+D).addClass("current")}$("#"+B+" #"+E).addClass("current");$("#"+B+" #"+E+"_second").show();$("#"+B+" .menu-first ul li a.menu-text1").click(function(){if($(this).attr("id")==E){if(!$(this).parent().hasClass("menu-none")){if($("#"+B+" #"+E+"_second").is(":hidden")){$(this).removeClass("current2");$(this).addClass("current");$("#"+B+" #"+E+"_second").show()}else{$(this).removeClass("current");$(this).addClass("current2");$("#"+B+" #"+E+"_second").hide()}}}else{$("#"+B+" #"+E).removeClass("current current2");if(!$("#"+B+" #"+E).parent().hasClass("menu-none")){$("#"+B+" #"+E+"_second").hide()}$(this).addClass("current");E=$(this).attr("id");if(!$(this).parent().hasClass("menu-none")){if(!$("#"+B+" #"+E+"_second").find("a").hasClass("current")){$("#"+B+" #"+E+"_second").find("a:first").addClass("current")}$("#"+B+" #"+E+"_second").show()}}});$("#"+B+" .menu-second ul li a.menu-text2").click(function(){$(this).parent().parent().find("a").removeClass("current");$(this).addClass("current")})},d1extNoContainCategoryAlternate:function(A){var B=this.getUrlParam("comContentId");if(B==null){B=this.getUrlParam("i");if(B!=null){B=B.replace(".html","")}}else{B=B.replace(".html","")}var C="0";if(B!=null&&(B.toLowerCase().indexOf("alert")!=-1||B.toLowerCase().indexOf("onload")!=-1)){C="1"}if(B==null||C=="1"){$("#"+A+" .menu-first ul li:first a").addClass("current")}else{$("#"+A+" #comContent_"+B).addClass("current");$("#"+A+" #comContent2_"+B).addClass("current")}$("#"+A+" .menu-first ul li a.menu-text1").click(function(){$("#"+A+" .menu-first ul li a.menu-text1").removeClass("current");$(this).addClass("current")})}};var FrontMessages_customizeEmit01={isValidPhone:function(B){if(!/^[\d\-()、]{7,32}$/.test(B)){return false}var A=[];for(var C=0,D;D=B.charAt(C);C++){if(D=="("){A.push(D)}else{if(D==")"){if(A.pop()!="("){return false}}}}return !A.length},isIdCard:function(B){var C=/^\s*\d{15}\s*$/;var A=/^\s*\d{16}[\dxX]{2}\s*$/;if(!C.exec(B)&&!A.exec(B)){return false}return true},displayInfo:function(A){document.getElementById(A).style.display="block"},hideInfo:function(A){document.getElementById(A).style.display="none"},showinfo:function(A){strarr=A.split("_");laststr=strarr[strarr.length-1];strinfo="";strno="";strerr="";strpast="";for(i=0;iC.maxContent.value){FrontMessages_customizeEmit01.hideInfo(J+"_infocontent");FrontMessages_customizeEmit01.hideInfo(J+"_infocontent_black");FrontMessages_customizeEmit01.hideInfo(J+"_nocontent");FrontMessages_customizeEmit01.displayInfo(J+"_errcontent");H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_infocontent_black");FrontMessages_customizeEmit01.displayInfo(J+"_infocontent")}}if((M=="all"||M=="messagesTitle")&&C.messagesTitle){C.messagesTitle.value=C.messagesTitle.value.replace(/^\s+|\s+$/g,"");if(!/^\s*$/.test(C.messagesTitle.value)){if(specialCharactersCheck(C.messagesTitle.value)){FrontMessages_customizeEmit01.hideInfo(J+"_infomessagesTitle");FrontMessages_customizeEmit01.hideInfo(J+"_infomessagesTitle_black");FrontMessages_customizeEmit01.hideInfo(J+"_nomessagesTitle");FrontMessages_customizeEmit01.displayInfo(J+"_errmessagesTitle");H=false}}if(C.isDisplayMessagesTitle.value=="1"){if(/^\s*$/.test(C.messagesTitle.value)){FrontMessages_customizeEmit01.hideInfo(J+"_infomessagesTitle");FrontMessages_customizeEmit01.hideInfo(J+"_infomessagesTitle_black");FrontMessages_customizeEmit01.hideInfo(J+"_errmessagesTitle");FrontMessages_customizeEmit01.displayInfo(J+"_nomessagesTitle");H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_infomessagesTitle_black");FrontMessages_customizeEmit01.displayInfo(J+"_infomessagesTitle")}}if((M=="all"||M=="weburl")&&C.weburl){var L=/^((http|https|ftp):(\/\/|\\\\))?((\w)+[.]){1,}/;if(C.isDisplayUrl.value=="1"){if(C.weburl.value==""||C.weburl.value=="http://"){FrontMessages_customizeEmit01.hideInfo(J+"_infoweburl");FrontMessages_customizeEmit01.hideInfo(J+"_infoweburl_black");FrontMessages_customizeEmit01.hideInfo(J+"_errweburl");FrontMessages_customizeEmit01.displayInfo(J+"_noweburl");H=false}else{if(!L.test(C.weburl.value)){FrontMessages_customizeEmit01.hideInfo(J+"_infoweburl");FrontMessages_customizeEmit01.hideInfo(J+"_infoweburl_black");FrontMessages_customizeEmit01.hideInfo(J+"_errweburl");FrontMessages_customizeEmit01.displayInfo(J+"_errweburl");H=false}}}else{if(C.weburl.value!=""&&C.weburl.value!="http://"){if(!L.test(C.weburl.value)){FrontMessages_customizeEmit01.hideInfo(J+"_infoweburl");FrontMessages_customizeEmit01.hideInfo(J+"_infoweburl_black");FrontMessages_customizeEmit01.hideInfo(J+"_errweburl");FrontMessages_customizeEmit01.displayInfo(J+"_errweburl");H=false}}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_infoweburl_black");FrontMessages_customizeEmit01.displayInfo(J+"_infoweburl")}}if(M=="all"||M=="verifyCode"){if(C.verifyCode.value.length==0){FrontMessages_customizeEmit01.hideInfo(J+"_pastverifyCode");FrontMessages_customizeEmit01.hideInfo(J+"_errverifyCode");FrontMessages_customizeEmit01.displayInfo(J+"_noverifyCode");H=false}else{if(!FrontMessages_customizeEmit01.checkVerifyCodeInput(C.verifyCode.value,J)){FrontMessages_customizeEmit01.hideInfo(J+"_pastverifyCode");FrontMessages_customizeEmit01.displayInfo(J+"_errverifyCode");FrontMessages_customizeEmit01.hideInfo(J+"_noverifyCode");H=false}}}if(M=="all"||A=="0"){if(B=="0"){document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}}if(B=="1"){document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!isEmail(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="2"){document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!isMobileNumber(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="3"){document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!FrontMessages_customizeEmit01.isValidPhone(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="4"){zip=/^\d{6}$/;document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!zip.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="5"){document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!FrontMessages_customizeEmit01.isIdCard(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="6"){L=/^((http|https|ftp):(\/\/|\\\\))?((\w)+[.]){1,}/;document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(isDisplayAttribute=="1"){if(extendAtrributeValue==""||extendAtrributeValue=="http://"){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}else{if(!L.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}}else{if(extendAtrributeValue!=""&&extendAtrributeValue!="http://"){if(!L.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="7"){qq=/^[1-9]\d{4,9}$/;document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!qq.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="8"){str=/^[-]{0,1}[0-9]{1,}$/;document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!str.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="9"){str=/^(-?\d+)(\.\d+)?$/;document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!str.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}}if(M=="all"||A=="1"){if(document.getElementById("extendAtrribute"+M)&&document.getElementById("isDisplayAttribute"+M)){document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;attributeMaxContent=document.getElementById("maxContent"+M).value;if(/^\s*$/.test(extendAtrributeValue)&&isDisplayAttribute=="1"){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}else{if(extendAtrributeValue.length>attributeMaxContent){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}}if(M=="all"||A=="2"){if(document.getElementById("isDisplayAttribute"+M)){isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(document.getElementById("extendAtrribute"+M)){extendAtrribute=document.getElementById("extendAtrribute"+M)}option=document.getElementsByName("extendAtrribute"+M);arrCheckbox=document.getElementsByName("checkboxExtendAtrribute"+M);if(arrCheckbox.length>0){option=document.getElementsByName("checkboxExtendAtrribute"+M)}if(isDisplayAttribute=="1"){var K=false;for(i=0;iattributeMaxContent){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}}if(M=="all"||A=="2"){if(document.getElementById("isDisplayAttribute"+M)){isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(document.getElementById("extendAtrribute"+M)){extendAtrribute=document.getElementById("extendAtrribute"+M)}option=document.getElementsByName("extendAtrribute"+M);arrCheckbox=document.getElementsByName("checkboxExtendAtrribute"+M);if(arrCheckbox.length>0){strCheckbox="";for(m=arrCheckbox.length-1;m>=0;m--){if(arrCheckbox[m].checked){strCheckbox=arrCheckbox[m].value+","+strCheckbox}}strCheckbox=strCheckbox.substr(0,strCheckbox.length-1);extendAtrribute.value=strCheckbox;option=document.getElementsByName("checkboxExtendAtrribute"+M)}if(isDisplayAttribute=="1"){var K=false;for(j=0;j