function mall() { this.minimum = 0; //ÃÖ¼Ò ÁÖ¹® this.maximum = 0; //ÃÖ´ë ÁÖ¹® this.limit_su = 0; //ÇÑÁ¤ ¼ö·® ( ÁÖ¹® ¼ö·®ÀÌ ÇÑÁ¤ º¸´Ù ¸¹À» ¼ö ¾ø´Ù.) this.default_sale= 0; //ÇÑÁ¤ ¼ö·® ( ÁÖ¹® ¼ö·®ÀÌ ÇÑÁ¤ º¸´Ù ¸¹À» ¼ö ¾ø´Ù.) this.level = new Array(); // ¼ö·®º° ¼¼ÆÃ this.level_price = new Array(); // ¼ö·®º° °¡°Ý this.lv_area_dsp = false; // ¿É¼ÇÀÌ ¾øÀ» °æ¿ì ¼ö·®º° °¡°ÝÀÌ ³ª¿À´Â °ø°£ Ç¥½Ã this.pan_print = new Array(); // ÆÇºñ ¼¼ÆÃ this.pan_print_price = new Array(); // ¼ö·®º° ÆÇºñ this.per_print = new Array(); // °³´ç Àμâºñ ¼¼ÆÃ this.per_print_price = new Array(); // ¼ö·®º° °³´ç Àμâºñ this.periodical_book = false; this.zine_title_name = ''; this.dlv = 'none'; // ¹è¼ÛÁ¤Ã¥ this.go_cart = 'cart'; this.go_show = 'show'; this.go_order1 = 'order_1'; this.whole_wrap = 'whole_wrap'; // Àüü div this.outer = 'outer'; // disabled this.log_state = false; // ·Î±× »óÅ this.direct_buy = false; this.pop_mode = false; // ÆË¾÷ÀÎÁö ? this.from_wish = false; this.min_sep = false; //ÃÖ¼Ò¼ö·® °¢ ¿É¼Çº°µû·Î } // ¼ö·®º° µû¸¥ °ª ¾ò±â mall.prototype.get_mny_var_level = function( cnt ) { //alert( this.level.length ); /**/ var slt_no = 0; if( this.level.length > 0 ) { var max_key = this.level.length -1; if( this.level[max_key] <= cnt ) { slt_no = max_key; }else { var ni = this.level.length; this.level[ni] = 100000000; for( var i = 0;i < ni; i++ ) { var next_i = i+1; /*if( this.level[next_i] == '' || this.level[next_i] == 'undefined' || this.level[next_i] == null ) */ if( this.level[i] <= cnt && cnt < this.level[next_i] ) { //if( this.level[i] >= cnt ) //{ slt_no = i; break; } //alert( i ); } } if( slt_no >= 0 ) { return slt_no; }else { return -1; } }else { return -1; } } // ¼ö·®º° °¡°Ý mall.prototype.get_level = function( cnt ) { var slt_no = this.get_mny_var_level(cnt); //alert( slt_no ); if( slt_no != -1 ) { return this.level_price[slt_no]; }else { return this.default_sale; } } //¼ö·®º° ÆÇºñ ¾ò±â mall.prototype.get_pan_print = function( cnt ) { var slt_no = this.get_mny_var_level(cnt); if( slt_no != -1 ) { return this.pan_print_price[slt_no]; }else { return 0; } } // ¼ö·®º° °³´çÀμâºñ ¾ò±â mall.prototype.get_per_print = function( cnt ) { var slt_no = this.get_mny_var_level(cnt); if( slt_no != -1 ) { return this.per_print_price[slt_no]; }else { return 0; } } mall.prototype.qty_change = function() { if( this.level.length>0 ) { var qty_value = parseInt( $('qty').value ); var get_level_price = this.get_level(qty_value); var get_pan_print_price = this.get_pan_print(qty_value); var get_per_print_price = this.get_per_print(qty_value); // ÃÑ °¡°ÝÀº ¼ö·®º° °¡°Ý + ÆÇºñ + °³´ç Àμâºñ var dsp = ""; if( get_level_price > 0 ) dsp += "¼ö·®º° °¡°Ý :"+ Av.nf(get_level_price) +" X "+ Av.nf(qty_value)+" = "+ Av.nf( get_level_price * qty_value) +"¿ø"; if( get_pan_print_price > 0 ) dsp += ""+js_mall.pan_name+" :"+ Av.nf(get_pan_print_price) +"¿ø"; if( get_per_print_price > 0 ) dsp += ""+js_mall.per_name+" :"+ Av.nf(get_per_print_price) +" X "+ Av.nf(qty_value)+" = "+ Av.nf( get_per_print_price * qty_value) +"¿ø"; $('lv_soge_dsp').update( ""+dsp+"
" ); var total_price = ( get_level_price * qty_value ) + get_pan_print_price + ( get_per_print_price * qty_value ) ; $('lv_per_price_dsp').update("ÃÑ ±Ý¾× "+Av.nf(total_price)+ "¿ø   "); } } mall.prototype.qty_up = function() { $('qty').value++; this.qty_change(); } mall.prototype.qty_down = function() { if($('qty').value>1) { $('qty').value--; this.qty_change(); } } // Á¤±â °£Ç๰ ¼±ÅÃÇϱâ mall.prototype.periodical_slt = function() { //alert( $('op_zine').value ); if( $('op_zine').value == '' ) { var t = this.zine_title_name; if( !t ) t = 'Á¤±â±¸µ¶ ½ÃÀÛ¿ù'; return t + 'À» ¼±ÅÃÇØ ÁÖ¼¼¿ä^^'; }else { return true; } } //À§½Ã¸®½ºÆ® mall.prototype.wish_pop = function(g, obj, n ) { if ( g ) { if( this.log_state == true ) { this.from_wish = true; this.cart_pop(g, obj, n ); this.from_wish = false; }else { alert('·Î±×ÀÎ ÇÏ¼Å¾ß ÇÕ´Ï´Ù.'); } } } //Àå¹Ù±¸´Ï mall.prototype.cart_pop = function (g, obj, n ) { var send_flag = true; var send_max_false_ment = ""; var send_min_false_ment = ""; //¹è¼Û ¼±Åà if( $('dlv') != null ) { if( $('dlv').value ) this.dlv = $('dlv').value; } /* T ¿É¼ÇÀÏ °æ¿ì ¼±Åà ¼ö·®*/ var tsu = 0; var min_su = -1; //¼±Åà ¿É¼ÇÁß¿¡ °¡Àå ÀÛÀº¼öÀÇ °³¼ö if( m_option.Tlv0.length > 0 && m_option.Tlv0[0] != '' ) { for(var i = 0; i < m_option.Tselect_data_su.length; i++ ) { var d_su = parseInt( m_option.Tselect_data_su[i] ); tsu += d_su; if( min_su == -1 ) { min_su = d_su; }else if( min_su > d_su ) { min_su = d_su; }else { } } } // ¿É¼Çº° µû·Î ¼³Á¤½Ã. if( this.min_sep == true ) { tsu = min_su; } // ÁÖ¹® ¼ö·® var qty = ( tsu>0 ) ? tsu:$('qty').value; /* ÃÖ´ë ÁÖ¹®¿¡ ´ëÇÑ */ if( this.maximum == 1 ) { if( qty > 1 ) { send_flag = false; send_max_false_ment = "ÀÌ »óǰÀº 1(±Ç/°³)¸¸ ÁÖ¹® ÇÒ ¼ö ÀÖ½À´Ï´Ù. ^^"; } }else if( this.maximum > 1 ) { /* ÇÑÁ¤ ¼ö·® ÀÌ»ó ±¸¸Å½Ã */ if( this.limit_su > 0 ) { var pos_su = ( this.maximum > this.limit_su ) ? this.limit_su:this.maximum; if( pos_su < qty ) { send_flag = false; send_max_false_ment = "ÀÌ »óǰÀº " + pos_su + "(±Ç/°³)ÀÌ»ó ÁÖ¹® ÇÒ ¼ö ¾ø½À´Ï´Ù.^^"; } }else { if( this.maximum < qty ) { send_flag = false; send_max_false_ment = "ÀÌ »óǰÀº ÃÖ´ë " + this.maximum + "(±Ç/°³)±îÁö ÁÖ¹® ÇÒ ¼ö ÀÖ½À´Ï´Ù. ^^"; } } }else { /* ÇÑÁ¤ ¼ö·® ÀÌ»ó ±¸¸Å½Ã */ if( this.limit_su > 0 ) { if( this.limit_su < qty ) { send_flag = false; send_max_false_ment = "ÀÌ »óǰÀº " + this.limit_su + "(±Ç/°³)ÀÌ»ó ÁÖ¹® ÇÒ ¼ö ¾ø½À´Ï´Ù.^^"; } } } /* ÃÖ¼ÒÁÖ¹®¿¡ ´ëÇÑ */ if( this.minimum != 1 ) { if( this.minimum > qty ) { send_flag = false; if( this.min_sep == true ) { send_min_false_ment = "ÀÌ »óǰÀº ¿É¼Çº° " + this.minimum + "(±Ç/°³)ÀÌ»ó ÁÖ¹® ÇÒ ¼ö ÀÖ½À´Ï´Ù. ^^"; }else { send_min_false_ment = "ÀÌ »óǰÀº ÃÖ¼Ò " + this.minimum + "(±Ç/°³)ÀÌ»ó ÁÖ¹® ÇÒ ¼ö ÀÖ½À´Ï´Ù. ^^"; } } } /* Á¤±â °£Ç๰ ¼±Åà */ if( this.periodical_book == true ) { var pbook = this.periodical_slt(); if( pbook != true ) { send_flag = false; send_min_false_ment = pbook; } } if( send_flag == true ) { if( obj.param_T_id!='undefined' && obj.param_T_id ) { this.cart_Toption_pop(g, obj); }else if( obj.param_C_id!='undefined' && obj.param_C_id ) { this.cart_Coption_pop(g, obj, n); }else { this.cart_common_pop(g, n); } }else { if( send_max_false_ment!="" ) alert( send_max_false_ment ); if( send_min_false_ment!="" ) alert( send_min_false_ment ); } } mall.prototype.like_md = function () { var abs = ""; } mall.prototype.cart_common_pop = function ( g, n ) { if (g) { if (!n) n = 1; //¹è¼Û¹Ì¸®¼±Åà var add_dlv = ""; if( this.dlv!= 'none' ) add_dlv = "&dlv="+this.dlv; // Á¤±â °£Ç๰ var op_zine = ""; if( this.periodical_book = true && $('op_zine') ) { if( $('op_zine').value != '' ) { op_zine = "&op_zine=" + $('op_zine').value; } } //À§½Ã´ã±â? var from_wish_input = ""; if( this.from_wish == true ) { from_wish_input = "&from_wish=1"; } var param = '&G='+ g + '&qty=' + n + add_dlv + op_zine + from_wish_input; //´ã±â this.mdl_open( '/ajax/cart/cart_insert.html', param, 366, 224, this.direct_buy ); //else this.mdl_open( '/ajax/login.html' ,'log_state='+this.log_state+'&G='+ g + '&qty=' + n + add_dlv, 580, 360, this.direct_buy ); } } // Àå¹Ù±¸´Ï T ¿É¼Ç mall.prototype.cart_Toption_pop = function (g, obj) { if( obj.Tselect_data != null && obj.Tselect_data.length > 0 ) { var T_op = ""; var not_null_obj = 0; for(var i = 0; i < obj.Tselect_data.length; i++ ) { T_op += '&Toptions'+i+'='+obj.Tselect_data[i]+'|'+obj.Tselect_data_su[i]+'|'+obj.Tselect_data_sale[i]+'|'+obj.Tselect_data_pan_sale[i]+'|'+obj.Tselect_data_add_sale[i]; // null ¾Æ´Ñ µ¥ÀÌÅ͵é if( obj.Tselect_data[i] != null) not_null_obj++; } if( not_null_obj > 0 ) { var add_dlv = ""; if( this.dlv!= 'none' ) add_dlv = "&dlv="+this.dlv; // Á¤±â °£Ç๰ var op_zine = ""; if( this.periodical_book = true && $('op_zine') ) { if( $('op_zine').value != '') { op_zine = "&op_zine=" + $('op_zine').value; } } //À§½Ã´ã±â? var from_wish_input = ""; if( this.from_wish == true ) { from_wish_input = "&from_wish=1"; } var param = '&G='+ g + add_dlv + op_zine + T_op + from_wish_input; this.mdl_open( '/ajax/cart/cart_insert.html', param, 500, 400, this.direct_buy ); //else this.mdl_open( '/ajax/login.html', 'log_state='+this.log_state+'&G='+g+ add_dlv + T_op, 580, 360, this.direct_buy ); }else { alert('ÁÖ¹® ¼±ÅûçÇ×À» ¼±ÅÃÇØ ÁÖ¼¼¿ä^^'); } }else { alert('ÁÖ¹® ¼±ÅûçÇ×À» ¼±ÅÃÇØ ÁÖ¼¼¿ä^^'); } } // Àå¹Ù±¸´Ï C ¿É¼Ç mall.prototype.cart_Coption_pop = function (g, obj, n ) { if( obj.Cselect_data != null && obj.Cselect_data.length > 0 ) { var C_op = ""; var must_selected = new Array(); // ¹Ýµå½Ã ¼±ÅÃÀ» À§ÇÑ ÄÚµå var j = 0; // ½ÇÁ¦·Î ÀÔ·ÂÇÑ »óǰÀÇ °¹¼ö for(var i = 0; i < obj.Cselect_data.length; i++ ) { if( obj.Cselect_data[i]!=null && obj.Cselect_data[i]!='undefined') { C_op += '&Coptions'+j+'='+obj.Cselect_data_gcode[i]+'\t'+obj.Cselect_data[i]+'\t'+obj.Cselect_data_su[i]; //¹Ýµå½Ã ¼±ÅûçÇ× °Ë»ç var _must = obj.Cselect_data[i].split('\t'); for( var k = 0; k < m_option.Coption_must_check.length; k++ ) { if( _must[1] == m_option.Coption_must_check[k] ) { //must_selected.push(must_df_set[j]); must_selected.push(_must[1].replaceAll(' ','')); } } j++; } } if( j > 0 ) { var must_selected_uq = must_selected.unique(); //alert( must_selected_uq.length +'/'+ m_option.Coption_must_check.length); if( must_selected_uq.length == m_option.Coption_must_check.length || m_option.Coption_must_check.length == 0 ) { var add_dlv = ""; if( this.dlv!= 'none' ) add_dlv = "&dlv="+this.dlv; // Á¤±â °£Ç๰ var op_zine = ""; if( this.periodical_book = true && $('op_zine') ) { if ( $('op_zine').value != '' ) { op_zine = "&op_zine=" + $('op_zine').value; } } //alert( j ); // ´ã±â var ok_test = true; if( m_option.Over_Su > j ) { ok_test = false; alert('Àû¾îµµ '+m_option.Over_Su+'°³ ÀÌ»ó ±¸¸ÅÇÏ¼Å¾ß ÇÕ´Ï´Ù.'); } if( ok_test == true ) { if( m_option.Over_sale > m_option.Coption_total_sale ) { ok_test = false; alert('Àû¾îµµ '+Av.nf( m_option.Over_sale) + '¿ø ÀÌ»ó ±¸¸ÅÇÏ¼Å¾ß ÇÕ´Ï´Ù.'); } } if( ok_test ) { //À§½Ã´ã±â? var from_wish_input = ""; if( this.from_wish == true ) { from_wish_input = "&from_wish=1"; } var param = '&G='+g+ '&qty=' + n + add_dlv + op_zine + C_op + from_wish_input; this.mdl_open( '/ajax/cart/cart_insert.html', param, 500, 400, this.direct_buy ); //else this.mdl_open( '/ajax/login.html' ,'log_state='+this.log_state+'&G='+g+ '&qty=' + n + add_dlv + C_op, 580, 360, this.direct_buy ); } }else { var _str = ""; for( var i = 0; i< m_option.Coption_must_check.length; i++ ) { _str += "/"+m_option.Coption_must_check[i]; } for( var j =0; j< must_selected_uq.length; j++) { _str = _str.replaceAll("/" + must_selected_uq[j], ""); } _str = _str.substring(1); /* var tmc = m_option.Coption_must_check; for( var i=0; i< m_option.Coption_must_check.length; i++) { for( var j =0; j< must_selected_uq.length; j++) { if( m_option.Coption_must_check[i] == must_selected_uq[j] ) { delete tmc[i]; } } } */ alert( "["+_str+'] Àº(´Â) Çʼö¼±Åà »çÇ×ÀÔ´Ï´Ù.'); } }else { alert('»óǰÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä^'); } }else { alert('»óǰÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä^^'); } } //¹Ù·Î Àå¹Ù±¸´Ï ´ãÀ»¶§ ÇÊ¿ä ÀÌÀÍ 2007-08-02 mall.prototype.cart_pop_from = function(g,from) { if (g) { var add_dlv = ""; if( this.dlv!= 'none' ) add_dlv = "&dlv="+this.dlv; // ´ã±â this.mdl_open( '/ajax/cart/cart_insert.html','&G='+ g + '&from_user=' + from + '&qty=1'+ add_dlv, 366, 224, this.direct_buy ); //else this.mdl_open( '/ajax/login.html' ,'log_state='+this.log_state+'&G='+ g + '&from_user=' + from + '&qty=1'+ add_dlv, 580, 360, this.direct_buy ); } } //´Ù¼ö Àå¹Ù±¸´Ï 2010-05-19 mall.prototype.carts_pop = function( glist ) { this.mdl_open( '/ajax/cart/cart_insert.html','&gcodelist='+ glist, 366, 224, this.direct_buy ); } // // ÀÚµ¿È­ ³Ö±â mall.prototype.auto_insert_cart = function(auto_name, no) { if( confirm('¼±ÅÃÇÑ Á¦Ç°À» Àå¹Ù±¸´Ï¿¡ ´ã°Ú½À´Ï±î?') ) { var glist = ''; for( var i = 1; i<= parseInt(no) ; i++ ) { if( $(auto_name+i) && $(auto_name+i)!= null && $(auto_name+i)!='undefined' ) { if( $(auto_name+i).checked == true ) { var arr_value = $(auto_name+i).value.split("|"); glist += arr_value[0]+'|'; } } } if( glist ) { // ´ã±â this.mdl_open( '/ajax/cart/cart_insert.html','&gcodelist='+ glist + '&qty=1', 366, 224, this.direct_buy ); } } } mall.prototype.auto_all_chk = function(rnd_no, no) { var is_chk = false; if( $('auto_all_chk_'+rnd_no).checked == true ) is_chk = true; else is_chk = false; for(var i = 1; i <= parseInt(no); i++) { //if($(tar_auto+'_'+i) != null && $(tar_auto+'_'+i).disabled==false ) $(tar_auto+'_'+i).checked = is_chk; $('frm_'+rnd_no)['auto_chk_'+rnd_no+i].checked = is_chk; this.auto_pre_dsp('frm_'+rnd_no, 'auto_chk_'+rnd_no, i); } } // ÀÚµ¿È­ ÆäÀÌÁö¿¡¼­ ¼±Åýà °¹¼ö¿Í °¡°Ý Ç¥½Ã mall.prototype.t_cnt = 0; mall.prototype.t_sale = 0; mall.prototype.arr_t_cnt = new Array(); mall.prototype.arr_t_sale = new Array(); mall.prototype.auto_pre_dsp = function(frm_name, auto_name, no) { var arr_value = $(frm_name)[auto_name+no].value.split("|"); if(!this.arr_t_cnt[frm_name] ) this.arr_t_cnt[frm_name] = 0; if(!this.arr_t_sale[frm_name] ) this.arr_t_sale[frm_name] = 0; if( $(frm_name)[auto_name+no].checked == true ) { this.arr_t_cnt[frm_name]++; this.arr_t_sale[frm_name] += parseInt(arr_value[1]); }else { this.arr_t_cnt[frm_name]--; this.arr_t_sale[frm_name] -= parseInt(arr_value[1]); } if ( this.arr_t_cnt[frm_name] > 0 ) { $('dsp_'+auto_name).update("
¼±ÅÃÇÑ »óǰ "+this.arr_t_cnt[frm_name]+"°³ / "+Av.nf(this.arr_t_sale[frm_name])+"¿ø
"); }else { $('dsp_'+auto_name).update(""); } } // ¸ÞÀϸµ Ãß°¡Çϱâ mall.prototype.news_mailing = function( m_su ) { var mailings = ''; for (var i=1; i<= m_su; i++) { if( $('maker_mailing'+i) ) { if ( $('maker_mailing'+i).checked == true) mailings += $('maker_mailing'+i).value + '='; } } if( $('cmp_mailing') ) { if ( $('cmp_mailing').checked == true) mailings += $('cmp_mailing').value + '='; } var url = '/pop/mailing_into.html?mailings=' + mailings; var x = window.open(url,'mailing_pop','width=380,height=300,scrollbars=yes,resizable=no,toolbar=no,statusbar=no'); x.focus(); } //Å©°Ô º¸±â ¶ç¿ì±â mall.prototype.pop_show = function( gcode, pop_mode ) { if (gcode) { //if (!n) n = 0; var pw_w = 980; var pw_h = 580; var h_mg = 50; //if (w) pw_w = w; //if (h) pw_h = h; var Cw = screen.availWidth; var Ch = screen.availHeight; if (pw_w>Cw) pw_w = Cw; if (pw_h>Ch-h_mg) pw_h = Ch-h_mg; var pw_left = (Cw - pw_w) / 2; var pw_top = (Ch - h_mg - pw_h) / 2; var sm_image_no = ''; if( arguments[2] !='' ) sm_image_no= arguments[2]; var url = '/pop/pop_show.html?G='+gcode+'&pop_mode='+pop_mode+'&sm_image_no='+sm_image_no; var x = window.open(url , 'smzn'+gcode.replaceAll('-'), 'width='+pw_w+',height='+pw_h+',left='+pw_left+',top='+pw_top+',scrollbars=no,resizable=yes,toolbar=no,status=no'); x.focus(); } } mall.prototype.log_in = function( param ) { //alert( param ); this.mdl_open( '/ajax/login.html', param, 580, 360 ); } mall.prototype.pop_show_if = function( gcode, pop_mod ) { var oppa = ""; var w = 1000; var h = 600; oppa = "background-color: #000000; filter: Alpha(Opacity=15); opacity:0.15;"; $(this.whole_wrap).insert({ after: "
 
"}); var sc_height = document.documentElement.scrollHeight; $(this.outer).setStyle({'height': sc_height+'px', 'display':'block'}); $('window_md').update( "
X  
" ); var t = Position.realOffset($(this.whole_wrap)); var tY = t[1] + 80; $('window_md').setStyle({'top': tY+'px'}); $('window_md_in').update( "" ); $('window_md').show(); } mall.prototype.mdl_open = function( url, param, w, h ) { var oppa = ""; if( param == 'mode_event_book' ) param += "&mode_event=true"; if( arguments[4] == true ) { oppa = ""; param += "&direct_buy=true"; }else { oppa = "background-color: #000000; filter: Alpha(Opacity=15); opacity:0.15;"; } if( this.pop_mode == true ) param += "&pop_mode=true"; $(this.whole_wrap).insert({ after: "
 
"}); var sc_height = document.documentElement.scrollHeight; $(this.outer).setStyle({'height': sc_height+'px', 'display':'block'}); $('window_md').update( "
" ); var t = Position.realOffset($(this.whole_wrap)); var tY = t[1] + 180; $('window_md').setStyle({'top': tY+'px'}); $('window_md_in').update( "
" ); $('window_md').show(); // ·Îµù ÆäÀÌÁö new Ajax.Request( url, { method : "_POST", parameters: param, onComplete: function(htmlHttp) { var rs = htmlHttp.responseText; if(rs) { $('window_md_in').update( rs ); } } }); } mall.prototype.mdl_close = function( ) { if($(this.outer)) $(this.outer).remove(); if($('window_md')) $('window_md').remove(); } // Á¤È®ÇÑ À§Ä¡¿¡ ¶ß´Â â mall.prototype.mdl_open_aw = function( url, img_location, param ,bg, w, h, p_l, p_t ) { var t = Element.cumulativeOffset($(img_location)); $(this.whole_wrap).insert({ after: "
 
"}); var sc_height = document.documentElement.scrollHeight; $(this.outer).setStyle({'height': sc_height+'px', 'display':'block'}); $('window_md').update( "
" ); var left = parseInt(t[0])+p_l; var top = parseInt(t[1])+p_t; $('window_md').setStyle({'left': left+'px'}); $('window_md').setStyle({'top': top+'px'}); $('window_md_in').update( "
" ); new Ajax.Request( url, { method : "_POST", parameters: param, onComplete: function(htmlHttp) { var rs = htmlHttp.responseText; if(rs) { $('window_md_in').update( rs ); } } }); } //ÄíÆù °ü·Ã mall.prototype.get_user_coupon = function ( coupon_id ) { var param = '&coupon_id='+coupon_id; this.mdl_open( '/ajax/into_coupon.html', param, 366, 224); /* var link = '/ajax/into_coupon.html'; new Ajax.Request( link, { method : "GET", parameters: data, onComplete: function(xmlHttp){ var rs = xmlHttp.responseText; alert( rs ); } } ); */ } // ´Ü¼ø »õâ ¶ç¿ì±â( °¡¿îµ¥ ¸ÂÃã) mall.prototype.winopen = function (urls, nme, w, h, scr) { var Sw = screen.availWidth - 10; var Sh = screen.availHeight - 50; if (Sw < w) { var w_left = 0; w = Sw; } else { var w_left = (Sw - w) / 2; } if (Sh < h) { var w_top = 0; h = Sh; } else { var w_top = (Sh - h) / 2; } if (scr!='yes') scr = 'no'; var w = window.open(urls, nme, 'width='+w+',height='+h+',left='+w_left+',top='+w_top+',scrollbars='+scr+',toolbar=no'); w.focus(); } // ÀÌºÏ »õâ ¶ç¿ì±â mall.prototype.ebwinopen = function (urls, nme) { var ebook = window.open(urls, nme, ''); ebook.focus(); } var js_mall = new mall(); function mf(s,d,w,h,t) { var num = Math.floor(Math.random() * 1000); return ""; } // write document contents function documentwrite(src) { document.write(src); } Event.observe(document,'keypress', function esc(event){ if(event.keyCode==27) js_mall.mdl_close(); });