//--------------------------------------------- ±âº» Á¦¾î ÇÔ¼ö ½ÃÀÛ ----------------------------------------//
// »óÅÂ¹Ù Á¦¾î
function ipchalview1()
{	
	window.status = "ÃæÁÖ°í±¸·ÁÃµ¹®°úÇÐ°ü¿¡ ¿À½Å°ÍÀ» È¯¿µÇÕ´Ï´Ù..!!";
	return true;
}
//document.onmouseout  = ipchalview1;
//document.onmouseover = ipchalview1;
//document.onclick     = ipchalview1;
//document.onmousedown = ipchalview1;

// Áñ°ÜÃ£±â °ü·ÃºÎºÐ
var Favoriteurl   = "http://www.happy0505.com/";
var Favoritetitle = "ÃæÁÖ°í±¸·ÁÃµ¹®°úÇÐ°ü";
function AddFavorites()
{
	if (document.all) window.external.AddFavorite(Favoriteurl, Favoritetitle)
}

// Å¸ÀÌÆ²¹Ù Á¦¾î
var WivString = "ÃæÁÖ°í±¸·ÁÃµ¹®°úÇÐ°ü¿¡ ¿À½Å°ÍÀ» È¯¿µÇÕ´Ï´Ù..!!";
function ipTitleMarquee()
{
	WivString = WivString.substring(1, WivString.length) + WivString.substring(0, 1);
	document.title = WivString;

	// ½ºÅ©·Ñ µÇ´Â ¼Ó·Â - ³ôÀ»¼ö·Ï ´À¸®´Ù.
	setTimeout("ipTitleMarquee()", 600);
}

/*
var sNav    = (navigator.appVersion);
var nPos    = sNav.indexOf("NT 5.1; SV1")
var nHeight = 520;
if (nPos != -1) nHeight	= 549;
*/
//--------------------------------------------- ±âº» Á¦¾î ÇÔ¼ö Á¾·á ----------------------------------------//


//--------------------------------------------- MSIE ¼³°èº¯°æ ÆÐÄ¡ -----------------------------------------//
// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå)
function flashWrite(url,w,h,id,bg,vars,win)
{
	var flashStr = 	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
					"<param name='allowScriptAccess' value='always' />"+
					"<param name='movie' value='"+url+"' />"+
					"<param name='FlashVars' value='"+vars+"' />"+
					"<param name='wmode' value='"+win+"' />"+
					"<param name='menu' value='false' />"+
					"<param name='quality' value='high' />"+
					"<param name='bgcolor' value='"+bg+"' />"+
					"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
					"</object>";
	document.write(flashStr);
}

function aviPlay(src,w,h)
{
	document.write('<embed src="'+src+'" width='+w+' height='+h+'>')
}

// ÄÁÅÙÃ÷¸¦ ¸¸µç´Ù..!!
function MakeFlash(s, d, w, h, t, b)
{
	flashModule  = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width="+w+" height="+h+" id="+d+">";
	flashModule += "<param name=FlashVars value='v1=456&v2=423' />";
	if (b != "") flashModule += "<param name=bgcolor value="+b+" />";
	if (t != "")
	{
		flashModule += "<param name=wmode value="+t+" />";
		flashModule += "<param name=movie value="+s+" />";
		flashModule += "<param name=quality value=high />";
		if (b != "")  flashModule += "<embed src="+s+" quality=high wmode="+t+" bgcolor="+b+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+w+" height="+h+"></embed>";
		else          flashModule += "<embed src="+s+" quality=high wmode="+t+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+w+" height="+h+"></embed>";
	}
	else
	{
		flashModule += "<param name=movie value="+s+" />";
		flashModule += "<param name=quality value=high />";
		if (b != "") flashModule += "<embed src="+s+" quality=high bgcolor="+b+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+w+" height="+h+"></embed>"; 
		else         flashModule += "<embed src="+s+" quality=high type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+w+" height="+h+"></embed>";
	}
	flashModule += "</object>";
	
	return flashModule;
}

// µ¿¿µ»ó °ü·Ã ¼³Á¤
function MakeEmbed(src, w, h)
{
	document.write('<embed src="'+src+'" width='+w+' height='+h+'>')
}

