<!--
function trans_search(t,n)
{
	var h=700;

	if(!t||!n)
	{
		alert("¼ÛÀå¹øÈ£³ª Á¶È¸±¸ºÐÀÌ Á¤È®ÇÏÁö ¾Ê½À´Ï´Ù.");
		return;
	}
	
	if(t=="DH")//´ëÇÑÅë¿î
	{
		var url = "http://www.doortodoor.co.kr/servlets/cmnChnnel?tc=dtd.cmn.command.c03condiCrg01Cmd&invc_no="+n;
		var w=1024;
	}
	else if(t=="HD")//Çö´ëÅÃ¹è
	{
		var url="http://www.hlc.co.kr/hydex/jsp/tracking/trackingViewCus.jsp?InvNo="+n;
		var w=1024;
	}
	else if(t=="PO")//¿ìÃ¼±¹ÅÃ¹è
	{
		var url="http://service.epost.go.kr/trace.RetrieveRegiPrclDeliv.postal?sid1="+n;
		var w=1024;
	}
	else if(t=="DB")//µ¿ºÎÀÍ½ºÇÁ·¹½º
	{
		var url="http://www.dongbuexpress.co.kr/Html/Delivery/DeliveryCheck.jsp?search_item_no="+n;
		var w=1024;
	}
	else if(t=="CJ")//CJ GLS
	{
		var url="http://www.cjgls.co.kr/kor/service/service02_01.asp?slipno="+n;
		var w=1024;
	}
	else if(t=="LG")//·ÎÁ¨ÅÃ¹è
	{
		var url="http://d2d.ilogen.com/d2d/delivery/invoice_tracesearch_quick.jsp?slipno="+n;
		var w=1024;
	}
	else if(t=="YC")//¿»·Î¿ìÄ¸ÅÃ¹è
	{
		var url="http://www.yellowcap.co.kr/branch/chase/listbody.html?a_gb=branch&a_cd=5&a_item=0&f_slipno="+n;
		var w=1024;
	}
	else if(t=="HJ")//ÇÑÁøÅÃ¹è
	{
		var url="http://www.hanjinexpress.hanjin.net/customer/plsql/hddcw07.result?wbl_num="+n;
		var w=520;
		var h=500;
	}
	else if(t=="KG")//KGBÅÃ¹è
	{
		var url="http://www.kgbls.co.kr/sub3/sub3_4_1.asp?f_slipno="+n;
		var w=1024;
	}
	else//¿ìÃ¼±¹ÅÃ¹è
	{
		var url="http://service.epost.go.kr/trace.RetrieveRegiPrclDeliv.postal?sid1="+n;
		var w=1024;
	}
	
	iXPos=(window.screen.width-w)/2;
	iYPos=(window.screen.height-h)/2;

	var Win=window.open(url,'','status=yes,toolbar=yes,menubar=yes,resizable=yes,scrollbars=yes,width='+w+',height='+h+',left='+iXPos+',top='+iYPos);
}

function UniversalTrace(gubun,code)
{
	if(!gubun || !code)
	{
		alert("¼ÛÀå¹øÈ£³ª Á¶È¸±¸ºÐÀÌ Á¤È®ÇÏÁö ¾Ê½À´Ï´Ù.");
		return;
	}
	
	if(gubun == "E" || gubun == "S" || gubun == "A") //EMS
	{
		var traceUrl = "http://service.epost.go.kr/trace.RetrieveEmsTrace.postal?POST_CODE="+code;
		w=740;
	}
	else if(gubun =="W"||gubun =="T")
	{
		var traceUrl = "http://www.cjgls.co.kr/kor/service/service02_01.asp?slipno="+code;
		w=1000;
	}
	else if(gubun =="L")
	{
		var traceUrl = "http://www.fedex.com/Tracking?cntry_code=kr&tracknumber_list="+code+"&language=korean";
		w=1000;
	}
	else
	{
		var traceUrl = "http://service.epost.go.kr/trace.RetrieveEmsTrace.postal?POST_CODE="+code;
		w=740;
	}
	
	var Win = window.open(traceUrl,'','status=yes,toolbar=yes,menubar=yes,resizable=yes,scrollbars=yes,width='+w+',height=725,left=20,top=20');
}
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 false;
}

function setCal(f)
{
	if(event.keyCode != 9 && event.keyCode != 16) //ÅÇÀÌµ¿½Ã
	{
		f.value = formatCurrency(f.value);
	}
}

