<!--

// ¸¶¿ì½º  ¿À¸¥ÂÊ Å¬¸¯ ±ÝÁö

//var isNS = (navigator.appName == "Netscape") ? 1 : 0;
//var EnableRightClick = 0;
//if(isNS) 
//document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);

//function mischandler(){
//  if(EnableRightClick==1){ return true; }
//  else {return false; }
//}

//document.oncontextmenu = mischandler;

// Object Get!! By ID
function getObjectById(pObjElementId)
{
	return eval( "document.getElementById(\""+pObjElementId+"\")" );
}

// Object Get!! By Name
function getObjectByName(pObjElementName)
{
	return eval( "document.getElementsByName(\""+pObjElementName+"\")" );
}

// Trim
function Trim(st){
	while(st && st.indexOf(" ") == 0) st = st.substring(1);
	while(st && st.lastIndexOf(" ") ==  st.length-1) st = st.substring(0, st.length-1);
	return st;
}

// ÇÊµå Ã¼Å© 1
function checkRequiredField(obj, cnt, msg){
	if(isField(obj.value) < cnt){
		if(msg != ""){
			alert(msg);
		}
		obj.focus();
		return false;
	}
	return true;
}

// ÇÊµå Ã¼Å© 2
function checkRequiredField2(obj, cnt, msg, objFocus){
	if(isField(obj.value) < cnt){
		if(msg != ""){
			alert(msg);
		}
		objFocus.focus();
		return false;
	}
	return true;
}

// °ø¹é Ã¼Å© 
function isField(keyword) {
	var st_num,key_len;
	st_num = keyword.indexOf(" ");	
	while (st_num != -1){
		keyword = keyword.replace(" ", "");
		st_num  = keyword.indexOf(" ");
		}
	key_len=keyword.length;
	return key_len;
}

// ¼ýÀÚ°ª Ã¼Å©
function isnotNumber(obj, msg){
	if(isNaN(obj.value)){
		if(msg != ""){			
			alert(msg);			
		}
		obj.value = "";
		obj.focus();
		return true;
	}
	return false;
}

// ÇÑ±Û ÀÔ·Â È®ÀÎ
function Is_HanGeul(formname)
{
	var form = formname;
	for(var i = 0; i < form.value.length; i++)
	{
		var chr = form.value.substr(i,1);
		chr = escape(chr);
		if (chr.charAt(1) == "u")
		{
			chr = chr.substr(2, (chr.length - 1));
			if((chr < "AC00") || (chr > "D7A3"))
				return false;
		}
		else
			return false;
	}
	return true;
}

// ÇÑ±Û Ã¼Å©
function CheckHan(this_obj)
{
/**
	if(!Is_HanGeul(this_obj)){
		alert("ÀÌ¸§Àº ÇÑ±Û¸¸ ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
		this_obj.value = "";
		this_obj.select();
		return false;
	}
	else
**/
		return true;
}


// ÀÌ¸ÞÀÏ Ã¼Å©
function echeck(str) {
  var at="@";
  var dot=".";
  var lat=str.indexOf(at);
  var lstr=str.length;
  var ldot=str.indexOf(dot);
	if (str.indexOf(at)==-1){
	 alert("It's wrong email address");
	 return false;
	}
	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
	 alert("It's wrong email address");
	 return false;
	}
	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
	  alert("It's wrong email address");
	  return false;
	}
	if (str.indexOf(at,(lat+1))!=-1){
	 alert("It's wrong email address");
	  return false;
	}
	if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
	 alert("It's wrong email address");
	  return false;
	}
	if (str.indexOf(dot,(lat+2))==-1){
	 alert("It's wrong email address");
	  return false;
	}
	if (str.indexOf(" ")!=-1){
	 alert("It's wrong email address");
	  return false;
	}
	return true;          
}

// ÀÌ¸ÞÀÏ Ã¼Å©
var xEmail = new Array('@freechal.com','@nexon.com','@netian.com');
var recomEmail = new Array('naver.com', 'hanmail.net', 'yahoo.co.kr', 'empal.com', 'dreamwiz.com', 'hanafos.com', 'hotmail.com', 'korea.com', 'lycos.co.kr', 'nate.com', 'orgio.net', 'paran.com');

