//¸Þ´º ¸µÅ©

function m_01(menuName){  //01µ¿»ç¼·ÀÌ¶õ
 if(menuName=="01"){
  location.href="/dongsasub/dongsasub.asp?dss_board=dongsasub";
 }else if(menuName=="02"){
	location.href="/dongsasub/dongsasub.asp?dss_board=history";
 }else if(menuName=="03"){
	location.href="/dongsasub/dongsasub.asp?dss_board=notice";
 }else if(menuName=="04"){
	location.href="/dongsasub/dongsasub.asp?dss_board=support";
 }else if(menuName=="04_2"){
	location.href="/dongsasub/support_2.asp";
 }
}

function m_02(menuName){  //02µ¿»ç¼·¼ö·ÃÈ¸
 if(menuName=="01"){
  location.href="/training/schedule.asp?dss_board=schedule";
 }else if(menuName=="02"){
	location.href="/training/schedule.asp?dss_board=dmap";
 }else if(menuName=="03"){
	location.href="/training/schedule.asp?dss_board=participation";
 }else if(menuName=="04"){
	location.href="/training/schedule.asp?dss_board=impressions";
 }
}

function m_03(menuName){  //03µ¿»ç¼·ÁÖÁ¦
 if(menuName=="01"){
  location.href="/subject/subject_1.asp?dss_board=subject1";
 }else if(menuName=="02"){
	location.href="/subject/subject_1.asp?dss_board=subject2";
 }else if(menuName=="03"){
	location.href="/subject/subject_1.asp?dss_board=subject3";
 }
}

function m_04(menuName){  //04µ¿»ç¼·À¥Áø
 if(menuName=="01"){
  location.href="/webzine/book.asp?dss_board=book";
 }else if(menuName=="02"){
	location.href="/webzine/book.asp?dss_board=ddam";
 }else if(menuName=="03"){
	location.href="/webzine/book.asp?dss_board=column";
 }else if(menuName=="04"){
	location.href="/webzine/book.asp?dss_board=lecture";
 }else if(menuName=="05"){
	location.href="/webzine/book.asp?dss_board=week";
 }else if(menuName=="06"){
	location.href="/webzine/book.asp?dss_board=today";
 }
}

function m_05(menuName){  //05³ªÀÇ¸í»ó·Ï
 if(menuName=="01"){
  location.href="/meditations/medi_01.asp?dss_board=medi01";
 }else if(menuName=="02"){
	location.href="/meditations/medi_01.asp?dss_board=medi02";
 }else if(menuName=="03"){
	location.href="/meditations/medi_01.asp?dss_board=medi03";
 }else if(menuName=="04"){
	location.href="/meditations/medi_01.asp?dss_board=medi04";
 }else if(menuName=="05"){
	location.href="/meditations/medi_01.asp?dss_board=medi051";
 }else if(menuName=="05_2"){
	location.href="/meditations/medi_01.asp?dss_board=medi052";
 }else if(menuName=="05_3"){
	location.href="/meditations/medi_01.asp?dss_board=medi053";
 }else if(menuName=="05_4"){
	location.href="/meditations/medi_01.asp?dss_board=medi054";
 }else if(menuName=="05_5"){
	location.href="/meditations/medi_01.asp?dss_board=medi055";
 }else if(menuName=="06"){
	location.href="/meditations/medi_01.asp?dss_board=medi06";
 }else if(menuName=="07"){
	location.href="/meditations/medi_01.asp?dss_board=medi071";
 }else if(menuName=="07_2"){
	location.href="/meditations/medi_01.asp?dss_board=medi072";
 }else if(menuName=="08"){
	location.href="/meditations/medi_01.asp?dss_board=medi08";
 }else if(menuName=="09"){
	location.href="/meditations/medi_01.asp?dss_board=medi09";
 }else if(menuName=="10"){
	location.href="/meditations/medi_01.asp?dss_board=medi10";
 }else if(menuName=="11"){
	location.href="/meditations/medi_01.asp?dss_board=medi11";
 }else if(menuName=="12"){
	location.href="/meditations/medi_01.asp?dss_board=medi12";
 }
}

function m_06(menuName){  //06What's Dongsasub
 if(menuName=="01"){
  location.href="/what_is_dongsasub/what_is.asp?dss_board=whatis";
 }else if(menuName=="02"){
	location.href="/what_is_dongsasub/what_is.asp?dss_board=myview";
 }else if(menuName=="03"){
	location.href="/what_is_dongsasub/what_is.asp?dss_board=impressionabout";
 }
}

function m_happy(menuName){  //Àç´Ü¹ýÀÎ Çàº¹¸¶À»
 if(menuName=="01"){
  location.href="/happy/overview.asp";
 }else if(menuName=="02"){
	location.href="/happy/prospectus.asp";
 }else if(menuName=="03"){
	location.href="/happy/intro.asp";
 }else if(menuName=="04"){
	location.href="/happy/organ.asp";
 }else if(menuName=="05"){
	location.href="/happy/blueprint.asp";
 }
}

