
<!--
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

function moveToLoc(nLoc)
{
    // ¿øÇÏ´Â À§Ä¡·Î ÀÌµ¿
    location.hash=document.myform.loc.value

}



function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_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; }
}

// ¸Þ´º¸¦ ÃµÃµÈ÷ ´Ý¾Æº¸ÀÚ.
var menuTimer;
var menuTimerIsSet = false;
var menuName = "";
function showLayer(menu)
{
	if(menuName != "")
		MM_showHideLayers(menuName,'','hide');
	if(menuTimerIsSet = true)
		clearTimeout(menuTimer);

	menuTimerIsSet = false;
	menuName = menu;
	MM_showHideLayers(menu,'','show');
}

function hideLayer()
{
	MM_showHideLayers(menuName,'','hide');
	menuTimerIsSet = false;
	menuName = "";
}

function reserveHideLayer(menu)
{
	if(menuTimerIsSet == true)
	{
		clearTimeout(menuTimer);
		menuTimerIsSet = false;
	}

	menuTimer = setTimeout("hideLayer();", 4000);
	menuTimerIsSet = true;
}

// ¿À¸¥ÂÊ µû¶ó ´Ù´Ï´Â ¹è³Ê
////function scroll(){
////    var a=document.body.scrollTop+300
////        // 20 Àº ¹è³ÊÀÇ ±âÁØÀ§Ä¡°¡ À§ÂÊ¿¡¼­ 20 ÇÈ¼¿ ¶³¾îÁöµµ·Ï ¼³Á¤ÇÑ °ÍÀÔ´Ï´Ù
////    menu.style.top=a
////}

// °ü¸®ÀÚ ÂÊÁöº¸³»±â ¸¶¿ì½º¿À¹ö
var receiver_id = "";

function openPopupMenu(rcv_id,ses_id,rcv_name,rcv_mail)
{
	if (rcv_id == ses_id) {
		return;
	}
	receiver_id = rcv_id;
	receiver_name = rcv_name;
	receiver_mail = rcv_mail;
	popup_menu.style.top = document.body.scrollTop + event.clientY - 8;
	popup_menu.style.left = document.body.scrollLeft + event.clientX - 8;
	popup_menu.style.display = "block";
}

function closePopupMenu()
{
	popup_menu.style.display = "none";
}

function holdPopupMenu()
{
	popup_menu.style.display = "block";
}

function sendMail(val)
{
	window.open(val+'slip/sendmail.asp?receivername='+receiver_name+'&receiver=' + receiver_id+'&receiver_mail='+receiver_mail,'sendMail_win','scrollbars=1,resizable=no,width=600,height=200,left=100,top=100');
	closePopupMenu();
}

function sendSlip(val)
{
	window.open(val+"slip/write_popup.asp?receivername="+receiver_name+"&receiver=" + receiver_id, "sendmail", "width=500,height=350,left=200,top=200,scrollbars=no,resizable=yes,status=no,left=100,top=100");
	closePopupMenu();
}

function memberdd(val)
{
	window.open(val+"slip/viewmember.asp?receivername="+receiver_name+"&receiver=" + receiver_id, "memberddd", "width=500,height=270,left=200,top=200,scrollbars=no,resizable=yes,status=no,left=100,top=100");
	closePopupMenu();
}
// ÂÊÁöº¸³»±â ¿©±â±îÁö

// ÀÏ¹ÝÀÎ ÂÊÁöº¸³»±â ¸¶¿ì½º¿À¹ö
var receiver_id = "";

function openPopupMenu2(rcv_id,ses_id,rcv_name,rcv_mail)
{
	if (rcv_id == ses_id) {
		return;
	}
	receiver_id = rcv_id;
	receiver_name = rcv_name;
	receiver_mail = rcv_mail;
	popup_menu2.style.top = document.body.scrollTop + event.clientY - 8;
	popup_menu2.style.left = document.body.scrollLeft + event.clientX - 8;
	popup_menu2.style.display = "block";
}

