	var _centerWnd = null;

	function WndCenterOpen(mypage,myname,w,h,scroll,option)
	{
	 LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	 TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	 settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+option;
	 _centerWnd = window.open(mypage,myname,settings)

	 return _centerWnd;
	}

	function OpenModalDialog( HtmlFile, vOptions, nWidth, nHeight )
	{
	 var qResult = window.showModalDialog( HtmlFile, vOptions,
								 "dialogwidth:"+nWidth+"px;dialogheight:"+nHeight+"px;toolbar:no;location:no;help:no;directories:no;status:no;menubar:no;scrollbars=no;resizable:no");

	 return qResult;
	}

	function OnActiveXControlError( szControlName )
	{
	 alert( "'¿¹(Y)'¹öÆ°À» Å¬¸¯ÇÏ¼Å¾ß "+szControlName+"(À»)¸¦ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù." );
	}
// ----------------------------------------------
// ÆË¾÷ À©µµ¿ì mail, sms, memo
// ----------------------------------------------
	function OnSendMail(email)
	{
	 var Wins = "/StoreAdmin/cMember/mgSendMail.phtml?email="+email;
	 WndCenterOpen(Wins,"",650, 630, 0, "");
	}

	function OnSendSMS( szName, szCPhone )
	{
	 var Wins = "/StoreAdmin/cSMS/mgSMSCaller.phtml?vRcvNo="+szCPhone+"&vMessage="+szName;
	 WndCenterOpen(Wins,"",700, 650, 0, "");
	}

	function OnSendTran( szName, szCPhone )
	{
	 var Wins = "/StoreAdmin/eTrans/mgTransPoint.phtml?vRcvNo="+szCPhone+"&vMessage="+szName;
	 WndCenterOpen(Wins,"",700, 650, 1, "");
	}

	function OnSendMemo(guid)
	{
	 if ( guid == "" )
		var Wins = "/StoreAdmin/cEtc/mgFindMember.phtml?vNextUrl=/StoreAdmin/cCommunity/mgSendNote.phtml";
	 else
		var Wins = "/StoreAdmin/cCommunity/mgSendNote.phtml?guid="+guid;

	 WndCenterOpen(Wins,"",500, 370, 0, "");
	}

	function OnSendNote(guid)
	{
	 OnSendMemo(guid);
	}

	function OnSMSLibrary(fname, vname)
	{
	 var Wins = "/StoreAdmin/cSMS/mgSMSLibrary.phtml?vFormName="+fname+"&vValName="+vname;
	 return WndCenterOpen(Wins,"",600, 710, 0, "");
	}

	function OpenImageView(file)
	{
	 popwin=window.open("","","width=100,height=100");
	 popwin.document.open();
	 popwin.document.write("<head><title>ÀÌ¹ÌÁöº¸±â</title></head>");
	 popwin.document.write("<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>");
	 popwin.document.write("<a href='javascript:self.close()'><IMG SRC="+file+"></a>");
	 popwin.document.write("<script language=javascript>\n");
	 popwin.document.write("if ( document.images.length ) {\n");
	 popwin.document.write(" var sizew = document.images[0].width\n");
	 popwin.document.write(" var sizeh = document.images[0].height\n");
	 popwin.document.write(" self.resizeTo(sizew, sizeh)\n");
	 popwin.document.write("} else { alert('ÀÌ¹ÌÁö°¡ ¾ø½À´Ï´Ù.'); window.close(); }\n");
	 popwin.document.write("</script></body>\n");
	}