function m_etc(menuName){  //etc
 if(menuName=="home"){
  location.href="/main/main.asp";
 }else if(menuName=="login"){
	location.href="/etc/login.asp";
 }else if(menuName=="logout"){
	location.href="/include/logout.asp";
 }else if(menuName=="join"){
	location.href="/etc/join.asp";
 }else if(menuName=="help"){
	location.href="/etc/help.asp";
 }else if(menuName=="myinfo"){
	location.href="/etc/myinfo.asp";
 }else if(menuName=="sitemap"){
	location.href="/etc/sitemap.asp";
 }else if(menuName=="mail"){
	 location.href="mailto:webmaster@dongsasub.org";
 }else if(menuName=="cafe"){
	 location.href="/community/main.asp";
 }else if(menuName=="happy"){
	 location.href="javascript:void(window.open('/happy/overview.asp','happy','left=50,top=50,width=700,height=700') )";
 }
}



/*
===============================================================================
* °øÅë
===============================================================================
*/

//ÀÌ¹ÌÁö¸µÅ© Á¡¼± ¾ø¾Ö±â(ÀÌ¹ÌÁö¸ÊÀº onfocus='this.blur()' Á÷Á¢ÀÔ·Â)
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;

//ÇÏ·çµ¿¾È ¿­Áö¾ÊÀ½
function setCookie( name, value, expiredays )
{
    var todayDate = new Date();
    todayDate.setDate( todayDate.getDate() + expiredays );
    document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

function closeWin()
{
    if ( document.forms[0].Notice.checked )
        setCookie( "popup", "ok" ,1);
    self.close();
}

function notice_getCookie( name ) 
{ 
        var nameOfCookie = name + "="; 
        var x = 0; 
        while ( x <= document.cookie.length ) 
        { 
                var y = (x+nameOfCookie.length); 
                if ( document.cookie.substring( x, y ) == nameOfCookie ) { 
                        if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) 
                                endOfCookie = document.cookie.length; 
                        return unescape( document.cookie.substring( y, endOfCookie ) ); 
                } 
                x = document.cookie.indexOf( " ", x ) + 1; 
                if ( x == 0 ) 
                        break; 
        } 
        return ""; 
} 

function chng_bg(obj){
obj.bgColor='#FFFFFF'; 
}

function chng_back(n_obj){
n_obj.bgColor='#DBE9F6'; 
}
/*
/////////// ÆË¾÷ html ¿¡ »ðÀÔºÎºÐ :
<form>
<table cellpadding="0" cellspacing="0" width="415">
 <tr>
  <td><img src="/popup/popup_box.jpg"></td>
 </tr>
   <tr>
  <td bgcolor="#EDEDED" height="40" valign="top">
  <table cellpadding="0" cellspacing="0" width="415" align="center">
   <tr>
    <td height="40" align="right" align="center">
     <input type="checkbox" name="Notice" onClick="closeWin();">
     <font face="µ¸¿ò" size="2" color="#343434">ÇÏ·ç µ¿¾È ¿­Áö ¾ÊÀ½</font>
             <a href="#" onClick="javascript:history.onclick=closeWin()"
                                         style="font-family:±¼¸²Ã¼;font-size:9pt;background-color:#ffffff;color:#3300cc;">[´Ý±â]</a>
     </td>    
   </tr>
  </table></td>
   </tr>
</table>
</form>

/////////// ÆË¾÷¶ç¿ì´Â html ¿¡ »ðÀÔºÎºÐ :
<script language="JavaScript"> 
<!-- JavaScript 
if ( notice_getCookie( "popup" ) != "ok" ) 
{ 
 window.open('/popup/popup.html','_blank','toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable=no,width=460,height=580');
} 
// - JavaScript - --> 
*/