function toOriginVal(str)
{
	str = str.replace(/,/gi,"");
	return str;
}

function all_select(f)
{
	if(f)
	{
		for(i=0;i<f.length;i++)
		{
			if(f[i].type=="checkbox"&&f[i].disabled==false)
			{
				f[i].checked=true;
			}
		}
	}
}

function de_select(f)
{
	if(f)
	{
		for(i=0;i<f.length;i++)
		{
			if(f[i].type=="checkbox")
			{
				f[i].checked=false;
			}
		}
	}
}

function select_del(f)
{
	if(f)
	{
		var i,checked=0;
		for(i=0;i<f.length;i++)
		{
			if(f[i].type=="checkbox")
			{
				if(f[i].checked)
					checked=1;
			}
		}

		if(checked)
		{
			if(confirm("¼±ÅÃ³»¿ªÀ» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?"))
			{
				f.act.value="sel_del";
				f.submit();
			}
		}
		else 
			alert("¼±ÅÃµÈ Ç×¸ñÀÌ ¾ø½À´Ï´Ù.");
	}
}



function select_cash(f)
{
	if(f)
	{
		var i,checked=0;
		for(i=0;i<f.length;i++)
		{
			if(f[i].type=="checkbox")
			{
				if(f[i].checked)
					checked=1;
			}
		}

		if(checked)
		{
			if(confirm("¼±ÅÃ³»¿ªÀ» Ä³½Ã°áÁ¦ÇÏ½Ã°Ú½À´Ï±î?"))
			{
				f.act.value="sel_cash";
				f.submit();
			}
		}
		else 
			alert("¼±ÅÃµÈ Ç×¸ñÀÌ ¾ø½À´Ï´Ù.");
	}
}

function select_sum(f)
{
	pricesum=0;
	if(f)
	{
		var i,checked=0;
		for(i=0;i<f.length;i++)
		{
			if(f[i].type=="checkbox")
			{
				if(f[i].checked)
				{
					checked=1;
					price=f[i].value;
					price=parseFloat(price);
					pricesum=pricesum+price;
				}
			}
		}

		if(checked)
		{
			pricesum=formatCurrency(pricesum);
			alert("¼±ÅÃµÈ Ç×¸ñÀÇ ÃÑ °áÁ¦°¡°ÝÀº "+pricesum+"¿ø ÀÔ´Ï´Ù.");
		}
		else 
			alert("¼±ÅÃµÈ Ç×¸ñÀÌ ¾ø½À´Ï´Ù.");
	}
}

function trans_win(url)
{
	window.open('/buy/common/trans_pop.php?o_url='+url,'','left=50,top=50,width=800,height=650,toolbar=yes,scrollbars=yes,resizable=yes');
}