function fillEmailList()
{
	for(var i=0; i < recomEmail.length; i++)
	{
		document.write('<option value="' + recomEmail[i] + '">' + recomEmail[i] + '</option>');
	}	
	document.write('<option value="">enter directly</option>');
}

// ÀÌ¸ÞÀÏ ¸®½ºÆ® º¯°æÃ³¸®
function emailListChanged(this_f)
{
	var account = this_f.useremail_01;
	var domain_self = this_f.useremail_02;
	var domain = this_f.useremail_03;							

	if(domain[domain.selectedIndex].value == '')
	{
		domain_self.style.display = '';
		domain_self.focus();
	}
	else
	{
		domain_self.value = '';
		domain_self.style.display = 'none';
		account.focus();
	}
}

// °¡ÀÔºÒ°¡ ÀÌ¸ÞÀÏ Ã¼Å©
function CheckEmailOK(obj)
{
	obj.value = obj.value.split(' ').join('').toLowerCase();
	var t = 0;
	var email = '@'+ obj.value;
	for(var i=0; i < xEmail.length; i++){
		if(email.indexOf(xEmail[i]) > -1){
			alert('You entered invalid email address.\nYou should enter another email address and you can use the service. ');
			obj.focus();
			t++;
		}
	}

	if (t == 0)
	{
		return true;
	}else{
		return false;
	}
}

// ¿øº»ÀÌ¹ÌÁö ÆË¾÷À¸·Î º¸±â 
var bigImage = new Image();             //»õ·Î¿î ÀÌ¹ÌÁö °´Ã¼¸¦ »ý¼º... 

function showImgWin(imgSrc){
	bigImage.src = imgSrc;    //»õ·Î »ý¼ºÇÑ ÀÌ¹ÌÁö °´Ã¼ÀÇ °æ·Î¸¦ ÆË¾÷¿¡¼­ º¸¿©ÁÙ ÀÌ¹ÌÁö °æ·Î·Î...
	setTimeout("popupImg(bigImage)", 100);   //ÀÌ¹ÌÁö°¡ Å¬¶óÀÌ¾ðÆ®¿¡ ¿ÏÀüÈ÷  Àü¼Û µÉ¶§±îÁö ¹Ýº¹
}
function popupImg(bigImage){
	if (! bigImage.complete) {    // ÀÌ¹ÌÁö°¡ Å¬¶óÀÌ¾ðÆ®¿¡ ¿ÏÀüÈ÷ Àü¼ÛÀÌ µÇÁö ¾Ê¾Ò´Ù¸é....
		 setTimeout("popupImg(bigImage)", 100); 
		 return;
	}
	var x = bigImage.width;            //ÆË¾÷¿¡¼­ º¸¿©ÁÙ ÀÌ¹ÌÁöÀÇ widht
	x = x + 20;
	var y = bigImage.height;            //ÆË¾÷¿¡¼­ º¸¿©ÁÙ ÀÌ¹ÌÁöÀÇ height
	var x2 = (screen.width - x) / 2;       //  È­¸éÀÇ Á¤Áß¾Ó¿¡ ¶ç¿ì±â À§ÇØ.....
	var y2 = (screen.height - y) / 2;      //   »óµ¿
	try {
		var showImage = window.open("","","left="+x2+",top="+y2+",width="+x+",height="+y+",scrollbars=yes");
		showImage.document.write("<html>");
		showImage.document.write("<Title>4Story Source Image</Title>");
		showImage.document.write("<body style='margin:0'>");
		showImage.document.write("<img src='"+bigImage.src+"' border='1' onclick='window.close();' style='cursor:pointer;'>");
		showImage.document.write("</body>");
		showImage.document.write("</html>");
	}catch(error){
		alert('Pop-up is blocked.\nPlease allow the  pop-up for the handy using of website. ');
		return;
	}
}


function MakeFlashString(source,id,width,height,wmode, otherParam)
{	
	return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0\" width="+width+" height="+height+" id="+id+"><param name=wmode value="+wmode+" /><param name=movie value="+source+" /><param name=quality value=high />"+otherParam+"<embed src="+source+" quality=high wmode="+wmode+" type=\"application/x-shockwave-flash\" pluginspage=\"https://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+width+" height="+height+"></embed></object>";
}

