<!--

var myhp_width = "719";
var myhp_height = "540";
var myhp_left = (screen.availWidth / 2) - (myhp_width / 2);
var myhp_top = (screen.availHeight / 2) - (myhp_height / 2);

function View_MyProfile(UserIDIndex)
{

	var _MyProfileOpen = window.open(Domain_WWW+"/ebox/index.asp?UserIDIndex="+UserIDIndex,UserIDIndex,"toolbar=no,menubar=no,location=no,directories=no,scrollbars=no,status=yes,left="+myhp_left+",top="+myhp_top+",width="+myhp_width+",height="+myhp_height);	
	_MyProfileOpen.focus();

}

function View_MyProfile2(UserIDIndex)
{

	var _MyProfileOpen = window.open(Domain_WWW+"/ebox/index.asp?eMenuCode=13&UserIDIndex="+UserIDIndex,UserIDIndex,"toolbar=no,menubar=no,location=no,directories=no,scrollbars=no,status=yes,left="+myhp_left+",top="+myhp_top+",width="+myhp_width+",height="+myhp_height);	
	_MyProfileOpen.focus();

}

function View_CharInfo(UserIDIndex,GameIDIndex)
{
	var _MyProfileOpen = window.open(Domain_WWW+"/ebox/index.asp?UserIDIndex="+UserIDIndex+"&GameIDIndex="+GameIDIndex,UserIDIndex,"toolbar=no,menubar=no,location=no,directories=no,scrollbars=no,status=yes,left="+myhp_left+",top="+myhp_top+",width="+myhp_width+",height="+myhp_height);	
	_MyProfileOpen.focus();

}

function View_MyProfileRedirect(UserIDIndex,GameIDIndex,FrameUrl,FrameIdx)
{
	FrameUrl = FrameUrl+"?UserIDIndex="+UserIDIndex+escape("&")+"GameIDIndex="+escape(GameIDIndex)+escape(FrameIdx);	
	var url = Domain_WWW+"/ebox/index.asp?UserIDIndex="+UserIDIndex+"&GameIDIndex="+GameIDIndex+"&FrameUrl="+FrameUrl;
	var _OtherhpOpen =window.open( url,UserIDIndex,"toolbar=no,menubar=no,location=no,directories=no,scrollbars=no,status=yes,left="+myhp_left+",top="+myhp_top+",width="+myhp_width+",height="+myhp_height);	
	_OtherhpOpen.focus();
}

function View_ManageRedirect(UserIDIndex,FrameUrl)
{
	FrameUrl = FrameUrl+"?UserIDIndex="+UserIDIndex;	
	var url = Domain_WWW+"/ebox/mymanage/index.asp?UserIDIndex="+UserIDIndex+"&FrameUrl="+FrameUrl;
	var _OtherhpOpen =window.open( url,UserIDIndex,"toolbar=no,menubar=no,location=no,directories=no,scrollbars=no,status=yes,left="+myhp_left+",top="+myhp_top+",width="+myhp_width+",height="+myhp_height);	
	_OtherhpOpen.focus();
}
         
function View_ManageRedirect2(UserIDIndex,FrameUrl)
{	
	var url = FrameUrl+"?UserIDIndex=" + UserIDIndex + "&siteCode=30";
	var _OtherhpOpen =window.open( url, "_Myinfo", "");	
	_OtherhpOpen.focus();
}

function View_Redirect(DomainName,UserIDIndex,FrameUrl)
{
	FrameUrl = FrameUrl+"?UserIDIndex="+UserIDIndex;	
	var url = DomainName+"/ebox/mymanage/index.asp?UserIDIndex="+UserIDIndex+"&FrameUrl="+FrameUrl;
	var _OtherhpOpen2 =window.open( url,UserIDIndex,"toolbar=no,menubar=no,location=no,directories=no,scrollbars=no,status=yes,left="+myhp_left+",top="+myhp_top+",width="+myhp_width+",height="+myhp_height);	
	_OtherhpOpen2.focus();
}


function View_MyProfileLocations(UserIDIndex,GameIDIndex,FrameUrl,FrameIdx)
{
	FrameUrl = FrameUrl+"?UserIDIndex="+UserIDIndex+escape("&")+"GameIDIndex="+escape(GameIDIndex)+escape(FrameIdx);	
	top.location.href = Domain_WWW+"/ebox/index.asp?UserIDIndex="+UserIDIndex+"&GameIDIndex="+GameIDIndex+"&FrameUrl="+FrameUrl;
	
}

