// JavaScript Document


//¼­ºê¸Þ´º ÀÌ¹ÌÁö ·Ñ¿À¹ö
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];}
}
//-->


//ÇÃ·¡½Ã ÆÐÄ¡ EM
// printSWF('ÇÃ·¹½¬ °æ·Î' , ³ÐÀÌ, ³ôÀÌ);
function printSWF(fn, w, h)
{
	var arg = arguments;
	var argc =  arguments.length;
	str   = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\"width=\""+w+"\" height=\""+h+"\">";
	str += "        <param name=\"SRC\" value=\""+fn+"\">";
	str += "        <param name=\"wmode\" value=\"transparent\">";
	str += "        <param name=\"quality\" value=\"high\">";
	str += "		<param name=\"menu\" value=\"false\">";
	str += "        <embed src=\""+fn+"\" pluginspage=\"http://www.macromedia.com/shockwave/download/\" type=\"application/x-shockwave-flash\" width=\""+w+"\" height=\""+h+"\">";
	str += "        </embed> ";
	str += "</object>";
	document.write(str);
}


//--2-- ·¹ÀÌ¾î ½º¹«½ºÇÏ°Ô ½ºÅ©·Ñ¹Ù µû¶ó´Ù´Ï´Â ½ºÅ©¸³Æ® ÇÔ¼ö 
// layer id=> divMenu
var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");

function CheckUIElements()
{
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

        yMenuFrom   = parseInt (divMenu.style.top, 10);
        yMenuTo     = document.body.scrollTop + 550; // À§ÂÊ À§Ä¡, ¾Ë¾Æ¼­ ¹Ù²Ù¼¼¿ä!!

        timeoutNextCheck = 220;

        if ( Math.abs (yButtonFrom - (yMenuTo + 118)) < 6 && yButtonTo < yButtonFrom ) {
                setTimeout ("CheckUIElements()", timeoutNextCheck);
                return;
        }


        if ( yButtonFrom != yButtonTo ) {
                yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
                if ( yButtonTo < yButtonFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["divLinkButton"].top += yOffset;
                else if ( bExplorer4plus )
                        divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }
        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["divMenu"].top += yOffset;
                else if ( bExplorer4plus )
                        divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }

        setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function OnLoad2()  //½ºÅ©·Ñ µû¶ó´Ù´Ï´Â ·¹ÀÌ¾î....
{
        var y;

        // ÇÁ·¹ÀÓ ¿¡¼­ ¹þ¾î³ª°Ô ÇÏ´Â ÇÔ¼öÀÔ´Ï´Ù. ÇÁ·¹ÀÓ¿¡ ³ÖÀ¸·Á¸é »èÁ¦ÇÏ¼¼¿ä
        if ( top.frames.length )

        // Æä¿¡Áö ·Îµù½Ã Æ÷Áö¼Ç
        if ( bNetscape4plus ) {
                document["divMenu"].top = top.pageYOffset + 118;
                document["divMenu"].visibility = "visible";
        }
        else if ( bExplorer4plus ) {
                divMenu.style.top = document.body.scrollTop + 118;
                divMenu.style.visibility = "visible";
        }

        CheckUIElements();

        return true;
}

function alertHistoryBack(msg)  
{
        alert(msg);
		history.go(-1);

}
/*
function IsNum(num) {
	 x=num.length;
	 for(i=0;i<x;i++)
	 {
	  s=num.substring(i,i+1)
	  if(s '0' || s > '9') return false;
	 }	
	 return true;
}
*/

//--- ¿ÀÇÂ/Å¬·ÎÁî 01
function ViewTr(flag){
	for(i=0; i < document.all('tr').length; i++)
	{
		document.all('tr')(i).style.display='none';
	}

	document.all('tr')(flag).style.display='';
}
//-->


//--- ¿ÀÇÂ/Å¬·ÎÁî 02
function ViewTr2(flag){
	for(i=0; i < document.all('tr').length; i++)
	{
		document.all('tr2')(i).style.display='none';
	}

	document.all('tr2')(flag).style.display='';
}
//-->

//---Áñ°ÜÃ£±âÃß°¡
function bookmark(){
window.external.AddFavorite('http://edu779.co.kr/', 'DMS¿¡µà  ')
}
//-->

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

//--Å«ÀÌ¹ÌÁö º¸±â

-->