function MakeObjectString(classid, codebase, name, id, width,height, wmode, param)
{
	return "<object classid="+classid+" codebase="+codebase+" name="+name+" width="+width+" height="+height+" id="+id+"><param name=wmode value="+wmode+" />"+param+"</object>";
}

// innerHTML Type
function SetInnerHTML(target, code)
{ 
	target.innerHTML = code; 
}

// Direct Write Type
function DocumentWrite(src)
{
	document.write(src);
}

// ¿å¼³Ã¼Å©
function Chk_word(chkword, strObj){
	var str = strObj.value;
	str = str.toLowerCase();
	chk_word = chkword.toLowerCase();
	SP_chk_word = chk_word.split(";");
	var strTemp = ' ' + str;

	for(var i=0; i <SP_chk_word.length; i++)
	{
		if(strTemp.indexOf(SP_chk_word[i]) > 0)
		{
			strObj.value = str.replace(SP_chk_word[i],'**');
			return false;
		}
	}
	return true;
}

// À©µµ¿ì »óÅÂ Ç¥½Ã ±ÝÁö
//window.attachEvent("onload",function() {
//  var arr=document.all.tags("a");
//  for (var i=0; i<arr.length; i++) {
//    arr[i].onmouseover=function() {
//      return true;
//    }
//  }
//});


// ÀÔ·Â¹Ú½º °ª change
function Change (target,type) 
{  
   if ( target.value == target.defaultValue && type==0) target.value = ''; 
   if ( !target.value && type==1) target.value = target.defaultValue; 
} 


// Parameter Ãß°¡
function addParam(form,key,value)
{
	var input = document.createElement("input");
	input.id = key;
	input.name = key;
	input.value = value;
	input.style.display = "none";
	form.appendChild(input);
}

// Parameter »èÁ¦
function delParam(form, obj)
{
	if(obj.nodeType == 1 && obj.tagName == "INPUT")
	{		
		form.removeChild(obj);
	}
}

// ÆûÀ¸·Î ¸¸µé¾î¼­ Submit
function submitData(url, data)
{
	var form = document.createElement("form");
	form.action = url;
	form.method = "post";
	for (var y in data)
	{
		addParam(form,y,data[y]);
	}
	form.style.display="none";
	document.body.appendChild(form);
	form.submit();
}


// °Ë»ö°ª °¡Áö°í Page ÀÌµ¿ÇÏ±â
function PagingSubmit(ListFile, PageCnt)
{
	addParam(document.getElementById('PagingForm'), 'page', PageCnt);
	document.getElementById('PagingForm').action = ListFile;
	document.getElementById('PagingForm').submit();
}

// °Ë»ö°ª °¡Áö°í page ÀÌµ¿ÇÏ±â	
function ViewSubmit(ViewFile, PageCnt, Seqno)
{
	addParam(document.getElementById('PagingForm'), 'seqno', Seqno);
	addParam(document.getElementById('PagingForm'), 'page', PageCnt);
	document.getElementById('PagingForm').action = ViewFile;
	document.getElementById('PagingForm').submit();
}

// °Ë»ö°ª °¡Áö°í page ÀÌµ¿ÇÏ±â	
function DeleteSubmit(ViewFile, PageCnt, Seqno)
{
	if (confirm("Are you sure you want to delete?"))
	{
		addParam(document.getElementById('PagingForm'), 'seqno', Seqno);
		addParam(document.getElementById('PagingForm'), 'page', PageCnt);
		document.getElementById('PagingForm').action = ViewFile;
		document.getElementById('PagingForm').submit();
	}
}

// °Ë»ö°ª °¡Áö°í page ÀÌµ¿ÇÏ±â	
function AnswerSubmit(ViewFile, PageCnt, Seqno, Userchk)
{
	if (Userchk == "")
	{
		if (confirm("You can use this service after logging-in.\nYou want to log-in?"))
			location.href="/login/login.asp";
		else
			return;
	}
	else
	{
		addParam(document.getElementById('PagingForm'), 'seqno', Seqno);
		addParam(document.getElementById('PagingForm'), 'page', PageCnt);
		document.getElementById('PagingForm').action = ViewFile;
		document.getElementById('PagingForm').submit();
	}
}

