function Toggle(item) {  // ¸Þ´º Å¬¸¯½Ã Åä±Û
	if (!document.getElementById(item))
	{
		return;
	}
   obj=document.getElementById(item);
   visible=(obj.style.display!="none")
   key=document.getElementById("x_" + item);
   if (visible) {
     obj.style.display="none";
     //key.innerHTML="<img src='/images/sub3_Making_button.jpg' border='0'>";
   } else {
      obj.style.display="block";
      //key.innerHTML="°ßÀû³»±â Ãë¼Ò";
   }
}

function Expand() { // ¸Þ´º ÀüºÎ ¿­±â
   
   divs=document.getElementsByTagName("DIV");
   for (i=0;i<divs.length;i++) {
     divs[i].style.display="block";
     key=document.getElementById("x_" + divs[i].id);
     key.innerHTML="<img src='../images/textfolder.gif' border='0'>";
   }
}

function Collapse() {  // ¸Þ´º ÀüºÎ ´Ý±â

   divs=document.getElementsByTagName("DIV");
   for (i=0;i<divs.length;i++) {
     divs[i].style.display="none";
     key=document.getElementById("x_" + divs[i].id);
     key.innerHTML="<img src='../images/folder.gif' border='0'>";
   }
}

	function showNotice(serial)
	{
		centerwindow('send_to_all', '/notice.asp?serial='+serial, 400, 405);
		//return false;
	}
	
		function showNotice2(serial)
	{
		centerwindow('send_to_all', '/n_notice.asp?serial='+serial, 400, 480);
		//return false;
	}
	
	//È­¸é Áß¾Ó¿¡ »õ Ã¢À» ¶ç¿ì±â À§ÇØ¼­ ½ÃÀÛ ÁÂÇ¥¸¦ ±¸ÇÏ´Â ÇÔ¼ö
	function getwidth(x)
	{
		return ((screen.width / 2) - (x / 2));
	}
			
	function getheight(y)
	{
		return ((screen.height / 2) - (y / 2));
	}
			
	function openwindow(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
	{
		toolbar_str = toolbar ? 'yes' : 'no';
		menubar_str = menubar ? 'yes' : 'no';
		statusbar_str = statusbar ? 'yes' : 'no';
		scrollbar_str = scrollbar ? 'yes' : 'no';
		resizable_str = resizable ? 'yes' : 'no';
		window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
		
	}	

	function centerwindow(name, url, width, height)
	{

		var pos_left;
		var pos_top;
	//	var width=640;
	//	var height=480;
			
		pos_left = getwidth(width);
		pos_top = getheight(height);
			
		openwindow(name, url, pos_left, pos_top, width, height, 0, 0, 0, 1, 0);
		return false;
	}
	
	function goBrandShop(value)
	{
		location.href="/brand.asp?bid="+value;
	}

	function findItem(form)
	{
		if(form.s.value.length == 0)
		{
			alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			form.s.focus();
			return false;
		}
		return true;
	}