// ÇÃ·¡½¬ ½Ã°è¸¦ µ¹¸°´Ù..!!
function MakeFlashTime()
{
	flashModule  = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='218' height='26'>";
	flashModule += "<param name='movie' value='/img/administrator/admin/clock.swf?lang=kr'>";
	flashModule += "<param name='loop' value='false'>";
	flashModule += "<param name='menu' value='false'>";
	flashModule += "<param name='quality' value='best'>";
	flashModule += "<param name='scale' value='noscale'>";
	flashModule += "<param name='bgcolor' value='#ffffff'>";
	flashModule += "<embed src='/img/administrator/admin/clock.swf?lang=kr' loop='false' menu='false' quality='best' scale='noscale' bgcolor='#FFFFFF' width='218' height='26' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>";
	flashModule += "</object>";
	
	return flashModule;
}

// ½ÇÁ¦ ÄÁÅÙÃ÷ ³»¿ëÀ» ÀÛ¼ºÇÑ´Ù..!!
function documentContentWrite(src)
{
	document.write(src);
}

// ½ÇÁ¦ ÄÁÅÙÃ÷ ³»¿ëÀ» ÀÛ¼ºÇÑ´Ù..!!
function documentContentWrite(src)
{
	document.write(src);
}
//--------------------------------------------- MSIE ¼³°èº¯°æ ÆÐÄ¡ ---------------------------------------//



//--------------------------------------------- °øÅëÁ¦¾î ÇÔ¼ö ½ÃÀÛ ----------------------------------------//
// ·¹ÀÌ¾î ¿À¸¥ÂÊ ÄÁÆ®·Ñ
function centerWindow()
{
	var xMax    = document.body.clientWidth;
	var yMax    = document.body.clientHeight;
	var xOffset = xMax-800;
	var yOffset = 0;
	var divMenu = document.all['banner1'].style;	//Áß½É¿¡¼­ ¿À¸¥ÂÊÀ¸·Î 20, ¾Æ·¡·Î 40ÇÈ¼¿¿¡ Ç×»ó À§Ä¡ÇÏ´Â ·¹ÀÌ¾î
	divMenu.top = 0;
	divMenu.left = xOffset;
}

// ½Ä´ÜÇ¥ µî·Ï
function workplan_food_input(year, month, day)
{
	document.myform.input_type.value = "input";
	document.myform.year.value       = year;
	document.myform.month.value      = month;
	document.myform.day.value        = day;
	document.myform.action           = "wiv_workplan_food_input.php";
	document.myform.submit();
}

// ½Ä´ÜÇ¥ ¼öÁ¤
function workplan_food_edit(number, year, month, day, c_date, title)
{
	var flag = confirm("½Ä´ÜÀÏ : "+ c_date +"\n½Ä´Ü¸í : "+ title +"\n\nÇØ´ç ½Ä´ÜÀ» ¼öÁ¤ ÇÏ½Ã°Ú½À´Ï±î..??");
	if (flag == true)
	{
		document.myform.input_type.value = "edit";
		document.myform.number.value     = number;
		document.myform.year.value       = year;
		document.myform.month.value      = month;
		document.myform.day.value        = day;
		document.myform.action           = "wiv_workplan_food_input.php";
		document.myform.submit();
	}
}

// ½Ä´ÜÇ¥ »èÁ¦
function workplan_food_delete(number, year, month, day, c_date, title)
{
	var flag = confirm("½Ä´ÜÀÏ : "+ c_date +"\n½Ä´Ü¸í : "+ title +"\n\nÇØ´ç ½Ä´ÜÀ» »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î..??");
	if (flag == true)
	{
		document.myform.input_type.value = "delete";
		document.myform.number.value     = number;
		document.myform.year.value       = year;
		document.myform.month.value      = month;
		document.myform.day.value        = day;
		document.myform.action           = "wiv_workplan_food_input_end.php";
		document.myform.submit();
	}
}

// ½Ä´ÜÇ¥ ³»¿ëº¸±â
function workplan_food_view(year, month, day)
{
	var locate_left = screen.width / 2 - 800 / 2;
	var locate_top = (screen.height - 30) / 2 - 600 / 2;

	url = "wiv_workplan_food_view.php?year="+ year +"&month="+ month +"&day="+ day;
	var newwin = window.open(url, "workplan_view", "toolbar=no, menubar=no, resizable=no, scrollbars=yes,left="+ locate_left +", top="+ locate_top +", width=800, height=600");
	newwin.focus();
}

