function ov(a){ $("#smenu"+a).show(); } function ot(a){ $("#smenu"+a).hide(); } function pop_login(a){ if(a==1){ $("#full_back").show(); }else{ $("#full_back").hide(); } } function login_submitbtn(){ if ( dreamwebtlogin.ID.value.length < 4 ) { alert('아이디는 4자 이상이어야 합니다.'); document.dreamwebtlogin.ID.focus(); return false; } else if ( dreamwebtlogin.PW.value.length < 4 ) { alert('비밀번호는 4자 이상이어야 합니다.'); document.dreamwebtlogin.PW.focus(); return false; } else { dreamwebtlogin.submit(); } } function fl_submitbtn(){ document.dreamwebid.submit(); } function loginmenu(a){ if(a==1){ location.href="/member/join.php"; } if(a==2){ location.href="/member/find_id.php"; } if(a==3){ location.href="/member/find_pass.php"; } } function hlink(a){ location.href=a; } function member_out(){ var answer = confirm('회원탈퇴를 하시면 동일한 아이디로 재가입이 불가능하며\\n바로 회원탈퇴 처리됩니다.\\n\\n진행 중인 주문건은 비회원으로 조회하실 수 있습니다.\\n\\n\\n정말 회원탈퇴를 하시겠습니까?'); if ( answer ) { location.href = '/register/dreamwebout.php'; } } function autologin(a){ if(a=="2"){ $("#autologin").show(); $("#autologin_on").hide(); }else{ $("#autologin_on").show(); $("#autologin").hide(); } } function pemail_search(a){ if(a==100){ if($("#email2_v").css("display") == "none"){ $("#email2_v").show(); }else{ $("#email2_v").hide(); } }else{ dreamwebid.email2.value=a; $("#email2_v").hide(); } } function agree_pop(a){ if(a=="1"){ if($("#agree_pop1").css("display") == "none"){ $("#agree_pop1").show(); }else{ $("#agree_pop1").hide(); } } if(a=="2"){ if($("#agree_pop2").css("display") == "none"){ $("#agree_pop2").show(); }else{ $("#agree_pop2").hide(); } } } function bz_up(){ if($("#bz_v").css("display") == "none"){ $("#bz_v").show(); }else{ $("#bz_v").hide(); } } function agree(a,b){ if(b=="all"){ if(a=="2"){ $("#all_agree").show(); $("#all_agree_on").hide(); $("#agree").show(); $("#agree_on").hide(); $("#agree2").show(); $("#agree2_on").hide(); $("#email_ok").show(); $("#email_ok_on").hide(); $("#sms_ok").show(); $("#sms_ok_on").hide(); dreamwebid.all_agree.value='N'; dreamwebid.agree.value='N'; dreamwebid.agree2.value='N'; dreamwebid.mail_ok.value='N'; dreamwebid.sms_ok.value='N'; }else{ $("#all_agree").hide(); $("#all_agree_on").show(); $("#agree").hide(); $("#agree_on").show(); $("#agree2").hide(); $("#agree2_on").show(); $("#email_ok").hide(); $("#email_ok_on").show(); $("#sms_ok").hide(); $("#sms_ok_on").show(); dreamwebid.all_agree.value='Y'; dreamwebid.agree.value='Y'; dreamwebid.agree2.value='Y'; dreamwebid.mail_ok.value='Y'; dreamwebid.sms_ok.value='Y'; } } if(b=="ag"){ if(a=="2"){ $("#agree").show(); $("#agree_on").hide(); dreamwebid.agree.value='Y'; }else{ $("#agree").hide(); $("#agree_on").show(); dreamwebid.agree.value='Y'; } } if(b=="ag2"){ if(a=="2"){ $("#agree2").show(); $("#agree2_on").hide(); dreamwebid.agree2.value='Y'; }else{ $("#agree2").hide(); $("#agree2_on").show(); dreamwebid.agree2.value='N'; } } if(b=="email"){ if(a=="2"){ $("#email_ok").show(); $("#email_ok_on").hide(); dreamwebid.mail_ok.value='Y'; }else{ $("#email_ok").hide(); $("#email_ok_on").show(); dreamwebid.mail_ok.value='N'; } } if(b=="sms"){ if(a=="2"){ $("#sms_ok").show(); $("#sms_ok_on").hide(); dreamwebid.sms_ok.value='Y'; }else{ $("#sms_ok").hide(); $("#sms_ok_on").show(); dreamwebid.sms_ok.value='N'; } } } /*상품상세설명*/ function item_tep_move(a){ var offset = $("#good"+a).offset(); $('html, body').animate({scrollTop:offset.top},400); } function top_go(){ $('html, body').animate({ scrollTop : 0 }, 400); return false; } function rightmenuclose(){ if($("#right_cart_menu").css("display") == "none"){ $("#right_cart_menu").show(); }else{ $("#right_cart_menu").hide(); } } /*상품상세설명*/ /*모바일 상품 리스트 텝*/ function list_tap(a,b,c,d,e,f){ $.get('get_list_tap.php?tidval='+a+'&b_code='+b+'&c_code='+c+'&m_code='+d+'&list_type='+e+'&page_num='+f, show_list_tap); } function show_list_tap(res){ $('#list_tap_v').html(res); } function mlist_select(a,b,c,d){ if(a==100){ if($("#list_sel_v").css("display") == "none"){ $("#list_sel_v").show(); }else{ $("#list_sel_v").hide(); } }else{ if(d!=''){ location.href='/m/list.php?b_code='+b+'&c_code='+c+'&m_code='+d+'&list_type='+a; }else if(c!=''){ location.href='/m/list.php?b_code='+b+'&c_code='+c+'&list_type='+a; }else{ location.href='/m/list.php?b_code='+b+'&list_type='+a; } } } function mlist_select2(a,b,c,d){ if(a==100){ if($("#list_sel_c").css("display") == "none"){ $("#list_sel_c").show(); }else{ $("#list_sel_c").hide(); } }else{ if(d!=''){ location.href='/m/list.php?b_code='+b+'&c_code='+c+'&m_code='+d+'&list_type='+a; }else if(c!=''){ location.href='/m/list.php?b_code='+b+'&c_code='+c+'&list_type='+a; }else{ location.href='/m/list.php?b_code='+b+'&list_type='+a; } } } /*모바일 상품 리스트 텝*/ /*탑베너 쿠키 제어 */ function benner_close(){ $( "#top_benner_bg" ).slideUp(400); document.cookie='top_banner_bg=1; path=/'; } function m_ov(){ $('.top_benner_close').show(); } function m_off(){ $('.top_benner_close').hide(); } /*탑베너 쿠키 제어 */ /*모바일 상세 tep*/ function m_topsch_open(){ $('#m_topsch_box').show(); } function m_topsch_close(){ $('#m_topsch_box').hide(); }