function fav_chg(mode)
{
	/*
	var tempX=0;
	var tempY=0;
	tempX=event.clientX+document.body.scrollLeft;
	tempY=event.clientY+document.body.scrollTop;
	if(tempX<0){tempX=0;}
	if(tempY<0){tempY=0;}
	
	fav_view.style.left=tempX-463;
	fav_view.style.top=tempY-100;
	*/
	var f=document.favForm;

	fav_view.style.left=-720;
	fav_view.style.top=181;
	
	if(f.mode.value.length==0)//Ã³À½¿­¶§
	{
		if(fav_view.style.display=="block")
		{
			fav_view.style.display="none";
			f.action="about:blank";
			f.submit();
		}
		else
		{
			fav_view.style.display="block";
			f.mode.value=mode;
			f.action=f.url.value;
			f.submit();
		}
	}
	else
	{
		fav_view.style.display="block";
		f.mode.value=mode;
		f.action=f.url.value;
		f.submit();
	}
}

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; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() {//v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

 function MM_findObj(n, d) {//v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&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<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() {//v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

 function getHost(){
	var Dns;
	Dns=location.href;
	Dns=Dns.split("//");
	Dns="http://"+Dns[1].substr(0,Dns[1].indexOf("/"));
	return Dns;
 }
 
 function printSWF(f)
 {
	document.write(f);
 }

function mainbuy(m)
{
	var thisHost = getHost();
	
	if(m=="1")//¸®ºù/ÀÎÅ×¸®¾î
		window.open('/buy/common/buy_pop_frm.php?o_url=http://shop.bals.co.jp/shop/c/c10/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
}
function buysite(m)
{
	var thisHost = getHost();
	
	if(m=="1")//¾Æ¸¶Á¸
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.amazon.jp','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="2")//¾ßÈÄ
		window.open('/buy/common/buy_pop_frm.php?o_url=http://shopping.yahoo.co.jp','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="3")//¶óÄíÅÙ
		eval("location.href='"+thisHost+"/buy/_rakuten/'");
	else if(m=="4")//³ªÀÌÅ° °ñÇÁ
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.nikigolf.jp/top/index.aspx','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="5")//Æä¸®½Ã¸ð?
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.felissimo.co.jp','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="6")//ÅäÀÌÀú·¯½º
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.toysrus.co.jp/t/index.html','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.amazon.jp','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
}
function bcate(m)
{
	var thisHost = getHost();
	
	if(m=="1")//Ã¿½Ã
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.rakuten.ne.jp/gold/chelsea/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="2")//plazza
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.i-piazza.co.jp/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="3")//waja
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.waja.co.jp/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="4")//yoox
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.yoox.com/home.asp?tskay=050D2086&isoCode=JP&memory=1','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="5")//nuan
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.nuan.gr.jp/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="6")//peachjohn
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.peachjohn.co.jp/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="7")//niceclaup
		window.open('/buy/common/buy_pop_frm.php?o_url=http://rshop.jp/niceclaup/category/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="8")//redpepperjeans
		window.open('/buy/common/buy_pop_frm.php?o_url=http://redpepperjeans.net/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="9")//uniqlo
		window.open('/buy/common/buy_pop_frm.php?o_url=http://store.uniqlo.com/jp/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="10")//atmos-tokyo
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.rakuten.ne.jp/gold/atmos-tokyo/index.html','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="11")//believer
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.believer.jp/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="12")//cataloger
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.cataloger.jp/shopping/index.do','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="13")//abc-mart
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.abc-mart.net/shop/top.aspx','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="14")//pistacchio
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.pistacchio.jp/index.html','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="15")//nuts
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.rakuten.co.jp/nuts/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="16")//cc-shop
		window.open('/buy/common/buy_pop_frm.php?o_url=http://cc-shop.jp/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="17")//combimini
		window.open('/buy/common/buy_pop_frm.php?o_url=http://combimini.jp/shopping/index.html','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="18")//a-goods
		window.open('/buy/common/buy_pop_frm.php?o_url=https://www.a-goods.jp/shopping.php','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="19")//sanrio
		window.open('/buy/common/buy_pop_frm.php?o_url=http://shop.sanrio.jp/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="20")//circus
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.circus-circus.jp/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="21")//rapty
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.rapty.com/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="22")//dinos
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.dinos.co.jp/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="23")//otto
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.otto-online.jp/store/index.aspx','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else if(m=="24")//eyeco
		window.open('/buy/common/buy_pop_frm.php?o_url=http://eyeco.jp/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
	else
		window.open('/buy/common/buy_pop_frm.php?o_url=http://www.rakuten.ne.jp/gold/chelsea/','','left=0,top=20,width=1045,height=700,toolbar=no,resizable=yes');
}

function openJUrl2(m)
{
	var thisHost = getHost();

	if(m=="1")
		window.open('/bbs/poll/list.php?idx=1','','left=100,top=100,width=580,height=540,toolbar=no,resizable=yes');
	else if(m=="2")
		eval("location.href='"+thisHost+"/event/coin_add.php'");
	else
		eval("location.href='http://mall.japanenjoy.com/goods/jm_goods_info.html?g_key=107113'");
}
function openJUrl(m,n)
{
	var thisHost = getHost();
	
	if(m=="1")//°æ¸Å´ëÇà
	{
		if(n=="1")//¾ßÈÄ
			eval("location.href='"+thisHost+"/auction/_yahoo/'");
		else if(n=="2")//¶óÄíÅÙ
			alert("ÁË¼ÛÇÕ´Ï´Ù\nÇöÀç °æ¸Å¶óÄíÅÙ Ä«Å×°í¸®´Â ÀÌ¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.\nºü¸¥ ½ÃÀÏ³»¿¡ Ã£¾ÆºË°Ú½À´Ï´Ù");//eval("location.href='"+thisHost+"/auction/_rakuten/'");
		else if(n=="3")//ºñ´õ½º
			alert("ÁË¼ÛÇÕ´Ï´Ù\nÇöÀç °æ¸Åºñ´õ½º Ä«Å×°í¸®´Â ÀÌ¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.\nºü¸¥ ½ÃÀÏ³»¿¡ Ã£¾ÆºË°Ú½À´Ï´Ù");//eval("location.href='"+thisHost+"/auction/_bidders/'");
		else if(n=="4")//ÅäÇÈ°æ¸Å
			eval("location.href='"+thisHost+"/auction/_topic/'");
		else
			eval("location.href='"+thisHost+"/auction/_yahoo/'");
	}
	else if(m=="2")//±¸¸Å´ëÇà
	{
		if(n=="1")//¶óÄíÅÙ
			eval("location.href='"+thisHost+"/buy/_rakuten/'");
		else if(n=="2")//¾ßÈÄ
			eval("location.href='"+thisHost+"/buy/_yahoo/'");
		else if(n=="3")//¾Æ¸¶Á¸
			eval("location.href='"+thisHost+"/buy/_amazon/'");
		else if(n=="4")//Å×¸¶¼¥
			eval("location.href='"+thisHost+"/buy/_theme/'");
		else
			eval("location.href='"+thisHost+"/buy/'");
	}
	else if(m=="3")//ÀçÆÒ¸ô
	{
		if(n=="1")//
			location.href="http://mall.japanenjoy.com/goods/jm_ctg_list.html?ccd=10";
		else if(n=="2") 
			location.href="http://mall.japanenjoy.com/goods/jm_ctg_list.html?ccd=20";
		else if(n=="3") 
			location.href="http://mall.japanenjoy.com/goods/jm_ctg_list.html?ccd=30";
		else if(n=="4") 
			location.href="http://mall.japanenjoy.com/goods/jm_ctg_list.html?ccd=40";
		else if(n=="5") 
			location.href="http://mall.japanenjoy.com/goods/jm_ctg_list.html?ccd=50";
		else if(n=="6") 
			location.href="http://mall.japanenjoy.com/goods/jm_ctg_list.html?ccd=60";
		else if(n=="7") 
			location.href="http://mall.japanenjoy.com/goods/jm_ctg_list.html?ccd=90";
		else
			location.href="http://mall.japanenjoy.com/index.html";
		
	}
	else if(m=="4")//ÅäÇÈ°æ¸Å
	{
		location.href=thisHost+"/auction/_topic/";
	}
	else if(m=="5")//ÃâÇ°´ëÇà
	{
		//var Win = window.open('/helpdesk/guide_fla.html','help','menubar=no,status=no,scrollbars=no,resizable=no,width=800,height=550,left=50,top=100');
		eval("location.href='"+thisHost+"/sell/'");
	}
	else if(m=="6")//Å×¸¶¼¥
	{
		eval("location.href='"+thisHost+"/buy/_theme/'");
	}
	/*
	else if(m=="7")//¸ô±âÈ¹Àü
	{
		alert("ÀÛ¾÷Áß");
	}*/
	else if(m=="8")//º¸Áõ±Ý°áÁ¦
	{
		eval("location.href='"+thisHost+"/myPage/_pocket/deposit_add.php'");
	}
	else if(m=="9")//Ä³½ÃÃæÀü
	{
		eval("location.href='"+thisHost+"/myPage/_pocket/cash_add.php'");
	}
	else
		eval("location.href='"+thisHost+"/'");
	
	return;
 }
 

 function jb(m,n)
{
	var thisHost = getHost();
	
	if(m=="1")
	{
		if(n=="1")//¿ì¸Õ
			//ÁÖ¼Ò´Â http://www.japanenjoy.com µÚ¿¡¼­ºÎÅÍ °É¾î¿ä
			//ÀçÆÒ¸ôÀÏ°æ¿ì http://mall.japanenjoy.com ´ÙºÙ¿©¼­
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=1010&isLeaf=N'");
		else if(n=="2")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=1011&isLeaf=N'");
		else if(n=="3")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=1012&isLeaf=N'");
		else if(n=="4")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=1013&isLeaf=N'");
		else if(n=="5")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=1014&isLeaf=N'");
		else if(n=="6")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=10&brand_code=1005'");
		else if(n=="7")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=10&brand_code=1006'");
		else if(n=="8")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=10&brand_code=9999'");
		else if(n=="9")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=10&brand_code=1046'");
		else
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_main.html?ctg_code=10'");
	}
	else if(m=="2")//¸Ç
	{
		if(n=="1")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=2010&isLeaf=N'");
		else if(n=="2")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=2011&isLeaf=N'");
		else if(n=="3")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=2012&isLeaf=N'");
		else if(n=="4")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=2013&isLeaf=N'");
		else if(n=="5")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=2014&isLeaf=N'");
		else if(n=="6")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=20&brand_code=1008'");
		else if(n=="7")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=20&brand_code=1009'");
		else if(n=="8")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=20&brand_code=1006'");
		else if(n=="9")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=20&brand_code=1032'");
		else if(n=="10")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=20&brand_code=1005'");
		else if(n=="11")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=20&brand_code=9999'");
		else if(n=="12")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=20&brand_code=1045'");
		else if(n=="13")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=20&brand_code=1046'");
		else
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_main.html?ctg_code=20'");
	}
	else if(m=="3")//½ºÆ÷Ã÷ & ·¹Àú
	{
		if(n=="1")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=3010&isLeaf=N'");
		else if(n=="2")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=3011&isLeaf=N'");
		else if(n=="3")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=3012&isLeaf=N'");
		else if(n=="4")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=3013&isLeaf=N'");
		else if(n=="5")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=3014&isLeaf=N'");
		else if(n=="6")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=30&brand_code=1015'");
		else if(n=="7")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=30&brand_code=1016'");
		else if(n=="8")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=30&brand_code=1017'");
		else if(n=="9")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=30&brand_code=9999'");
		else if(n=="10")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=30&brand_code=1050'");
		else
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_main.html?ctg_code=30'");
	}
	else if(m=="4")//Å°Áî&º£ÀÌºñ
	{
		if(n=="1")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=4010&isLeaf=N'");
		else if(n=="2")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=4011&isLeaf=N'");
		else if(n=="3")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=4012&isLeaf=N'");
		else if(n=="4")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=4013&isLeaf=N'");
		else if(n=="5")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=4014&isLeaf=Y'");
		else if(n=="6")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=40&brand_code=1020'");
		else if(n=="7")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=40&brand_code=1021'");
		else if(n=="8")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=40&brand_code=1022'");
		else if(n=="9")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=40&brand_code=1023'");
		else if(n=="10")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_bnd_main.html?ctg_code=40&brand_code=9999'");
		else
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_main.html?ctg_code=40'");
	}
	else if(m=="5")//¸®ºù¾Ø±âÇÁÆ®
	{
		if(n=="1")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=5010&isLeaf=Y'");
		else if(n=="2")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=5011&isLeaf=Y'");
		else if(n=="3")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=5012&isLeaf=Y'");
		else if(n=="4")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=5013&isLeaf=Y'");
		else if(n=="5")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=5014&isLeaf=Y'");
		else if(n=="6")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=5015&isLeaf=Y'");
		else if(n=="7")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=5016&isLeaf=Y'");
		else if(n=="8")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=5017&isLeaf=Y'");
		else if(n=="9")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=5018&isLeaf=Y'");
		else if(n=="10")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=5019&isLeaf=Y'");
		else if(n=="11")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=5020&isLeaf=Y'");
		else if(n=="12")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=5021&isLeaf=Y'");
		else if(n=="13")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=5022&isLeaf=Y'");
		else
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_main.html?ctg_code=50'");
	}
	else if(m=="6")//·°¼Å¸®
	{
		if(n=="1")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=9010&isLeaf=Y'");
		else if(n=="2")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=9011&isLeaf=Y'");
		else if(n=="3")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=9012&isLeaf=Y'");
		else if(n=="4")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=9013&isLeaf=Y'");
		else if(n=="5")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=9014&isLeaf=Y'");
		else if(n=="6")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=9015&isLeaf=Y'");
		else if(n=="7")
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_list.html?ctg_code=9016&isLeaf=Y'");
		else
			eval("location.href='http://mall.japanenjoy.com/goods/jm_ctg_main.html?ctg_code=90'");
	}
}

 function nonMemberPop(nUrl)
 {
  	LeftPosition=(screen.width)?(screen.width-480)/2:100;
	TopPosition=(screen.height)?(screen.height-395)/2:100;
 	
 	g_fIsSP2 = (window.navigator.userAgent.indexOf('SV1') != -1);
	if (g_fIsSP2)     {     
	  //XP SP2 ºê¶ó¿ìÀúÀÓ..
	    dheight = '415';
	}
	else
	{
	     dheight = '395';
	   //XP SP2 ºê¶ó¿ìÀú°¡ ¾Æ´Ô.
	}
	if (nUrl=="")
		nUrl = "<?=$DeURL?>";
			
 	var loginPassUrl = "/memJoin/enjoyLogin.html?m_go=li_h_pop&n_url="+nUrl ;
 	window.open(loginPassUrl,'PopLogin','Width=480,Height=' + dheight + ', Left='+LeftPosition+', Top='+TopPosition+', resizable:no, scroll:no, status:no');
  }
  
  function viewTodaygoods()
  {
 	var fd = todaygoodlist;
 	if(fd.style.visibility=="hidden")
 		fd.style.visibility = "visible";
 	else
 		fd.style.visibility = "hidden";
 		
  }
  
  function helpWin()
  {
 	var Win = window.open('/helpdesk/help_pop.html','help','menubar=no,status=no,scrollbars=no,resizable=no,width=606,height=622,left=50,top=50');
  }
  function exPrice()
  { 
    //var win=window.open('/auction/common/auc_check_main.php?mode=1&price=1','','left=300,top=100,width=600,height=700,status=yes,toolbar=no,menubar=no,resizable=yes,scrollbars=no');
	var win=window.open('/common/exprice.php','','left=300,top=50,width=580,height=720,status=yes,toolbar=no,menubar=no,resizable=yes,scrollbars=no');
  }

  function exGain()
  {
	Left=(screen.width)?(screen.width-580)/2:100;
	Top=(screen.height)?(screen.height-600)/2:100;

	var win=window.open('/common/exgain.php','','left='+Left+',top='+Top+',width=580,height=600,status=yes,toolbar=no,menubar=no,resizable=yes,scrollbars=no');
  }

  function uniWin()
  {
    var Win = window.open('http://old.japanenjoy.com/jkt/textTrans/textTrans.php','',',menubar=no,status=no,scrollbars=no,resizable=no,width=346,height=386,left=440,top=150');
  }
  function rDirectSubmit()
  { 
 	LeftPosition=(screen.width)?(screen.width-486)/2:100;
	TopPosition=(screen.height)?(screen.height-383)/2:100;
			
	var g_fIsSP2 = false;
	
	g_fIsSP2 = (window.navigator.userAgent.indexOf('SV1') != -1);
	if (g_fIsSP2)     {     
	  //XP SP2 ºê¶ó¿ìÀúÀÓ..
	    dheight = '442';
	  //dheight = '418';
	}
	else
	{
	    dheight = '442';
	  //dheight = '403';
	  //XP SP2 ºê¶ó¿ìÀú°¡ ¾Æ´Ô.
	}
 	window.open('/auction/aution_bid_go_3_direct.html', "directBid", 'width=486,height=' + dheight + ',left='+LeftPosition+',top='+TopPosition+',resizable=no,scrollbars=no,status=no');
  }
 
function formatCurrency(amount)//¼ýÀÚ³ª ¹®ÀÚ¿­À» ÅëÈ­(Money) Çü½ÄÀ¸·Î ¸¸µç´Ù.( ½°Ç¥(,) Âï´Â´Ù´Â ¼Ò¸®.. )
{
	input = amount+"";
	input = input.replace(/,/gi,"");

	var num = Number(input);

	if (num < 0) {
		num *= -1;
		var minus = true
	}else{
		var minus = false
	}

	var dotPos = (num+"").split(".")
	var dotU = dotPos[0]
	var dotD = dotPos[1]
	var commaFlag = dotU.length%3

	if(commaFlag) {
		var out = dotU.substring(0, commaFlag)
		if (dotU.length>3) out += ","
	}
	else var out = ""

	for (var i=commaFlag; i < dotU.length; i+=3) {
		out += dotU.substring(i, i+3)
		if( i < dotU.length-3) out += ","
	}

	if(minus) out = "-" + out
	if(dotD) return out + "." + dotD
	else return out;
}
function onlyNumberInput() // ¼ýÀÚ¸¸ ÀÔ·Â °¡´É (onKeyDown ÀÌº¥Æ®)
{
	var code = window.event.keyCode;
	if ((code > 32 && code < 48) || (code > 57 && code < 65) || (code > 90 && code < 97) || (code > 34 && code < 41) || (code > 47 && code < 58) || (code > 95 && code < 106) || code == 8 || code == 9 || code == 13 || code == 46){
		window.event.returnValue = true;
		return;
	}
	window.event.returnValue = false;
}
function getONumtype(v)
{
	v = v+"";
	if(v)
	{
		str = v.replace(/,/gi,"");
		return str;
	}
	else
		return 0;
}
function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src+"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
} 

