
function locationMove(gubun)
{
  switch(gubun)  {
    case  2: // ³ó¸²Ãà»êÇ°
             document.fmain.cateCode.value = "11";
             document.fmain.FileName.value = "cate_01";
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/goods.RetrievePostRecommendGoodsList.mall";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Goods/EPF10C51.jsp?cateCode=11","cFrame");
             break;
    case  3: // ³ó»ê°¡°øÇ°
             document.fmain.cateCode.value = "12";
             document.fmain.FileName.value = "cate_02";
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/goods.RetrievePostRecommendGoodsList.mall";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Goods/EPF10C51.jsp?cateCode=12","cFrame");
             break;
    case  4: // ¼ö»êÇ°
             document.fmain.cateCode.value = "13";
             document.fmain.FileName.value = "cate_03";
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/goods.RetrievePostRecommendGoodsList.mall";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Goods/EPF10C51.jsp?cateCode=13","cFrame");
             break;
    case  5: // °ø¿¹Ç°
             document.fmain.cateCode.value = "14";
             document.fmain.FileName.value = "cate_04";
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/goods.RetrievePostRecommendGoodsList.mall";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Goods/EPF10C51.jsp?cateCode=14","cFrame");
             break;
    case  6: // °ø»êÇ°(ÇöÀç»ç¿ë¾ÈÇÔ)
             document.fmain.cateCode.value = "15";
             document.fmain.FileName.value = "cate_05";
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/goods.RetrievePostRecommendGoodsList.mall";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Goods/EPF10C51.jsp?cateCode=15","cFrame");
             break;
    case  7: // »ý»êÁöº°
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/goods.RetrievePostRecommendGoodsList.mall";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Goods/EPF10C61.jsp","cFrame");
             break;
    case  8: // ¹Î¼ÓÁÖ
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/mall/front/goods/mafab050k01.jsp";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Goods/EPF10C81.jsp","cFrame");
             break;
    case 20: // ²É¹è´Þ
             document.fmain.cateCode.value = "21";
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/goods.FlowerDeliveryList.mall";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Theme/EPF20C50.jsp?cateCode=21","cFrame");
             break;
    case 21: //±âÈ¹Àü
             document.fmain.target           = "cFrame";
             document.fmain.action           = "/mall/front/goods/mafab057k01.jsp";
             //document.fmain.action           = "http://mall.epost.go.kr/mall/front/event/0605/06event_06worldcup01.jsp";
             document.fmain.submit();  
    case 22: //ÂüÁÁÀº¼ÒÇÁÆ®¿þ¾î
             break;
    case 23: //¿¹¾à¿¹¸Å¼­ºñ½º
             break;
    case 29: //ÀÎÅÍ³Ý¼­Á¡ ¸ð´×365
             document.fmain.target         = "cFrame";
             document.fmain.action         = "./epostBook.html";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/epostBook.html","cFrame");
             break;
    case 30: //µ¿¿µ»ó
             document.fmain.target           = "cFrame";
             document.fmain.action           = "/mall/front/service/EPFMOV_1.jsp";
             document.fmain.submit();            
             //window.open("http://mall.epost.go.kr/Event/bizmovie/EPFMOV_1.jsp","cFrame");
             break;
    case 70: // °í°´°Ô½ÃÆÇ
             document.fmain.tFrameURL.value  = "tFrameURL";
             document.fmain.cFrameURL.value  = "/front/Notice/customer_main.htm";
             document.fmain.target           = "main";
             document.fmain.action           = "./index.jsp";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/index.jsp?tFrameURL=EPF00T01.jsp&cFrameURL=http://mall.epost.go.kr/Notice/customer_main.htm","main");

             break;
    case 80: // ¿ìÃ¼±¹¸¶Æ®
             document.fmain.target           = "cFrame";
             document.fmain.action           = "/mall/front/goods/mafab011k01.jsp";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Theme/EPF50C51.jsp","cFrame");
             break;

    case 90: // eÄ«Å»·Î±×¼îÇÎ
             document.fmain.target           = "cFrame";
             //document.fmain.action           = "./malle/ecatalog/ecatalog.jsp";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Event/ecatalog/ecatalog.jsp","cFrame");
             break;

    case 91: 
             //document.fmain.bc.value         = "157";
             //document.fmain.target           = "TrueEBook";
             //document.fmain.action           = "http://e15.trueebook.com/engine/Book.php";
             //document.fmain.submit();
             window.open("http://e15.trueebook.com/engine/Book.php?bc=157", "TrueEBook", "left=0", "top=0", "toolbar=no", "location=no", "directorys=no", "status=no", "menubar=no", "scrollbars=no", "resizable=no");
             break;

    case 92:
             //document.fmain.bc.value         = "155";
             //document.fmain.target           = "TrueEBook";
             //document.fmain.action           = "http://e15.trueebook.com/engine/Book.php";
             //document.fmain.submit();
             window.open("http://e15.trueebook.com/engine/Book.php?bc=155", "TrueEBook", "left=0", "top=0", "toolbar=no", "location=no", "directorys=no", "status=no", "menubar=no", "scrollbars=no", "resizable=no");
             break;
    case 100: // Æ¯»êÇ° - Top Frame µµ º¯°æ
             document.fmain.tFrameURL.value  = "/front.MallTopFrame.mall";
             document.fmain.cFrameURL.value  = "/goods.ShopHome.mall";
             document.fmain.target           = "_top";
             document.fmain.action           = "./index.jsp";
             document.fmain.submit();
             break;      
    case 101: // ¿ìÃ¼±¹¸¶Æ® - Top Frame µµ º¯°æ
             document.fmain.tFrameURL.value  = "/front.MallTopFrame.mall";
             document.fmain.cFrameURL.value  = "/mall/front/goods/mafab011k01.jsp";
             document.fmain.target           = "_top";
             document.fmain.action           = "./index.jsp";
             document.fmain.submit();
             break;                     
    case 102: // ¿ìÃ¼±¹²É¹è´Þ - Top Frame µµ º¯°æ
             document.fmain.tFrameURL.value  = "/front.MallTopFrame.mall";
             document.fmain.cFrameURL.value  = "/goods.FlowerDeliveryList.mall";
             document.fmain.target           = "_top";
             document.fmain.action           = "./index.jsp";
             document.fmain.submit();
             break;               
    case 103: // µ¿¿µ»ó¼îÇÎ - Top Frame µµ º¯°æ
             document.fmain.tFrameURL.value  = "/front.MallTopFrame.mall";
             document.fmain.cFrameURL.value  = "/mall/front/service/EPFMOV_1.jsp";
             document.fmain.target           = "_top";
             document.fmain.action           = "./index.jsp";
             document.fmain.submit();
             break;  
    case 104: // eÄ«Å»·Î±×¼îÇÎ - Top Frame µµ º¯°æ
             document.fmain.tFrameURL.value  = "/front.MallTopFrame.mall";
             document.fmain.cFrameURL.value  = "/mall/front/EPFTOP_catalog.jsp";
             document.fmain.target           = "_top";
             document.fmain.action           = "./index.jsp";
             document.fmain.submit();
             break;      
    case 105: // ±âÈ¹Àü - Top Frame µµ º¯°æ
             document.fmain.tFrameURL.value  = "/front.MallTopFrame.mall";
             document.fmain.cFrameURL.value  = "/mall/front/goods/mafab057k01.jsp";
             document.fmain.target           = "_top";
             document.fmain.action           = "./index.jsp";
             document.fmain.submit();
             break;      
    case 106: // Àü¹®¼¥ - Top Frame µµ º¯°æ
             document.fmain.tFrameURL.value  = "/front.MallTopFrame.mall";
             document.fmain.cFrameURL.value  = "/goods.RetrieveSpecialShopGoodsList.mall";
             document.fmain.target           = "_top";
             document.fmain.action           = "./index.jsp";
             document.fmain.submit();
             break;                         


  }
} // of EPF00W40

