// === È¸¿ø °ü·Ã ===
function JoinMember()  // È¸¿ø°¡ÀÔ
{          
	top.document.location="/ServiceInterface.asp?URL=Account/Register/ProvisionAgree.asp";
}

function ChangeMember()	// Á¤È¸¿ø ÀüÈ¯
{          
	top.document.location="http://member.happyoz.com/Account/Register/MemberRegExperJoin.asp";  
}

function SearchID()  // ¾ÆÀÌµð Ã£±â
{          
	top.document.location="/ServiceInterface.asp?URL=Account/Member/MemberIDSearchForm.asp";
}

function SearchPW()  // ºñ¹ø Ã£±â
{          	
	top.document.location="/ServiceInterface.asp?URL=Account/Member/PwdSearchForm.asp";
}

function ModifyInfo()  // È¸¿øÁ¤º¸ ¼öÁ¤
{   
	if (document.cookie.length > 150)
	{
		top.document.location.href="/ServiceInterface.asp?URL=Account/Modify/MemberModifyFormPre.asp";
	}
}

function ModifyPW()  // ºñ¹øº¯°æ
{		
	if (document.cookie.length > 150)
	{
		top.document.location.href="/ServiceInterface.asp?URL=Account/Modify/MemberPwdModifyForm.asp";
	}	
}

function RetireMember()  // È¸¿ø Å»Åð
{   
	if (document.cookie.length > 150)
	{
		top.document.location.href="/ServiceInterface.asp?URL=Account/Modify/MemberRetireFormPre.asp";
	}
}

function CancelRetireConfirm()  // È¸¿øÅ»ÅðÃ¶È¸ È®ÀÎ
{   
	top.document.location.href="/ServiceInterface.asp?URL=Account/Retire/RetireCancelConfirmForm.asp";
}

function CancelRetire()  // È¸¿øÅ»Åð Ã¶È¸
{   
	top.document.location.href="/ServiceInterface.asp?URL=Account/Retire/RetireCancel.asp";
}

function Personal()  // °³ÀÎÁ¤º¸º¸È£ Á¤Ã¥
{   
	top.document.location.href="/ServiceInterface.asp?URL=etc/personal.asp";
}

function Agreement()  // ÀÌ¿ë¾à°ü
{   
	top.document.location.href="/ServiceInterface.asp?URL=etc/agreement.asp";
}

function TotalAgreement()  // ÅëÇÕÀÌ¿ë¾à°ü
{   
	top.document.location.href="/ServiceInterface.asp?URL=etc/totalagree.asp";
}

function ProtectorAgreement()  // 14 º¸È£ÀÚ µ¿ÀÇ
{   
	top.location.href="/ServiceInterface.asp?URL=Account/Register/ProtectorAgree.asp";
}

function FnLogout(GSPath)  // ÀÌ¿ë¾à°ü
{   
	top.document.location.href="/Login/Logout.asp";
}


// °í°´¼¾ÅÍ
function Support()
{
	top.location.href="/SupportInterface.asp?URL=/Question/MyQuestion.asp";
}

// ÃæÀüÇÏ±â ÆË¾÷
function CashCharge()  
{ 
	Charge = window.open("https://cash.happyoz.com/PGCharge/Provision.asp", "Charge", "menubar=no, scroll=no, width=527, height=600");   
	Charge.focus();
}

// ¿ÀÁîÄ³½¬ÃæÀü
function cash()  
{   
	top.document.location.href="http://cash.happyoz.com";
}


function ShowFlash(objID, objSource, objWidth, objHeight, objQuality, objWmode, objBgcolor)
{
	var pageUrl = self.window.location.href;
	
	if(pageUrl.substring(0,5) == 'https') 
	{
		swfUrl = "https";
	} 
	else 
	{
		swfUrl = "http";
	}
	
	if (objID == "")
	{
		objID = 'ShockwaveFlash1';
	}
	if (objWidth == "") 
	{
		objWidth = '0';
	}
	if (objHeight == "") 
	{
		objHeight = '0';
	}
	if (objQuality == "") 
	{
		objQuality = 'best';
	}
	if (objWmode == "") 
	{
		objWmode = 'transparent';
	} 
	else 
	{
		objWmode = '';
	}
	
	document.write('<OBJECT id="' + objID + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('type="application/x-shockwave-flash" ');
	document.write('data="' + objSource + '" ');
	document.write('codebase="' + swfUrl +'://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" ');
	document.write('WIDTH="' + objWidth + '" HEIGHT="' + objHeight + '">');
	document.write('<PARAM NAME=menu value=false>');
	document.write('<PARAM NAME=allowScriptAccess value=always>');
	document.write('<PARAM NAME=wmode value="'+ objWmode +'">');
	document.write('<PARAM NAME=movie VALUE="'+ objSource +'">');
	document.write('<PARAM NAME=quality VALUE="'+ objQuality +'">');
	document.write('<PARAM NAME=bgcolor VALUE="'+ objBgcolor +'">');
	document.write('<embed allowScriptAccess="always" swLiveConnect="true" src="' + objSource + '" menu="false" quality="' + objQuality + '" wmode="' + objWmode + '" bgcolor="' + objBgcolor + '" width="' + objWidth + '" height="' + objHeight + '" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">');
	document.write('</OBJECT>');
}

function Chk_Login(ReturnURL, NText)
{
	if (ReturnURL == null || ReturnURL == "")
		ReturnURL = "/Main.asp";

	if (NText == null)
		NText = "";

	if (NText != "") 
	{	
		if(confirm("·Î±×ÀÎ ÇÏ½Å ÈÄ " + NText + " ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. ·Î±×ÀÎ ÇÏ½Ã°Ú½À´Ï±î?"))
		{
			location.href = "/Login/LoginForm.asp?ReturnURL=" + ReturnURL;
		}
		else
		{
		}
	}
	else 
	{
		location.href = "/Login/LoginForm.asp?ReturnURL=" + ReturnURL;
	}
}

function Chk_Login2(NText)
{
	if (NText == null)
		NText = "";

	if (NText != "") 
	{	
		alert("·Î±×ÀÎ ÇÏ½Å ÈÄ " + NText + " ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. ")
	}
	else 
	{
		location.href = "/main.asp";
	}
}

function StartGameOZ(no)
{
	switch (parseInt(no)) 
	{
		case 13 :
			goGame(13,0);
			break;
		case 20 :
			goGame(20,0);
			break;
		case 22 :
			goGame(22,0);
			break;
	}
}

function GameSiteOZ(no)
{
	switch (parseInt(no)) 
	{
		case 1 :
			document.location.href="http://latale.happyoz.com";
			break;
		case 13 :
			document.location.href="http://a3.happyoz.com";
			break;
		case 20 :
			document.location.href="http://ozfestival.happyoz.com";
			break;
		case 21 :
			document.location.href="http://aqu.happyoz.com";
			break;
		case 22 :
			document.location.href="http://xup.happyoz.com";
			break;
		case 23 :
			document.location.href="http://jongchun.happyoz.com";
			break;
	}
}

function StartGameEtc(no)
{
	switch (parseInt(no)) 
	{
		case 1 :
			window.open("http://www.projecta3.com");
			break;
		case 2 :
			window.open("http://www.1000y.com");
			break;
	}
}

function Chk_LoginSWF()
{
	alert('·Î±×ÀÎ ÇÏ½Å ÈÄ ÀÌ¿ë ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.')

}