/****************************************************************
	2004. 4.29 °­¿¬¿ì : ÀÏ¹ÝÀûÀÎ ÆË¾÷Ã¢ ¸ðÀ½
****************************************************************/
function UtilPopup( popupSort, dn )  {
	if( popupSort == "JoinInfo" )  {
		window.open('/User/UM/join_info.asp?DN='+ dn +'&Section='+ dn,'È¸¿ø°¡ÀÔ','scrollbars=yes,width=810,height=625').focus();
	}  else if( popupSort == "SearchIDPwd" )  {
		window.open('http://www.eduspa.com/User/UM/search_id.html','¾ÆÀÌµðºñ¹Ð¹øÈ£Ã£±â','width=360,height=282').focus();
	}  else if( popupSort == "SMLoginWindow" )  {
		window.open("/User/UM/Inc/SM_MemberMgr_LoginForm.asp",'·Î±×ÀÎÆäÀÌÁö','scrollbars=no,width=330,height=160').focus();
	}  else if( popupSort == "GSLoginWindow" )  {
		window.open("/User/GS/etc/MemberMgr_LoginForm.asp",'·Î±×ÀÎÆäÀÌÁö','scrollbars=no,width=330,height=160').focus();
	}
}
function JoinPopUp( stDN ){
	window.open('http://www.eduspa.com/User/UM/join_info.asp?DN='+stDN,'È¸¿ø°¡ÀÔ','scrollbars=yes,width=810,height=625').focus();
}

function checkForSSL( stDN )
{
	if( document.frmlogin.checkSSL.checked )
	{
		if( stDN == "eduspa" )
			document.frmlogin.action="https://www.eduspa.com/User/UM/inc/UM_MemberMgr_LogIn_WK.asp";
		else if( stDN == "eduspapopup" )
			document.frmlogin.action="https://www.eduspa.com/User/UM/inc/SM_MemberMgr_LogIn.asp";
	} else {
		if( stDN == "eduspa" )
			document.frmlogin.action="/User/UM/inc/UM_MemberMgr_LogIn_WK.asp";
		else if( stDN == "eduspapopup" )
			document.frmlogin.action="/User/UM/inc/SM_MemberMgr_LogIn.asp";
	}
	
	if( document.frmlogin.userid.value.length < 1){
		alert("ID¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.frmlogin.userid.focus();
		return;
	}
	if(document.frmlogin.pwd.value.length < 3){
		alert("Password¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.frmlogin.pwd.focus();
		return;
	}
}

function check()
{
	if( document.frmlogin.userid.value.length < 1){
		alert("ID¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.frmlogin.userid.focus();
		return;
	}
	if(document.frmlogin.pwd.value.length < 3){
		alert("Password¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.frmlogin.pwd.focus();
		return;
	}
}

function check_it()
{
	if( document.frmlogin.userid.value.length < 4){
		alert("ID¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.frmlogin.userid.focus();
		return;
	}
	if(document.frmlogin.pwd.value.length < 3){
		alert("Password¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.frmlogin.pwd.focus();
		return;
	}
	document.frmlogin.submit();
}

function MM_openBrWindow(theURL,winName,features)
{
	window.open(theURL,winName,features);
}