/**
 * Calendar Script
 *
 * @author	mirrh (imirrh@gmail.com)
 * @date	2006.01.22
 * @usage	<input type=text onclick="calendar()" format="%Y-%m-%d">
 */
function _ID(obj){return document.getElementById(obj)}
function get_objectTop(obj){
	if (obj.offsetParent == document.body) return obj.offsetTop;
	else return obj.offsetTop + get_objectTop(obj.offsetParent);
}

function get_objectLeft(obj){
	if (obj.offsetParent == document.body) return obj.offsetLeft;
	else return obj.offsetLeft + get_objectLeft(obj.offsetParent);
}
var calObjdoc;
var calInput;

function calendar_init()
{
	var date = new Date;
	var year = date.getYear();
	var month = date.getMonth();

	var calStyle = "\
	<style>\
	body {margin:0}\
	select {font:8pt tahoma}\
	a {text-decoration:none;color:#000000}\
	.tahoma {font:8pt tahoma}\
	.white {color:#ffffff}\
	.today {font-weight:bold;color:#ff0000}\
	</style>\
	";

	var calLayout = "\
	<form name=frmCalendar style='display:inline'>\
	<table width=200 cellpadding=0 cellspacing=0><tr><td style='border:2 solid #323232'>\
	<table width=196 cellpadding=0 cellspacing=0>\
	<tr>\
		<td bgcolor=#000000 style='padding:0 9;border-bottom:2 solid #323232'>\
		<table width=100% cellpadding=0 cellspacing=0 class=tahoma>\
		<tr>\
			<td width=30><font color=#ffffff onClick='parent.calendar_move(-1)' style='cursor:pointer'>¢¸</font></td>\
			<td align=center>\
			<select name=year onChange=parent.calendar_update()></select>\
			<select name=month onChange=parent.calendar_update()></select>\
			</td>\
			<td width=30 align=right><font color=#ffffff onClick='parent.calendar_move(1)' style='cursor:pointer'>¢º</font></td>\
		</tr>\
		</table>\
		</td>\
	</tr>\
	<tr>\
		<td height=122 valign=top>\
		<table width=100% id=calInner class=tahoma>\
		<tr><th style='color:red'>S</th><th>M</th><th>T</th><th>W</th><th>T</th><th>F</th><th style='color:blue'>S</th></tr>\
		<col align=center span=7>\
		</table>\
		</td>\
	</tr>\
	<tr>\
		<td bgcolor=#000000>\
		<table width=100% class=tahoma>\
		<tr>\
			<td><a href='javascript:parent.calendar_update(" + year + "," + month + ")' onfocus=blur() class=white>\
			<b>now</b> (" + year + "-" + parent.calendar_addZero(month+1) + ")\
			</a></td>\
			<td align=right><a href='javascript:parent.calendar_close()' class=white>close</a></td>\
		</tr>\
		</table>\
		</td>\
	</tr>\
	</table>\
	</td></tr></table>\
	</form>\
	";


	var ifrm = document.createElement("iframe");
	ifrm.id = "calObj";
	ifrm.name = "calObj";
	ifrm.frameBorder = 0;
	with (ifrm.style){
		position	= "absolute";
		left		= "-999px";
		background	= "#ffffff";
		width		= "200px";
		height		= "166px";
		//z-index	= "999";
	}
	document.body.appendChild(ifrm);
	
	calObjdoc = document.getElementById('calObj').contentWindow.document;
	calObjdoc.open();
	calObjdoc.write(calStyle);
	calObjdoc.write(calLayout);
	calObjdoc.close();
	
	
	calendar_setup();
}