// ½Ä´ÜÇ¥ - µî·Ï»çÇ× Ã¼Å©½ÃÀÛ
function workplan_food_input_check()
{
	if (document.myform.title.value == "")
	{
		alert("Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä..!!");
		document.myform.title.focus();
		return (false);
	}

	ed1.getHtml()
	if (document.myform.user_text.value == "")
	{
		alert("½Ä´Ü¼³¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä!")
		ed1.focus();
		return (false);
	}

	return (true);
}

// ¿ùÁßÇà»ç µî·Ï
function workplan_input(year, month, day)
{
	document.myform.input_type.value = "input";
	document.myform.year.value       = year;
	document.myform.month.value      = month;
	document.myform.day.value        = day;
	document.myform.action           = "wiv_workplan_input.php";
	document.myform.submit();
}

// ¿ùÁßÇà»ç ¼öÁ¤
function workplan_edit(number, year, month, day, c_date, title)
{
	var flag = confirm("Çà»çÀÏ : "+ c_date +"\nÇà»ç¸í : "+ title +"\n\nÇØ´ç Çà»ç¸¦ ¼öÁ¤ ÇÏ½Ã°Ú½À´Ï±î..??");
	if (flag == true)
	{
		document.myform.input_type.value = "edit";
		document.myform.number.value     = number;
		document.myform.year.value       = year;
		document.myform.month.value      = month;
		document.myform.day.value        = day;
		document.myform.action           = "wiv_workplan_input.php";
		document.myform.submit();
	}
}

// ¿ùÁßÇà»ç »èÁ¦
function workplan_delete(number, year, month, day, c_date, title)
{
	var flag = confirm("Çà»çÀÏ : "+ c_date +"\nÇà»ç¸í : "+ title +"\n\nÇØ´ç Çà»ç¸¦ »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î..??");
	if (flag == true)
	{
		document.myform.input_type.value = "delete";
		document.myform.number.value     = number;
		document.myform.year.value       = year;
		document.myform.month.value      = month;
		document.myform.day.value        = day;
		document.myform.action           = "wiv_workplan_input_end.php";
		document.myform.submit();
	}
}

// ¿ùÁßÇà»ç ³»¿ëº¸±â
function workplan_view(year, month, day)
{
	var locate_left = screen.width / 2 - 800 / 2;
	var locate_top = (screen.height - 30) / 2 - 600 / 2;

	url = "wiv_workplan_view.php?year="+ year +"&month="+ month +"&day="+ day;
	var newwin = window.open(url, "workplan_view", "toolbar=no, menubar=no, resizable=no, scrollbars=yes,left="+ locate_left +", top="+ locate_top +", width=800, height=600");
	newwin.focus();
}

// ¿ùÁßÇà»ç - µî·Ï»çÇ× Ã¼Å©½ÃÀÛ
function workplan_input_check()
{
	if (document.myform.title.value == "")
	{
		alert("Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä..!!");
		document.myform.title.focus();
		return (false);
	}

	ed1.getHtml()
	if (document.myform.user_text.value == "")
	{
		alert("Çà»ç¼³¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä!")
		ed1.focus();
		return (false);
	}

	return (true);
}

// ÄíÅ° ÇÚµé¸µ - ¼³Á¤
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/wiv_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 == 13) 
	{
		return true;
	}
	else
	{
		if ((event.keyCode < 48) || (event.keyCode > 57 ))
		{
			event.returnValue = false;
			alert("¼ýÀÚ¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù..");
			frm.select();
			return;
		}
	}
}