function View_MyProfileLocations(UserIDIndex,GameIDIndex,FrameUrl,FrameIdx)
{
	FrameUrl = FrameUrl+"?UserIDIndex="+UserIDIndex+escape("&")+"GameIDIndex="+escape(GameIDIndex)+escape(FrameIdx);	
	top.location.href = Domain_WWW+"/ebox/index.asp?UserIDIndex="+UserIDIndex+"&GameIDIndex="+GameIDIndex+"&FrameUrl="+FrameUrl;
	
}


function CustomerWindow(StrMenu)
{
	var Customer_URL= "";

	//FAQ
	if (StrMenu=="faq")	{
		Customer_URL ="/faq/FaqList.jsp?faqType=game";
	//ÀÌ¿ë¾à°ü
	} else if (StrMenu=="policy_jce")	{
		Customer_URL ="/policy/agreement.jsp";
	//Ä³½¬ÀÌ¿ë¾à°ü
	} else if (StrMenu=="cash")	{
		Customer_URL ="/policy/cash.jsp";
	//°³ÀÎÁ¤º¸ º¸È£Á¤Ã¥
	} else if (StrMenu=="individual")	{
		Customer_URL ="/policy/privacy.jsp";
	//Ã»¼Ò³â º¸È£Á¤Ã¥
	} else if (StrMenu=="young")	{
		Customer_URL ="/policy/youth.jsp";
	//¿î¿µ Á¦Àç ¹æÄ§
	} else if (StrMenu=="policy")	{
		Customer_URL ="/policy/operation_th.jsp";
	//È¸¿ø¹®ÀÇ	
	} else if (StrMenu=="question")	{
		Customer_URL ="/mail/exMailQuestion.jsp";
	//ºñÈ¸¿ø¹®ÀÇ	
	} else if (StrMenu=="question_notmember")	{
		Customer_URL ="/mail/exMailQuestion.jsp";
	//Á¦ÈÞ ¾È³» ÆäÀÌÁö
	}else if (StrMenu=="marketing")	{
		Customer_URL =Domain_WWW + "/marketing/index.asp";
	}else {
		Customer_URL = StrMenu;
	}

	if (g_siteCode != 1) {
		Domain_HELP =  "http://fs-help." + Domain_Document ;
	} 

	// ÇÏ³ªÆ÷½º³ª ÆÄ¶õÀÇ °æ¿ì ¿¾³¯ URLÀ» »õ URL·Î º¯°æ
	if (g_siteCode == 2) {
		if (StrMenu == "policy") {
			Customer_URL = "/policy/operation_fs.jsp";
		}
	} else if (g_siteCode == 3) {
		if (StrMenu == "/customer/JCe_policy.asp") {
			Customer_URL = "/policy/agreement_hanafos.jsp";
		} else if  (StrMenu == "/customer/policy.asp" || StrMenu == "policy") {
			Customer_URL = "/policy/operation_fs.jsp";
		}
	} else if (g_siteCode == 5) {
		if (StrMenu == "policy") {
			Customer_URL ="/policy/operation_fs.jsp";
		}
	}
	
	if (Customer_URL.substring(0,4) =="http")	{
		fullURL = Customer_URL;
	} else {
		fullURL = Domain_HELP+Customer_URL;
	}

	window.open(fullURL,"HelpWindow","");
}

function CustomerFAQWindow(questionId,categoryId1,categoryId2,categoryId3,categoryName1,categoryName2,categoryName3)
{
	var Customer_URL= "";	
	Customer_URL ="/customer/faq/exSelfFAQA.asp?questionId="+questionId+"&categoryId1="+categoryId1+"&categoryId2="+categoryId2+"&categoryId3="+categoryId3+"&categoryName1="+categoryName1+"&categoryName2="+categoryName2+"&categoryName3="+categoryName3;
	window.open(Domain_HELP+Customer_URL,"HelpWindow","toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,status=yes,left=200,top=100,width=857,height=600");
}
function CustomerFAQSWindow(Pagenum,categoryId1,categoryId2,categoryId3,categoryName1,categoryName2,categoryName3)
{
	var Customer_URL= "";	
	Customer_URL ="/customer/faq/exSelfFAQS.asp?PageNo="+Pagenum+"&categoryId1="+categoryId1+"&categoryId2="+categoryId2+"&categoryId3="+categoryId3+"&categoryName1="+categoryName1+"&categoryName2="+categoryName2+"&categoryName3="+categoryName3;
	window.open(Domain_HELP+Customer_URL,"HelpWindow","toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,status=yes,left=200,top=100,width=857,height=600");
}


