function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 0) orgColor = TRs[idx].style.backgroundColor; TRs[idx].onmouseover = new Function('this.style.backgroundColor="'+(args[2+colorIdx])+'";'); TRs[idx].onmouseout = new Function('this.style.backgroundColor="'+orgColor+'";'); if(++colorIdx > argl-3) colorIdx = 0; } obj.already = true; } // ÅØ½ºÆ® ¹è³Ê End function detail(key) { var go='/shop/detail_pop.html?gid='+key; var loc='resizable=yes,scrollbars=yes,width=717,height=570'; var win= window.open(go,'',loc); } function detail_used(key) { var go = "/shop/detail_pop.html?gid=" + key + "#comment"; var loc = "resizable=yes,scrollbars=yes,width=717,height=570"; var win = window.open(go, "", loc); } function showhide(what) { if (what.style.display=='') { closewhide(what); return ; } if (what.style.display=='none') { what.style.display=''; } } function closewhide(what) { what.style.display='none'; } function show_hide(what) { var obj = document.getElementById(what); if(obj != null) { if(obj.style.display=='') { closew_hide(what); return ; } if(obj.style.display=='none') { obj.style.display=''; } } } function closew_hide(what) { document.getElementById(what).style.display='none'; } function pluscomma(nNumber) { nNumber = "" + nNumber; var objRegExp = new RegExp('(-?[0-9]+)([0-9]{3})'); while(objRegExp.test(nNumber)) nNumber = nNumber.replace(objRegExp, '$1,$2'); return nNumber; } function getCookie( name ) { var nameOfCookie = name + "="; var x = 0; while ( x <= document.cookie.length ) { var y = (x+nameOfCookie.length); if ( document.cookie.substring( x, y ) == nameOfCookie ) { if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) endOfCookie = document.cookie.length; return unescape( document.cookie.substring( y, endOfCookie ) ); } x = document.cookie.indexOf( " ", x ) + 1; if ( x == 0 ) break; } return ""; } function setCookie( name, value, expiredays ) { var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" } function PrintEmbed(id) { document.write(document.getElementById(id).value); } document.onfocusin = function() { var tagName = event.srcElement.tagName; if(tagName == "A" || tagName == "IMG") document.body.focus(); } function chkbox(obj, mode) { if(mode == 'rev') { if(obj.length > 0) for(i=0; i < obj.length; i++) obj[i].checked = !obj[i].checked; else obj.checked = !obj.checked; } else { if(obj.length > 0) for(i=0; i " imagez = window.open('', "image", "width="+ 100 +", height="+ 100 +", scrollbars=auto,resizable=1,toolbar=0,menubar=0,location=0,directories=0,status=1"); imagez.document.open(); imagez.document.write(htmlz) imagez.document.close(); } function check_num(key){ for(var i=0; i< key.value.length; i++){ if(key.value.substring(i,i+1) < "0" || key.value.substring(i,i+1) > "9"){ return false; } } return true; } function offline_card() { window.open('/cart/pop_offlinecard.html','REMOTE','width=350, height=400'); } function onFocusValue() { var setText = document.serchForm.keyword.value var setTextValue = "°Ë»ö¹æ¹ý È®ÀÎÇϼ¼¿ä! TIPŬ¸¯->" if (setText == setTextValue) { document.serchForm.keyword.value = "" } else { document.serchForm.keyword.value = setText } document.serchForm.keyword.style.border = '2px solid #FFAA00' } function onBlurValue() { var setText = document.serchForm.keyword.value var setTextValue = "°Ë»ö¹æ¹ý È®ÀÎÇϼ¼¿ä! TIPŬ¸¯->" if (setText == "") { document.serchForm.keyword.value = setTextValue document.serchForm.keyword.style.border = '2px solid #CCCCCC' } else { document.serchForm.keyword.value = setText document.serchForm.keyword.style.border = '2px solid #FFAA00' } } function onSearchOver() { document.serchForm.keyword.style.border = '2px solid #FFAA00' } function onSearchOut() { var setText = document.serchForm.keyword.value var setTextValue = "°Ë»ö¹æ¹ý È®ÀÎÇϼ¼¿ä! TIPŬ¸¯->" if (setText == setTextValue) { document.serchForm.keyword.style.border = '2px solid #b1b1b1' } else { document.serchForm.keyword.style.border = '2px solid #FFAA00' } } function serchClick() { var setText = document.serchForm.keyword.value; var setTextValue = "°Ë»ö¹æ¹ý È®ÀÎÇϼ¼¿ä! TIPŬ¸¯->"; var setTextValue2 = "°Ë»ö¾î¸¦ ÀÔ·ÂÇϼ¼¿ä!"; if(setText == setTextValue) { document.serchForm.keyword.value = setTextValue2; } else if(setText == setTextValue2) { document.serchForm.keyword.value = setTextValue; } else { // document.serchForm.keyword.value = setText; location.href = document.serchForm.search_option.value + setText; } return false; } function quickCateRoll(setNum) { if (setNum == 1) { document.getElementById("ezfollow_cate").style.zIndex = '1111' } else if (setNum == 2) { document.getElementById("ezfollow_cate").style.zIndex = '9999' } } function layerSwap(LID,ZIDX) { if (ZIDX == 1) { document.getElementById(LID).style.zIndex = '1115'; } else if (ZIDX == 2) { document.getElementById(LID).style.zIndex = '9999'; } } function layerViewSwap(LID,ZIDX) { if (ZIDX == 1) { document.getElementById(LID).style.visibility = 'visible'; } else if (ZIDX == 2) { document.getElementById(LID).style.visibility = 'hidden'; } } function layerClickSwap(LID,TID) { if (document.getElementById(LID).style.visibility == "hidden") { document.getElementById(LID).style.visibility = 'visible'; } else { document.getElementById(LID).style.visibility = 'hidden'; } } // 20091012 created by sorisaem function popupHanaEscrow() { var url = "http://www.hanaescrow.com/hnbecc/serviceJoinSrchManagement/escser003l.jsp?shopBsnNo=1068656733&mid=TG00013016"; var win = window.open(url, "HanaEscrowPopup", "width=610,height=570,menubar=no,resizable=no"); if (win) win.focus(); } // 20091014 created by sorisaem function popupQuickService() { var win = window.open("/cart/pop_quick_service.html", "QuickServicePopup", "top=10,left=10,width=600,height=400,scrollbars=yes"); if (win) win.focus(); } // 20091014 created by sorisaem function popupDayDelivery() { var win = window.open("/cart/pop_day_delivery.html", "DayDeliveryPopup", "top=10,left=10,width=400,height=356,scrollbars=yes"); if (win) win.focus(); } // 20091023 created by sorisaem function popupZipcode(keyword, fn) { var win = window.open("/popup/pop_zipcode.html?keyword=" + keyword + "&fn=" + fn, "ZipcodePopup", "top=10,left=10,width=600,height=400,scrollbars=yes"); if (win) win.focus(); } // 20091020 created by sorisaem function autoTab(self, nextId) { if (self.getAttribute && self.value.length == self.getAttribute("maxlength")) { var el = document.getElementById(nextId); if (el) el.focus(); } } // 20091020 created by sorisaem function resizeWin(maxWidth, maxHeight) { var w = parseInt(document.body.scrollWidth); var h = parseInt(document.body.scrollHeight); var e = document.createElement("div"); e.style.position = "absolute"; e.style.left = "0px"; e.style.top = "0px"; e.style.width = "100%"; e.style.height = "100%"; document.body.appendChild(e); var dx = w - e.offsetWidth; var dy = h - e.offsetHeight; if (maxWidth != null) dx = (document.body.clientWidth + dx) > maxWidth ? maxWidth - document.body.clientWidth : dx; if (maxHeight != null) dy = (document.body.clientHeight + dy) > maxHeight ? maxHeight - document.body.clientHeight : dy; window.resizeBy(dx, dy); document.body.removeChild(e); }