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 FrontMaps_show01={categorys:[],$categorys:{},initCategoty:function(){this.categorys.push(this.$categorys["1000"]={id:"1000",v1:i18n_FrontMaps_show_map_label_categoryName1,v2:"",v3:""});this.categorys.push(this.$categorys["1010"]={id:"1010",v1:i18n_FrontMaps_show_map_label_categoryName2,v2:"",v3:""});this.categorys.push(this.$categorys["1020"]={id:"1020",v1:i18n_FrontMaps_show_map_label_categoryName3,v2:"",v3:""});this.categorys.push(this.$categorys["1030"]={id:"1030",v1:i18n_FrontMaps_show_map_label_categoryName4,v2:"",v3:""});this.categorys.push(this.$categorys["1040"]={id:"1040",v1:i18n_FrontMaps_show_map_label_categoryName5,v2:"",v3:""});this.categorys.push(this.$categorys["1041"]={id:"1041",v1:i18n_FrontMaps_show_map_label_categoryName6,v2:"",v3:""});this.categorys.push(this.$categorys["1050"]={id:"1050",v1:i18n_FrontMaps_show_map_label_categoryName7,v2:"",v3:""});this.categorys.push(this.$categorys["1051"]={id:"1051",v1:i18n_FrontMaps_show_map_label_categoryName8,v2:"",v3:""});this.categorys.push(this.$categorys["1090"]={id:"1090",v1:i18n_FrontMaps_show_map_label_categoryName9,v2:"",v3:""});this.categorys.push(this.$categorys["10A0"]={id:"10A0",v1:i18n_FrontMaps_show_map_label_categoryName10});this.categorys.push(this.$categorys["10B0"]={id:"10B0",v1:i18n_FrontMaps_show_map_label_categoryName11,v2:"",v3:""});this.categorys.push(this.$categorys["10C0"]={id:"10C0",v1:i18n_FrontMaps_show_map_label_categoryName12,v2:"",v3:""});this.categorys.push(this.$categorys["10D0"]={id:"10D0",v1:i18n_FrontMaps_show_map_label_categoryName13,v2:"",v3:""});this.categorys.push(this.$categorys["10E0"]={id:"10E0",v1:i18n_FrontMaps_show_map_label_categoryName14,v2:"",v3:""});this.categorys.push(this.$categorys["1110"]={id:"1110",v1:i18n_FrontMaps_show_map_label_categoryName15,v2:"",v3:""});this.categorys.push(this.$categorys["1210"]={id:"1210",v1:i18n_FrontMaps_show_map_label_categoryName16,v2:"",v3:""});this.categorys.push(this.$categorys["1230"]={id:"1230",v1:i18n_FrontMaps_show_map_label_categoryName17,v2:"",v3:""});this.categorys.push(this.$categorys["1250"]={id:"1250",v1:i18n_FrontMaps_show_map_label_categoryName18,v2:"",v3:""});this.categorys.push(this.$categorys["1270"]={id:"1270",v1:i18n_FrontMaps_show_map_label_categoryName19,v2:"",v3:""});this.categorys.push(this.$categorys["1260"]={id:"1260",v1:i18n_FrontMaps_show_map_label_categoryName20,v2:"",v3:""});this.categorys.push(this.$categorys["127F"]={id:"127F",v1:i18n_FrontMaps_show_map_label_categoryName21,v2:"",v3:""});this.categorys.push(this.$categorys["1280"]={id:"1280",v1:i18n_FrontMaps_show_map_label_categoryName22,v2:"",v3:""});this.categorys.push(this.$categorys["1380"]={id:"1380",v1:i18n_FrontMaps_show_map_label_categoryName23,v2:"",v3:""});this.categorys.push(this.$categorys["1480"]={id:"1480",v1:i18n_FrontMaps_show_map_label_categoryName24,v2:"",v3:""});this.categorys.push(this.$categorys["17FF"]={id:"17FF",v1:i18n_FrontMaps_show_map_label_categoryName25,v2:"",v3:""});this.categorys.push(this.$categorys["1800"]={id:"1800",v1:i18n_FrontMaps_show_map_label_categoryName26,v2:"",v3:""});this.categorys.push(this.$categorys["1840"]={id:"1840",v1:i18n_FrontMaps_show_map_label_categoryName27,v2:"",v3:""});this.categorys.push(this.$categorys["1880"]={id:"1880",v1:i18n_FrontMaps_show_map_label_categoryName28,v2:"",v3:""});this.categorys.push(this.$categorys["1980"]={id:"1980",v1:i18n_FrontMaps_show_map_label_categoryName29,v2:"",v3:""});this.categorys.push(this.$categorys["1A80"]={id:"1A80",v1:i18n_FrontMaps_show_map_label_categoryName30,v2:"",v3:""});this.categorys.push(this.$categorys["1A90"]={id:"1A90",v1:i18n_FrontMaps_show_map_label_categoryName31,v2:"",v3:""});this.categorys.push(this.$categorys["1AA0"]={id:"1AA0",v1:i18n_FrontMaps_show_map_label_categoryName32,v2:"",v3:""});this.categorys.push(this.$categorys["1AB0"]={id:"1AB0",v1:i18n_FrontMaps_show_map_label_categoryName33,v2:"",v3:""});this.categorys.push(this.$categorys["1F00"]={id:"1F00",v1:i18n_FrontMaps_show_map_label_categoryName34,v2:"",v3:""});this.categorys.push(this.$categorys["1FFF"]={id:"1FFF",v1:i18n_FrontMaps_show_map_label_categoryName35,v2:"",v3:""});this.categorys.push(this.$categorys["2010"]={id:"2010",v1:i18n_FrontMaps_show_map_label_categoryName36,v2:"",v3:""});this.categorys.push(this.$categorys["2020"]={id:"2020",v1:i18n_FrontMaps_show_map_label_categoryName37,v2:"",v3:""});this.categorys.push(this.$categorys["2030"]={id:"2030",v1:i18n_FrontMaps_show_map_label_categoryName38,v2:"",v3:""});this.categorys.push(this.$categorys["2040"]={id:"2040",v1:i18n_FrontMaps_show_map_label_categoryName39,v2:"",v3:""});this.categorys.push(this.$categorys["2050"]={id:"2050",v1:i18n_FrontMaps_show_map_label_categoryName40,v2:"",v3:""});this.categorys.push(this.$categorys["2060"]={id:"2060",v1:i18n_FrontMaps_show_map_label_categoryName41,v2:"",v3:""});this.categorys.push(this.$categorys["2080"]={id:"2080",v1:i18n_FrontMaps_show_map_label_categoryName42,v2:"",v3:""});this.categorys.push(this.$categorys["2081"]={id:"2081",v1:i18n_FrontMaps_show_map_label_categoryName43,v2:"",v3:""});this.categorys.push(this.$categorys["2082"]={id:"2082",v1:i18n_FrontMaps_show_map_label_categoryName44,v2:"",v3:""});this.categorys.push(this.$categorys["2083"]={id:"2083",v1:i18n_FrontMaps_show_map_label_categoryName45,v2:"",v3:""});this.categorys.push(this.$categorys["20FF"]={id:"20FF",v1:i18n_FrontMaps_show_map_label_categoryName46,v2:"",v3:""});this.categorys.push(this.$categorys["2100"]={id:"2100",v1:i18n_FrontMaps_show_map_label_categoryName47,v2:"",v3:""})},getCategoryForLabel:function(d){for(var a=0,b;b=this.categorys[a];a++){if(d==b.id){return b.v1}}},getCategory:function(b,e){for(var a=0,d;d=this.categorys[a];a++){if(e==d.id){$(b).html(d.v1)}}},trim:function(a,b){a=""+a;if(b=="l"||b=="L"){RegularExp=/^\s+/gi;return a.replace(RegularExp,"")}else{if(b=="r"||b=="R"){RegularExp=/\s+$/gi;return a.replace(RegularExp,"")}else{RegularExp=/^\s+|\s+$/gi;return a.replace(RegularExp,"")}}},notBlank:function(a){return a!=null&&trim(a)!=""},enterperisemaplabel:function(b,e){var h={title:b.corpname};var a=new BMap.Marker(new BMap.Point(b.longitude/100000,b.latitude/100000),h);if(e==0){frontMap.centerAndZoom(a.getPosition(),16)}if(!/^\s*$/.test(b.label)){var g=b.label.split("|");var f=new BMap.Icon(g[0],new BMap.Size(g[1],g[2]));a.setIcon(f)}var d=this.getMTipOptionsContent(b);var c=new BMap.InfoWindow(d);a.addEventListener("mouseover",function(j){a.openInfoWindow(c)});frontMap.addOverlay(a);if(e==0){frontMap.panTo(new BMap.Point(b.longitude/100000,b.latitude/100000));a.openInfoWindow(c)}$("#"+b.id).click(function(j){a.openInfoWindow(c)})},enterperisemapguide:function(b){var g={title:b.name};var a=new BMap.Marker(new BMap.Point(b.longitude/100000,b.latitude/100000),g);if(!/^\s*$/.test(b.label)){var f=b.label.split("|");var e=new BMap.Icon(f[0],new BMap.Size(f[1],f[2]));a.setIcon(e)}else{var e=new BMap.Icon("/manager/images/map/map_tb2_big.gif",new BMap.Size(49,31));a.setIcon(e)}var d=this.getGuideMTipOptionsContent(b);var c=new BMap.InfoWindow(d);a.addEventListener("mouseover",function(h){a.openInfoWindow(c)});$("#"+b.id).click(function(h){a.openInfoWindow(c)});frontMap.addOverlay(a)},getMTipOptionsContent:function(a){var c=FrontMaps_show01.getCategoryForLabel(a.category);var b="";b+="";b+="";b+="";if(a.liasion!=""){b+=""}if(a.website!=""){b+=""}b+="
"+FrontMaps_show01.specialCharConvert(a.corpname)+"
"+i18n_FrontMaps_show_map_label_category+""+c+"
"+i18n_FrontMaps_show_map_label_address+""+a.address+"
"+i18n_FrontMaps_show_map_label_liasion+""+a.liasion+"
"+i18n_FrontMaps_show_map_label_website+""+a.website+"
";return b},getGuideMTipOptionsContent:function(a){var b="";b+="";b+="";b+="
"+FrontMaps_show01.specialCharConvert(a.name)+"
"+i18n_FrontMaps_show_map_label_description1+""+a.description+"
";return b},specialCharConvert:function(a){return a.replace(/\"/g,'"').replace(/\'/g,"'")},maplabel:function(a,b){frontMap.panTo(new BMap.Point(parseInt(a)/100000,parseInt(b)/100000))},mapguide:function(a,b){frontMap.panTo(new BMap.Point(parseInt(a)/100000,parseInt(b)/100000))},changeMapCity:function(g,f,a){var d=_getElementById(g,f,a);var c=d.options;if(c&&c.length>0){for(i=0;i