//--------------------------------------------- ±âº» Á¦¾î ÇÔ¼ö ½ÃÀÛ ----------------------------------------//
// »óÅÂ¹Ù Á¦¾î
function ipchalview1()
{	
	window.status = "Áö»ó ÃÖ°­ÀÇ E-Business Solution Group - ³ÝÄ¿½ºÄÚ¸®¾Æ (http://www.netkers.co.kr/)";
	return true; 	
}
//document.onmouseout  = ipchalview1
//document.onmouseover = ipchalview1
//document.onclick     = ipchalview1	
//document.onmousedown = ipchalview1


// Å¸ÀÌÆ²¹Ù Á¦¾î
var NetkersString = "Ã»¿ø±ºÃ» °¶·¯¸®¿¡ ¿À½Å°ÍÀ» È¯¿µÇÕ´Ï´Ù..!!";
function ipTitleMarquee()
{
	NetkersString = NetkersString.substring(1, NetkersString.length) + NetkersString.substring(0, 1);
	document.title = NetkersString;
	setTimeout("ipTitleMarquee()", 600);
}


// Windows XP - ½ºÅ¸ÀÏÀû¿ë ¸ðµå¿¡ ´ëÇÑÃ³¸®
var sNav    = (navigator.appVersion);
var nPos    = sNav.indexOf("NT 5.1; SV1")
//--------------------------------------------- ±âº» Á¦¾î ÇÔ¼ö ³¡ ----------------------------------------//