function SearchID()
{
	var SearchID = window.open( "/member/id_search.asp", "id_search", "scrollbars=no,toolbar=no,location=no,status=no,directories=no,resizable=no,menubar=no,left=100,top=100,width=360,height=280" );
	SearchID.focus();
}

function GoBanner(BannerIdx,LinkUrl)
{
	AddClickLog(BannerIdx);
	if (LinkUrl.substring(0,7) == "http://") {
		window.open(LinkUrl);
	} else {
		location.href = LinkUrl;
	}
}

function AddClickLog(BannerIdx)
{
	
	try {
		oXMLHTTP = new ActiveXObject("Microsoft.XMLHTTP");
		var sURL =  "/banner/log_addclick.asp?BannerIdx="+BannerIdx;		

		oXMLHTTP.open("GET", sURL, false);
		oXMLHTTP.send();
	} catch (e) {
			alert("failed");
	}
		
	var tempidx;
	tempidx = oXMLHTTP.responseBody;
	
	tempidx = BinToText(tempidx, 320000);

	return tempidx;	
}


///////////////////////////////////////////////////////////////////////////////////////////
function retGamePosition(inVal){
	switch(inVal){
		case '0':
			return "<img src=\""+Domain_SImage+"/ico/ico_positon_c.gif\" width=\"13\" height=\"11\" align=\"absmiddle\">";
			break;
		case '1':
			return "<img src=\""+Domain_SImage+"/ico/ico_positon_f.gif\" width=\"13\" height=\"11\" align=\"absmiddle\">";
			break;
		case '2':
			return "<img src=\""+Domain_SImage+"/ico/ico_positon_g.gif\" width=\"13\" height=\"11\" align=\"absmiddle\">";
			break;
		case '3':
			return "<img src=\""+Domain_SImage+"/ico/ico_positon_pf.gif\" width=\"13\" height=\"11\" align=\"absmiddle\">";
			break;
		case '4':
			return "<img src=\""+Domain_SImage+"/ico/ico_positon_sf.gif\" width=\"13\" height=\"11\" align=\"absmiddle\">";
			break;
		case '5':
			return "<img src=\""+Domain_SImage+"/ico/ico_positon_pg.gif\" width=\"13\" height=\"11\" align=\"absmiddle\">";
			break;
		case '6':
			return "<img src=\""+Domain_SImage+"/ico/ico_positon_sg.gif\" width=\"13\" height=\"11\" align=\"absmiddle\">";
			break;
	}
}
function retGamePositionEng(inVal){
	switch(inVal+''){
		case '0':
			return "C";
			break;
		case '1':
			return "F";
			break;
		case '2':
			return "G";
			break;
		case '3':
			return "PF";
			break;
		case '4':
			return "SF";
			break;
		case '5':
			return "PG";
			break;
		case '6':
			return "SG";
			break;
	}
}

function retGamePositionKor(inVal){
	switch(inVal+''){
		case '0':
			return "¼¾ÅÍ";
			break;
		case '1':
			return "Æ÷¿öµå";
			break;
		case '2':
			return "°¡µå";
			break;
		case '3':
			return "ÆÄ¿öÆ÷¿öµå";
			break;
		case '4':
			return "½º¸ôÆ÷¿öµå";
			break;
		case '5':
			return "Æ÷ÀÎÆ®°¡µå";
			break;
		case '6':
			return "½´ÆÃ°¡µå";
			break;
	}
}


///////////////////////////////////////////////////////////////////////////////////////////
function retFriendState(inVal){
	switch(inVal){
		case '0':
			return "/´ë±â/";
			break;
		case '1':
			return "";
			break;
		case '2':
			return "/´ë±â/";
			break;
		case '3':
			return "/¿äÃ»/";
			break;
	}
}