// ¿ìÃ¼±¹Æ¯»êÇ°, ¿ìÃ¼±¹¼îÇÎ HOME
function locationMain()
{
	 document.fmain.target           = "cFrame";
	 document.fmain.action           = "/goods.ShopHome.mall";
     document.fmain.submit();
     //window.open("http://mall.epost.go.kr/EPF00C00.jsp","cFrame");
}

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_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_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 goEpost()
{
	parent.location.href = "http://www.epost.go.kr";
}
function goMain()
{
	 
	parent.cFrame.location.href = "/goods.ShopHome.mall";
    //window.open("/index.jsp", "_parent");
	
}

function PurchaseInfo(){
   var group = getCookie1("group");
   if (loginID == "") {
     loginID = getCookie1("id");
   }
   if ((loginID == "") || (loginID == "T") || (group != "b")) {
     window.open(purchaseInfoCGI,"cFrame");
   }
   else {
     window.open(purchaseLoginInfoCGI,"cFrame");
   }
   //window.close();
}

function getCookie1( 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 "T";
}

 function addOption(name, key)
{
  var vHistory = document.EPFHEADER.hisPrize;
  var count    = vHistory.length;
  var bFlag    = 1;

  for(var i=0; i < vHistory.length;i++){
    if (vHistory.options[i].value == key) {
      bFlag    = 0;
      break;
    }
  }

  for(var i=0; i < vHistory.length;i++){
    if (vHistory.options[i].name == name) {
      bFlag    = 0;
      break;
    }
  }
  if (bFlag == 1) vHistory.options[count]=new Option(name,key);
}

function moveLinkAll()
{
  var vHistory  = document.EPFHEADER.hisPrize;
  var cFrameURL;

  if (vHistory.selectedIndex > 0)
  {
     cFrameURL = vHistory.options[vHistory.selectedIndex].value;
     if( cFrameURL != "" ){
        window.open( cFrameURL,"cFrame");
     }
     vHistory.selectedIndex = 0;
  }
}


