function F_FbPointCharge(strCheckAuthVar){

	alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.');
	}

var DivName		= "MyClubList";
var ClubRoaded	= false;
var ClubShow	= false;
var FirstClick	= false;
var temp		= false;

function RoadMyClub()
{
	if(ClubRoaded != false)
	{
		return false;
	}

	var HttpRequest	= null;
	var strBuffer	= '';

	if (window.XMLHttpRequest)
	{
		HttpRequest	= new XMLHttpRequest();
	}
	else if (window.ActiveXObject)
	{
		var libs = new Array('MSXML4','MSXML3','MSXML2','Microsoft');
		for (var i=0; i<libs.length; i++)
		{
			try
			{
				HttpRequest = new ActiveXObject(libs[i]+".XMLHTTP");
				break;
			}
			catch (e)
			{
				continue;
			}
		}
	}
	if (HttpRequest == null)
	{
		alert("³» Å¬·´ ¸ñ·ÏÀ» ºÒ·¯ ¿Ã ¼ö ¾ø½À´Ï´Ù.");
		return false;
	}

	HttpRequest.onreadystatechange = function ()
	{
		if (HttpRequest.readyState == 4)
		{
			if (HttpRequest.status == 200)	{ document.getElementById(DivName).innerHTML = HttpRequest.responseText; }
		}
		else
		{
			document.getElementById(DivName).innerHTML = "<div class=\"MyClubListNo\">·ÎµùÁß ÀÔ´Ï´Ù</div>";
		}
	}

	ClubRoaded = true;
	HttpRequest.open("POST", "/Include/FilebadaNew/FbMyClubList.php", true);
	HttpRequest.send("");
}

function ShowMyClub()
{
	if(ClubShow == false)
	{
		document.getElementById(DivName).style.display		= "block";
		document.getElementById("MyClubSelectImg").src		= "http://img.soribada.com/Img/Filebada/web/filebada_selectbox_bg_on.gif";
		if(FirstClick == false)
		{
			document.getElementById(DivName).style.borderBottom	= "1px solid #b8da42";
			if(document.getElementById(DivName).offsetHeight > "230")
			{
				document.getElementById(DivName).style.width	= document.getElementById(DivName).offsetWidth + "px";
				document.getElementById(DivName).style.height	= "230px";
				document.getElementById(DivName).style.overflowX= "hidden";
			}
		}
		ClubShow	= true;
		FirstClick	= true;
	}
	else
	{
		HideMyClubAct();
	}
}

function HideMyClubAct()
{
	document.getElementById("MyClubSelectImg").src	= "http://img.soribada.com/Img/Filebada/web/filebada_selectbox_bg.gif";
	document.getElementById(DivName).style.display	= "none";
	ClubShow	= false;
}

function HideMyClub()
{
	if(document.getElementById(DivName).style.display == 'block')
	{
		tid=setTimeout("HideMyClubAct()",200);
		
	}
}

function ClearHideTime()
{
	if(typeof(tid)=="number")
	{
		clearTimeout(tid);
	}
}

function OverClub(List)
{
	if(temp.className == "ClubListIndexOff")		{ temp.className = "ClubListIndexOn";	}
	else if(temp.className == "ClubListIndexOn")	{ temp.className = "ClubListIndexOff";	}
	else if(temp.className == "MyClubListOn_New")	{ temp.className = "MyClubListOff_New";	}
	else if(temp.className != "NoCss")				{ temp.className = "MyClubListOff";		}

	if(List.className == "ClubListIndexOff")		{ List.className = "ClubListIndexOn";	}
	else if(List.className == "MyClubListOff_New")	{ List.className = "MyClubListOn_New";	}
	else if(List.className != "NoCss")				{ List.className = "MyClubListOn";		}
	temp = List;

//				var Li = document.getElementById("MyClubListUl").getElementsByTagName("li");
//				for(i=0; i<Li.length; i++)
//				{
//					if(Li[i].className == "ClubListIndexOff")		{ Li[i].className = "ClubListIndexOff";	}
//					else if(Li[i].className == "ClubListIndexOn")	{ Li[i].className = "ClubListIndexOff";	}
//					else if(Li[i].className != "NoCss")				{ Li[i].className = "MyClubListOff";	}
////					else											{ Li[i].className = "MyClubListOff";	}
//				}
//				if(List.className == "ClubListIndexOff")	{ List.className = "ClubListIndexOn";	}
//				else if(List.className != "NoCss")			{ List.className = "MyClubListOn";		}
}
function InitLogin(){
	if(document.getElementById("id").value==''){
		document.getElementById("id").focus();
	}
	else{
		document.getElementById("passwd").focus();
	}
}

function OpenSearch(strGBN){
	if (strGBN==1){
		window.open('http://www.soribada.com/Member/MbCheckMember.php','FindWindow','scrollbars=no,status=no,width=496,height=400');
	}
	else if (strGBN==2){
		window.open('http://www.soribada.com/Member/MbCheckMember.php','FindWindow','scrollbars=no,status=no,width=496,height=400');
	}
}
function LoginCheck(){
	if (document.getElementById("id").value==""){
		alert('ID¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');
		document.getElementById("id").focus();
		return false;
	}
	else if (document.getElementById("passwd").value==""){
		alert('PASS¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');
		document.getElementById("passwd").focus();
		return false;
	}

	if(LoginForm.SLogin.checked) {
		LoginForm.action="https://www.soribada.com/Include/Login/LoginAction.php";  
	} else {
		LoginForm.action="http://www.soribada.com/Include/Login/LoginAction.php";  
	}

	return;
}

function openRegisterWindow(){
	window.open('http://www.soribada.com/Member/MbInsert.php');
}

function SelectDiv(Show, Hide)
{
	document.getElementById(Show).style.display	= "block";
	document.getElementById(Hide).style.display	= "none";
}

function SetCookie( cookieName, cookieValue, expDate )
{
	var expires	= new Date();	expires.setTime( expires.getTime() + expDate * 24 * 60 * 60 * 1000 );
	var expiresDate	= expires.toGMTString();
	document.cookie	= cookieName +"="+ cookieValue + ";expires=" + expiresDate + ";path=/";
}

function FListWindow(Type)
{
	if(Type == "Close") //´Ý±â 
	{
		SelectDiv('FriendClose', 'FriendOpen');
	}
	else
	{
		SelectDiv('FriendOpen', 'FriendClose');
	}
	var expires	= new Date();	expires.setTime( expires.getTime() + 10 * 24 * 60 * 60 * 1000 );
	var expiresDate	= expires.toGMTString();
	document.cookie	= "FbFWindow="+ Type + ";expires=" + expiresDate + ";domain=soribada.com;path=/";
}

function FListLoad()
{
	document.getElementById("FriendOpen").style.display		= "none";
	document.getElementById("FriendClose").style.display	= "block";
}

function AddFriendPop(UserId){
	go_login();
}

function Spop(URL)
{
	window.open(URL,'SupportPop','toolbar=0, location=0, status=0, menubar=0, scrollbars=0, resizable=0, top=300, left=200, width=750, height=550');
}