function closePopupMenu2()
{
	popup_menu2.style.display = "none";
}

function holdPopupMenu2()
{
	popup_menu2.style.display = "block";
}

function sendSlip2(val)
{
	window.open(val+"slip/write_popup.asp?receivername="+receiver_name+"&receiver=" + receiver_id, "sendmail", "width=500,height=350,left=200,top=200,scrollbars=no,resizable=yes,status=no,left=100,top=100");
	closePopupMenu();
}
// ÂÊÁöº¸³»±â ¿©±â±îÁö

function FindID(){ //¾ÆÀÌµð È®ÀÎ
	window.open("<%=baseURL%>member/FindID.asp","Findwin","width=417,height=295,top=200,left=200,scrollbars=1");
}

function FindPwd(){ //ºñ¹Ð¹øÈ£ È®ÀÎ
	window.open("<%=baseURL%>member/FindPwd.asp","Findwin","width=417,height=295,top=200,left=200,scrollbars=1");
}
function login_pop(){ //ºñ¹Ð¹øÈ£ È®ÀÎ
	window.open("/mall/mallinc/login_pop.asp","login_pop","width=455,height=375,top=200,left=200,scrollbars=0");
}
// ÀüÈ­ÁÖ¹® ÆË¾÷
function order_tel()
{
	window.open('<%=baseURL%>common/custom_tel.asp','tel_order','scrollbars=no,resizable=no,width=400,height=192,left=0,top=0');

}

 // °øÁö,´º½º ÆË¾÷
function notice_board(val,slt)
{
	window.open('<%=baseURL%>common/Notice/G_notice_view.asp?no=' + val + '&spt=' + slt, 'nbWin', 'width=500, height=400, scrollbars=1,resizable=no,status=1')
}

// °øÁö,´º½º ÆË¾÷
function notice_board_list()
{
	window.open('<%=baseURL%>common/Notice/G_notice_list.asp?spt=notice', 'nbWin', 'width=500, height=400, scrollbars=1,resizable=no,status=1')
}

// big ÀÌ¹ÌÁö º¸±â
function BigImageWin(val)
{
	window.open("<%=baseURL%>G_BigImage.asp?ProductID=" + val, "BigImageWin", "width=920, height=800, status=no,left=100,top=100,scrollbars=1")
}

// Ä«µå½ÂÀÎ³»¿ª
function card_tel()
{
	window.open('https://secure.kcp.co.kr/findcard/new_homepage/card_use.asp','caed','scrollbars=no,resizable=no,width=600,height=400,left=0,top=0');

}



function readID2() {
	var expDays = 365; // number of days the cookie should last
	var expDate = new Date();
	expDate.setTime(expDate.getTime() +  (24 * 60 * 60 * 1000 * expDays));
	id = document.leftfrm.memberID.value;
	SetCookie('idss', id, expDate);

}

function getCookieVal (offset) {
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
		endstr = document.cookie.length;
		return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) {
	var j = i + alen;
	if (document.cookie.substring(i, j) == arg)
		return getCookieVal (j);
		i = document.cookie.indexOf(" ", i) + 1;
	if (i == 0) break;
	}
	return null;
}

function SetCookie (name, value) {
	var argv = SetCookie.arguments;
	var argc = SetCookie.arguments.length;
	var expires = (argc > 2) ? argv[2] : null;
	var path = (argc > 3) ? argv[3] : null;
	var domain = (argc > 4) ? argv[4] : null;
	var secure = (argc > 5) ? argv[5] : false;
	document.cookie = name + "=" + escape (value) +
	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
	((path == null) ? "" : ("; path=" + path)) +
	((domain == null) ? "" : ("; domain=" + domain)) +
	((secure == true) ? "; secure" : "");
}
//  End

function popup()
{
	window.open("popup/popup.asp", "newm", "width=400,height=515,toolbar=no,location=no,directory=no,status=no,menubar=no,scrollbars=no,resizable=no");
}
//-->




<!--
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];}
}
//-->

