/*¦£¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢ µå¸²À§¹ö »ðÀÔ ÀÚµ¿ ½ºÅ©¸³Æ® ÄÚµå ¦¢
  ¦¦¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¥*/
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_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_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 PutEmbed(objects)
{
	if (navigator.appName == "Microsoft Internet Explorer")
	{
		document.write(objects.text);
		objects.id = "";
	}
}

/*¦£¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢ ÇÃ·¡½Ã »ðÀÔ ÄÚµå ¦¢
  ¦¦¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¥*/
function CFlash(swf, width, height)
{
	this.swf = swf;
	this.width = width;
	this.height = height;

	this.wmode = "";
	this.id = "";
	this.quality = "high";
	this.menu = "false";
	this.swliveconnect = "";
	this.bgcolor = "";

	this.Apply = function()
	{
		var option = "";
		var html = "";
		
		if (this.id != "")
		{
			option += " id='" + this.id + "'";
			option += " name='" + this.id + "'";
		}

		if (this.wmode != "")
			option += " wmode='" + this.wmode + "'";

		if (this.swliveconnect != "")
			option += " swliveconnect='" + this.swliveconnect + "'";

		if (this.bgcolor != "")
			option += " bgcolor='" + this.bgcolor + "'";

		html += "<embed src='" + this.swf + "' " + option + " menu='" + this.menu + "' quality='" + this.quality + "' swLiveConnect=true pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + this.width + "' height='" + this.height + "'></embed>";

		document.write(html);
	}
}

/*¦£¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢ ÇÃ·¡½¬ ±¸ÇöÇÔ¼ö¦¢
  ¦§¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦ª¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢s	: url                                         ¦¢
  ¦¢d	: flash id                                    ¦¢
  ¦¢w	: source width                                ¦¢
  ¦¢h	: source height                               ¦¢
  ¦¢t	: wmode ("" for none, transparent, opaque ...)¦¢
  ¦¦¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¥*/
function FlashPrint(s, d, w, h, t)
{
	return "<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="+ w +" height="+ h +" id="+ d +">"
	+ "<param name=wmode value="+ t +" />"
	+ "<param name=movie value="+ s +" />" 
	+ "<param name=quality value=high />"
	+ "<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></object>";
}

/*¦£¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢ ³»¿ë Ãâ·Â ÇÔ¼ö ¦¢
  ¦¦¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¥*/
function documentwrite(src)
{
	document.write(src);
}

/*¦£¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢ ÆË¾÷Ã¢ Å©±â Á¶ÀýÇÔ¼ö ¦¢
  ¦¦¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¥*/
function resize_pop()
{
	window.resizeTo(document.getElementById("pop_size").clientWidth + 10, document.getElementById("pop_size").clientHeight + 80);
}

/*¦£¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢ ÆË¾÷Ã¢ ¿ÀÇÂ ÇÔ¼ö ¦¢
  ¦¦¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¥*/
function open_pop(url)
{
	var newWin = window.open(url, 'pop', 'scrollbars=no, toolbars=no, menubars=no, left=100, top=100, width=360, height=290');
	newWin.focus();
}


/*¦£¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢ ÁÖ¹Îµî·Ï¹øÈ£ ÀÎÁõ Ã¼Å© ¦¢
  ¦¦¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¥*/
function jumin_chk(jumin1, jumin2)
{
	var jumin	= jumin1.value + jumin2.value;

	var weight	= "234567892345";			// ÀÚ¸®¼ö weight ÁöÁ¤
	var val		= jumin.replace("-", "");	// "-"(ÇÏÀÌÇÂ) Á¦°Å
	var sum		= 0;

	if (val.length != 13)	// ÁÖ¹Î¹øÈ£°¡ 13±ÛÀÚ°¡ ¾Æ´Ï¶ó¸é ¿À·ù¸Þ¼¼Áö¸¦ Ãâ·ÂÇÑ´Ù.
	{
		alert("ÁÖ¹Îµî·Ï¹øÈ£ 13ÀÚ¸®¸¦ ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä.");
		jumin1.select();

		return false;
	}															

	for (i = 0; i < 12; i++)
	{
		sum += parseInt(val.charAt(i)) * parseInt(weight.charAt(i));
	}

	var result		= (11 - (sum % 11)) % 10;
	var check_val	= parseInt(val.charAt(12));

	if (result != check_val)	//ÁÖ¹Î¹øÈ£°¡ ¿Ã¹Ù¸£Áö ¾ÊÀ¸¸é ¿À·ù¸Þ¼¼Áö¸¦ Ãâ·ÂÇÑ´Ù.
	{
		alert("ÁÖ¹Îµî·Ï¹øÈ£°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.");
		jumin2.select();	

		return false;
	}

	return;
}