//getCookieLoginÀÌ ÀÖ¾úÀ½
function Checking(val){
		var ok=false;
		if (val.length == 0 ) return ok;
		for (var i=0 ; i<val.length ; i++){
			var chr=val.charAt(i);
			if (chr != ' ') ok=true;
		}
		return ok;
	}

//ÀÔ·Â°ª¿¡ ¼ýÀÚ ¾Æ´Ñ °ÍÀÌ ÀÖÀ¸¸é Âü ¸®ÅÏ
function checkNumber1(input) {
    var isNotNumber = false;
     for (var inx = 0; !isNotNumber && inx < input.value.length; inx++) {
        var oneChar = input.value.charAt(inx);
        if (oneChar < '0' || oneChar > '9') // if (isNaN(oneChar))
            isNotNumber = true;
    }
    return isNotNumber;
}


// ÀÔ·Â°ªÀÇ ÄÚµå°¡ EC »óÇ°ÀÏ°æ¿ìÀÇ ÆÇ´Ü
function checkEcCode(input){
    var indexEcCode = input.value.substring(0,1);

    if ( indexEcCode == 'E' ) return true;
    else return false;

}

function GoFind() {
    //alert("°Ë»ö¼­ºñ½º¸¦ Àá½Ã ÁßÁöÁßÀÔ´Ï´Ù.");
    if (document.fsearch.goodsName.value == "")
    {
    	alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
    	document.fsearch.goodsName.focus();
    	return false;
    }
    document.fsearch.target      = "cFrame" ;
    document.fsearch.query.value = document.fsearch.goodsName.value;
    document.fsearch.action      = "/mall/front/search/epost_search.jsp";
}

function OptionFind(){
    document.fsearch.target      = "cFrame" ;
    document.fsearch.query.value = document.fsearch.goodsName.value; ;
//  document.fsearch.action      = "http://mall.epost.go.kr/mall/front/search/epost_search_detail.jsp";
    document.fsearch.action      = "/mall/front/search/epost_search_detail.jsp";
    fsearch.submit();
}

function goUrl_1(url,title,frame){
   window.open("http://mall.epost.go.kr:8081/korean/hitUserCount.jsp?url="+url+"&title="+title,frame);


}
function jsCheckEnter(e)  {

    if ( e.keyCode == 13 )
        GoFind() ;
}

function Go_Book()  {
	document.gobook.submit();
}