// ÀÔ·ÂÆû¿¡ ¼ýÀÚ¸¸ µé¾î¿À°Ô
function numcheck_engels1004(frm)
{
	if (frm.value != "")
	{
		var form_name     = frm.form.name;
		var field_name    = frm.name;
		var chk_field     = eval("document."+ form_name.toString() +"."+ field_name.toString());
		var number_result = NumbericCheck(chk_field)
		if (number_result != -1)
		{
			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_logout_engels1004()
{
	document.location.href = '/mb_logout.php?url=/';
}

// ¾ËÁöº¸µå È¸¿ø°¡ÀÔ
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()
{
	var flag = confirm("È¸¿øÅ»Åð¸¦ ÁøÇàÇÏ½Ã°Ú½À´Ï±î..?\nÈ¸¿øÅ»Åð ÇÏ½Ã¸é ¸ðµç Á¤º¸°¡ ¼Ò¸êµË´Ï´Ù..!!\n\n±×·¡µµ Å»Åð¸¦ ÇÏ½Ã·Á¸é È®ÀÎ ¹öÆ°À» ´­·¯ÁÖ¼¼¿ä..!!");
	if (flag == true)
	{
		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
}

// ÇÑ±ÛÀÎÁö Ã¼Å©
function KoreanCheck(Objectname)
{
	var intErr
	var strValue = Objectname.value
	var retCode  = 0
	var intErr   = 0

	for (i = 0; i <  strValue.length; i++)
	{
		var retCode = strValue.charCodeAt(i)
		var retChar = strValue.substr(i,1).toUpperCase()
		    retCode = parseInt(retCode)

		if ((retChar <  "0" || retChar  > "9") && (retChar <  "A" || retChar  > "Z") && ((retCode  > 255) || (retCode <  0)))
		{
			intErr = -1;
			break;
		}
	}
	return (intErr);
}

// ¿µ¹®ÀÎÁö Ã¼Å©
function EnglishCheck(Objectname)
{
	var intErr
	var strValue = Objectname.value
	var retCode  = 0
	var intErr   = 0

	for (i = 0; i <  strValue.length; i++)
	{
		var retCode = strValue.charCodeAt(i)
		var retChar = strValue.substr(i,1).toUpperCase()
		    retCode = parseInt(retCode)

		if (retChar <  "A" || retChar  > "Z")
		{
			intErr = -1;
			break;
		}
	}
	return (intErr);
}

// ¼ýÀÚÀÎÁö Ã¼Å©
function NumbericCheck(Objectname)
{
	var intErr
	var strValue = Objectname.value
	var retCode  = 0
	var intErr   = 0

	for (i = 0; i <  strValue.length; i++)
	{
		var retCode = strValue.charCodeAt(i)
		var retChar = strValue.substr(i,1).toUpperCase()
		    retCode = parseInt(retCode)

		if ((retCode > 47) && (retCode < 58))
		{
			intErr = -1;
			break;
		}
	}
	return (intErr);
}
//-------------------------------------------------------------------------------------------------------------------------//



//----------------------------------------------------- È¸¿ø°¡ÀÔ°ü·Ã Á¦¾îÇÔ¼ö -------------------------------------------------//
// ·¹º§ ¼±ÅÃ¿¡ µû¸¥ °³º° ºÎ°¡Á¤º¸°¡ ÀÖ´Ù¸é º¸ÀÎ´Ù..!!
function set_level_changer(vv)
{
	// °ü¸®ÀÚÀÏ¶§ Ã³¸®
	if (vv == 10)
	{
		l_edit_customer_staff.style.display  = 'none';
		l_edit_customer_staff1.style.display = 'none';
		l_edit_staff.style.display           = 'none';
	}

	// ±³Á÷¿øÀÏ¶§ Ã³¸®
	else if (vv == 5)
	{
		l_edit_customer_staff.style.display  = '';
		l_edit_customer_staff1.style.display = 'none';
		l_edit_staff.style.display           = '';
	}
	
	// ÇÐºÎ¸ðÀÏ¶§ Ã³¸®
	else if (vv == 3)
	{
		l_edit_staff.style.display           = '';
		l_edit_customer_staff.style.display  = '';
		l_edit_customer_staff1.style.display = '';
	}

	// ÀÏ¹Ý È¸¿øÀÎ°æ¿ì Ã³¸®
	else
	{
		l_edit_customer_staff.style.display  = 'none';
		l_edit_customer_staff1.style.display = 'none';
		l_edit_staff.style.display           = 'none';
	}
}
//-------------------------------------------------------------------------------------------------------------------------//


//--------------------------------------------- ·¹ÀÌ¾î ¹× ÀÌ¹ÌÁö Á¦¾î ÇÔ¼ö ½ÃÀÛ ----------------------------------------//
// ÀÌ¹ÌÁö º¹¿øÁ¦¾î ÇÔ¼ö
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();
}
//--------------------------------------------- ·¹ÀÌ¾î ¹× ÀÌ¹ÌÁö Á¦¾î ÇÔ¼ö ³¡ ----------------------------------------//
