'; catecnt = catecnt + 1; } gscnt = gscnt +1; var searchgscnt = obj.list[i].pcnt; var showsearchgscnt = searchgscnt;//\¦ if(obj.list[i].pkind=='1'){ //TWFXg if(showsearchgscnt=='0'){ txt = txt + '
'; } else { txt = txt + '
'; } } else { if(showsearchgscnt=='0'){ txt = txt + '
'; } else { txt = txt + '
'; } } } txt = txt + ''; } suggestin.innerHTML = txt; suggest.style.display = 'block'; // ÎÛðzñ» elm = j$('ul#keywordsearchlist > li > a'); elm.each(function(indx){ var num = indx; elm_arr[indx] = j$(this); fcs_flg[indx] = false; j$(this).focusin(function(){ fcs_num = num; if( fcs_flg[indx] === false ){ fcs_flg[indx] = true; } fcs_flg[indx] = true; }).blur(function(){ fcs_flg[indx] = false; if( fcs_flg.indexOf(true) < 0 ) { fcs_num = 0; } }); }); //key_decision(); //1ÔÚÌõÊð\¦ showsuggestinner('sug0'); j$('ul#keywordsearchlist > li > a#sug0').css('background-color', '#eef3f9'); }}}}}, onFailure: function(request) { //alert('onFailure/'+ request.responseText); }, onException: function (request,e) { //alert('onException/'+ e); } } ); } else {suggestin.innerHTML = "";suggest.style.display = 'none';hidediv('suggest');}}function stopSuggestSearch() { if(sugReq !=null) sugReq.transport.abort();}//window.onload = function(){//initParm();var oldvalue = "";var keywordtxt = document.getElementById("txtGoodsSearchKeyword");var suggest = document.getElementById("suggest");var suggestsend_timeoutid = null;function checkKeyword(evt){evt = (evt) ? evt : event;var charCode = getKEYCODE(evt);if(Number(charCode) == 40){if(elm_arr[1]){ j$('ul#keywordsearchlist > li > a').css('background-color', '#ffffff'); j$('ul#categorysearchlist > li > a').css('background-color', '#ffffff'); elm_arr[1].css('background-color', '#eef3f9');elm_arr[1].focus();} else {elm_arr[0].focus();}} else { if(suggestsend_timeoutid){clearTimeout(suggestsend_timeoutid);} suggestsend_timeoutid = setTimeout(function() {var keyword = j$('#txtKeyword').val();keyword = keyword.replace("@", "");keyword = keyword.replace(/^\s+/, "");keyword = keyword.replace(/\s+$/, "");if((keyword == "" && suggest && suggest.style.display == 'block') || (oldvalue != j$('#txtKeyword').val())){suggestSearch(keywordtxt);oldvalue = j$('#txtKeyword').val();} }, 500);}//setTimeout(check,100);}//checkKeyword();//}var timerIdsuggestSearchhide=0;var nowshowtsuggest='';function inKeywordSearch(id){clearTimeout(timerIdsuggestSearchhide);j$('#'+id).attr('bufkw')nowshowtsuggest=j$('#'+id).attr('bufkw');//0.1bÔÆÇÜÁ½ê®ìtimerIdsuggestSearchhide = setTimeout(function() {showsuggestinner(id);}, 100);}var suginReq = null;function showsuggestinner(id){ var nowdatetime = getNowDateTime(); stopSuggestInSearch(); var sugobj = j$('#'+id); var kw = sugobj.attr('bufkw'); var keyword = sugobj.attr('bufkeyword'); var category = sugobj.attr('bufcate'); var sugsearchcnt = sugobj.attr('bufcnt'); var searchurl = sugobj.attr('href'); keyword = encodeURL(keyword); var suggestinner = document.getElementById("suggestinner"); if(kw != ""){ suginReq = new Ajax.Request( "/Forestway/ajaxrequest/", { "method": "get", "parameters": "DateTime="+nowdatetime+"&Mode=9"+category+"&q="+keyword, onSuccess: function(request) { }, onComplete: function(request) { if ((request.readyState == 4) && (request.status == 200)){ var result = request.responseText.trim();if(result != null && result != '') {var obj = YAHOO.lang.JSON.parse(result); //G[bZ[WªéêA[gð\¦·é(G[R[h0ÈOA©Â\¦pG[bZ[W¶Ý) if(obj.errcd && obj.errcd != 0){// if(obj.errcd != obj.errmsg){// showAlert('G[', obj.dspmsg+'\n\n'+obj.errmsg);// } else {// showAlert('G[', obj.dspmsg);// } alert('G[Å·'); } else { var listcnt = 0; if(obj.list){ listcnt = obj.list.length; } var txt = ''; if(sugsearchcnt=='0'){ txt = txt + '
'+kw+'
'; } else { txt = txt + '
'+kw+' ('+sugsearchcnt+'¤i)
'; } if(listcnt==0){ txt = txt + '
ÎÛf[^ªèܹñ
'; } //¤iê if(listcnt>0){ txt = txt + '
'+obj.list[i].gcd+' | '; txt = txt + ''+obj.list[i].gnm+' | '; txt = txt + '
'; } txt = txt + 'õÊð©é'; suggestinner.innerHTML = txt; suggestinner.style.display = 'block'; showdiv('suggestinner'); }}}}}); } else {suggestinner.innerHTML = "";suggestinner.style.display = 'none';hidediv('suggestinner');} clearTimeout(timerIdsuggestSearchhide);}function outsuggestinner(keyword){if(nowshowtsuggest == keyword){clearTimeout(timerIdsuggestSearchhide);stopSuggestInSearch();}}function stopSuggestInSearch() { if(suginReq !=null){ suginReq.transport.abort(); }}function cpnon(serialno, obj){//console.log('N[|«oµ\¦ serialno='+serialno);var couponid = 'cpnd'+serialno;var buffcpndiv = document.getElementById('copycpnd'+serialno);if(!buffcpndiv) {var cpndiv = document.createElement('div');cpndiv.id = 'copycpnd'+serialno;cpndiv.className = 'couponballoon';} else {cpndiv = buffcpndiv;hidediv(cpndiv.id);}cpndiv.innerHTML = document.getElementById(couponid).innerHTML;document.getElementById('coupon').appendChild(cpndiv);var parent = j$('#'+obj.id).offsetParent();var py = 0;// XN[Êif( j$("#fixed-header").css("position") == "fixed"){py = j$(window).scrollTop();// XN[Ê}var wra = j$('#wrapper').offset().left;// æʶ©çuwrappervdivÌ£var cpnwktop = j$("#couponwk").offset().top;j$('#copycpnd'+serialno).css("top",Math.round(j$('#'+obj.id).offset().top-py-80)+"px");j$('#copycpnd'+serialno).css("left",Math.round(j$('#'+obj.id).offset().left-wra+100)+"px");showdiv(cpndiv.id);}function cpnout(serialno){var buffcpndiv = document.getElementById('copycpnd'+serialno);if(buffcpndiv){var p = buffcpndiv.parentNode;p.removeChild(buffcpndiv);}}var sawgoodslist = Cookies.get('sawgoodslist');var sglist = new Array();var sglistcnt = 0;var sawgoodsexclude = new Array(); sawgoodsexclude.push('JH5380');if(sawgoodslist !== undefined){sglist = sawgoodslist.substr(1).split('/');sglistcnt = sglist.length - 1;for(i=0;i
Åß`FbNµ½¤i{ððSÄí
';txt = txt + '
';txt = txt + '
- ';for(i=0;i
';}txt = txt + '
';txt = txt + '
';txt = txt + '
';txt = txt + '<';txt = txt + '>';txt = txt + '
';txt = txt + '
";resultText += "";resultText += "
~
";resultText += "
";//if(obj[0].ex01 != null && obj[0].ex01 == "2"){//resultText += "
|Cg¤i
";//} else {//resultText += "
"+obj[0].otp+"~(Ų)
";//resultText += "
"+obj[0].p+"~(Å)
";//}resultText += "
";resultText += "
椱»ItBXÊÌÌtHXgEFCÖ
¥
- ·×ÄÌJeS[
- HiAù¿
- ãòi
- gi[CN
- ¨ð
- n`p
- t@C
- m[gE»i
- MLpï
- ¶ïE±pi
- l[óEX^v
- vCeBO
- ¶Æd
- fW^Æd
- ±@íEXÜ@í
- ôÜA´|
- ÆëpiúpGÝ
- Lb`Ee[upi
- Ð
- «ïìÆ
- bsOEïpi
- onoEf¦pi
- ItBXÆï
- CeAEQïEû[
- ybgK[fjOÔ
- A}XgA
- ¨æèñ¹O
- jtH[
- N[EÃdCÎô
- ÅìEãÃ
- îìpiEq¶Þ¿
- ¤p@ípi
- ìÆpiEHï
- ÞèïEAEghA
- ¨à¿á
T[rX
j
[
¥
- ¶ïE±pi@@@@±@íEXÜ@í@@MLpï@@@@@@@m[gE»i@@@@t@C@@@@@@@n`p@@@@@@@gi[CN@@@@l[óEX^v@@ôÜA´|@@@@@@ÆëpiúpGÝ@@Lb`Ee[upiHiAù¿@@@@@@¨ð@@@@@@@@@«ïìÆìÆEHïbsOEïpi@onoEf¦pi@@@¶Ædd EƾfW^Æd@@@@@jtH[@@@@@ItBXÆï@@@@@CeAEQïEû[ãòi@@@@@@@@
- ¤p@ípi@@ÅìEãÃ@@@@@@îìpiEq¶Þ¿@@N[EÃdCÎô@
- ÞèïEAEghA@@ybgE|¨à¿áOÐA}
historywüðEĶ
wüàeAzóµðmFÅ«Ü·BLZAÔiECË౿ç©çB
star}CXg
涷é¤iâCÉÈé¤iðo^Å«Ü·BâprÊÉXgðª¯Äì¬Å«Ü·B
reorder¶ÔüÍ
¶Ôðü͵ġ̤iðÜÆßÄJ[gÉÇÁÅ«Ü·B
record_voice_over¤iNGXg
XÅæµ¢ÌÈ¢¤i̲v]ð¨ñ¹¾³¢B
";resultText += document.getElementById(msgstooltipid).innerHTML;resultText += "
'; txt = txt + '|CgUP¤iðÆ' + obj.preachprice + '~¨¢ã°ÅA
'; txt = txt + '|CgUP¤iÌ{¦' + obj.preachrt + '{I'; txt = txt + '
'; if(page!='new'){ txt = txt + '
'; } else { txt = txt + '
'; } txt = txt + '
- '; for (var i = 0; i
- "; txt = txt + "";txt = txt + "
";txt = txt + "";txt = txt + "
";txt = txt + "
"+obj.list[i].price+"~ (Ų)
";txt = txt + "
"+obj.list[i].pricetax+"~ (Å)
";txt = txt + "
";txt = txt + "
"+obj.list[i].newup+"
"+obj.list[i].updt+"
";txt = txt + "
"+obj.list[i].gnm+"
";}txt = txt + "
";txt = txt + "";txt = txt + "
"+obj.list[i].updt+"
"; } else { txt = txt + "
"; } txt = txt + ''; txt = txt + '
'; txt = txt + '<'; txt = txt + '>'; txt = txt + '
'; } txt = txt + ''; if(page=='new'){ j$("#newgoods-area"+lcd).html(txt); j$("#newgoods-area"+lcd).show(); } else { j$("#newgoods-area").html(txt); j$("#newgoods-area").show(); }if(page=='new'){ j$("#gdsCursor_new"+lcd).jCarouselLite({ circular: false });} else { j$("#gdsCursor_new").jCarouselLite({ btnNext: "#gdsCursorwaku_new .next", btnPrev: "#gdsCursorwaku_new .prev", speed: 600, circular: false, scroll: 4 });} }}}}, onFailure: function(request) { //alert("onFailure"); }, onException: function (request, ex) { //alert("onException:"+ex.message);} } ); }function showrankinggoodslist(lcd, mcd, scd, showid){var nowdatetime = getNowDateTimeHHDD();var b = new Ajax.Request("/Forestway/ajaxrequest/", {"method": "get", "parameters": "DateTime="+nowdatetime+"&lcd="+lcd+"&mcd="+mcd+"&scd="+scd+"&Mode=21",onSuccess: function(request) { }, onComplete: function(request) {if ((request.readyState == 4) && (request.status == 200)){ var result = trim(request.responseText);resultText = "";if(result != null && result != '') {obj = YAHOO.lang.JSON.parse(result); var listcnt = 0;if(obj.list){listcnt = obj.list.length;} if(obj.success = 'true'){if(listcnt > 0){var txt = '';txt = txt + '
';txt = txt + '
';txt = txt + '
- ';for (var i = 0; i
";txt = txt + "";var imageno = i+1;if(imageno <= 3){txt = txt + "
";} else {txt = txt + "
"+imageno+"
";}txt = txt + "
";txt = txt + "
"+obj.list[i].price+"~ (Ų)
";txt = txt + "
"+obj.list[i].pricetax+"~ (Å)
";txt = txt + "
";txt = txt + "
"+obj.list[i].gnm+"
";if(obj.list[i].revcnt != '0'){txt = txt + "
";txt = txt + "";txt = txt + " ("+obj.list[i].revcnt+")"; txt = txt + "
";}txt = txt + "
';txt = txt + '
';txt = txt + '
';txt = txt + '<';txt = txt + '>';txt = txt + '
';txt = txt + '
';j$("#ranking-area"+showid).html(txt);j$("#ranking-area"+showid).show();j$("#ranking"+showid).css('visibility','visible'); j$("#gdsCursor_ranking"+showid).jCarouselLite({btnNext: "#gdsCursorwaku_ranking"+showid+" .next",btnPrev: "#gdsCursorwaku_ranking"+showid+" .prev",speed: 600,circular: false,scroll: 4});} else {j$("#ranking"+showid).hide();}}}}}, onFailure: function(request) { //alert("onFailure"); }, onException: function (request, ex) { //alert("onException:"+ex.message);} } ); }function showMylistgoodslist(){ var nowdatetime = getNowDateTimeHHDD();var b = new Ajax.Request("/Forestway/ajaxrequest/", {"method": "get", "parameters": "DateTime="+nowdatetime+"&Mode=18",onSuccess: function(request) { }, onComplete: function(request) {if ((request.readyState == 4) && (request.status == 200)){ var result = trim(request.responseText);resultText = "";if(result != null && result != '') {obj = YAHOO.lang.JSON.parse(result); var listcnt = 0; if(obj.list){ listcnt = obj.list.length; } if(obj.success = 'true' && listcnt>0){ var txt = '
'; txt = txt + '
Åß}CXgÉo^µ½¤i>>àÁÆ©é
'; txt = txt + '
'; for (var i = 0; i
|Cg¤i
";//} else {//txt = txt + ""+obj.list[i].price+"~ (Ų)
";//txt = txt + ""+obj.list[i].price+"~ (Å)
";//}if(obj.list[i].adddt != ''){txt = txt + ""+obj.list[i].adddt+"";if(obj.list[i].difd == 0){txt = txt + "¡ú";} else if (obj.list[i].difd == 1) {txt = txt + "ðú";} else if (obj.list[i].difd <= 20) {txt = txt + ""+obj.list[i].difd+"úO";}txt = txt + "
";}//txt = txt + ""+obj.list[i].gnm+"
"; } txt = txt + '
'; j$("#mylist-area").html(txt); j$("#mylist-area").show(); if (listcnt<4) { j$(".mylistboxitem").css("width","25%"); } if(listcnt<6) { j$("#mylistbox").css("justify-content","flex-start"); j$(".mylistboxitem").css("margin","0px 20px 0px 0px"); } j$("#mylistgsimg"+listcnt).on('load', function() { j$('#mylistbox .mylistboxitem').matchHeight(); }); } else { j$("#mylist-area").html('
'); }}}}, onFailure: function(request) { //alert("onFailure"); }, onException: function (request, ex) { //alert("onException:"+ex.message);} } ); }function showMyListRegistCount(gs, iti){var nowdatetime = getNowDateTimeHHDD();var b = new Ajax.Request("/Forestway/ajaxrequest/", {"method": "get", "parameters": "DateTime="+nowdatetime+"&gs="+gs+"&Mode=11",onSuccess: function(request) { }, onComplete: function(request) {if ((request.readyState == 4) && (request.status == 200)){ var result = trim(request.responseText);resultText = "";if(result != null && result != '') {obj = YAHOO.lang.JSON.parse(result); if(obj.success = 'true'){var resistcnt = obj.registcnt;if(resistcnt >= 1){j$("#mylistregistheart"+iti).css('display','inline-block');j$("#mylistregistcnt"+iti).html(""+toPlace(resistcnt)+""); j$("#mylistregistcntwk"+iti).css('display','inline-block');} else{j$("#mylistregistcntwk"+iti).hide();}}}}}, onFailure: function(request) { //alert("onFailure"); }, onException: function (request, ex) { //alert("onException:"+ex.message);} } ); }function showLoginUserMyListRegistCount(gs, iti, page){var nowdatetime = getNowDateTimeHHDD();var b = new Ajax.Request("/Forestway/ajaxrequest/", {"method": "get", "parameters": "DateTime="+nowdatetime+"&gs="+gs+"&Mode=17",onSuccess: function(request) { }, onComplete: function(request) {if ((request.readyState == 4) && (request.status == 200)){ var result = trim(request.responseText);resultText = "";if(result != null && result != '') {obj = YAHOO.lang.JSON.parse(result); if(obj.success = 'true'){var userresistcnt = obj.userregistcnt;if(userresistcnt >= 1){if( page == 'goodsinfo' ){ j$("#PutCatalog"+iti).html('♥}CXgo^'); j$("#PutCatalog"+iti).css('color','#ed6b6b'); //j$("#PutCatalog"+iti).attr('class', 'combtn'); //j$("#PutCatalog"+iti).css({'background-color':'#fff','color': '#ed6b6b','border-radius':'5px','cursor':'default'}); //j$("#PutCatalog"+iti).removeAttr('onclick'); j$("#mylistregistheart"+iti).html('♥'); j$("#mylistregistcnt"+iti).css('color','#ed6b6b'); j$("#mylistregistheart"+iti).css('color','#ed6b6b'); j$(".persons").css('color','#ed6b6b');} else {j$("#mylistregistheart"+iti).html('♥');j$("#mylistregistheart"+iti).css('color','#ed6b6b');j$("#mylistregistcnt"+iti).css('color','#ed6b6b');}}}}}}, onFailure: function(request) { //alert("onFailure"); }, onException: function (request, ex) { //alert("onException:"+ex.message);} } ); }function showNewestOrder1(gs, page){var nowdatetime = getNowDateTimeHHDD();var b = new Ajax.Request("/Forestway/ajaxrequest/", {"method": "get", "parameters": "DateTime="+nowdatetime+"&gs="+gs+"&Mode=13",onSuccess: function(request) { }, onComplete: function(request) {if ((request.readyState == 4) && (request.status == 200)){ var result = trim(request.responseText);resultText = "";if(result != null && result != '') {obj = YAHOO.lang.JSON.parse(result);if(obj.success == true){var oddt = obj.oddt;if( page == 'variation' ){j$("#neworder"+obj.gs).html("wüL");} else if( page == 'present' ){j$("#neworder"+obj.gs).html(""+oddt+"ɶ");} else {j$("#neworder"+obj.gs).html(""+oddt+"ɶ");if( page == 'goodsinfo' ){j$("#neworder"+obj.gs).css('display','table');} else {j$("#neworder"+obj.gs).css('display','inline-block');}}} else {j$("#neworder"+gs).hide();}}}}, onFailure: function(request) { //alert("onFailure"); }, onException: function (request, ex) { //alert("onException:"+ex.message);} } ); }function showGoodsReviewStar(sGoods, page, isUpdateMatchHeight){var nowdatetime = getNowDateTimeHHDD();var b = new Ajax.Request("/Forestway/ajaxrequest/", {"method": "get", "parameters": "DateTime="+nowdatetime+"&cd="+sGoods+"&Mode=6",onSuccess: function(request) { }, onComplete: function(request) {if ((request.readyState == 4) && (request.status == 200)){ var result = trim(request.responseText);resultText = "";if(result != null && result != '') {obj = YAHOO.lang.JSON.parse(result);if(obj[0].revcnt && obj[0].revcnt != '' && obj[0].revcnt > 0){nOverComment = 0;resultText += "
";if(obj[0].revcnt >= nOverComment){resultText += "";} else {resultText += "";}if(page == 'htdocs'){resultText += " "+obj[0].revcnt+"̤ir [";} else {resultText += " ("+obj[0].revcnt+")";}resultText += "
";j$("#revstar"+obj[0].gd).html(resultText);if(page == 'original' && isUpdateMatchHeight){j$.fn.matchHeight._maintainScroll = true; j$.fn.matchHeight._update();}} else {j$("#revstar"+obj[0].gd).css('display','none');}}}}, onFailure: function(request) { //alert("onFailure"); }, onException: function (request, ex) { //alert("onException:"+ex.message);} } ); }function showNoticePopup(nid, nseq, sdt){j$("#inline-notice-modal").html(j$("#notice"+nid+nseq).html());j$('.popup-notice-modal').magnificPopup('open');if(sdt == ''){ var nowdatetime = getNowDateTimeHHDD();var b = new Ajax.Request("/Forestway/ajaxrequest/", {"method": "get", "parameters": "DateTime="+nowdatetime+"&nseq="+nseq+"&nid="+nid+"&kbn=s&Mode=16",onSuccess: function(request) { }, onComplete: function(request) {if ((request.readyState == 4) && (request.status == 200)){ var result = trim(request.responseText);resultText = "";if(result != null && result != '') {obj = YAHOO.lang.JSON.parse(result); }}}, onFailure: function(request) {//alert("onFailure"); }, onException: function (request, ex) { //alert("onException:"+ex.message);} } ); }}function closeNoticePopup(){j$('.popup-notice-modal').magnificPopup('close');}function hideNotice(nid, nseq, title){if(window.confirm('u'+title+'v\nbZ[Wðñ\¦ÉµÄæ뵢ŷ©H')){ var nowdatetime = getNowDateTimeHHDD();var b = new Ajax.Request("/Forestway/ajaxrequest/", {"method": "get", "parameters": "DateTime="+nowdatetime+"&nseq="+nseq+"&nid="+nid+"&kbn=d&Mode=16",onSuccess: function(request) { }, onComplete: function(request) {if ((request.readyState == 4) && (request.status == 200)){ var result = trim(request.responseText);resultText = "";if(result != null && result != '') {obj = YAHOO.lang.JSON.parse(result); closeNoticePopup(); j$("#notice-area").hide();showNotice();}}}, onFailure: function(request) {//alert("onFailure"); }, onException: function (request, ex) { //alert("onException:"+ex.message);} } ); }}function showNotice(){return false;}function isNumber( num ) {var regex = new RegExp(/^[0-9]+$/);return regex.test(num);}//-->