	//±âº» ÀÚ¹Ù½ºÅ©¸³Æ®

	// ±âº» ¼³Á¤
	var isDOM = (document.getElementById ? true : false);
	var isIE4 = ((document.all && !isDOM) ? true : false);
	var isNS4 = (document.layers ? true : false);
	var isNS = navigator.appName == "Netscape";

	// ÁöÁ¤µÈ ´ë»óÀ» Ã£´Â´Ù.
	function getRef(id)
	{
		if(isDOM) return document.getElementById(id);
		if(isIE4) return document.all[id];
		if(isNS4) return document.layers[id];
	}

	// showBtn(¹öÆ°width, ½ÇÇàµÉÇÔ¼ö,¹öÆ°TEXT, ¹öÆ°icon,type)
	function showBtn(func,text,type,width,icon)
	{
		   // width ¸¦ ³ÖÀ¸¸é ¾ÆÀÌÄÜÀÇ Å©±â¸¦ Á¶Á¤ÇÒ ¼ö °¡ÀÖ´Ù. Áï ¿©¹éÀ» ÁÙÀÏ ¼ö ÀÖ´Ù.
		   var btn = "";
		   if(icon) icon = "<img src='"+icon+"'> ";
		   else icon = "";
		   var button_style = "background-color:transparent; color:transparent; cursor:hand; border:none; width:" + width;
			
			 if(type == "a")
			{
				// A Type
				btn += "<button onfocus='this.blur()' style='" + button_style + "' onClick=\"" + func + "\">";
				btn += "  <table width='" + width + "' cellspacing='0' cellpadding='0'>";
				btn += "    <tr style='height:23px;'>";
				btn += "      <td style='width:5px;' background='/program/images/admin/make_button/button_a_l.gif'></td>";
				btn += "      <td style='font-size:9pt; text-align:center; padding:2 0 0 0;' background='/program/images/admin/make_button/button_a_c.gif'>" + icon + text + "</td>";
				btn += "      <td style='width:5px;' background='/program/images/admin/make_button/button_a_r.gif'></td>";
				btn += "    </tr>";
				btn += "  </table>";
				btn += "</button>";
			}
			else if(type == "b")
			{
				// B Type
				btn += "<button onfocus='this.blur()' style='" + button_style + "' onClick=\"" + func + "\">";
				btn += "  <table width='" + width + "' cellspacing='0' cellpadding='0'>";
				btn += "    <tr style='height:22px;'>";
				btn += "      <td style='width:5px;' background='/program/images/admin/make_button/button_b_l.gif'></td>";
				btn += "      <td style='font-size:9pt; text-align:center; padding:2 0 0 0;' background='/program/images/admin/make_button/button_b_c.gif'>" + icon + text + "</td>";
				btn += "      <td style='width:5px;' background='/program/images/admin/make_button/button_b_r.gif'></td>";
				btn += "    </tr>";
				btn += "  </table>";
				btn += "</button>";
			}
			else
			{
				// Default Type
				btn += "<button onfocus='this.blur()' style='" + button_style + "' onClick=\"" + func + "\">";
				btn += "  <table width='" + width + "' cellspacing='0' cellpadding='0'>";
				btn += "    <tr style='height:24px;'>";
				btn += "      <td style='width:5px;' background='/program/images/admin/make_button/button_l.gif'></td>";
				btn += "      <td style='font-size:9pt; text-align:center; padding:0 5 0 5;' background='/program/images/admin/make_button/button_c.gif'>" + icon + text + "</td>";
				btn += "      <td style='width:5px;' background='/program/images/admin/make_button/button_r.gif'></td>";
				btn += "    </tr>";
				btn += "  </table>";
				btn += "</button>";
			}
		   document.write(btn);
	}
	function goUrl(url){
		if(url.indexOf("?") == -1) url += "?"+new Date().getTime();
		else url += "&"+new Date().getTime();
		location.href = url;
	}
	function goUrlConfirm(str,url){
		if(!confirm(str)) return;
		if(url.indexOf("?") == -1) url += "?"+new Date().getTime();
		else url += "&"+new Date().getTime();
		location.href = url;
	}
	function goUrlPrompt(arr){
		var tmpsubject = prompt('ÇöÀç ½ÅÃ»È¸¿øÀÇ ¹®ÀÇ»çÇ×¿¡ ´ëÇÑ È¸½Å ´äº¯¸ÞÀÏÀÔ´Ï´Ù. ¾Æ·¡ ´äº¯À» ÀÔ·ÂÇÏ½ÅÈÄ È®ÀÎÀ» Å¬¸¯ÇÏ¼¼¿ä!','½ÅÃ»ÇÏ½Å ÀÎÆ®¶ó³Ý È¸¿ø°¡ÀÔ°ÇÀÌ Ã³¸® µÇ¾ú½À´Ï´Ù.·Î±×ÀÎÈÄ ¹Ýµå½Ã °³ÀÎÁ¤º¸ ¼öÁ¤ÂÊ¿¡¼­ »çÁøÀ» Ã·ºÎÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù');
		if(tmpsubject != null){
			location.href = arr+"&add_body="+tmpsubject+"&"+new Date().getTime();
		}
	}


	//-- ÀÌ¹ÌÁö »çÀÌÁî·Î ÆË¾÷À» ¿­¾î¼­ º¸¿©ÁÖ±â --//
	function ViewImageOriginal(ifile,ix,iy,ititle) { 
		var win;
		var sWidth;
		var sHeight;
		var NS = (document.layers) ? 1 : 0;
		win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no,resizable=yes");
		if (NS) {
			sWidth = win.innerWidth;
			sHeight = win.innerHeight;
		} else {
			sWidth = win.document.body.clientWidth;
			sHeight = win.document.body.clientHeight;
		}
		/*
		if(sWidth!=ix || sHeight!=iy) {
			win.close();
			setTimeout("ViewImage('"+ifile+"',"+ix+","+iy+",'"+ititle+"')", 250);
			return;
		}
		*/
		win.document.open();
		win.document.write("<html><head><title>"+ititle+"</title>");
		win.document.write("</head><body>");
		win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
		win.document.write("<img src="+ifile+"></div></body></html>");
		win.document.close();
	}

	//-- ÀÌ¹ÌÁö »çÀÌÁî·Î ÆË¾÷À» ¿­¾î¼­ º¸¿©ÁÖ±â --//
	function ViewImage(ifile,ix,iy,ititle) { 
		var win;
		var sWidth;
		var sHeight;
		var NS = (document.layers) ? 1 : 0;
		
		if(ix > screen.availWidth) ix = screen.availWidth;
		if(iy > screen.availHeight) iy = screen.availHeight;

		win = window.open("","imageviewer","width="+ix+",height="+iy+",top=0,left=0,menubar=no,toolbar=no,resizable=yes");
		
		if (NS) {
			sWidth = win.innerWidth;
			sHeight = win.innerHeight;
		} else {
			sWidth = win.document.body.clientWidth;
			sHeight = win.document.body.clientHeight;
		}
		/*
		if(sWidth!=ix || sHeight!=iy) {
			win.close();
			setTimeout("ViewImage('"+ifile+"',"+ix+","+iy+",'"+ititle+"')", 250);
			return;
		}
		*/

		win.document.open();
		win.document.write("<html><head><title>"+ititle+"</title>");
		win.document.write("</head><body>");
		win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
		win.document.write("<img src="+ifile+" onclick='self.close();' width="+ix+" heght="+iy+" ></div></body></html>");
		win.document.close();
	}

	// ¹Ù·Î°¡±â ¹öÆ° ¸¸µé±â 
	function go_button(url, text, icon, width, type)
	{
		if(url)
		{
			button("document.location.href='" + url + "'", text, icon, width, type);
		}
	}

	// »õÃ¢ ¿­±â
	function open_window(url, title, option)
	{
		window.open(url, title, option);
	}

	// »õÃ¢ ¿­±â
	function newWindow(url, title, option)
	{
		window.open(url, title, option);
	}

	// ÂÊÁöÇÔ ¿­±â
	function letterWindow(url, title, option)
	{
		//window.open(url,'letter','top=20,left=50,width=600,height=500,scrollbars=yes');
		
		var w = 600;
		var h = 500;
		var scroll = "yes";
		var myname = "letter";
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
		win = window.open(url, myname, winprops)

	}

	// »ýÈ°Á¤º¸ ¿­±â
	function infoWindow(url, title, option)
	{
		//window.open(url,'info','top=0,left=0,width=780,height=500,scrollbars=yes,status=yes,resizable');

		var w = 780;
		var h = 500;
		var scroll = "yes";
		var myname = "info";
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',status=yes,resizable'
		win = window.open(url, myname, winprops)
	}

	// »çÀå ¿­±â
	function detailWindow(url, title, option)
	{
		//window.open(url,'detail','top=20,left=50,width=400,height=500,scrollbars=yes,status=yes');

		var w = 400;
		var h = 520;
		var scroll = "yes";
		var myname = "detail";
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',status=yes'
		win = window.open(url, myname, winprops)
	}

	// ¼³¹®Á¶»ç ¿­±â
	function surveyWindow(url, title, option)
	{
		//window.open(url,'survey','top=20,left=50,width=640,height=400,scrollbars=yes');

		var w = 640;
		var h = 400;
		var scroll = "yes";
		var myname = "survey";
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
		win = window.open(url, myname, winprops)
	}

	// NEWS & SCHEDULE ¿­±â
	function newsWindow(url, title, option)
	{
		//window.open(url,'news','top=20,left=50,width=600,height=500,scrollbars=yes');

		var w = 600;
		var h = 500;
		var scroll = "yes";
		var myname = "news";
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
		win = window.open(url, myname, winprops)
	}
	// NEWS & SCHEDULE ¿­±â
	function newsWindow1(url, title, option)
	{
		//window.open(url,'win2','top=20,left=50,width=600,height=400,scrollbars=yes');

		var w = 600;
		var h = 400;
		var scroll = "yes";
		var myname = "win2";
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
		win = window.open(url, myname, winprops)
	}
	// NEWS & SCHEDULE ¿­±â
	function newsWindow2(url, title, option)
	{
		//window.open(url,'win3','top=20,left=50,width=400,height=560,scrollbars=yes');

		var w = 400;
		var h = 560;
		var scroll = "yes";
		var myname = "win3";
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
		win = window.open(url, myname, winprops)
	}
	
	// ´ÙÀÌ¾î¸® ÇÁ¸°Æ® ÇÏ±â
	function diaryPrint(url, title, option)
	{
		//window.open(url,'win3','top=20,left=50,width=400,height=560,scrollbars=yes');

		var w = 620;
		var h = 560;
		var scroll = "yes";
		var myname = "diaryPrint";
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
		win = window.open(url, myname, winprops)
	}

		// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	function write_flash(movie, width, height, quality, scale, wmode, FlashVars)
	{
		var tag = "<object width='"+width+"' height='"+height+"' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0'>";
		tag += "<param name=movie value='"+movie+"'>";

		if(quality != "") tag += "<param name=quality value='"+quality+"'>";
		if(scale != "") tag += "<param NAME=scale VALUE='"+scale+"'> ";
		if(wmode != "") tag += "<param name='wmode' value='"+wmode+"'>";
		if(FlashVars != "") tag += "<param name=FlashVars value='"+FlashVars+"'>";

		tag += "<embed src='"+movie+"' width='"+width+"' height='"+height+"'";
		if(FlashVars != "") tag += " FlashVars='"+FlashVars+"'";
		if(quality != "") tag += " quality='"+quality+"'";
		tag += " pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'></embed>";

		tag += "</object>";

		document.write(tag);
	}

// ¼³¹®Á¶»ç ¿­±â
	function popup_breast()
	{
		window.open('/breast.asp','','top=20,left=50,width=720,height=500,scrollbars=yes');

		/*
		var url = "/breast.asp";
		var w = 720;
		var h = 500;
		var scroll = "yes";
		var myname = "popup_breast";
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
		win = window.open(url, myname, winprops)
		*/
	}

// À¯¹æ¾Ï ÆË
	function opener_go(url)
	{
		//alert(url);
		opener.location.href = url;
		self.close();
	}

	// 2008-05-20  ºê·Î¼Å ¿ÀÇÂ(ÇÃ·¡½¬ ¿¡¼­ È£Ãâ)
	function brochure_open()
	{
		window.open('/brochure/brochure4.asp','','top=20,left=50,width=822,height=760,resizable=no,status=yes');
		
	}

	// 2008-05-28  ºê·Î¼Å ´Ù¿î·Îµå(ÇÃ·¡½¬ ¿¡¼­ È£Ãâ)
	function brochure_save(v1)
	{
		location.href="/brochure/download.asp?v1="+v1+"&"+new Date().getTime();
		
	}