function goLink(id)
{
  switch(id)  {
    /* µî±â,¼ÒÆ÷ ¹è´ÞÁ¶È¸ */
    case  0: window.open('http://service.epost.go.kr/iservice/trace/Trace.jsp','_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=0,resizable=no,width=450,height=440');
             break;
    /* °í°´¼¾ÅÍ */
	case  1: window.open("/comm/affair/bbs/cbfya901k01.jsp?gbn=01&Mgroup=¿ìÃ¼±¹Æ¯»êÇ°&Mtitle=8-·Î±×ÀÎ/Àå¹Ù±¸´Ï", "_parent");
             break; 
    case  40: window.open("/comm/affair/bbs/cbfya901k01.jsp?gbn=05", "_parent");
             break; 
    case  7:
			 document.svcfrm.menu.value = "W";
          document.svcfrm.file.value = "1";
          document.svcfrm.action = "http://service.epost.go.kr/comm.RetrievePostagSrvcStrt.postal"
			 //alert("±¹¹ÎÆíÁö¾²±â ´ëÈ¸ ÀÀ¸ð°¡ ¸¶°¨µÇ¾ú½À´Ï´Ù.\n ÀÌ¿ëÇØ ÁÖ¼Å¼­ °¨»çÇÕ´Ï´Ù.");
			 //return;
             break;
    /* cyber_event02 : °æÁ¶¿ìÆíÄ«µå */
    case  8: document.svcfrm.menu.value = "C";
             document.svcfrm.file.value = "1";
             document.svcfrm.action = "http://service.epost.go.kr/comm.RetrievePostagSrvcStrt.postal"
             break;
    /* ¼­ºñ½º ¸Þ´º : ²É¹è´Þ¼­ºñ½º */
    case 10: document.svcfrm.cFrameURL.value = "/mall/front/goods/mafab007k01.jsp?cateCode=21";
             document.svcfrm.action = "http://mall.epost.go.kr/";
             break;
    /* ¼­ºñ½º ¸Þ´º : ÀÎÅÍ³ÝPC */
    case 11: document.svcfrm.cFrameURL.value = "Theme/EPF30C51.jsp";
             document.svcfrm.action = "http://mall.epost.go.kr/";
             break;
    /* ¼­ºñ½º ¸Þ´º : ÀÎÅÍ³Ý¼­Á¡ */
    case 12: 
             document.book.submit();
             break;         
    /* ¼­ºñ½º ¸Þ´º : ¿ìÇ¥¸¶´ç */
    case 13: document.svcfrm.menu.value = "P";
             document.svcfrm.file.value = "1";
             document.svcfrm.action = "http://service.epost.go.kr/comm.RetrievePostagSrvcStrt.postal"
             break;
    /* ¼­ºñ½º ¸Þ´º : °æÁ¶¿ìÆíÄ«µå */
    case 14: document.svcfrm.menu.value = "C";
             document.svcfrm.file.value = "1";
             document.svcfrm.action = "http://service.epost.go.kr/comm.RetrievePostagSrvcStrt.postal"
             break;
    /* ¼­ºñ½º ¸Þ´º : ¿ìÃ¼±¹ÅÃ¹è */
    
    case 15: document.svcfrm.menu.value = "V";
             window.open("http://mall.epost.go.kr/custom_interface.jsp?gbn=05","_parent");
             break;
    
    /* ¼­ºñ½º ¸Þ´º : ³ª¸¸ÀÇ ¿ìÇ¥ */
    case 16: document.svcfrm.menu.value = "M";
             document.svcfrm.file.value = "1";
             document.svcfrm.action = "http://service.epost.go.kr/comm.RetrievePostagSrvcStrt.postal"
             break;
    /* ¼­ºñ½º ¸Þ´º : ±¹Á¦Æ¯±Þ½ÅÃ» */
    case 17: document.svcfrm.menu.value = "E";
             document.svcfrm.file.value = "1";
             document.svcfrm.action = "http://service.epost.go.kr/comm.RetrievePostagSrvcStrt.postal"
             break;
    /* ¼­ºñ½º ¸Þ´º : ÁÖ¼ÒÀÌÀü½Å°í */
    case 18: document.svcfrm.menu.value = "A";
             document.svcfrm.file.value = "1";
             document.svcfrm.action = "http://service.epost.go.kr/comm.RetrievePostagSrvcStrt.postal"
             break;
    /* ¼­ºñ½º ¸Þ´º : ¹Î¿ø¿ìÆí */
    case 19: document.svcfrm.menu.value = "D";
             document.svcfrm.file.value = "1";
             document.svcfrm.action = "http://service.epost.go.kr/comm.RetrievePostagSrvcStrt.postal"
             break;
    /* ¼­ºñ½º ¸Þ´º : ÀÎÅÍ³Ý¿ìÆí */
    case 23: /* window.open("notice_sorry.html","STOP","width=368,height=383,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=0,resizable=no");
    		 return; */
    									document.svcfrm.menu.value = "Z";
             document.svcfrm.file.value = "1";
             document.svcfrm.action = "http://service.epost.go.kr/comm.RetrievePostagSrvcStrt.postal"
             break;
    /* ¼­ºñ½º ¸Þ´º : E-MAIL */
    case 20: window.parent.location = "http://mail.epost.go.kr?Mgroup=¿ìÃ¼±¹Æ¯»êÇ°&Mtitle=7-°ü·Ã»çÀÌÆ®";

             break;
    /* ¼­ºñ½º ¸Þ´º : ÇØ¿Ü¼­ºñ½º */
    case 21: window.parent.location = "/index_kr.jsp";
             break;
    /* ¼­ºñ½º ¸Þ´º : ¿ìÆí¼­ºñ½º */
    case 22: //window.parent.location = "http://service.epost.go.kr/";
              window.open("http://service.epost.go.kr?Mgroup=¿ìÃ¼±¹Æ¯»êÇ°&Mtitle=7-°ü·Ã»çÀÌÆ®", "_parent");

             break;
    /* ¼­ºñ½º ¸Þ´º : ¾Ë¶ã¸ÅÀå */
    case 25: document.svcfrm.cFrameURL.value = "/mall/front/goods/mafab011k01.jsp";
             document.svcfrm.action = "http://mall.epost.go.kr/";
             break;
    /* ¼­ºñ½º ¸Þ´º :  ¿ìÃ¼±¹ÅÃ¹è */
	case 28: //window.parent.location = "http://service.epost.go.kr/CyberPost/cuv/index_parcel.html";
			 //window.parent.location = "http://parcel.epost.go.kr";
			 window.parent.location = "http://parcel.epost.go.kr?Mgroup=¿ìÃ¼±¹Æ¯»êÇ°&Mtitle=7-°ü·Ã»çÀÌÆ®";

             break;
    /* ¼­ºñ½º ¸Þ´º :  ¿ìÃ¼±¹ÅÃ¹è */
	case 29: window.parent.location = "https://ebpp.epost.go.kr";
             break;             
    /* ¼­ºñ½º ¸Þ´º : ³ª¸¸ÀÇ¾Æ¹ÙÅ¸¿ìÇ¥ */
    case 30: window.open("http://avatar.epost.go.kr/");
             document.svcfrm.file.value = "1";
             document.svcfrm.action = "http://service.epost.go.kr/comm.RetrievePostagSrvcStrt.postal"
             break;
    case 31: window.location = "http://ebpp.epost.go.kr";
             break;
    case 33: document.svcfrm.menu.value = "Y";
              document.svcfrm.file.value = "6";
              document.svcfrm.action = "http://service.epost.go.kr/comm.RetrievePostagSrvcStrt.postal"
              break;
    case 34: document.svcfrm.menu.value = "Y";
              document.svcfrm.file.value = "7";
              document.svcfrm.action = "http://service.epost.go.kr/comm.RetrievePostagSrvcStrt.postal"
              break;
    case 35: document.svcfrm.menu.value = "Y";
              document.svcfrm.file.value = "8";
              document.svcfrm.action = "http://service.epost.go.kr/comm.RetrievePostagSrvcStrt.postal"
              break;
    case 36: document.svcfrm.menu.value = "Y";
              document.svcfrm.file.value = "9";
              document.svcfrm.action = "http://service.epost.go.kr/comm.RetrievePostagSrvcStrt.postal"
              break;
     case 37: document.svcfrm.menu.value = "Y";
              window.open("http://mall.epost.go.kr/custom_interface.jsp?gbn=03", "_parent");
              break;          
     case 38: 
	 window.parent.location = "http://service.epost.go.kr/comm.RetrievePostagSrvcStrt.postal?menu=E&Mgroup=¿ìÃ¼±¹Æ¯»êÇ°&Mtitle=7-°ü·Ã»çÀÌÆ®";
             break;                           
     case 39: window.parent.location = "/mall/comm/inform/mffec013k01.jsp?Mgroup=¿ìÃ¼±¹Æ¯»êÇ°&Mtitle=8-·Î±×ÀÎ/Àå¹Ù±¸´Ï";
              break;
  }
  if ((id != 0) && (id != 1) && (id != 9) && (id != 12)  && (id != 15) && (id != 20) && (id != 21) && (id != 22) && (id != 28) && (id != 29) && (id != 37) && (id != 38) && (id != 39) && (id != 40))
  	document.svcfrm.submit();
}

