/*
	'################################################################################
	'################################################################################
	'##	ÀÛ¼ºÀÚ					:	À¯ÁöÈÆ
	'##	ÃÖÃÊÀÛ¼º				:	2008-02-23
	'##	¼öÁ¤ÀÏ					:	Null
	'##	ÆÄÀÏ°æ·Î				:	/js/
	'##	ÆÄÀÏ¸í					:	scripts.js
	'##	ÆÄÀÏ¼³¸í				:	ÀÚ¹Ù½ºÅ©¸³Æ® ÇÔ¼ö¸ðÀ½
	'##	±âÅ¸						:
	'##								:
	'##								:
	'################################################################################
	'################################################################################
*/

<!--
// Displays "all games" submenu layer
function showSubmenuLayer(layerID) {
	var elmSubmnu = document.getElementById(layerID);
	if(!elmSubmnu){
		//alert("This submenu does not exist.")
	}else{
		if(elmSubmnu.style.display == "none"){
			elmSubmnu.style.display = "block";
		}else{
			elmSubmnu.style.display = "none";
		}
	}
}


//ÀÌ¸ÞÀÏ ÀÎÁõ ÇÁ·Î¼¼¼­ÀÌµ¿ (È¸¿øÅ»Åð¿ë)
function VerificationDelete()
{
	var theURL;

	theURL = "/web/account/verification_process.asp?mode=delete";

	window.open (theURL,'verificationCode','width=280,height=147');
}

//ÀÌ¸ÞÀÏ ÀÎÁõ ÇÁ·Î¼¼¼­ÀÌµ¿ (È¸¿øÁ¤º¸ ¼öÁ¤¿ë)
function VerificationEmail()
{

	var theURL;

	theURL = "/web/account/verification_process.asp?mode=email";

	window.open (theURL,'verificationCode','width=280,height=147');

}



function screenshotVoteCheck(bcode,screenshot_seq,curPage) 
{
	ans = confirm("Do you want to vote?");
	if(ans == true)
	{
		document.location.href = "/web/community/screenshot.asp?bcode=" + bcode +"&screenshot_seq=" + screenshot_seq +"&curPage=" + curPage +"&category=0&mode=screenshotVote"
	} 
	else
	{
		//history.back();
	}
}


function showhide(what)
{
	if (what.style.display=='none')
	{
		what.style.display='';
//		what2.src=Open.src
	}
	else
	{
		what.style.display='none'
//		what2.src=Closed.src
	}
}

function popMessageSent(seq)
{
	window.open("/web/account/myaccount/message_popSent.asp?seq="+seq ,"popMessageSent","scrollbars=no,width=400,height=320");
}

function popMessageinbox(seq)
{
	window.open("/web/account/myaccount/message_popinbox.asp?seq="+seq ,"popMessageSent","scrollbars=no,width=400,height=320");
}



function listCheck(form)
{
	var i, chked=0;
	for(i=0;i<form.length;i++)
	{
		if(form[i].type=='checkbox')
		{ 
			if(form[i].checked)
			{
				form[i].checked=false;
			}
			else
			{
				form[i].checked=true;
			}
		}
	}
	return false;
}

function deleteAll(form)
{
	var i, j=0, k=0;
	for(i=0;i<form.length;i++)
	{
		if(form[i].checked)
		k++;
	}
	if(k<1)
	{
		alert("You should select at least one checkbox.");
		return false;
	}
	if(confirm("Are you sure to delete?"))
	{
		form.submit();
		return true;
	}
	return false;
}

function popMessageAddBlock(str)
{
	var form = document.addBlockForm;

	if(confirm("Are you sure to add "+str+" to the blocked list?"))
	{
		form.action = "/web/account/myaccount/message_process.asp";
		form.submit();
		return true;
	}
}

function popMessageReply(str)
{
	opener.location.href="/web/account/myaccount/message_send.asp?send_nickname="+str;
	window.self.close();

}

function popMessageDelete(seq)
{
	if(confirm("Are you sure to delete?"))
	{
		opener.location.href="/web/account/myaccount/message_process.asp?mode=deleteinbox&inboxCheck="+seq;
		window.self.close();
		
		return true;
	}

}

function popMessageReportGM(seq,str,link)
{
	if(confirm("Warning! You may be penalized for reporting false information."))
	{
		opener.location.href="/web/account/myaccount/message_process.asp?mode=inputReport&board_seq="+seq+"&report_kind="+str;
		window.self.close();
		
		return true;
	}

}

function normalMessageReportGM(seq,str,link)
{
	if(confirm("Warning! You may be penalized for reporting false information."))
	{
		location.href="/process_report.asp?mode=inputNormalReport&board_seq="+seq+"&report_kind="+str;
		return true;
	}

}

//profile img resize
function img_reSize(gb){

	var gb = gb;
	var width = gb.width;
	var height = gb.height;
	var temp = 0; 
	var max_width= 435; 
	   
	if ( width > max_width ) {    
	   height = height/(width / max_width);
	   gb.width = max_width;     
	   gb.height = height;
	}  
}

//-->