function calendar_setup()
{
	var objMonth = calObjdoc.frmCalendar.month;
	for (i=0;i<12;i++) objMonth.options[i] = new Option(i+1+"¿ù",i);

	var date = new Date;
	var year = date.getYear();
	var month = date.getMonth();
	
	calendar_update(year,month);
	
}

function calendar_update(year,month)
{
	if (isNaN(year)){
		year = calObjdoc.frmCalendar.year.value;
		month = calObjdoc.frmCalendar.month.value;
	}

	year = parseInt(year);

	var objYear = calObjdoc.frmCalendar.year;
	var objMonth = calObjdoc.frmCalendar.month;

	for (i=0;i<5;i++) objYear.options[i] = new Option(year+i-2+"³â",year+i-2);
	objYear.selectedIndex = 2;
	objMonth.selectedIndex = month;

	calendar_inner(year,month);
}

function calendar_inner(year,month)
{
	
	var date = new Date;
	var Y = date.getYear();
	var m = date.getMonth();
	var d = date.getDate();

	var firstDay = new Date(year,month);
	firstDay = firstDay.getDay();
	var lastDay = calendar_lastDay(year,month);

	var obj = calObjdoc.getElementById('calInner');

	for (i=obj.rows.length;i>1;i--) obj.deleteRow(i-1);

	oTr = obj.insertRow();
	for (i=0;i<firstDay;i++) oTr.insertCell();
	cnt = i;

	for (i=1;i<=lastDay;i++){
		if (cnt++%7==0) oTr = obj.insertRow();
		oTd = oTr.insertCell();
		oTd.style.cursor = "pointer";
		oTd.style.backgroundColor = "#f7f7f7";
		oTd.color = "#000000";
		if (Y==year && m==month && d==i){
			oTd.color = "#ff0000";
			oTd.style.fontWeight = "bold";
		}
		oTd.innerText = i;
		oTd.style.color = oTd.color;
		oTd.onmouseover = function(){this.style.backgroundColor = "#316AC5"; this.style.color = "#ffffff"}
		oTd.onmouseout = function(){this.style.backgroundColor = "#f7f7f7"; this.style.color = this.color}
		oTd.onclick = function(){self.calendar_print(this.innerText)}
	}
	
	//document.getElementById('calObj').height = calObjdoc.body.scrollHeight;
	
	
}