function overseaMove(gubun)
{
  var selectedLocale ="ALL";

  if (gubun == 2 )
  {
  	document.svcfrm.cFrameURL.value = "/mallo1/Goods/EWKF20C51.jsp?choice=11&cateCode=110200";
  }
  else if (gubun == 3 )
  {
  	document.svcfrm.cFrameURL.value = "/mallo1/Goods/EWKF20C51.jsp?choice=12&cateCode=120100";
  }
  else if (gubun == 4 )
  {
  	document.svcfrm.cFrameURL.value = "/mallo1/Goods/EWKF20C51.jsp?choice=13&cateCode=130200";
  }
  else if (gubun == 5 )
  {
  	document.svcfrm.cFrameURL.value = "/mallo1/Goods/EWKF20C51.jsp?choice=14&cateCode=140100";
  }
  else if (gubun == 6 )
  {
  	document.svcfrm.cFrameURL.value = "/mallo1/Goods/EWKF20C51.jsp?choice=15&cateCode=150100";
  }
  else if (gubun == 70 )
  {
  	document.svcfrm.cFrameURL.value = "/mallo1/Goods/EWKF20C51.jsp?choice=70&cateCode=710100";
  }
  document.svcfrm.action = "http://mall.epost.go.kr:8081/mallo1/index.jsp";
  document.svcfrm.targer = "main";
  document.svcfrm.submit();
}

 function loginView(){

  window.open("https://mall.epost.go.kr/member/regist.html?Mgroup=»óÀ§¸Þ´º","cFrame");  

   return;
}


 function MemberView(){
     window.open("<%=strMemberInfoCGI%>","cFrame");
     window.close();
}


function MoveCyberPost(){
    var ID    = getCookie("id");
    var group = getCookie("group");

    if(  ID == "" ||  ID =="T" || group != "b") {
        window.open("<%=strCyberPostURL%>","_parent");
    }else{

        document.EPF00T00.memberid.value    = id;
        document.EPF00T00.name.value        = getCookie("name");
        document.EPF00T00.addr1.value       = getCookie("address1");
        document.EPF00T00.addr2.value       = getCookie("address2");
        document.EPF00T00.email.value       = getCookie("email");
        document.EPF00T00.telno.value       = getCookie("phonenumber");
        document.EPF00T00.mobile.value      = (getCookie("mobile")=="T"?"":getCookie("mobile"));
        document.EPF00T00.zipcode.value     = makezipcode(getCookie("postalcode"));
        document.EPF00T00.presidentno.value = getCookie("peoplenum");
        document.EPF00T00.type.value        = "E";
        document.EPF00T00.method            = "post";
        document.EPF00T00.action            = "<%=strCyberPostLoginURL%>";
        document.EPF00T00.target            = "main";
        document.EPF00T00.submit();
    }
}


function goSummer(){
  window.open('event_cool.html','coolevent','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=400');
   return;

}


function sitemap(){
  window.open("/comm/affair/bbs/cbfya901k01.jsp?gbn=10&Mgroup=»óÀ§¸Þ´º","_parent");  
  return;
}




function infor(){

  window.open("/comm/affair/bbs/cbfya901k01.jsp?gbn=09&Mgroup=»óÀ§¸Þ´º","_parent");
  //window.open("http://mall.epost.go.kr/index.jsp?cFrameURL=http://mall.epost.go.kr/infor01.htm","_parent");
  //Window.open("http://mall.epost.go.kr/Notice/information_index.jsp","cFrame");
   return;



}
function siteMap(){

  window.open("/comm/affair/bbs/cbfya901k01.jsp?gbn=10&Mgroup=»óÀ§¸Þ´º","_parent");  
   return;



}