//½½¶óÀÌµå¸Þ´º
var stmnGAP1 = 360; //ÃÊ±â »ó´Ü°£°Ý
var stmnGAP2 = 100; //½ºÅ©·Ñ ÈÄ »ó´Ü°£°Ý
var stmnBASE = 360;
var stmnActivateSpeed = 200; 
var stmnScrollSpeed = 10; 

        function RefreshStaticMenu()
        {
                var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;

                stmnStartPoint = parseInt(STATICMENU.style.top, 10);
                stmnEndPoint = document.body.scrollTop + stmnGAP2;
                if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;

                if ( stmnStartPoint != stmnEndPoint ) {
                        stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
                        STATICMENU.style.top = parseInt(STATICMENU.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
                        stmnRefreshTimer = stmnScrollSpeed;
                }
                                         else {
                        stmnRefreshTimer = stmnActivateSpeed;
                }

                setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
        }



        function InitializeStaticMenu()
        {
                STATICMENU.style.top = document.body.scrollTop + stmnBASE;
                RefreshStaticMenu();
                }
/*
½½¶óÀÌµå¸Þ´º : html ¿¡ »ðÀÔºÎºÐ
<div id="STATICMENU" style="width:81px; height:294px; position:absolute; left:878px; top:231px; z-index:100;" >
<table cellpadding="0" cellspacing="0">
    <table align="center" cellpadding="0" cellspacing="0" width="140" height="20">
        <tr>
            <td>
            </td>
        </tr>
    </table>
</div>     
<script language="javascript">InitializeStaticMenu();</script> 
*/

//·Ñ¿À¹ö ÀÌ¹ÌÁö
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_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_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 winOpen (doc, wname, top, left, width, height) {
  window.open(doc, wname, 'scrollbars=no,resizable=yes,top='+top+',left='+left+',width='+width+',height='+height);
}
function winOpen2 (doc, wname, top, left, width, height) {
  window.open(doc, wname, 'scrollbars=yes,resizable=no,top='+top+',left='+left+',width='+width+',height='+height);
}

//·¹ÀÌ¾î º¸ÀÌ±â ¼û±â±â(À¥gisºÐ¼®)
function layerdisplay5 ( name ) {
  div1 = document.getElementById('layer01');
  div2 = document.getElementById('layer02');
  div3 = document.getElementById('layer03');
  div4 = document.getElementById('layer04');
  div5 = document.getElementById('layer05');

  if ( name == 'layer01' ) {
    div1.style.display = 'block';
    div2.style.display = 'none';
    div3.style.display = 'none';
    div4.style.display = 'none';
    div5.style.display = 'none';
  } else if ( name == 'layer02' ) {
    div1.style.display = 'none';
    div2.style.display = 'block';
    div3.style.display = 'none';
    div4.style.display = 'none';
    div5.style.display = 'none';

  } else if ( name == 'layer03' ) {
    div1.style.display = 'none';
    div2.style.display = 'none';
    div3.style.display = 'block';
    div4.style.display = 'none';
    div5.style.display = 'none';

  } else if ( name == 'layer04' ) {
    div1.style.display = 'none';
    div2.style.display = 'none';
    div3.style.display = 'none';
    div4.style.display = 'block';
    div5.style.display = 'none';

  } else if ( name == 'layer05' ) {
    div1.style.display = 'none';
    div2.style.display = 'none';
    div3.style.display = 'none';
    div4.style.display = 'none';
    div5.style.display = 'block';


  }
}
function layerdisplay4 ( name ) {
  div1 = document.getElementById('layer01');
  div2 = document.getElementById('layer02');
  div3 = document.getElementById('layer03');
  div4 = document.getElementById('layer04');
  if ( name == 'layer01' ) {
    div1.style.display = 'block';
    div2.style.display = 'none';
    div3.style.display = 'none';
    div4.style.display = 'none';
  } else if ( name == 'layer02' ) {
    div1.style.display = 'none';
    div2.style.display = 'block';
    div3.style.display = 'none';
    div4.style.display = 'none';
  } else if ( name == 'layer03' ) {
    div1.style.display = 'none';
    div2.style.display = 'none';
    div3.style.display = 'block';
    div4.style.display = 'none';
  } else if ( name == 'layer04' ) {
    div1.style.display = 'none';
    div2.style.display = 'none';
    div3.style.display = 'none';
    div4.style.display = 'block';
  }
}
function layerdisplay3 ( name ) {
  div1 = document.getElementById('layer01');
  div2 = document.getElementById('layer02');
  div3 = document.getElementById('layer03');
  if ( name == 'layer01' ) {
    div1.style.display = 'block';
    div2.style.display = 'none';
    div3.style.display = 'none';
  } else if ( name == 'layer02' ) {
    div1.style.display = 'none';
    div2.style.display = 'block';
    div3.style.display = 'none';
  } else if ( name == 'layer03' ) {
    div1.style.display = 'none';
    div2.style.display = 'none';
    div3.style.display = 'block';
  }
}
function layerdisplay2 ( name ) {
  div1 = document.getElementById('layer3');
  div2 = document.getElementById('layer4');
  div3 = document.getElementById('layer6');

  if ( name == 'layer3' ) {
    div1.style.display = 'block';
    div2.style.display = 'none';
    div3.style.display = 'none';

  } else if ( name == 'layer4' ) {
    div1.style.display = 'none';
    div2.style.display = 'block';
    div3.style.display = 'none';

  } else if ( name == 'layer6' ) {
    div1.style.display = 'none';
    div2.style.display = 'none';
    div3.style.display = 'block';

  }
}


//Á¡ÇÁ¸Þ´º
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


//·Ñ¿À¹ö¸Þ´º ½ÃÀÛ
var GLV_x=0;
var GLV_y=0;
var GLV_curLayerWidth = new Array();
var GLV_curLayerHeight = new Array();
var GLV_curLayerX = new Array();
var GLV_curLayerY = new Array();
var GLV_menuOn = new Array();
var GLV_gap = new Array();
var GLV_currentLayer = new Array();
var GLV_currentROitem = new Array();
var GLV_hasBeenOver = new Array();
var GLV_doReset = new Array();
var GLV_lastKey = new Array();
var GLV_menuXY = new Array();
var GLV_date = new Array();
var GLV_timeout = new Array();
var GLV_timeoutRef = new Array();
var GLV_onlyOnLoad = new Array();
var GLV_dontHideOnMouseUp = new Array();
var GLV_date = new Date();
var GLV_restoreMenu = new Array();
var GLV_timeout_count=0;
var GLV_timeout_pointers = new Array();
var GLV_dontFollowMouse = new Array();

	//browsercheck...
function GL_checkBrowser(){
	this.dom= (document.getElementById);
	this.op=this.opera= (navigator.userAgent.indexOf("Opera")>-1);
	this.konq=  (navigator.userAgent.indexOf("Konq")>-1);
	this.ie4= (document.all && !this.dom && !this.op && !this.konq);
	this.ie5= (document.all && this.dom && !this.op && !this.konq);
	this.ns4= (document.layers && !this.dom && !this.konq);
	this.ns5= (!document.all && this.dom && !this.op && !this.konq);
	this.ns6= (this.ns5);
	this.bw=  (this.ie4 || this.ie5 || this.ns4 || this.ns6 || this.op || this.konq);
	return this;
}
bw= new GL_checkBrowser();

	//NS4 resize fix.
if(document.layers){
    scrX= innerWidth; scrY= innerHeight;
    onresize= function()	{if(scrX!= innerWidth || scrY!= innerHeight)	{history.go(0);}};
}
	//Returns css
function GL_getObjCss(obj){								
	return bw.dom? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?document.layers[obj]:0;
};
function GL_isObjCss(obj){								
	flag = bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj]:0;
	if (flag)	return true;
};
function GL_getObj(obj){
//	nest= (!nest)?"":"document."+nest+".";
	nest="";
	this.el= bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document."+obj):document.getElementById(obj);	
   	this.css= bw.ns4?this.el:this.el.style;
	this.ref= bw.ns4?this.el.document:document;		
	this.x= (bw.ns4||bw.op)?this.css.left:this.el.offsetLeft;
	this.y= (bw.ns4||bw.op)?this.css.top:this.el.offsetTop;
	this.height= (bw.ie4||bw.ie5||bw.ns6)?this.el.offsetHeight:bw.ns4?this.ref.height:bw.op?this.css.pixelHeight:0;
	this.width= (bw.ie4||bw.ie5||bw.ns6)?this.el.offsetWidth:bw.ns4?this.ref.width:bw.op?this.css.pixelWidth:0;
	return this;
}
function GL_initLayers() {
	if(bw.ns4) document.captureEvents(Event.MOUSEMOVE);
	GL_timeout_func();
}
function GL_updateTime(WMid)	{
	GLV_date = new Date();
	GLV_timeout[WMid] = GLV_date.getTime();
}
function GL_doResetAll(WMid) {
	var resetSubMenus="";
	eval('resetSubMenus = GL'+WMid+'_resetSubMenus();');
	if (GLV_doReset[WMid] && resetSubMenus) {
		GLV_doReset[WMid] = false;
		GL_hideAll(WMid);
		if (GLV_onlyOnLoad[WMid])	GL_restoreMenu(WMid);
	}
}
function GL_timeout_func()	{
	GLV_date = new Date();
	var stuff="";
	for (var a=0;a<GLV_timeout_count;a++)	{
		WMid = GLV_timeout_pointers[a];
		if (GLV_date.getTime()-GLV_timeout[WMid] > GLV_timeoutRef[WMid])	{
			GL_doResetAll(WMid);
		}
	}
//window.status = GLV_date.getTime()-GLV_timeout[WMid]-GLV_timeoutRef[WMid]
	window.setTimeout("GL_timeout_func();",200);
}
function GL_resetAll(WMid) {
	if (!GLV_doReset[WMid]) {
		GL_updateTime(WMid);
		GLV_doReset[WMid] = true;
	}
}
function GL_mouseUp(WMid,e) {
	GLV_doReset[WMid] = false;
	if (!GLV_dontHideOnMouseUp[WMid])	{
		GL_hideAll(WMid);
		if (GLV_onlyOnLoad[WMid])	GL_restoreMenu(WMid);
	}
}
function GL_stopMove(WMid) { 
	GLV_menuOn[WMid] = null;	
}
function GL_restoreMenu(WMid)	{
	eval('GL'+WMid+'_restoreMenu()');
}
function GL_doTop(WMid,id) { 
	GL_hideAll(WMid);
	if (GL_isObjCss(id))	{
		GLV_menuOn[WMid] = GL_getObjCss(id);
		GLV_menuOn[WMid].visibility = "visible";

		eval('GL'+WMid+'_doTop(WMid,id)');

		var layerObj = GL_getObj(id);
		GLV_curLayerHeight[WMid] = layerObj.height;
		GLV_curLayerWidth[WMid] = layerObj.width;
		GLV_curLayerX[WMid] = layerObj.x;
		GLV_curLayerY[WMid]  = layerObj.y;
		GLV_currentLayer[WMid] = id;
		GLV_hasBeenOver[WMid]=0;
	}
}
	//Capturing mousemove