function calendar_move(idx)
{
	var year = calObjdoc.frmCalendar.year.value;
	var month = parseInt(calObjdoc.frmCalendar.month.value) + idx;

	if (month<0){ year--; month=11; }
	if (month==12){ year++; month=0; }

	calendar_update(year,month);
}

function calendar()
{
	if (!_ID('calObj')) calendar_init();

	calInput = self.event.srcElement;
	
	var xpos = calendar_get_objectLeft(calInput);
	var ypos = calendar_get_objectTop(calInput) + calInput.offsetHeight + 2;

	var calObj = document.getElementById('calObj');
	calObj.style.pixelLeft = xpos;
	calObj.style.pixelTop = ypos;
	calObj.style.display = "block";
	
	
}

function calendar_print(day)
{
	var year = calObjdoc.frmCalendar.year.value;
	var month = calObjdoc.frmCalendar.month.value;

	calInput.value = calendar_format(year,month,day);
	calendar_close(); 
	
}

function calendar_format(year,month,day)
{
	month++;
	var format = (calInput.getAttribute("format")!=null) ? calInput.format : "%Y-%m-%d";

	var Y = year;
	var y = year.substr(2,2);
	var m = calendar_addZero(month);
	var d = calendar_addZero(day);

	format = format.replace(/%Y/g, Y);
	format = format.replace(/%y/g, y);
	format = format.replace(/%m/g, m);
	format = format.replace(/%d/g, d);

	return format;
}