//--------------------------------------------- ¼îÇÎ¸ô Á¦¾î ÇÔ¼ö ½ÃÀÛ ----------------------------------------//
// ÄíÅ° ÇÚµé¸µ - ¼³Á¤
function setCookie(name, value, expiredays)
{
	var todayDate = new Date();

	todayDate.setDate(todayDate.getDate() + expiredays);	
	document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

// ½ÇÁ¦ÆË¾÷ ¶ç¿ì±â - ÇÔ¼ö
function GetCookie(sName)
{
	var aCookie = document.cookie.split("; ");
	for (var i=0; i < aCookie.length; i++)
	{
		var aCrumb = aCookie[i].split("=");
		if (sName == aCrumb[0]) return unescape(aCrumb[1]);
	}
}

//µî·ÏµÈ ÆË¾÷Ã¢À» ¹Ì¸®º¸Àå
function preview(number, width, height, xwidth, no)
{
	locate_top  = 0;
	locate_left = xwidth;
			
	url = "./include/netkers_popup_view.php?number="+ number;
	var newwin = window.open(url, "popup_preview"+ no, "toolbar=no, menubar=no, resizable=no, scrollbars=no,left="+ locate_left +", top="+ locate_top +", width="+ parseInt(width) +", height="+ parseInt(height+27));
	newwin.focus();
}

// ÆË¾÷¸µÅ© ¹Ù·Î°¡±â
function engels1004(url)
{
	opener.window.location.href = url;
	self.close();
}

// ÆË¾÷Ã¢ ÄíÅ° Á¦¾î
function closeWin(number)
{
	if (document.engels1004.noticeOk.checked) setCookie("popup_event"+ number, "³ÝÄ¿½ºÄÚ¸®¾Æ" , 1);
	self.close();
}

// Æû ÀÔ·Â ±âº»°ª Ã¤¿ì±â Àû¿ëÇÔ¼ö
function check_w(vv)
{
	if (vv.value == '')
	{
		vv.value = vv.defaultValue;
	}
}

// Æû ÀÔ·Â ±âº»°ª Å¬¸®¾î Àû¿ëÇÔ¼ö
function clear_w(vv)
{
	if (vv.value == vv.defaultValue)
	{
		vv.value = '';
	}
}

//¼±ÅÃµÈ ÄÁÅÙÃ÷ ¹Ù·Î°¡±â
function goto_byselect(sel, targetstr)
{
	var index = sel.selectedIndex;
	
	if (sel.options[index].value != '')
	{
		if (targetstr == 'blank')
		{
			window.open(sel.options[index].value, 'win1');
		}
		else
		{
			var frameobj;
			
			if ((frameobj = eval(targetstr)) != null)
			frameobj.location = sel.options[index].value;
		}
	}
}

// ¿£ÅÍ½Ã Å¬¸¯ÇÏÀå2
function insert_onkeypress2()
{
	if (event.keyCode == 13) 
	{ 
		form_outlogin.submit();
	}
}

// ¿£ÅÍ½Ã Å¬¸¯ÇÏÀå2
function insert_onkeypress_login()
{
	if (event.keyCode == 13) 
	{
		if(!document.form_outlogin.mb_id.value)
		{
			alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä");
			document.form_outlogin.mb_id.focus();
			return false;
		}
		if(!document.form_outlogin.mb_password.value)
		{
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä");
			document.form_outlogin.mb_password.focus();
			return false;
		}		
		form_outlogin.submit();
	}
}

// ¼ýÀÚ¸¸ ¹ÞÀÚ
function numcheck(frm)
{
	if ((event.keyCode < 48) || (event.keyCode > 57))
	{
		event.returnValue=false;
		alert("¼ýÀÚ¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù..");
		frm.select();
		return;
	}
}

// ¾ËÁöº¸µå ·Î±×ÀÎ½Ã Ã¼Å©ÇÔ¼ö
function rgboard_login_check()
{
	if (document.form_outlogin.mb_id.value == "")
	{
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä");
		document.form_outlogin.mb_id.focus();
		return false;
	}
	if (document.form_outlogin.mb_password.value == "")
	{
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä");
		document.form_outlogin.mb_password.focus();
		return false;
	}		
	return true;
}

// ·¹ÀÌ¾îÁ¦¾î
function set_mb_hobby5()
{
	if (t_layer5.style.display == 'none')  t_layer5.style.display = ''
	else                                   t_layer5.style.display = 'none'
}

// ¾ËÁöº¸µå ·Î±×ÀÎ
/*function rgboard_login_engels1004()
{
	document.location.href = '/mb_login.php';
}*/

function rgboard_login_engels1004(aa)
{
	var flag = window.open('mb_login.php?main=1', 'rgboard_login', 'width=600, height=480, left=0, top=0');
	flag.focus();
}

// ¾ËÁöº¸µå ·Î±×¾Æ¿ô
function rgboard_logout_engels1004()
{
	document.location.href = '/mb_logout.php?url=/index.php';
}

// ¾ËÁöº¸µå È¸¿ø°¡ÀÔ
function rgboard_join_engels1004()
{
	document.location.href = '/mb_agree.php';
}

// ¾ËÁöº¸µå Á¤º¸¼öÁ¤
function rgboard_joinedit_engels1004()
{
	document.location.href = '/mb_edit.php';
}

// ¾ËÁöº¸µå ÆÐ½º¿öµå ºÐ½Ç
function rgboard_pass_engels1004()
{
	document.location.href = '/mb_password.php';
}

// ¾ËÁöº¸µå È¸¿øÅ»Åð
function rgboard_leave_engels1004()
{
	document.location.href = '/mb_leave.php';
}

// iframe ¼¼·ÎÅ©±â ÀçÁ¤·Ä
function resizeHeight(fr)
{
	fr = typeof fr == 'string' ? document.getElementById(fr) : fr;
	fr.setExpression('height', calendar_view.document.body.scrollHeight);
	if(calendar_view.document.body.scrollWidth < 100) fr.setExpression('width', 210);
	else                                              fr.setExpression('width', calendar_view.document.body.scrollWidth);
}

// iframe ¼¼·ÎÅ©±â ÀçÁ¤·Ä
function resizeHeight_iframe(fr)
{
	var oBody      = document.body;
	var oFrame     = parent.document.all(name);
	var i_height   = oBody.scrollHeight + (oBody.offsetHeight - oBody.clientHeight);
	oFrame.style.height = i_height;
}

// »õÃ¢À¸·Î ¸µÅ©¿­±â
function new_window_open(vv)
{
	if (vv == '') return;	
	var newwin = window.open(vv, 'information_window', 'width=640, height=480, scrollbars=1, resizable=0, top=100, left=100')
	newwin.focus();
}

// ±Ý¾×À» Ä¡È¯ÇÑ´Ù..!!
function number_format_comma(num)
{
	num         = num.replace(/,/g, "");
	var num_str = num.toString();
	var result  = '';

	for(var i=0; i<num_str.length; i++)
	{
		var tmp = num_str.length-(i + 1);
		if (i % 3 == 0 && i != 0) result = ',' + result
		result = num_str.charAt(tmp) + result
	}
	return result
}
//-------------------------------------------------------------------------------------------------------------------------//



//----------------------------------------------------- flash Á¦¾îÇÔ¼ö -------------------------------------------------//
function getflash(URL,wid,hei,mode)
{
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+wid+"' height='"+hei+"'>");
	document.write("<param name='movie' value='"+URL+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='WMODE' value='"+mode+"'>");
	document.write("<embed src='"+URL+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+wid+"' height='"+hei+"'></embed>");
	document.write("</object>");
}
//-------------------------------------------------------------------------------------------------------------------------//



//--------------------------------------------- ·¹ÀÌ¾î ¹× ÀÌ¹ÌÁö Á¦¾î ÇÔ¼ö ½ÃÀÛ ----------------------------------------//
// ÀÌ¹ÌÁö º¹¿øÁ¦¾î ÇÔ¼ö
function MM_swapImgRestore()
{
	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()
{
	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)
{
	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 && document.getElementById) x=document.getElementById(n); return x;
}

// ½º¿ÒÀÌ¹ÌÁö Á¦¾îÇÔ¼ö
function MM_swapImage(id)
{
	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 MM_reloadPage(init)
{
	if (init == true) with (navigator) 
	{
		if ((appName == "Netscape") && (parseInt(appVersion) == 4))
		{
			document.MM_pgW = innerWidth;
			document.MM_pgH = innerHeight;
			onresize        = MM_reloadPage;
		}
	}
	else if (innerWidth != document.MM_pgW || innerHeight != document.MM_pgH) location.reload();
}

// ¿ÀÇÂ À©µµ¿ì
function MM_openBrWindow(theURL, winName, features)
{
	var newwin = window.open(theURL, winName, features);
	newwin.focus();
}
//--------------------------------------------- ·¹ÀÌ¾î ¹× ÀÌ¹ÌÁö Á¦¾î ÇÔ¼ö ³¡ ----------------------------------------//


//---------------------------------------------- ¸Þ´º ¸µÅ© ÁÖ¼Ò Á¦¾î ÇÔ¼ö ½ÃÀÛ ---------------------------------------//
//¼¿ÇÇºÎ°ú ¼Ò°³
function menu1_1(){self.location.href = "sub1_1.php";}  //º´¿ø¼Ò°³
function menu1_2(){self.location.href = "sub1_2.php";}	//¿øÀåÀÎ»ç¸»
function menu1_3(){self.location.href = "sub1_3.php";}	//Áø·á½Ã°£¾È³»
function menu1_4(){self.location.href = "sub1_4.php";}	//ÁÖÂ÷ÆíÀÇ½Ã¼³
function menu1_5(){self.location.href = "sub1_5.php";}	//¿À½Ã´Â±æ

//·¹ÀÌÀúÅ¬¸®´Ð
function menu2_1(){self.location.href = "sub2_1.php";}	//·¹ÀÌÀúÁ¦¸ð
function menu2_2(){self.location.href = "sub2_2.php";}	//·¹ÀÌÀúÁ¡Á¦°Å
function menu2_3(){self.location.href = "sub2_3.php";}	//¸ðÀÚÀÌÅ© ¿¡ÄÚÅõ
function menu2_4(){self.location.href = "sub2_4.php";}	//IPL
function menu2_5(){self.location.href = "sub2_5.php";}	//¾ÈÆ¼·¢½º ¹°±¤¸®ÇÁÆ®
function menu2_6(){self.location.href = "sub2_6.php";}	//½ºÆÑÆ®¶ó ·¹ÀÌÀúÅä´×

//½ºÅ²ÄÉ¾î
function menu3_1(){self.location.href = "sub3_1.php";}	//¿©µå¸§°ü¸®
function menu3_2(){self.location.href = "sub3_2.php";}	//¹Ì¹é°ü¸®
function menu3_3(){self.location.href = "sub3_3.php";}	//º¸½ÀÁøÁ¤°ü¸®
function menu3_4(){self.location.href = "sub3_4.php";}	//½ºÄÉÀÏ¸µ
function menu3_5(){self.location.href = "sub3_5.php";}	//³ª³ë½ºÅ²ÄÉ¾î
function menu3_6(){self.location.href = "sub3_6.php";}	//»ê¼ÒÇÊ¸µ
function menu3_7(){self.location.href = "sub3_7.php";}	//¾Ë¶óµòÇÊ¸µ
function menu3_8(){self.location.href = "sub3_8.php";}	//¾Ë¶óµòÇÊ¸µ

//µÎÇÇ.Å»¸ð
function menu4_1(){self.location.href = "sub4_1.php";}	//µÎÇÇÅ»¸ðÀÇÁß¿ä¼º
function menu4_2(){self.location.href = "sub4_2.php";}	//µÎÇÇÀÇÀ¯Çü°úÄ¡·á
function menu4_3(){self.location.href = "sub4_3.php";}	//Å»¸ðÀÇ¿øÀÎ
function menu4_4(){self.location.href = "sub4_4.php";}	//¼¿Å¬¸®´ÐµÎÇÇ°ü¸®½Ã½ºÅÛ
function menu4_5(){self.location.href = "sub4_5.php";}	//Å»¸ðÀÚ°¡Áø´Ü
             
//º¸Åå½º.ÇÊ·¯
function menu5_1(){self.location.href = "sub5_1.php";}	//º¸ÅÎ½º ¼Ò°³
function menu5_2(){self.location.href = "sub5_2.php";}	//º¸ÅÎ½ºÀÇ Àû¿ë
function menu5_3(){self.location.href = "sub5_3.php";}	//ÇÊ·¯
function menu5_4(){self.location.href = "sub5_4.php";}	//ppcÁÖ»ç
function menu5_5(){self.location.href = "sub5_5.php";}	//Ä«º¹½Ã

//»ó´ã¹×¿¹¾à
function menu6_1(){self.location.href = "list.php?bbs_id=cellboard_1";}	//ÀÇ·á»ó´ã
function menu6_2(){self.location.href = "list.php?bbs_id=cellboard_2";}	//ºñ¿ë¹®ÀÇ
function menu6_3(){self.location.href = "sub6_3.php";}					//Áø·á¿¹¾à
function menu6_4(){self.location.href = "list.php?bbs_id=cellboard_4";}	//Ã¼ÇèÈÄ±â
function menu6_5(){self.location.href = "list.php?bbs_id=cellboard_5";}	//°í°´ºÒÆí»ó´ã
function menu6_6(){self.location.href = "list.php?bbs_id=cellboard_6";}	//FAQ
function menu6_7(){self.location.href = "list.php?bbs_id=cellboard_7";}	//¼¿ÀÚ·á½Ç
//---------------------------------------------- ¸Þ´º ¸µÅ© ÁÖ¼Ò Á¦¾î ÇÔ¼ö ³¡ ----------------------------------------//
