	// ·Î±×ÀÎ
	function memberLogin()
	{
		var frmLogin = document.frmLogin;
		var memberId = frmLogin.txtMemberId.value;
		var memberPwd = frmLogin.txtMemberPwd.value;
		
		if (memberId == "")
		{
			alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			frmLogin.txtMemberId.focus();
			return;
		}
		
		if (memberPwd == "")
		{
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			frmLogin.txtMemberPwd.focus();
			return;
		}
		
		frmLogin.action = "/GPA/Log/frameLogin.asp";
		frmLogin.submit();
	}
	
	// ¾ÆÀÌµð input¿¡¼­ ºñ¹Ð¹øÈ£ pwd·Î ÀÌµ¿
	function movePwd(frmLogin)
	{
		if (event.keyCode == 13)
			frmLogin.txtMemberPwd.focus();
	}
	
	// ´­·ÁÁø Å°°¡ ¿£ÅÍÅ°°ªÀÏ °æ¿ì¿¡ ·Î±×ÀÎ ¹öÆ°À¸·Î Focus¸¦ ÀÌµ¿
	function keyup()
	{
		if (event.keyCode == 13)
			memberLogin();
	}
	
	// È¸¿ø°¡ÀÔ ÆäÀÌÁö·Î ÀÌµ¿
	function memberJoin()
	{
		self.location.href = "/GPA/member/frmMemberJoin_pre.asp";
	}
	
	// ·Î±×¾Æ¿ô ÆäÀÌÁö·Î ÀÌµ¿
	function memberLogout()
	{
		var frm = document.frmLogin;
		var url = frm.txtUrl.value;
		var queryString = frm.txtQueryString.value;
		
		self.location.href = "/GPA/Log/Logout.asp?url=" + url + "&queryString=" + queryString;
	}
	
	function findIdPwd()
	{
		window.open("/GPA/Member/frmFindIdPwd.asp", "frmFindId", "width=400,height=450,scrollbars=no");
	}
	
	// È¸¿øÁ¤º¸º¸±â ÆäÀÌÁö·Î ÀÌµ¿
	function memberInfo()
	{
		self.location.href = "/GPA/Member/frmEditMemberInfo.asp";
	}
	
	// select°´Ã¼ÀÇ Æ¯Á¤ option ¼±ÅÃ
	function elementSelect(frm, name, value)
	{
		for (var i = 0; i < frm.elements[name].length; i++)
		{
			if (frm.elements[name].options[i].value == value)
				frm.elements[name].options[i].selected = true;
		}
	}
	
	// radio°´Ã¼ ¼±ÅÃ
	function elementCheck(frm, name, value)
	{
		for (var i = 0; i < frm.elements[name].length; i++)
		{
			if (frm.elements[name][i].value == value)
				frm.elements[name][i].checked = true;
		}
	}
	
	// °Ô½Ã¹° Æ÷ÀÎÆ®
	function point(point, frm)
	{
		frm.action = "/GPA/Board/givePoint.asp?point=" + point;
		frm.submit();
		return;
	}
	
	// Ã·ºÎÆÄÀÏ ´Ù¿î·Îµå
	function download(boardId, attachFile)
	{
		self.location.href = "/GPA/Board/download.asp?boardId=" + boardId + "&attachFile=" + attachFile;
	}
	
	// Å¬·´ ÀÌµ¿
	function moveClub(frm, obj, clubId)
	{
		if (clubId != "_inline_" && clubId != "_myClub_"){
			self.location.href = "/?" + clubId;
		}else{
			frm.txtMyClub.options[0].selected = true;
		}
	}
	
	// ÀÌ¹ÌÁöÃ¢
	function ImageOpen(boardId, img)
	{
		window.open("/GPA/Board/windowImgView.asp?boardId=" + boardId + "&img=" + img, "windowImg", "width=200,height=200,scrollbars=yes");
	}
	
	// ¼¿·ºÆ®¹Ú½º¿¡¼­ ±¸ºÐ¼±À» ¼±ÅÃÇßÀ»¶§
	function optionChange(frm, obj, value)
	{
		if (value == "_inline_")
			frm.elements[obj].options[0].selected = true;
	}
	
	// ¼±ÅÃµÈ ¸ÞÀÏÇÔÀ¸·Î ÀÌµ¿
	function selectMailBox(mailbox)
	{
		var pageLoc = "/GPA/Webmail/mail/listMail.asp";
		
		self.location.href = pageLoc + "?thisMailBox=" + mailbox;
	}
	
	// ÈÞÁöÅë ºñ¿ì±â
	function emptyTrash()
	{
		if (confirm("Á¤¸» ÈÞÁöÅëÀ» ºñ¿ì°Ú½À´Ï±î?"))
			self.location.href = "/GPA/Webmail/mail/deleteMail.asp";
	}
	
	// ¸ÞÀÏÁÖ¼Ò Ã¼Å©
	function chkEmail(email)
	{
		var chkCount = "";
		if (email.indexOf("@") > 0)
			chkCount++;
			
		if (email.lastIndexOf(".") > 0)
			chkCount++;
		
		if (chkCount < 2)
			return false;
		else
			return true;
	}
	
	// Ãë¼Ò (ÀÌÀü ÆäÀÌÁö·Î µ¹¾Æ°£´Ù)
	function cancel()
	{
		history.back();
		return;
	}
	
	// ¸¶¿ì½º Ä¿¼­ ½ºÅ¸ÀÏ
	function CursorStyle(obj)
	{
		obj.style.cursor = 'hand';
	}
	
	// Ç®´Ù¿î ¸Þ´º (¹Ì¿Ï¼º)
	function MenuShowHide(obj)
	{
		var objStyle;
		var objLength = obj.length;
		
		if (obj.style.display != "none")
			objStyle = "none";
		else
			objStyle = "";
		
		obj.style.display = "none";
		obj.style.display = objStyle;
	}
	
	// htmlÅÂ±× »ç¿ë¿©ºÎ Ã¼Å©ÇÔ¼ö
	function HtmlIsUse(value)
	{
		var rdoLength = frm.rdoHtmlIsUse.length;
		
		for (var i = 0; i < rdoLength; i++)
		{
			if (frm.rdoHtmlIsUse[i].value == value)
				frm.rdoHtmlIsUse[i].checked = true;
		}
	}
	
	// ¸ÞÀÎ¸Þ´º ·Ñ¿À¹ö ÇÔ¼ö
	function changeMainMenu(objImg, strImg)
	{
		objImg.src = "/GPA/Images/html/" + strImg;
	}
	
	// °Ô½ÃÆÇ ÀÌµ¿ ÇÔ¼ö
	function MoveBoard(clubId, menuNo, boardId, strBoard)
	{
		self.location.href = "/GPA/Board/" + strBoard + "/list.asp?clubId=" + clubId + "&menuNo=" + menuNo + "&boardId=" + boardId;
	}
	
	function viewMyPaper(clubId)
	{
		window.open("/GPA/paper/paper_send.asp?clubId="+clubId, "MyPaper", "width=500,height=430,scrollbars=yes,toolbars=no");
	}

	function viewMyPaper_test(clubId)
	{
		window.open("/GPA/paper/paper_send_test.asp?clubId="+clubId, "MyPaper", "width=500,height=430,scrollbars=yes,toolbars=no");
	}
	
	function closeWindow()
	{
		self.close();
	}
	
	function paperChange(obj, strImgName)
	{
		obj.src = "/GPA/Images/paper/" + strImgName;
	}
	
	function clubSecede(clubId)
	{
		if (confirm("Á¤¸» " + clubId + " ½ºÅÍµð±×·ìÀ» Å»Åð ÇÏ°Ú½À´Ï±î?"))
		{
			self.location.href = "/GPA/Community/clubSecede.asp?clubId=" + clubId;
		}
	}




	// ¾ÆÀÌµð ÀúÀå ¿©ºÎ È®ÀÎ ( 2009.11.03 ³²Á¤¼® )
	function saveidWarning(chk)
	{
		var objChk = document.getElementById( chk );
		
		if(objChk.checked)
		{
			if(confirm("[ÁÖÀÇ] '¾ÆÀÌµð ÀúÀå' ±â´ÉÀº ¾ÆÀÌµðÁ¤º¸¸¦ ±ÍÇÏÀÇ ÄÄÇ»ÅÍ¿¡ ÀúÀåÇÕ´Ï´Ù.\n\n¿©·¯ »ç¶÷ÀÌ °°ÀÌ »ç¿ëÇÏ´Â PC¶ó¸é º» ±â´ÉÀ» »ç¿ëÇÏÁö ¸¶¼¼¿ä.\n\n'¾ÆÀÌµð ÀúÀå' ±â´ÉÀ» »ç¿ëÇÏ½Ã°Ú½À´Ï±î?") == false) 
				objChk.checked = false;
		}
	}
	// ¾ÆÀÌµð ÀúÀå ¿©ºÎ È®ÀÎ ( 2009.11.03 ³²Á¤¼® )
			
	// ¾ÆÀÌµð ÀúÀå ÄíÅ° °ª ¼³Á¤ ( 2009.11.03 ³²Á¤¼® )
	function GetCookie (name) 
	{    
		var first 
		var str = name +"="; 
		
		if(document.cookie.length>0) 
		{ 
			find = document.cookie.indexOf(str); 
			
			if(find == -1 ) return null; 
			
			first = find+str.length; 
			end = document.cookie.indexOf(";", first) 
		
			if(end == -1 ) 
			end = document.cookie.length 
		
			return unescape(document.cookie.substring(first,end))
		}
	}

	function SetCookie (name,value)
	{
		document.cookie = name+"="+value+"; path=/;";
	}

	function SetCookieExpire (name,value,days)
	{
		var expire = new Date();
		expire.setTime(expire.getTime()+(1000*60*60*24*days));

		document.cookie = name+"=" + escape(value) + "; path=/; expires=" + expire.toGMTString();
	}

	function DeleteCookie (name)
	{
		if( GetCookie(name) )
		{
			var expire = new Date();
			expire.setTime(expire.getTime() - 1);

			document.cookie = name + "=; path=/; expires=" + expire.toGMTString();
		}
	}
	// ¾ÆÀÌµð ÀúÀå ÄíÅ° °ª ¼³Á¤ ( 2009.11.03 ³²Á¤¼® )