/*¦£¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢ ¼ýÀÚÅ°¸¸ ÀÔ·Â°¡´É Ã¼Å© ¦¢
  ¦§¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦ª¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢ style="ime-mode:disabled" onKeyPress="NumObj(this,'-');" Ãß°¡¦¢
  ¦¦¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¥*/
function NumObj(objname, addStr)
{
	if (event.keyCode >= 48 && event.keyCode <= 57)
	{
		return true;
	}
	else if (event.keyCode == 45 && addStr == "-")
	{
		return true;
	}
	else if (event.keyCode == 46 && addStr == ".")
	{
		return true;
	}
	else
	{
		event.returnValue = false;
	}
}

/*¦£¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢ ¼ýÀÚ¿Í ¿µ¹®¸¸ ÀÔ·Â°¡´É Ã¼Å©¦¢
  ¦§¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦ª¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢ style="ime-mode:disabled" onKeyPress="EngNum(this);" Ãß°¡¦¢
  ¦¦¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¥*/
function EngNum(str)
{
	if (event.keyCode >= 48 && event.keyCode <= 57)
	{
		return true;
	}
	else if (event.keyCode >= 65 && event.keyCode <= 90)
	{
		return true;
	}
	else if (event.keyCode >= 97 && event.keyCode <= 122)
	{
		return true;
	}
	else if (event.keyCode == 95)
	{
		return true;
	}
	else
	{
		event.returnValue = false;
	}
}

/*¦£¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢ ¼ýÀÚ¿Í ¿µ¹®¸¸ @, _¸¸ ÀÔ·Â°¡´É Ã¼Å© ¦¢
  ¦§¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦ª¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢ style="ime-mode:disabled" onKeyPress="EngNum(this);" Ãß°¡¦¢
  ¦¦¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¥*/
function EngNumMail(str)
{
	if (event.keyCode >= 48 && event.keyCode <= 57)
	{
		return true;
	}
	else if (event.keyCode >= 65 && event.keyCode <= 90)
	{
		return true;
	}
	else if (event.keyCode >= 97 && event.keyCode <= 122)
	{
		return true;
	}
	else if ((event.keyCode == 45) || (event.keyCode == 95) || (event.keyCode == 46) || (event.keyCode == 64))
	{
		return true;
	}
	else
	{
		event.returnValue = false;
	}
}

/*¦£¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢ Null Ã¼Å© - °Ë»çÇÒ °´Ã¼ Ã¼Å© (objname = °Ë»çÇÒ °´Ã¼) ¦¢
  ¦¦¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¥*/
function null_chk(objname, error_message)
{
	var obj = objname;		// obj °´Ã¼¿¡ ¹Þ¾Æ¿Â °´Ã¼¸¦ ³Ö´Â´Ù.
	if (obj.value == "")	// ¸¸¾à obj°¡ ºñ¾îÀÖ´Ù¸é
	{
		msg = error_message;
		alert(msg);			// ¿À·ù ¸Þ¼¼Áö¸¦ Ãâ·ÂÇÑ´Ù.
		obj.focus();		// ÇØ´çÄÁÆ®·Ñ·Î Ä¿¼­¸¦ ÀÌµ¿ÇÑ´Ù.

		return false;
	}
}

/*¦£¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¤
  ¦¢ ¸ÞÀÏÁÖ¼Ò À¯È¿¼º Ã¼Å© ½ÃÀÛ - °Ë»çÇÒ °´Ã¼ Ã¼Å© (objname = °Ë»çÇÒ °´Ã¼) ¦¢
  ¦¦¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¥*/