function makezipcode( postalcode ){
    var index = postalcode.indexOf("-");
    var rtn;

    if( index > 0 ){
        rtn = postalcode.substring(0, index) + postalcode.substring(index + 1);
    }

    return rtn;
}

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 "T";
}

function getCookieLogin( 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;
            //alert( "&Auml;&iacute;&Aring;¡Æ&Agrave;¨¢¡¾&acirc; : " +  unescape( document.cookie.substring( y, endOfCookie ) ));
			return unescape( document.cookie.substring( y, endOfCookie ) );
		}
		x = document.cookie.indexOf( " ", x ) + 1;
		if ( x == 0 )
			break;
	}
	return "T";
}



function goCheckSession(){
        var loginid  = getCookie("id");
        if(loginid == "" ||  loginid =="T") {
         window.open("EPF90C90.jsp","cFrame");
        }else{
         window.open("EPF90C90.jsp?loginid="+loginid,"cFrame");
        }
   }

function goMemInfo(){
    window.open("/comm/usr/member/cafzb009k25.jsp","cFrame");
}

function mailLink() {
    var ID  = getCookie("id");
    if(  ID == "" ||  ID =="T") {
        document.EPF00T00.action            = "http://mail.epost.go.kr";
    }
    else {
        document.EPF00T00.action            = "http://mail.epost.go.kr/cgi-bin/wmLoginOneID";
    }
    document.EPF00T00.method            = "post";
    document.EPF00T00.target            = "main";
    document.EPF00T00.submit();
}

function closeWin()
{
	if (popobj != null)
		popobj.close();
}

    var ID    = getCookie("id");
    var group = getCookie("group");


    if(  ID == "" ||  ID =="T" || group != "b") {
   <!--   <%=tempString%>-->
   <!--  window.open('notice0321.html','notice','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=410,height=250');-->
    }

   //if (pop_ck == "" || pop_ck == "T" || pop_ck == "Y")
   // 	window.open('Notice/gongji0206.html','POPUP0206','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=0,resizable=no,width=379,height=300');


//    var Soul_ck = getCookie("Soul");
//    if (Soul_ck == "" || Soul_ck == "T" || Soul_ck == "Y")
//    window.open('/Notice/event_pop_0218.html','POPUP0218','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=0,resizable=no,width=350,height=560,left=0,top=0');

function card_stop()
{
	window.open('/Notice/system_stop3.htm','POPUP0618','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=0,resizable=no,width=455,height=250,left=0,top=0');
}

function popup()
{
	var pop_ck = getCookie("GIFTPOP");

	if (pop_ck != null && pop_ck != "N") {
   	    window.open("/Event/giftcard/giftcard_pop.html","GIFTPOP", "width=400,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=0,resizable=no");
	}
}


function CateCode(cateCode)
{
   document.fmain.cateCode.value = cateCode;
   document.fmain.target         = "cFrame";
   document.fmain.action         = "/front.goods.RetrieveGoodsList1.mall";
   document.fmain.submit();
}

function goEcCateMain(cateCode)
{
	window.location = "/goods.RetrieveEcCategoryBestNewGoodsList.mall?cateCode="+cateCode;
}

function goEcCateMain(cateCode)
{
	window.location = "/goods.RetrieveEcCategoryBestNewGoodsList.mall?cateCode="+cateCode;
}

function goCateList(cateCode)
{
	window.location = "/goods.RetrieveEcCategoryGoodsList1.mall?cateCode="+cateCode;
}


function openWinQuiz()
{
     //document.fmain.action           = "http://mall.epost.go.kr/malle/EPF14C50.jsp";
     //document.fmain.submit();
     window.open('http://mall.epost.go.kr/malle/EPF14C50.jsp','remote',('scrollbars=no,resizable=no,width=445, height=560'));
     // window.open('http://mall.epost.go.kr/malle/imsi.html','remote',('scrollbars=no,resizable=no,width=445, height=560'));
}

function openWinSale()
{
	 document.fmain.action           = "http://mall.epost.go.kr/EPF90C01.html";
     document.fmain.submit();
     //window.open('http://mall.epost.go.kr/EPF90C01.html','remote',('scrollbars=no,resizable=no,width=450, height=480'));
}

// getCookie¸¦ Á¶±Ý º¯°æÇÏ¿© ÄíÅ°ÀÇ idÀÇ Á¸Àç¿©ºÎ¸¦ Ã¼Å©ÇÏ¿©
// Á¸ÀçÇÏ¸é Y, Á¸ÀçÇÏÁö ¾ÊÀ¸¸é NÀ» µÇµ¹¸°´Ù.
function checkCookie()
{
	var nameOfCookie = "id=";
	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 "Y";
		}
		x = document.cookie.indexOf( " ", x ) + 1;
		if ( x == 0 )
			break;
	}
	return "N";
}

