<!--
	function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable){
		toolbar_str = toolbar ? 'yes' : 'no';
		menubar_str = menubar ? 'yes' : 'no';
		statusbar_str = statusbar ? 'yes' : 'no';
		scrollbar_str = scrollbar ? 'yes' : 'no';
		resizable_str = resizable ? 'yes' : 'no';
		window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
	}
	function fnCheckOk(val)
	{
		var chk = true;
		f = document.form_info;
		if(chk) {
			f.g_url.value = location.search;
			f.b_url.value = val;

			var str_op_code = ''			
			if(top.parent.frames['scroll_seoption'] != null) {
				opfrm = scroll_seoption.document.Pfrm;
				if(opfrm.op_code != null) {
					
					if(opfrm.op_code.length == null) {
						str_op_code = opfrm.op_code.value;
					}else{
						for(i=0;i<opfrm.op_code.length;i++) {
							if(i==0) {
								str_op_code = opfrm.op_code[i].value;
							}else{
								str_op_code = str_op_code + ',' + opfrm.op_code[i].value;
							}
						}
					}
				}
				f.op_code.value = str_op_code;
			}	
			f.submit();
		}
	}
	function fnCheckOk2(val)
	{
		//alert('¿É¼ÇÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.');
		var chk = true;
		f = document.form_info;
		if (f.option1.value == ""){
			alert('¿É¼ÇÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.');
			f.option1.focus();
		}
		else{
		if(chk) {
			f.g_url.value = location.search;
			f.b_url.value = val;

			var str_op_code = ''			
			if(top.parent.frames['scroll_seoption'] != null) {
				opfrm = scroll_seoption.document.Pfrm;
				if(opfrm.op_code != null) {
					
					if(opfrm.op_code.length == null) {
						str_op_code = opfrm.op_code.value;
					}else{
						for(i=0;i<opfrm.op_code.length;i++) {
							if(i==0) {
								str_op_code = opfrm.op_code[i].value;
							}else{
								str_op_code = str_op_code + ',' + opfrm.op_code[i].value;
							}
						}
					}
				}
				f.op_code.value = str_op_code;
			}	
			f.submit();
		}
		}
	}
	
	function chklogin()		{
		window.open('/member/login.asp?Top=&g_code=<%=g_code%>','Login','width=340,height=230');
	}

	function Good_Move(g_code){
		var QueryString = location.search;
		var ChkStr = '';
		var LinkUrl = '';
		var page = 'goods_detail.asp';

		ArrStr = QueryString.split('&');
		for(i=0;i<ArrStr.length;i++) {
			if(ArrStr[i].indexOf('g_code=') >= 0) {
				ChkStr = ArrStr[i];
				break;
			}
		}
		if(ChkStr == '' ) {
			if(QueryString != '') {
				LinkUrl = page + QueryString + '&' + 'g_code='+g_code;
			}else {
				LinkUrl = page + '?' + 'g_code='+g_code;
			}
			location.href = LinkUrl
		}else{
			QueryString = QueryString.replace(ChkStr,'g_code='+g_code)
			location.href = LinkUrl + page + '?' + QueryString;
		}
	}

	function now_buy() {
		var chk = true;
		f = document.form_info;
		if (f.option1.value == ""){
			alert('¿É¼ÇÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.');
			f.option1.focus();
		}
		else{
		if(chk) {

			var str_op_code = ''			
			if(top.parent.frames['scroll_seoption'] != null) {
				opfrm = scroll_seoption.document.Pfrm;
				if(opfrm.op_code != null) {
					
					if(opfrm.op_code.length == null) {
						str_op_code = opfrm.op_code.value;
					}else{
						for(i=0;i<opfrm.op_code.length;i++) {
							if(i==0) {
								str_op_code = opfrm.op_code[i].value;
							}else{
								str_op_code = str_op_code + ',' + opfrm.op_code[i].value;
							}
						}
					}
				}
				f.op_code.value = str_op_code;
			}	

			f.g_url.value = location.search;
			f.b_url.value = '/order/ordercart_write.asp';
			f.action = "/Module/ActionPages/Cart/Basket_Ins.asp"
			f.submit();
		}
		}
	}
	function now_buy2() {
		var chk = true;
		f = document.form_info;
		if(chk) {

			var str_op_code = ''			
			if(top.parent.frames['scroll_seoption'] != null) {
				opfrm = scroll_seoption.document.Pfrm;
				if(opfrm.op_code != null) {
					
					if(opfrm.op_code.length == null) {
						str_op_code = opfrm.op_code.value;
					}else{
						for(i=0;i<opfrm.op_code.length;i++) {
							if(i==0) {
								str_op_code = opfrm.op_code[i].value;
							}else{
								str_op_code = str_op_code + ',' + opfrm.op_code[i].value;
							}
						}
					}
				}
				f.op_code.value = str_op_code;
			}	

			f.g_url.value = location.search;
			f.b_url.value = '/order/ordercart_write.asp';
			f.action = "/Module/ActionPages/Cart/Basket_Ins.asp"
			f.submit();
		}
	}


	function PriceName(n) {
		document.form_info.price_name.value = n;
	}
	function sePoint(n) {
		document.all['point'].innerHTML = commaSplit(n);
	}
	function Sub_list() {
		location.href = 'goods_list.asp' + location.search;
	}
	function SubWishList(gcode) {
	  var winWish = window.open('/popup/wishlist_add.asp?gcode='+gcode, "addWish", "width=195,height=140,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0");
	  winWish.opener = self;
	  winWish.focus();
	}
	function PagePrint() {
	 var printwin;
	 printwin = window.open("/Module/_Library/print.html","print","left=10;top=0;height=600,width=740,scrollbars=yes,toolbar=no,menubar=yes");
	 printwin.focus();
	}
	function Sub_Cart() {
		frm = document.form_info;
		if(frm.buy_ea.value <= 0) {
			alert('±¸¸ÅÇÏ½Ç »óÇ°ÀÇ ¼ö·®À» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
			frm.buy_ea.focus();
			return;
		}else{
			frm.submit();
		}
	}
	function SelectOp(n) {
		frm = scroll_seoption.document.Pfrm;
		frm.g_code.value = n;
		frm.action = '/Module/ActionPages/Shop/inc/Detail_Option_SEGood.asp';
		frm.submit()
	}

	function open_tip(gcode) {
		//alert('³²ÇýÁø¾¾.. ÆäÀÌÁö¸¸µé¾î ÁÖ¼¼¿ä~~');
		//return;
	  designtip  = window.open('/designertip/designertip.asp?gcode='+gcode, "addWish", "width=515,height=520,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0");
	  designtip.focus();
	}
//-->