function mail_chk(objname)
{
	var obj = objname.value;

	if (!(obj.match(/[\w\-\~]+\@[\w\-\~]+(\.[\w\-\~]+)+/g) == obj))
	{
		alert("¸ÞÀÏ ÁÖ¼Ò°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.");
		objname.focus();	//°´Ã¼¿¡ Æ÷Ä¿½º¸¦ ¸ÂÃá´Ù.

		return false;
	}

	var chk_obj		= objname.createTextRange();
	var check_word	= "daum.net".toLowerCase();
	var check_word1	= "hanmail.net".toLowerCase();

	if (chk_obj.findText(check_word) || chk_obj.findText(check_word1))
	{
		alert("ÇÑ¸ÞÀÏÀº »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
		objname.focus();

		return false;
	}
}



/* »çÀÌÆ®Àü¿ë */
/*¸µÅ©ÁÖ¼Ò*/
function linkClass01(){location.href="/contents/class/class01List.php?db=news";}
function linkClass02(){location.href="/contents/class/class02.php";}
function linkClass03(){location.href="/contents/class/class03.php";}
function linkClass04(){location.href="/contents/class/class04Form.php";}
//function linkClass04(){alert("ÁØºñÁßÀÔ´Ï´Ù");}
function linkClass05(){location.href="/contents/class/class05Write.php";}
function linkClass06(){location.href="/contents/class/class06.php";}

function linkCopy01(){alert("ÁØºñÁßÀÔ´Ï´Ù");}
function linkCopy02(){alert("ÁØºñÁßÀÔ´Ï´Ù");}
function linkCopy03(){alert("ÁØºñÁßÀÔ´Ï´Ù");}
function linkCopy04(){alert("ÁØºñÁßÀÔ´Ï´Ù");}
function linkCopy05(){alert("ÁØºñÁßÀÔ´Ï´Ù");}

function linkInfo01(){location.href="/contents/info/info01List.php";}
function linkInfo0101(){location.href="/contents/info/info01List.php?db=recipe1";}
function linkInfo0102(){location.href="/contents/info/info01List.php?db=recipe2";}
function linkInfo0103(){location.href="/contents/info/info01List.php?db=recipe3";}
function linkInfo0104(){location.href="/contents/info/info01List.php?db=recipe4";}
function linkInfo0105(){location.href="/contents/info/info01List.php?db=recipe5";}
function linkInfo0106(){location.href="/contents/info/info01List.php?db=recipe6";}
function linkInfo0107(){location.href="/contents/info/info01List.php?db=recipe7";}
function linkInfo0108(){location.href="/contents/info/info01List.php?db=recipe8";}
function linkInfo0109(){location.href="/contents/info/info01List.php?db=recipe9";}
function linkInfo0110(){location.href="/contents/info/info01List.php?db=recipe10";}
function linkInfo02(){location.href="/contents/info/info02MainList.php?db=";}
function linkInfo0201(){location.href="/contents/info/info02List_01.php?db=world1";}
function linkInfo0202(){location.href="/contents/info/info02List_01.php?db=world2";}
function linkInfo0203(){location.href="/contents/info/info02List_01.php?db=world3";}
function linkInfo0204(){location.href="/contents/info/info02List_01.php?db=world4";}
function linkInfo0205(){location.href="/contents/info/info02List_01.php?db=world5";}
function linkInfo03(){location.href="/contents/info/info03List.php";}
function linkInfo04(){location.href="/contents/info/info04List.php";}
function linkInfo05(){location.href="/contents/info/info05View.php";}

function linkRest01(){location.href="/contents/rest/rest0101Main.php?cate=01";}
function linkRest0101(){location.href="/contents/rest/rest0101Main.php?cate=01";}//2µª½º
function linkRest010101(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=01";}//3µª½º
function linkRest01010101(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=01&selteb=01";}//ÅÇµé
function linkRest01010102(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=01&selteb=02";}
function linkRest01010103(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=01&selteb=03";}
function linkRest01010104(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=01&selteb=04";}
function linkRest01010105(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=01&selteb=05";}
function linkRest01010106(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=01&selteb=06";}
function linkRest01010107(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=01&selteb=07";}
function linkRest01010108(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=01&selteb=08";}
function linkRest01010109(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=01&selteb=09";}
function linkRest01010110(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=01&selteb=10";}

function linkRest010102(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=02";}
function linkRest01010201(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=02&selteb=01";}
function linkRest01010202(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=02&selteb=02";}
function linkRest01010203(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=02&selteb=03";}
function linkRest01010204(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=02&selteb=04";}
function linkRest01010205(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=02&selteb=05";}
function linkRest01010206(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=02&selteb=06";}
function linkRest01010207(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=02&selteb=07";}
function linkRest01010208(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=02&selteb=08";}
function linkRest01010209(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=02&selteb=09";}
function linkRest01010210(){location.href="/contents/rest/rest0101List.php?cate=01&cate2=02&selteb=10";}

function linkRest01(){location.href="/contents/rest/rest0101Main.php?cate=01";}
function linkRest0102(){location.href="/contents/rest/rest0102Main.php?cate=02";}//2µª½º
function linkRest010201(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=01";}//3µª½º
function linkRest01020101(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=01&selteb=01";}//ÅÇµé
function linkRest01020102(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=01&selteb=02";}
function linkRest01020103(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=01&selteb=03";}
function linkRest01020104(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=01&selteb=04";}
function linkRest01020105(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=01&selteb=05";}
function linkRest01020106(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=01&selteb=06";}
function linkRest01020107(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=01&selteb=07";}
function linkRest01020108(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=01&selteb=08";}
function linkRest01020109(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=01&selteb=09";}
function linkRest01020110(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=01&selteb=10";}
function linkRest010202(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=02";}
function linkRest01020201(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=02&selteb=01";}
function linkRest01020202(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=02&selteb=02";}
function linkRest01020203(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=02&selteb=03";}
function linkRest01020204(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=02&selteb=04";}
function linkRest01020205(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=02&selteb=05";}
function linkRest01020206(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=02&selteb=06";}
function linkRest01020207(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=02&selteb=07";}
function linkRest01020208(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=02&selteb=08";}
function linkRest01020209(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=02&selteb=09";}
function linkRest01020210(){location.href="/contents/rest/rest0102List.php?cate=02&cate2=02&selteb=10";}

function linkRest02(){location.href="/contents/rest/rest02Main.php?cate=01";}
function linkRest0201(){location.href="/contents/rest/rest02List.php?cate=01";}
function linkRest0202(){location.href="/contents/rest/rest02List.php?cate=02";}
function linkRest0203(){location.href="/contents/rest/rest02List.php?cate=03";}
function linkRest0204(){location.href="/contents/rest/rest02List.php?cate=04";}
function linkRest0205(){location.href="/contents/rest/rest02List.php?cate=05";}
function linkRest0206(){location.href="/contents/rest/rest02List.php?cate=06";}
function linkRest0207(){location.href="/contents/rest/rest02List.php?cate=07";}
function linkRest0208(){location.href="/contents/rest/rest02List.php?cate=08";}
function linkRest0209(){location.href="/contents/rest/rest02List.php?cate=09";}
function linkRest0210(){location.href="/contents/rest/rest02List.php?cate=10";}

function linkRest03(){location.href="/contents/rest/rest03Main.php?cate=01";}
function linkRest0301(){location.href="/contents/rest/rest03List.php?cate=01";}
function linkRest0302(){location.href="/contents/rest/rest03List.php?cate=02";}
function linkRest0303(){location.href="/contents/rest/rest03List.php?cate=03";}
function linkRest0304(){location.href="/contents/rest/rest03List.php?cate=04";}
function linkRest0305(){location.href="/contents/rest/rest03List.php?cate=05";}
function linkRest0306(){location.href="/contents/rest/rest03List.php?cate=06";}
function linkRest0307(){location.href="/contents/rest/rest03List.php?cate=07";}
function linkRest0308(){location.href="/contents/rest/rest03List.php?cate=08";}
function linkRest0309(){location.href="/contents/rest/rest03List.php?cate=09";}
function linkRest0310(){location.href="/contents/rest/rest03List.php?cate=10";}

function linkRest04(){location.href="/contents/rest/rest0401Main.php?cate=01";}
function linkRest0401(){location.href="/contents/rest/rest0401Main.php?cate=01";}
function linkRest0402(){location.href="/contents/rest/rest0402Main.php?cate=02";}
function linkRest0403(){location.href="/contents/rest/rest0403Main.php?cate=03";}

function linkRest05(){location.href="/contents/rest/rest05Main.php?cate=01";}


function linkCons01(){location.href="/contents/cons/cons01List.php";}
function linkCons0101(){location.href="/contents/cons/cons01List.php?db=so_1_1";}
function linkCons0102(){location.href="/contents/cons/cons01List.php?db=so_1_2";}
function linkCons0103(){location.href="/contents/cons/cons01List.php?db=so_1_3";}
function linkCons0104(){location.href="/contents/cons/cons01List.php?db=so_1_4";}
function linkCons0105(){location.href="/contents/cons/cons01List.php?db=so_1_6";}
function linkCons0106(){location.href="/contents/cons/cons01List.php?db=so_1_7";}
function linkCons0107(){location.href="/contents/cons/cons01List.php?db=so_1_9";}
function linkCons0108(){location.href="/contents/cons/cons01List.php?db=so_1_10";}
function linkCons0109(){location.href="/contents/cons/cons01List.php?db=so_1_5";}
function linkCons0110(){location.href="/contents/cons/cons01List.php?db=so_1_8";}

function linkMem01(){location.href="/contents/member/mem01.php";}
function linkMem02(){location.href="/contents/member/mem02.php";}
function linkMem03(){location.href="/contents/member/mem03.php?action=modify";}
function linkMem04(){location.href="/contents/member/mem04.php";}
function linkMem05(){location.href="/contents/member/mem05.php";}
function linkMem06(){location.href="/contents/member/mem06.php";}


function linkComp01(){location.href="/contents/comp/comp0101.php?cate=01";}
function linkComp0101(){location.href="/contents/comp/comp0101.php?cate=01";}
function linkComp0102(){location.href="/contents/comp/comp0102.php?cate=02";}
function linkComp0103(){location.href="/contents/comp/comp0103.php?cate=03";}
function linkComp02(){location.href="/contents/comp/comp02.php";}
function linkComp03(){location.href="/contents/comp/comp03.php";}
function linkComp04(){location.href="/contents/comp/comp04.php";}
function linkComp05(){location.href="/contents/comp/comp05.php";}
function linkComp06(){location.href="/contents/comp/comp06.php";}
function linkComp07(){location.href="/contents/comp/comp07.php";}
function linkComp08(){location.href="/contents/comp/comp08.php";}






/* ¸é¿ä¸®±³½Ç(class/class01.php) ÀÇ ¿ä¸®±³½Ç¼Ò°³ */
function reviewDs(type){
	document.getElementById("classReview").style.display=type;
}

/* ¸é¿ä¸®±³½Ç(class/class04.php) ÀÇ ¸ð´ÏÅÍÅ¬·´½ÅÃ» */
function moniReview(type){
	if(type=="on"){
		if(document.getElementById("userID").value == "" || document.getElementById("userID").value == null){
			alert("·Î±×ÀÎÀ» ÇØÁÖ¼¼¿ä");
			return;
		}else
		{
			document.getElementById("moniReviewOff").style.display="none";
			document.getElementById("moniReviewOn").style.display="block";
		}
	}else if(type=="off"){
		document.getElementById("moniReviewOff").style.display="block";
		document.getElementById("moniReviewOn").style.display="none";
	}
}

/* ¸ÞÀÎ ÆäÀÌÁö - ±Þ½Ä¸Þ´ºÁ¦¾È */
function schoolMenuDs(num){
	for(i=1;i<4;i++){
		if(i==num){
			document.getElementById("sTabDiv0"+i).style.display="block";
			document.getElementById("sTabBtn0"+i).src="/images/main/tabMenu0"+i+"On.gif";
		}else{
			document.getElementById("sTabDiv0"+i).style.display="none";
			document.getElementById("sTabBtn0"+i).src="/images/main/tabMenu0"+i+".gif";
		}
	}
}

/* ¸ÞÀÎ ÆäÀÌÁö - ±Þ½Ä¸Þ´ºÁ¦¾È */
function monthMenuDs(num){
	for(i=1;i<4;i++){
		if(i==num){
			document.getElementById("mTabDiv0"+i).style.display="block";
			document.getElementById("mTabBtn0"+i).src="/images/main/tabMenu0"+i+"On.gif";
		}else{
			document.getElementById("mTabDiv0"+i).style.display="none";
			document.getElementById("mTabBtn0"+i).src="/images/main/tabMenu0"+i+".gif";
		}
	}
}