function MallViewWindow(pHtmlName, wid, hei )
{
    Window.open( pHtmlName, "", "status=0,width="+wid+",height="+hei );
}

function checkQuantity(input) {
    var quantity = input.value.replace(/,/gi,"");
    if (isNaN(quantity)) return true;
    if (parseInt(quantity,10) > 300) return true;
    return false;
}

function setMFrame( mFrameName ){
       window.open( mFrameName, "mFrame" );
}

function goHome(){
   	 document.fmain.target           = "_top";
   	 document.fmain.action           = "http://www.epost.go.kr";
     document.fmain.submit(); 	
   //window.open("http://www.epost.go.kr","_top");

}

function goMicro(){
window.open('http://service.epost.go.kr/iservice/trace/Trace.jsp','_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=0,resizable=no,width=600,height=530');
}

function goEms(){
 window.open('http://service.epost.go.kr/iservice/ems/ems_kor.jsp','EMS','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=770,height=500');
}

function MainDetail()
{
	document.fmain.target           = "_blank";
   	document.fmain.action           = "http://www.epost.go.kr";
    document.fmain.submit(); 	 
	//window.open("http://www.epost.go.kr","_blank");
}
function goEvent(){
	document.fmain.target           = "cFrame";
	document.fmain.action           = "/Event/event200401.jsp";
	document.fmain.submit(); 	 	
	
}

function locationMove_include(gubun)
{
  switch(gubun)  {
    case  2: 
             document.fmain.cateCode.value = "11";
             document.fmain.FileName.value = "cate_01";
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/goods.RetrievePostRecommendGoodsList.mall";
             document.fmain.Mgroup.value   = "Ä«Å×°í¸®";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Goods/EPF10C51.jsp?cateCode=11","cFrame");
             break;
    case  3:
             document.fmain.cateCode.value = "12";
             document.fmain.FileName.value = "cate_02";
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/goods.RetrievePostRecommendGoodsList.mall";
             document.fmain.Mgroup.value   = "Ä«Å×°í¸®";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Goods/EPF10C51.jsp?cateCode=12","cFrame");
             break;
    case  4:
             document.fmain.cateCode.value = "13";
             document.fmain.FileName.value = "cate_03";
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/goods.RetrievePostRecommendGoodsList.mall";
             document.fmain.Mgroup.value   = "Ä«Å×°í¸®";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Goods/EPF10C51.jsp?cateCode=13","cFrame");
             break;
    case  5:
             document.fmain.cateCode.value = "14";
             document.fmain.FileName.value = "cate_04";
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/goods.RetrievePostRecommendGoodsList.mall";
             document.fmain.Mgroup.value   = "Ä«Å×°í¸®";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Goods/EPF10C51.jsp?cateCode=14","cFrame");
             break;
    case  6:
             document.fmain.cateCode.value = "15";
             document.fmain.FileName.value = "cate_05";
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/goods.RetrievePostRecommendGoodsList.mall";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Goods/EPF10C51.jsp?cateCode=15","cFrame");
             break;
    case  7: // »ý»êÁöº°
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/front.goods.RetrieveGoodsList.mall";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Goods/EPF10C61.jsp","cFrame");
             break;
    case  8: // ¹Î¼ÓÁÖ
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/mall/front/goods/mafab050k01.jsp";
             document.fmain.Mgroup.value   = "Ä«Å×°í¸®";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Goods/EPF10C81.jsp","cFrame");
             break;
    case 10:
             document.fmain.pageNum.value  = "pageNum";
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/malle/EPF10C70.jsp";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Event/EPF10C70.jsp?pageNum=1","cFrame");
             break;
    case 12:
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/EPF00C50.jsp";
             document.fmain.submit(); 
             //window.open("http://mall.epost.go.kr/EPF00C50.jsp","cFrame");
             break;
//²É¹è´Þ   
    case 20:
             document.fmain.cateCode.value = "21";
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/goods.FlowerDeliveryList.mall";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Theme/EPF20C50.jsp?cateCode=21","cFrame");
             break;
             
             
//±âÈ¹Àü
    case 21: 
             document.fmain.target         = "cFrame";
             document.fmain.action           = "/mall/front/goods/mafab057k01.jsp";
             document.fmain.submit();
             break;
    case 22: //ÂüÁÁÀº¼ÒÇÁÆ®¿þ¾î
             break;
    case 23: //¿¹¾à¿¹¸Å¼­ºñ½º
             break;
    case 29: //ÀÎÅÍ³Ý¼­Á¡ ¸ð´×365
             document.fmain.target         = "cFrame";
             document.fmain.action         = "./epostBook.html";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/epostBook.html","cFrame");
             break;
    case 30: //ÀÎÅÍ³Ý ¹æ¼Û
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/mall/front/service/EPFMOV_1.jsp";
             document.fmain.submit();    
    
             //window.open("http://mall.epost.go.kr/Event/bizmovie/EPFMOV_1.jsp","cFrame");
             break;
    case 51:
             document.fmain.action         = "/EPF90C22.jsp";
             document.fmain.submit();
             //window.open('http://mall.epost.go.kr/EPF90C22.jsp','remote',('scrollbars=yes,resizable=no,width=550, height=600'));
             break;
    case 52:
             document.fmain.target         = "cFrame";
             document.fmain.action         = "/front.event.RetrieveAuctionMain.mall";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/EPF13C50.jsp","cFrame");
             break;
    case 53:
             document.fmain.action         = "/front-admin/front/EPF90C10.html";
             document.fmain.submit();
             //window.open('http://mall.epost.go.kr/EPF90C10.html','remote',('scrollbars=yes,resizable=no,width=670, height=400'));
             break;
    case 55:
             document.fmain.post_id.value   = "sonsy";
             document.fmain.board_id.value  = "epost";
             document.fmain.target          = "newFrame";
             document.fmain.action          = "/cgi-bin/yminwon/list.cgi";
             document.fmain.submit();