function GL_getMouse(e) {
	GLV_x= (bw.ns4||bw.ns5)?e.pageX:(bw.ie4||bw.op)?event.x:(event.x-2)+document.body.scrollLeft;
	GLV_y= (bw.ns4||bw.ns5)?e.pageY:(bw.ie4||bw.op)?event.y:(event.y-2)+document.body.scrollTop;
}
function GL_mouseMoveEvaluate(WMid)	{
	if (GLV_gap[WMid] && GLV_currentLayer[WMid]!=null)	{
		if (	GLV_x+GLV_gap[WMid]-GLV_curLayerX[WMid] <0 || GLV_y+GLV_gap[WMid]-GLV_curLayerY[WMid] <0 || GLV_curLayerX[WMid]+GLV_curLayerWidth[WMid]+GLV_gap[WMid]-GLV_x <0 || GLV_curLayerY[WMid]+GLV_curLayerHeight[WMid]+GLV_gap[WMid]-GLV_y <0)	{
			if (GLV_hasBeenOver[WMid])	{
				GLV_doReset[WMid]=true;
			}
		} else {
			GL_updateTime(WMid);
			GLV_hasBeenOver[WMid]=1;
			GLV_doReset[WMid]=false;	// Added 120902: When on the layer we do not want the layer to be reset... 
		}
	}
}
function GL_hideAll(WMid)	{
	GLV_doReset[WMid] = false;
	GLV_currentLayer[WMid] = null;
	if (GL_isObjCss(GLV_lastKey[WMid]) && GL_getObjCss(GLV_lastKey[WMid]))	{	eval('GL'+WMid+'_hideCode()');	}
	GLV_hasBeenOver[WMid]=0;
}
//·Ñ¿À¹ö¸Þ´º ³¡