// °Ë»ö°ª °¡Áö°í page ÀÌµ¿ÇÏ±â	
function RecommendSubmit(ViewFile, PageCnt, Seqno, Userchk)
{
	if (Userchk == "")
	{
		alert('You can use this service after logging-in.');
		return;
	}
	else
	{
		if (confirm("Do you want to recommend this article?"))
		{
			addParam(document.getElementById('PagingForm'), 'seqno', Seqno);
			addParam(document.getElementById('PagingForm'), 'page', PageCnt);
			document.getElementById('PagingForm').action = ViewFile;
			document.getElementById('PagingForm').submit();
		}
	}
}
// »óÅÂº¸±â ·¹ÀÌ¾î
function subMenu(gbn)
{
	var subObj = getObjectById(gbn);
	if (subObj.style.display == "")
	{
		subObj.style.display = "none";
	}
	else
	{
		var _tmpx,_tmpy, marginx, marginy;
		_tmpx = event.clientX + parseInt(subObj.offsetWidth);
		_tmpy = event.clientY + parseInt(subObj.offsetHeight);
		_marginx = document.body.clientWidth - _tmpx;
		_marginy = document.body.clientHeight - _tmpy ;
		if(_marginx < 0)
			_tmpx = event.clientX + document.body.scrollLeft + _marginx ;
		else
			_tmpx = event.clientX + document.body.scrollLeft ;
		if(_marginy < 0)
			_tmpy = event.clientY + document.body.scrollTop + _marginy +20;
		else
			_tmpy = event.clientY + document.body.scrollTop ;
		subObj.style.posLeft =_tmpx-13;
		subObj.style.posTop =_tmpy-12;
		subObj.style.display = "";
	}		
}


// »óÅÂº¸±â ·¹ÀÌ¾î ¸ÞÀÎ ¶°³ª¸é ´Ý±â
function subMenuClose(gbn)
{
	var subObj = getObjectById(gbn);
	if (subObj.style.display == "")
	{
		subObj.style.display = "none";
	}
}

// Ä³¸¯ÅÍ »óÅÂ ÆË¾÷ ¶ç¿ì±â (µ¡±Û¿ë)
function charWinOpen(seq)
{
	try
	{
		window.open ('','CheckInfo','top=200,left=500,width=360,height=245');
		if (!document.replyForm.infoid)
			addParam(document.replyForm, 'infoid', seq);
		else
			document.replyForm.infoid.value = seq;
		document.replyForm.target = 'CheckInfo';
		document.replyForm.action = '/common/popup/userinfo.asp';
		document.replyForm.submit();
		return false;
	}
	catch(error)
	{
		alert('Pop-up is blocked.\nPlease allow the  pop-up for the handy using of website. ');
		return false;
	}
}

// Ä³¸¯ÅÍ »óÅÂ ÆË¾÷ ¶ç¿ì±â (ÀÏ¹Ý¿ë)
function charWinOpenCommon(seq, chkid)
{
	if (chkid == "")
	{
		alert('You can use this service after logging-in.');
		return;
	}
	else
	{
		try
		{
			window.open ('','CheckInfo','top=200,left=500,width=360,height=245');
			if (!document.writeform.infoid)
				addParam(document.writeform, 'infoid', seq);
			else
				document.writeform.infoid.value = seq;
			document.writeform.target = 'CheckInfo';
			document.writeform.action = '/common/popup/userinfo.asp';
			document.writeform.submit();
			return false;
		}
		catch(error)
		{
			alert('Pop-up is blocked.\nPlease allow the  pop-up for the handy using of website.');
			return false;
		}
	}
}
// ·Ñ¿À¹ö 
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//»õÃ¢
function winOpen(url, winname, winhow) 

{
        window.open(url, winname, winhow);
} 