//             alert("ÁË¼ÛÇÕ´Ï´Ù\n\n½Ã½ºÅÛ°³¼± °ü°è·Î Àá½Ã¼­ºñ½º¸¦ Áß´ÜÇÕ´Ï´Ù");
             //window.open("https://mall.epost.go.kr/cgi-bin/yminwon/list.cgi?post_id=sonsy&board_id=epost","newFrame");
             break;
    case 70:
             document.fmain.tFrameURL.value  = "tFrameURL";
             document.fmain.cFrameURL.value  = "/front/Notice/customer_main.htm";
             document.fmain.target           = "main";
             document.fmain.action           = "./index.jsp";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/index.jsp?tFrameURL=EPF00T01.jsp&cFrameURL=http://mall.epost.go.kr/Notice/customer_main.htm","main");

             break;
    case 80:
             document.fmain.target           = "cFrame";
             document.fmain.action           = "/goods.PostMartList.mall";
             document.fmain.submit();
             //window.open("http://mall.epost.go.kr/Theme/EPF50C51.jsp","cFrame");
             break;
  }
}

//bodyÀÇ onload event Á÷Àü¿¡ page°¡ loadµÇ¸é objectPatch() ¸Þ¼Òµå¸¦ callÇÑ´Ù.
//  document.attachEvent ("onreadystatechange", function() {
//    if (document.readyState=="complete")   {
//      if (window.objectPatch) window.objectPatch();
//    }
//  })

function objectPatch() {
    //bodyÀÇ ¸ðµç object ÅÂ±×°´Ã¼¸¦ °¡Á®¿Â´Ù.
    //applet ¹× embed ÅÂ±×´Â ÇÊ¿ä½Ã Ãß°¡ÇÏ¿©¾ß ÇÔ
    var os = document.getElementsByTagName("object");
    for (var idx=0; idx < os.length; idx++) {
      var peer = os[idx];
      var clsid = peer.getAttribute("classid");
      //clsid°¡ ¾ø´Â °æ¿ì´Â pass
      if (!clsid) continue;
      //ºñ±³ ´ë»ó clsid´Â ¸ðµÎ ¼Ò¹®ÀÚÀÓ
      //ÀÚµ¿ È°¼ºÈ­°¡ ÇÊ¿äÇÑ activexÀÇ clsid¸¦ ¾Æ·¡ ÄÚµå¿¡ Ãß°¡ÇÒ °Í
      switch (clsid.toLowerCase()) {
        case "clsid:bb4533a0-85e0-4657-9bf2-e8e7b100d47e" :  // °¡¿ì½º combo (4.0 uni)
        case "clsid:71e7aca0-ef63-4055-9894-229b056e9c31" :  // °¡¿ì½º grid (4.0 uni)
        case "clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" :  // media player
        case "clsid:C6CE7B36-6C70-4B3B-A650-24C8FF67181E" :	 // ActiveX Control
        case "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" :  // flash
              //ÇÙ½ÉÄÚµå
              var html = peer.outerHTML;
              peer.outerHTML = html;
              break;
        default:
              break;
      }
    }
    
    //applet tag Ã³¸® Ãß°¡
    var ap = document.getElementsByTagName("applet");
    for (var idx=0; idx < ap.length; idx++) {
						var peer = ap[idx];
      var html = peer.outerHTML;
      peer.outerHTML = html;
    }
    
}

function __ws__(id) 
{
	document.write(id.innerHTML); id="";
}



function flash(c,d,e) {
 var flash_tag = "";
 flash_tag = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
 flash_tag +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ';
 flash_tag +='WIDTH="'+c+'" HEIGHT="'+d+'" >';
 flash_tag +='<param name="movie" value="'+e+'">';
 flash_tag +='<param name="quality" value="high">';
 flash_tag +='<param name="wmode" value="transparent">'; 
 flash_tag +='<param name="allowScriptAccess" value="always">';  
 flash_tag +='<embed src="'+e+'" allowScriptAccess="always" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
 flash_tag +='type="application/x-shockwave-flash"  WIDTH="'+c+'" HEIGHT="'+d+'"></embed></object>'

 document.write(flash_tag);

}












