<!--
	//Ä«Å×°í¸® contentloader¿¬µ¿ ÇÔ¼ö
	function category_view(e)
	{
		if ( e.options[e.selectedIndex].value )
		{
			var val = e.options[e.selectedIndex].value;
			var page_url = "/common/category_view_ajax.asp";
			var params = "C_Code="+ val + "&Ele="+ e.id +"&EleType="+ e.multiple ;
			var loader = new net.ContentLoader(page_url, category_fill, null, "POST", params);
		}
		else
		{
			var getSub = "";
			var getSub2 = "";
			var Cate = "";
			var op = "";

			if ( e.id == "FirstCate" )
			{
				getSub1 = document.getElementById("SecondCate");
				getSub2 = document.getElementById("ThirdCate");
				getSub1.options.length = 0;
				getSub2.options.length = 0;

				op = new Option("ÁßºÐ·ù", "");
				getSub1.options[0] = op;

				op = new Option("¼ÒºÐ·ù", "");
				getSub2.options[0] = op;
			}
			else
			{
				getSub1 = document.getElementById("ThirdCate");
				getSub1.options.length = 0;

				op = new Option("¼ÒºÐ·ù", "");
				getSub1.options[0] = op;
			}


		}
	}

	//Ä«Å×°í¸® È£Ãâ
	function category_fill()
	{
		//XMLÁ¤º¸¸¦ º¯¼ö¿¡ ÀúÀå
		var xmlDoc = this.req.responseXML.documentElement;

		//Ç¥½ÃµÉ Ä«Å×°í¸®ÀÇ ´ë»ó È£Ãâ
		var getEle = xmlDoc.getElementsByTagName("ElementSelect")[0];
		var TargetEle = getEle.childNodes[0].firstChild.nodeValue;
		var EleType = getEle.childNodes[1].firstChild.nodeValue;

		//Ä«Å×°í¸® ¸ñ·Ï È£Ãâ
		var xRows = xmlDoc.getElementsByTagName("entry");
		var opText, opValue, op;
		var getSub = null;
		var getThird = null;
		var Cate = null;

		if ( TargetEle == "FirstCate" )
		{
			getSub = document.getElementById("SecondCate");
			Cate = "ÁßºÐ·ù";

			getThird = document.getElementById("ThirdCate");
			getThird.options.length = 0;

			op = new Option("ÁßºÐ·ù¸¦ ¼±ÅÃÇÏ¿© ÁÖ½Ê½Ã¿À", "");
			getThird.options[0] = op;
		}
		else
		{
			getSub = document.getElementById("ThirdCate");
			Cate = "¼ÒºÐ·ù";
		}

		getSub.options.length = 0;

		if ( xRows.length > 0 )
		{
			//Ä«Å×°í¸® ¼±ÅÃ Á¾·ù°¡ selectBox mulipleÀÌ ¾Æ´Ò¶§(drop downÀÏ¶§)
			if ( EleType == "false" )
			{
				for ( var i = 0 ; i <= xRows.length ; i++ )
				{
					if ( i == 0 )
					{
						opValue = "";
						opText = Cate;
					}
					else
					{
						opValue = xRows[i - 1].childNodes[0].firstChild.nodeValue;
						opText = xRows[i - 1].childNodes[1].firstChild.nodeValue;
					}

					op = new Option(opText, opValue);
					getSub.options[i] = op;
				}
			}
			else
			{
				for ( var i = 0 ; i < xRows.length ; i++ )
				{
					opValue = xRows[i].childNodes[0].firstChild.nodeValue;
					opText = xRows[i].childNodes[1].firstChild.nodeValue;

					op = new Option(opText, opValue);
					getSub.options[i] = op;
				}
			}
		}
		else
		{
			op = new Option("µî·ÏµÈ "+ Cate +"°¡ ¾ø½À´Ï´Ù", "");
			getSub.options[0] = op;
		}
	}
//-->