function fileUploadPopup(pop_w,pop_h)
{
	var x = pop_w;           					 // ÆË¾÷¿¡¼­ º¸¿©ÁÙ ÀÌ¹ÌÁöÀÇ widht
	var y = pop_h;        					    // ÆË¾÷¿¡¼­ º¸¿©ÁÙ ÀÌ¹ÌÁöÀÇ height
	var x2 = (screen.width - x) / 2;       //  È­¸éÀÇ Á¤Áß¾Ó¿¡ ¶ç¿ì±â À§ÇØ.....
	var y2 = (screen.height - y) / 2;      //   »óµ¿

	try
	{
		window.open ('','FileUpLoad','top='+y2+',left='+x2+',width='+x+',height='+y+',scrollbars=no');
		document.writeform.target="FileUpLoad";
		document.writeform.action="http://upload.4story.com/upload/upload_input.asp";
		document.writeform.submit();
		return false;
	}
	catch(error)
	{
		alert('Pop-up is blocked.\nPlease allow the  pop-up for the handy using of website.');
		return false;
	}
}

function ContactUs(pop_w,pop_h)
{
	var x = pop_w;           					 // ÆË¾÷¿¡¼­ º¸¿©ÁÙ ÀÌ¹ÌÁöÀÇ widht
	var y = pop_h;        					    // ÆË¾÷¿¡¼­ º¸¿©ÁÙ ÀÌ¹ÌÁöÀÇ height
	var x2 = (screen.width - x) / 2;       //  È­¸éÀÇ Á¤Áß¾Ó¿¡ ¶ç¿ì±â À§ÇØ.....
	var y2 = (screen.height - y) / 2;      //   »óµ¿

	try
	{
		window.open ('/etc/contactus.asp','ContactUs','top='+y2+',left='+x2+',width='+x+',height='+y+',scrollbars=yes');
		return false;
	}
	catch(error)
	{
		alert('Pop-up is blocked.\nPlease allow the  pop-up for the handy using of website.');
		return false;
	}
}

// ¸Þ´º¸µÅ© 
function menu_load(gbn){
	switch(gbn){
		case(1):
			location.href="http://www.4story.com/news/notice_list.asp";
			break;
		case(2):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/news/notice_list.asp";
			break;
		case(3):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/news/press_list.asp";
			break;
		case(4):
			location.href="http://www.4story.com/community/freeboard/free_list.asp";
			break;
		case(5):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/news/event_list.asp";
			break;
		case(6):
			location.href="http://www.4story.com/customer/faq/faq.asp";
			break;

		case(11):
			location.href="http://www.4story.com/news/notice_list.asp";
			break;
		case(12):
			location.href="http://www.4story.com/news/update_list.asp";
			break;
		case(13):
			location.href="http://www.4story.com/news/event_list.asp";
			break;
		case(14):
			location.href="http://www.4story.com/news/press_list.asp";
			break;
		case(15):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/news/event_list.asp";
			break;

		case(20):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/info/feature_01.asp";
			break;
		case(21):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/info/feature_01.asp";
			break;
		case(22):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/info/world_01.asp";
			break;
		case(23):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/info/tribe_01.asp";
			break;
		case(24):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/info/job_01.asp";
			break;


		case(30):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/community/free_list.asp";
			break;
		case(31):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/community/free_list.asp";
			break;
		case(32):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/community/screen_list.asp";
			break;
		case(33):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/community/bug_list.asp";
			break;
		case(34):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/community/qna_list.asp";
			break;
		case(35):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/community/gm_list.asp";
			break;
		case(36):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/community/iveria_list.asp";
			break;

		case(41):
			location.href="http://www.4story.com/community/freeboard/free_list.asp";
			break;
		case(42):
			location.href="http://www.4story.com/community/screen/screen_list.asp";
			break;
		case(43):
			location.href="http://www.4story.com/community/uccgallery/uccgallery_list.asp";
			break;
		case(44):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/community/uccgallery/uccgal_list.asp";
			break;			
		case(45):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/community/uccgallery/uccgal_list.asp";
			break;			
		case(46):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/community/uccgallery/uccgal_list.asp";
			break;				
		case(47):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/community/uccgallery/uccgal_list.asp";
			break;						
		case(48):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/community/uccgallery/uccgal_list.asp";
			break;						
		case(49):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/community/uccgallery/uccgal_list.asp";
			break;		

		case(50):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/login/login.asp";
			break;
		case(51):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/mypage/info_modify.asp";
			break;
		case(52):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/mypage/pw_modify_01.asp";
			break;
		case(53):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/mypage/break_01.asp";
			break;
			
		case(61):
			location.href="http://www.4story.com/customer/faq/faq.asp";
			break;
		case(62):
			location.href="http://www.4story.com/customer/oneone/oneone_list.asp";
			break;
		case(63):
			location.href="http://www.4story.com/customer/bug/bug_list.asp";
			break;

		case(71):
			location.href="http://www.4story.com/login/login.asp";
			break;
		case(72):
			location.href="http://www.4story.com/members/join.asp";
			break;
		case(73):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/login/login.asp";
			break;
		case(74):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/login/login.asp";
			break;
		case(75):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/login/login.asp";
			break;
		case(76):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/login/login.asp";
			break;
		case(77):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/login/login.asp";
			break;
		case(78):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/login/login.asp";
			break;
		case(79):
			alert('ÁØºñÁß ÀÔ´Ï´Ù.');
			//location.href="http://www.4story.com/login/login.asp";
			break;

		default:
			location.href="http://www.4story.com/main.asp";
			break;
		break;
	}
}


