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;

        if ( bNetscape4plus ) { // ³×Ã÷ÄÉÀÌÇÁ ¿ë ¼³Á¤
                yMenuFrom   = document["divMenu"].top;
                yMenuTo     = top.pageYOffset + 508;   // À§ÂÊ À§Ä¡
        }
        else if ( bExplorer4plus ) {  // IE ¿ë ¼³Á¤
                yMenuFrom   = parseInt (divMenu.style.top, 10);
                yMenuTo     = document.body.scrollTop + 508; // À§ÂÊ À§Ä¡
        }

        timeoutNextCheck = 500;

        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 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 OnLoad()
{
        var y;

        // ÇÁ·¹ÀÓ ¿¡¼­ ¹þ¾î³ª°Ô ÇÏ´Â ÇÔ¼öÀÔ´Ï´Ù. ÇÁ·¹ÀÓ¿¡ ³ÖÀ¸·Á¸é »èÁ¦ÇÏ¼¼¿ä
        //if ( top.frames.length )
         //       top.location.href = self.location.href;

        // Æä¿¡Áö ·Îµù½Ã Æ÷Áö¼Ç
        if ( bNetscape4plus ) {
                document["divMenu"].top = top.pageYOffset + 0;
                document["divMenu"].visibility = "visible";
        }
        else if ( bExplorer4plus ) {
                divMenu.style.top = document.body.scrollTop + 0;
                divMenu.style.visibility = "visible";
        }

        CheckUIElements();
        return true;
}

function board_go()

{

	if (document.form1.se1.value != "00")

	{

	id = document.form1.se1.value;

	location.href=(''+id+'');

	}

}
function board_go2()

{

	if (document.form1.se2.value != "00")

	{

	id = document.form1.se2.value;

	location.href=(''+id+'');

	}

}
function board_go3()

{

	if (document.form1.se3.value != "00")

	{

	id = document.form1.se3.value;

	location.href=(''+id+'');

	}

}


<!--
function openBr(theURL,winName,features) { //v2.0 Çù·Â»ç ·Î±×ÀÎ ¿ÀÇÂÃ¢
  window.open(theURL,winName,features);
}
//-->


function reSize() {
try{
var objBody = ifrm.document.body;
var objFrame = document.all["ifrm"];
ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);

if (ifrmHeight > 10) {
objFrame.style.height = ifrmHeight
}else{
objFrame.style.height = 10;
}
objFrame.style.width = '733';
}catch(e){}
}

function init_iframe() {
reSize();
setTimeout('init_iframe()',0)
}
init_iframe();





<!--
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_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_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 clickWin(){
window.open("/mem/idchk.html","","width=430 height=231 left=250 top=100 scrollbars=no")
}
function clickWin1(){
window.open("/mem/zip.html","","width=430 height=270 left=250 top=100 scrollbars=no")
}
function clickWin2(){
window.open("/mem/lostid.html","","width=430 height=245 left=250 top=100 scrollbars=no")
}
function clickWin3(){
window.open("/mem/lostpw.html","","width=430 height=340 left=250 top=100 scrollbars=no")
}
function clickWin4(){
window.open("/books/write.html","","width=430 height=339 left=250 top=100 scrollbars=no")
}
function clickWin5(){
window.open("/books/auth_detail.html","","width=518 height=350 left=250 top=100 scrollbars=yes")
}
function clickWin6(){
window.open("/books/gozzim.html","","width=430 height=177 left=250 top=100 scrollbars=no")
}
function clickWin7(){
window.open("/books/mail.html","","width=500 height=468 left=250 top=100 scrollbars=no")
}
function clickWin8(){
window.open("/board/input_thema.html","","width=500 height=255 left=250 top=100 scrollbars=no")
}
function clickWin9(){
window.open("/yak.html","","width=688 height=350 left=250 top=100 scrollbars=yes")
}
function clickWin10(){
window.open("/pre.html","","width=688 height=350 left=250 top=100 scrollbars=yes")
}
function clickWin11(){
window.open("/email.html","","width=670 height=175 left=250 top=100 scrollbars=no")
}
function clickWin12(){
window.open("/hyun/press01.html","","width=640 height=350 left=250 top=100 scrollbars=yes")
}
function clickWin13(){
window.open("/forest/forest.html","","width=1004 height=617 left=0 top=0 scrollbars=no")
}
function clickWin14(){
window.open("http://has.taxnet.co.kr","","width=1024 height=930 left=0 top=0 scrollbars=yes")
}
//ÀüÃ¼Blur Ã³¸®
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring;

//»õÃ¢ ´ÝÈ÷°í ºÎ¸ðÃ¢ ¸µÅ©ÀÌµ¿
function goURL(url) {
	opener.location.href = url;
}

//ÇÃ·¡½Ã¿µ¿ªÇØÁ¦//
function swf(src, w, h)
{
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
    html += '<param name="wmode" value="Transparent">';
	html += '<param name="quality" value="high">';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}