function calendar_close()
{
	var calObj = document.getElementById('calObj');
	calObj.style.display = "none";
}

function calendar_addZero(str){
	return ((str < 10) ? "0" : "") + str;
}

function calendar_lastDay(year,month){
	var leap;
	var last = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
	if (year%4==0)		leap = true;
	if (year%100==0)	leap = false;
	if (year%400==0)	leap = true;
	if (leap) last[1] = 29;
	return last[month];
}

function calendar_get_objectTop(obj){
	if (obj.offsetParent == document.body) return obj.offsetTop;
	else return obj.offsetTop + get_objectTop(obj.offsetParent);
}

function calendar_get_objectLeft(obj){
	if (obj.offsetParent == document.body) return obj.offsetLeft;
	else return obj.offsetLeft + get_objectLeft(obj.offsetParent);
}

function setDate(obj,from,to)
{
	var obj = document.getElementsByName(obj);
	obj[0].value = (from) ? from : "";
	obj[1].value = (from) ? to : "";
}

function setDate2(obj1,obj2,from,to)
{
	var obj1 = document.getElementsByName(obj1);
	var obj2 = document.getElementsByName(obj2);
	
	obj1[0].value = (from) ? from : "";
	obj2[0].value = (from) ? to : ""; 
}
function setDate3(obj,from)
{
	var obj = document.getElementsByName(obj);
	obj[0].value = (from) ? from : "";
}
function setCookie( name, value, expiredays ){ 
	var todayDate = new Date();
 	todayDate.setDate( todayDate.getDate() + expiredays );
 	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
} 

function setCookie2( name, value, expiredays ){ 
	var todayDate = new Date();
	todayDate.setMinutes(todayDate.getMinutes() + expiredays);
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
} 
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 "";
}
 -->