/*********************************************************
 * ÀÔ·Â°ªÀ» ¿ø ´ÜÀ§ Æ÷¸äÀ¸·Î Ãâ·Â
 *  ÀÔ·Â:: 12345 / 123,45 / 12345.678
 *  ¸®ÅÏ:: 12,345 / 123,45 / 123,45.678
 * 
 * @author younguk.jeong
 * @param {String} szNumber
 * @return {String} 
 * @since  2008/01/15
 *********************************************************/
function setComma111(szNumber){
	if(szNumber == "" || szNumber == "0") return "";
  
	var returnValue = 0;
	var temp1 = szNumber.replace(/,/g,"");   // ÀÔ·Â µ¥ÀÌÅÍ¸¦ ¼ýÀÚ ÇüÅÂ·Î º¯È¯
	var temp = temp1.split('.');
 
	// Á¤¼öÀÚ¸® ¿ø´ÜÀ§·Î ¸¸µé±â
	var num1 = "";
	var comma = 1;
	for(var i = temp[0].length -1; i >= 0; i--){
		num1 += temp[0].charAt(i);

		if(comma % 3 == 0 && comma != 0){
			num1 += ",";
		} // end if
		comma++;
	} // end for
 

	var num2 = "";
	for(var i = num1.length -1; i >= 0; i--){
		num2 += num1.charAt(i);
	} // end for
 
	// ¼Ò¼öÁ¡ÀÌ ÀÖ´Ù¸é...
	if(temp.length > 1){

		// ¼Ò¼öÁ¡ ÀÚ¸® ¿ø ´ÜÀ§·Î ¸¸µé¾î¼­ ¸®ÅÏ..!!
		var num3 = "";
		for(var i=1; i <= temp[1].length; i++){
			num3 += temp[1].charAt(i-1);
   
			if((i%3 == 0) && (i != 0)){
				num3 += ",";
			}
		} // end for
  
		var num4 = num2 + "." + num3;
		returnValue = num4.replace(/(^,)|(,$)/g,"");
	} // end if
	else
		returnValue = num2.replace(/(^,)|(,$)/g,"");; // ¾Õ,µÚ ÄÞ¸¶ Á¦°Å

	if(returnValue == "" || returnValue == ".")
		return ""
	else
		return returnValue;
} // end function setComma()


function setComma(n) {
	var nTmp, rTmp;
	nTmp=n.split(".");
 
	if (nTmp.length > 2 ) {
		alert("¼Ò¼ýÁ¡ÀÌ µÎ°³ÀÌ»óÀÔ´Ï´Ù. È®ÀÎÇØ ÁÖ½Ê½Ã¿ä.");
		return n ;
 
	}else if (nTmp.length == 1 ) { 
		rTmp = Number(String(nTmp[0]).replace(/\..*|[^\d]/g,'')).toLocaleString().slice(0,-3);
	}else {
		rTmp = Number(String(nTmp[0]).replace(/\..*|[^\d]/g,'')).toLocaleString().slice(0,-3) + "." + nTmp[1]  ;
	}
 
	return rTmp;
}