function layermenu ( name ) {
  div1 = document.getElementById('Menu02080');
  div2 = document.getElementById('Menu02081');
  div3 = document.getElementById('Menu02082');
  div4 = document.getElementById('Menu02083');
  if ( name == 'Menu02080' ) {
    div1.style.visibility = 'visible';
    div2.style.visibility = 'hidden'; 
    div3.style.visibility = 'hidden'; 
    div4.style.visibility = 'hidden'; 
  } else if ( name == 'Menu02081' ) {
    div1.style.visibility = 'hidden'; 
    div2.style.visibility = 'visible';
    div3.style.visibility = 'hidden'; 
    div4.style.visibility = 'hidden'; 
  } else if ( name == 'Menu02082' ) {
    div1.style.visibility = 'hidden'; 
    div2.style.visibility = 'hidden'; 
    div3.style.visibility = 'visible';
    div4.style.visibility = 'hidden'; 
  } else if ( name == 'Menu02083' ) {
    div1.style.visibility = 'hidden'; 
    div2.style.visibility = 'hidden'; 
    div3.style.visibility = 'hidden'; 
    div4.style.visibility = 'visible';
  }
}
function layermenureset () {
  div1 = document.getElementById('Menu02080');
  div2 = document.getElementById('Menu02081');
  div3 = document.getElementById('Menu02082');
  div4 = document.getElementById('Menu02083');
    div1.style.visibility = 'hidden';
    div2.style.visibility = 'hidden'; 
    div3.style.visibility = 'hidden'; 
    div4.style.visibility = 'hidden'; 
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function layerdisplay ( name ) {
  div1 = document.getElementById( name );
  abc = div1.style.display;
  if ( abc == 'none' ) {
    div1.style.display = 'block';
  } else if ( abc == 'block' ) {
    div1.style.display = 'none';
  }
}




/*
===============================================================================
*  i.e patch
===============================================================================
*/

// flashWrite 
function flashWrite(url,w,h,id,bg,vars,win){ 

 //code
 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='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>"; 

 //code print
 document.write(flashStr); 

} 
//avi
function aviPlay(src,w,h) { 
document.write('<embed src="'+src+'" width='+w+' height='+h+'>') 
} 


//ÆË¾÷Ã¢ (°æ·Î,ÀÌ¸§,°¡·Î,¼¼·Î,½ºÅ©·Ñ,»çÀÌÁîÁ¶Àý)
function _winOpen(url, name, w, h, scroll, resizable)
{
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	scroll = (scroll=='yes') ? 'yes' : 'no';
	resizable = (resizable=='yes') ? 'yes' : 'no';
    var oPopup = window.open(url, name, 'width='+w+',height='+h+',top='+window_top+',left='+window_left+',status=no,scrollbars='+ scroll +',toolbar=no,menubar=no,resizable=' + resizable);
    if (oPopup==null) { alert('Â÷´ÜµÈ ÆË¾÷À» Çã¿ë ÇØ ÁÖ½Ê½Ã¿À.'); }
    return oPopup;
}

//ÆË¾÷Ã¢ (°æ·Î,ÀÌ¸§,°¡·Î,¼¼·Î,½ºÅ©·Ñ,»çÀÌÁîÁ¶Àý,TOP,LEFT)
function _winOpen2(url, name, w, h, scroll, resizable,top,left)
{
	var window_left = left;
	var window_top = top;
	var scroll = scroll;
	var top = top;
	var left = left;

	scroll = (scroll=='yes') ? 'yes' : 'no';
	resizable = (resizable=='yes') ? 'yes' : 'no';
    var oPopup = window.open(url, name, 'width='+w+',height='+h+',top='+window_top+',left='+window_left+',status=no,scrollbars='+ scroll +',toolbar=no,menubar=no,resizable=' + resizable);
    if (oPopup==null) { alert('Â÷´ÜµÈ ÆË¾÷À» Çã¿ë ÇØ ÁÖ½Ê½Ã¿À.'); }
    return oPopup;
}

 // »èÁ¦ °Ë»ç È®ÀÎ
 function recorddel(href) 
 {
	  if(confirm("ÇÑ¹ø »èÁ¦ÇÑ ÀÚ·á´Â º¹±¸ÇÒ ¹æ¹ýÀÌ ¾ø½À´Ï´Ù.\n\nÁ¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")){
			IFrm.location.href = href;

	  }
 }

// °ø¹éÀÔ·Â Á¦°Å
function Trim(str) {
	var count = str.length, len = count, st = 0
    while ((st < len) && (str.charAt(st) <= ' ')) st++
    while ((st < len) && (str.charAt(len - 1) <= ' ')) len--

    return ((st > 0) || (len < count)) ? str.substring(st, len) : str   
}

// ÀüÃ¼¼±ÅÃ, ÇØÁ¦
function AllCheck(val,Forms)
{
	var type = val;
	var fn = eval("document."+Forms);
	var len = fn.length;

	for(i=0;i<len;i++){
		if (fn.elements[i].name == "checkIdx[]"){
			if(type =="All"){
					fn.elements[i].checked = true;
			}else if(type =="AllFalse"){
					fn.elements[i].checked = false;
			}
		}
	}
}		


// Ã¼Å©»èÁ¦
function checkdel(Forms,url,targets)
{
	var fn = eval("document."+Forms);
	var len = fn.length;
	var k = 0;
	var no = "";

	for(i=0;i<len;i++){
	  if (fn.elements[i].name == "checkIdx[]" && fn.elements[i].checked)
			k++;
	}

	if(!k){
		alert("»èÁ¦ÇÏ½Ç Ç×¸ñÀ» ÇÏ³ªÀÌ»ó Ã¼Å©ÇØ ÁÖ¼¼¿ä.");
		return;
	}

	if (confirm("Ã¼Å©ÇÏ½Å ¸ñ·ÏÀ» »èÁ¦ ÇÏ°Ú½À´Ï±î?")){
		fn.target=targets;
		fn.action=url;
		fn.submit();
	}
}


 // ÀÌ¹ÌÁöÀÇ Å©±â¿¡ µû¶ó »õÃ¢ÀÇ Å©±â°¡ º¯°æµË´Ï´Ù.
 // zzzz´Ô²²¼­ ¾Ë·ÁÁÖ¼Ì½À´Ï´Ù. 2005/04/12
 function image_window(img){	
		
	  var w = img.tmp_width; 
	  var h = img.tmp_height; 
	  var winl = (screen.width-w)/2; 
	  var wint = (screen.height-h)/3; 
	  
	  if (w >= screen.width) { 
			winl = 0; 
			h = (parseInt)(w * (h / w)); 
	  } 

	  if (h >= screen.height) { 
			wint = 0; 
			w = (parseInt)(h * (w / h)); 
	  } 

	  var js_url = "<script language='JavaScript1.2'> \n"; 
			js_url += "<!-- \n"; 
			js_url += "var ie=document.all; \n"; 
			js_url += "var nn6=document.getElementById&&!document.all; \n"; 
			js_url += "var isdrag=false; \n"; 
			js_url += "var x,y; \n"; 
			js_url += "var dobj; \n"; 
			js_url += "function movemouse(e) \n"; 
			js_url += "{ \n"; 
			js_url += "  if (isdrag) \n"; 
			js_url += "  { \n"; 
			js_url += "    dobj.style.left = nn6 ? tx + e.clientX - x : tx + event.clientX - x; \n"; 
			js_url += "    dobj.style.top  = nn6 ? ty + e.clientY - y : ty + event.clientY - y; \n"; 
			js_url += "    return false; \n"; 
			js_url += "  } \n"; 
			js_url += "} \n"; 
			js_url += "function selectmouse(e) \n"; 
			js_url += "{ \n"; 
			js_url += "  var fobj      = nn6 ? e.target : event.srcElement; \n"; 
			js_url += "  var topelement = nn6 ? 'HTML' : 'BODY'; \n"; 
			js_url += "  while (fobj.tagName != topelement && fobj.className != 'dragme') \n"; 
			js_url += "  { \n"; 
			js_url += "    fobj = nn6 ? fobj.parentNode : fobj.parentElement; \n"; 
			js_url += "  } \n"; 
			js_url += "  if (fobj.className=='dragme') \n"; 
			js_url += "  { \n"; 
			js_url += "    isdrag = true; \n"; 
			js_url += "    dobj = fobj; \n"; 
			js_url += "    tx = parseInt(dobj.style.left+0); \n"; 
			js_url += "    ty = parseInt(dobj.style.top+0); \n"; 
			js_url += "    x = nn6 ? e.clientX : event.clientX; \n"; 
			js_url += "    y = nn6 ? e.clientY : event.clientY; \n"; 
			js_url += "    document.onmousemove=movemouse; \n"; 
			js_url += "    return false; \n"; 
			js_url += "  } \n"; 
			js_url += "} \n"; 
			js_url += "document.onmousedown=selectmouse; \n"; 
			js_url += "document.onmouseup=new Function('isdrag=false'); \n"; 
			js_url += "//--> \n"; 
			js_url += "</"+"script> \n"; 

	  var settings;

	  if (papa_is_gecko) {
			settings  ='width='+(w+10)+','; 
			settings +='height='+(h+10)+','; 
	  } else {
			settings  ='width='+w+','; 
			settings +='height='+h+','; 
	  }
	  settings +='top='+wint+','; 
	  settings +='left='+winl+','; 
	  settings +='scrollbars=no,'; 
	  settings +='resizable=yes,'; 
	  settings +='status=no'; 


	  win=window.open("","image_window",settings); 
	  win.document.open(); 
	  win.document.write ("<html><head> \n<meta http-equiv='imagetoolbar' CONTENT='no'> \n<meta http-equiv='content-type' content='text/html; charset="+papa_charset+"'>\n"); 
	  var size = "ÀÌ¹ÌÁö »çÀÌÁî : "+w+" x "+h;
	  win.document.write ("<title>"+size+"</title> \n"); 
	  if(w >= screen.width || h >= screen.height) { 
			win.document.write (js_url); 
			var click = "ondblclick='window.close();' style='cursor:move' title=' "+size+" \n\n ÀÌ¹ÌÁö »çÀÌÁî°¡ È­¸éº¸´Ù Å®´Ï´Ù. \n ¿ÞÂÊ ¹öÆ°À» Å¬¸¯ÇÑ ÈÄ ¸¶¿ì½º¸¦ ¿òÁ÷¿©¼­ º¸¼¼¿ä. \n\n ´õºí Å¬¸¯ÇÏ¸é ´ÝÇô¿ä. '"; 
	  } 
	  else 
			var click = "onclick='window.close();' style='cursor:pointer' title=' "+size+" \n\n Å¬¸¯ÇÏ¸é ´ÝÇô¿ä. '"; 
	  win.document.write ("<style>.dragme{position:relative;}</style> \n"); 
	  win.document.write ("</head> \n\n"); 
	  win.document.write ("<body leftmargin=0 topmargin=0 bgcolor=#dddddd style='cursor:arrow;'> \n"); 
	  win.document.write ("<table width=100% height=100% cellpadding=0 cellspacing=0><tr><td align=center valign=middle><img src='"+img.src+"' width='"+w+"' height='"+h+"' border=0 class='dragme' "+click+"></td></tr></table>");
	  win.document.write ("</body></html>"); 
	  win.document.close(); 

	  if(parseInt(navigator.appVersion) >= 4){win.window.focus();} 
 }


 //ÇÃ·¡½Ã
 function flash_movie(src, ids, width, height, wmode)
 {
	  var wh = "";
	  if (parseInt(width) && parseInt(height)) 
			wh = " width='"+width+"' height='"+height+"' ";
	  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' "+wh+" id="+ids+"><param name=wmode value="+wmode+"><param name=movie value="+src+"><param name=quality value=high><embed src="+src+" quality=high wmode="+wmode+" type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' "+wh+"></embed></object>";
 }

 // ¹Ìµð¾î
 function obj_movie(src, ids, width, height, autostart)
 {
	  var wh = "";
	  if (parseInt(width) && parseInt(height)) 
			wh = " width='"+width+"' height='"+height+"' ";
	  if (!autostart) autostart = false;
	  return "<embed src='"+src+"' "+wh+" autostart='"+autostart+"'></embed>";
 }
 
 // ÇÃ·¡½Ã, ¹Ìµð¾î Ãâ·Â
 function doc_write(cont)
 {
	  document.write(cont);
 }


// ÇÑ±ÛÆÄÀÏÀÎÁö °Ë»ç.
function FileKorNameFind(val){
 var str=val;														//ÆÄÀÏ °æ·Î¸¦ °¡Á®¿É´Ï´Ù
 var ii=str.lastIndexOf("\\")+1              //'\'ÀÌÀ§Ä¡¸¦ ¾Ë¾Æ³»¸é ÆÄÀÏ¸í¸¸ »Ì¾Æ³¾¼ö ÀÖ°ÚÁÒ..(+1ÇØÁà¾ßµÊ)
 var str1=str.substr(ii,str.length);           //¾Õ¿¡¼­ Ãß·Ã³½ ¹øÈ£·Î ÆÄÀÏ¸í¸¸ °¡Á®¿É´Ï´Ù..
 for(i=0;i<str1.length-1;i++){                  //¹Ýº¹¹®À» µ¹·Á¼­ ÇÑ±ÛÀÎÁö ¾Æ´ÑÁö °Ë»öÇÕ´Ï´Ù
  if(str1.charCodeAt(i)>12592){              //ÇÑ±Û ¾Æ½ºÅ°ÄÚµå°¡ 12593ºÎÅÍÀÔ´Ï´Ù
	  alert("ÇÑ±ÛÆÄÀÏ ÀÌ¹ÌÁö´Â ºê¶ó¿ìÀú¿¡¼­ ¾Èº¸ÀÌ°Å³ª ¹®Á¦°¡ »ý±æ¼ö ÀÖ½À´Ï´Ù.");          
	  return false;
  }else if(str1.charAt(i)=="+|\!@#$%^&*{}"){         //Æ¯¼ö¹®ÀÚ´Â Á÷Á¢ÀÔ·Â.
  alert("ÆÄÀÏ¸í¿¡ Æ¯¼ö¹®ÀÚ´Â ºê¶ó¿ìÀú¿¡¼­ ¾Èº¸ÀÌ°Å³ª ¹®Á¦°¡ »ý±æ¼ö ÀÖ½À´Ï´Ù.");
	  return false;
	}
 }
	return true;
}


//·¹ÀÌ¾î ¸®½ºÆ® 
function Layerdisplay(name,no,total) {

	for(var i = 0; i < total+1; i++) {
	  
	  posi = name+i;
	  div1 = document.getElementById(posi);
		if ( no == i ) {
		 if(div1.style.display == 'block'){
			 div1.style.display = 'none';
		 }else{
			 div1.style.display = 'block';
		 }
		} else {
		 div1.style.display = 'none';
	  }

	}
}


//Ã¼Å©¹Ú½º Ã¼Å© °Ë»ç
function mycheck(obj) {
  if (obj.length) {
	 for (var i=0; i<obj.length; i++) {
		if (obj[i].checked) return true;
	 }
  } else {
	 if (obj.checked) return true;
  }
  return false;
}


// ¾ÆÀÌÇÁ·¹ÀÓ ÀÚµ¿Å©±â ½ÇÇà
function IFrameResize(na) {
	eval("var PF = "+na+".document.body");
	var CF = document.all[na];
	CF.style.height = PF.scrollHeight + (PF.offsetHeight - PF.clientHeight)+20;
	CF.style.width = PF.scrollWidth + (PF.offsetWidth - PF.clientWidth);
	//alert(CF.style.width);
}


//ÆÄÀÏ ´Ù¿î·Îµå
function file_download(link) {
    document.location.href=link;
}



//±ÛÀÚ¼ö Á¦ÇÑ.
function length_count(filed, max_count){ 
var str; 
var str_count = 0; 
var cut_count = 0; 
var str_length = filed.value.length; 

for(k=0; k < str_length; k++){ 
str = filed.value.charAt(k); 
    if(escape(str).length > 4){ 
    str_count += 2; 
    }else{ 
    // (\r\nÀº 1byte Ã³¸®) 
        if(escape(str)=='%0A') { 
        } else { 
        str_count++; 
        } 
    } 
    if(max_count < str_count){ 
    alert("±ÛÀÚ¼ö°¡ "+ max_count +" byte ÀÌ»óÀº »ç¿ëºÒ°¡´ÉÇÕ´Ï´Ù"); 
    if(escape(str).length > 4) str_count -= 2; 
    else str_count--; 
    filed.value = filed.value.substring(0,k); 
    break; 
    } 
} 
eval("document.all."+ filed.name+"_length.innerHTML = str_count;"); 
} 



//±ÛÀÚ¼ö Á¦ÇÑ.
function length_count(filed, max_count){ 
var str; 
var str_count = 0; 
var cut_count = 0; 
var str_length = filed.value.length; 

for(k=0; k < str_length; k++){ 
str = filed.value.charAt(k); 
    if(escape(str).length > 4){ 
    str_count += 2; 
    }else{ 
    // (\r\nÀº 1byte Ã³¸®) 
        if(escape(str)=='%0A') { 
        } else { 
        str_count++; 
        } 
    } 
    if(max_count < str_count){ 
    alert("±ÛÀÚ¼ö°¡ "+ max_count +" byte ÀÌ»óÀº »ç¿ëºÒ°¡´ÉÇÕ´Ï´Ù"); 
    if(escape(str).length > 4) str_count -= 2; 
    else str_count--; 
    filed.value = filed.value.substring(0,k); 
    break; 
    } 
} 
eval("document.all."+ filed.name+"_length.innerHTML = str_count;"); 
} 



function postcall()
{
    otWindow =  
	window.open("/include/input_post.asp","otWin","scrollbars=yes,toolbar=no,width=500,height=250"); 
}
function postcall2()
{
    otWindow =  
	window.open("/Kmanage/inc/popup_post2.asp","otWin","scrollbars=yes,toolbar=no,width=500,height=250"); 
}



// µ¡±Û »èÁ¦
function CoDel(val)
{
	if(confirm('¼±ÅÃÇÏ½Å µ¡±ÛÀ» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')){
		
		Forms = document.Form1;
		Forms.bc_idx.value=val;
		Forms.submit();
	}else{
		return;
	}
	
}

function checkNumber(oObj){
	var sValue = oObj.value;
	if(!isFinite(sValue)){
		alert("¼ýÀÚ¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù.");
		oObj.value='';
		oObj.focus();

		return;
	}
}

