
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}

function totopbottom() {
	if (document.body.scrollTop == 0) {
		window.scrollTo(0,document.body.scrollHeight);
	} else {
		window.scrollTo(0,0);
	}
}
function topbottom() {
	document.body.ondblclick = totopbottom;
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}

//ÅÇ º¯È¯
function goTab(no) {

	if(no == 1){
		table1.style.display = "";
		table2.style.display = "none";
	}
	else if(no == 2){
		table1.style.display = "none";
		table2.style.display = "";
	}
}

// »õÃ¢ ¶ç¿ì±â

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// µû¶ó´Ù´Ï´Â GO TOP¸Þ´º

var menuTopMargin = -90; // ¸Þ´º½ºÅ©·Ñ ½ÃÀÛ ¿©¹é
var menuSpeed = 1;
var timerSpeed = 100;
var timerSpeed2 = 1;
var timer;
var heightLimit = 0;

function checkMenu() {
        if(document.body.offsetHeight > heightLimit) {
                var reTimer = timerSpeed;
                var startPoint = parseInt(document.all.sMenu.style.top,10);
                var endPoint = document.body.scrollTop;
                endPoint = (menuTopMargin <= endPoint ) ? endPoint - menuTopMargin : 0;
                if(startPoint != endPoint) {
                        moveAmount = Math.ceil(Math.abs(endPoint - startPoint) / 10);
                        document.all.sMenu.style.top = parseInt(document.all.sMenu.style.top,10) + ((endPoint<startPoint) ? -moveAmount : moveAmount);
                        reTimer = timerSpeed2;
                }
        } else document.all.sMenu.style.top = 0;
        timer = setTimeout("checkMenu();",reTimer);
}

function initMenu() {
        if(document.body.offsetHeight > heightLimit) document.all.sMenu.style.top = document.body.scrollTop;
        checkMenu();
}