///////////////////////////////////////////////////////////////////////////////////////////
function retGameSrvIcon(inVal){
	switch (inVal){
		case '1':
			return "<img src='"+ Domain_SImage +"/ico/ico_01.gif' width='15' height='12' align='absmiddle'>"
		case '2':
			return "<img src='"+ Domain_SImage +"/ico/ico_02.gif' width='15' height='12' align='absmiddle'>"
	}
}

///////////////////////////////////////////////////////////////////////////////////////////
function get_strlen(str)
{
    var i, l = 0;
    for (i = 0; i < str.length; i++)
    {
      var n = str.charCodeAt(i);
      if ( (n >= 0)  && (n < 256) )
        l += 1;
      else
        l += 2;
    }
    return l;
}

///////////////////////////////////////////////////////////////////////////////////////////
function ignoreSpaces(string) 
{
	valid = 1;
	index = 0;

	for (i = 0; i < string.length; i ++)
	{
		if (string.substring(i, i+1) != " ")
		{
			valid = 1;
			index = i;
			break;
		}
	}

	if (valid == 0)
	{
	    return "";
	}
	else 
		return string.substring(i);
}
function OpenCashHelp()
{
	window.open( "/etc/cash/popup_cash_help.asp", "cash_help", "status=yes,width=535,height=540" );
}

function processReqChange()
{
	if (xmlHTTP.readyState == 4){
		if (xmlHTTP.status == 200){
			return;
		}
		else{
			alert("There was a problem retrieving the XML data:\n" +xmlHTTP.statusText);
			return;
		}
	}
}
function JSFormatNumber(param)
{
	var str=param+'';
	var ret = '';
	for(var i=str.length-1;i>=0;i--){
	   splitchar = str.charAt(i);
	   ret = splitchar+ret;
	   if( i%3 == str.length%3 && i != 0 ) { ret=','+ret; }
	}
	return ret;
}

function MoveClub(ClubIDIndex){
	top.location.href="/individual_index.asp?ClubIdIndex="+ClubIDIndex;
}

function SearchClub(ClubType){
	top.location.href=Domain_WWW+"/club/index.asp?menutype=4&clubtype="+ClubType;

}

function GoClub(ClubIDIndex){
		var url = Domain_Club+"/individual_index.asp?ClubIdIndex="+ClubIDIndex;
		var MoveWindow = window.open( url, "_JSClubWin", "" );
		MoveWindow.focus();	

}

function formatNumber(str)
{
	str = str+"";
	var tempBuffer = "";
	var ret = "";
	var startMarkpoint = (str.length)%3;
	for(var i=0;i<str.length;i++)
	{
		tempBuffer = str.substr(i, 1);

		if((i+1-startMarkpoint)%3==0)
			if(i!=str.length-1)
				ret += tempBuffer + ",";
			else
				ret += tempBuffer;
		else
			ret += tempBuffer;
	}
	return ret;
}

function ispassedParanPersonCheck() {
	var name = "JS_PCheck";
	var chk;

	// getCookie
	name = name.replace("_","%5F");
	var nameOfCookie = name + "=";
	var x = 0;

	while ( x <= document.cookie.length )
	{
		var y = (x+nameOfCookie.length);
		if ( document.cookie.substring( x, y ) == nameOfCookie ) 
		{
			if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
			endOfCookie = document.cookie.length;
			chk = unescape( document.cookie.substring( y, endOfCookie ) );
		}
		x = document.cookie.indexOf( " ", x ) + 1;
		if ( x == 0 )
		break;
	}

	if (typeof chk != undefined) { chk = 1; }
	
	if (chk != 1) {
		var url;
		if (g_siteCode == 2) {
			url = "http://user.paran.com/commonAction.do?method=boardSelfConfirm"
			url = url + "&bwbSurl=http://fs.paran.com/channel/paran/redirect.asp?mode=success";
			url = url + "&bwbFurl=http://fs.paran.com/channel/paran/redirect.asp?mode=fail";
			url = url + "&bwbMode=E";
		} else if (g_siteCode == 3) {
			url = "http://signupevent.hanafos.com/auth/limitIdentity/?"
			url = url + "ReturnURL=http://fs.hanafos.com/channel/hanafos/redirect.asp?mode=success";
			url = url + "&LimitIdentityCode=fs_free";
		}
		
		if (url != null) {
			window.open(url);
		}
		return false;
	} else {
		return true;
	}
}
-->
