//mouse ----------------->
function click(){ 	if ((event.button==2) || (event.button==3)) return false; }
document.onmousedown=click

// total moving ------------>
function move_url(url,target,width,height,msg)
{
	if(target=="self"){ document.location.href=url; }
	else if(target=="confirm")
	{	
		flag = confirm(msg);
		if(flag==true){ document.location.href=url; }
	}
	else if (target=="blank") {
       window.open(url, 'win1');
	}
	else if(target=="popup"){
		window.open(url, 'win1', "toolbar=no,resizable=no,scrollbars=yes,location=no,resize=no,menubar=no,directories=no,copyhistory=0, width=" + width + ", height=" + height);
	}
}

function go_win(url,root,w,h) {
	w = eval(w) ;
	h = eval (h);
	win=window.open(url,root,'width='+w+',height='+h+',resizable=no,scrollbars=yes,status=0');
}

function showhide(what){
	if (what.style.display=='none'){ what.style.display='block'; }
	else{ what.style.display='none'; }
}

function checkSrhForm()
{
	if(!document.SpSrhForm.keyword.value){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.SpSrhForm.keyword.focus();
		return false;
	}
}

//g
function NetConnect(fm,wd,hgt,tart)
{
	var fm = eval("document."+fm);
	
	if(eval(fm.gid.value=="")){
		alert("·Î±×ÀÎ ÇÏ½Ã¸é ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
		document.loginForm.userid.focus();
	}else{	
		if(tart=="self"){
			fm.submit();
			fm.method="post";
		}else if(tart=="popup"){
			winopen=window.open("","popup","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+wd+",height="+hgt+",top=0,left=0");
			fm.target="popup";
			fm.submit();
			fm.method="post";
			winopen.focus();
		}else{
			winopen=window.open("","win2");
			fm.target="win2";
			fm.submit();
			fm.method="post";
			winopen.focus();
		}
	}
}

// µû¶ó´Ù´Ï´Â ·¹ÀÌ¾î---------------------------------->
//<div id="STATICMENU"
// <script language="javascript">
//	InitializeStaticMenu(); // ½ºÅ©·Ñ¸Þ´º¸¦ °¡µ¿ÇÏ´Â ÀÚ¹Ù½ºÅ©¸³Æ®
//</script>
var stmnLEFT = 10;
var stmnGAP1 = 10;
var stmnGAP2 = 0;
var stmnBASE = 10;
var stmnActivateSpeed = 200; // ¿òÁ÷ÀÓÀ» °¨ÁöÇÏ´Â ¼Óµµ
var stmnScrollSpeed = 10; // ½ºÅ©·ÑµÇ´Â ¼Óµµ (Å¬¼ö·Ï ´Ê°Ô ¿òÁ÷ÀÓ)

var stmnTimer;

function ReadCookie(name) {
var label = name + "=";
var labelLen = label.length;
var cLen = document.cookie.length;
var i = 0;

while (i < cLen) {
        var j = i + labelLen;

        if (document.cookie.substring(i, j) == label) {
                var cEnd = document.cookie.indexOf(";", j);
                if (cEnd == -1) cEnd = document.cookie.length;
		return unescape(document.cookie.substring(j, cEnd));
        }
		i++;
    }
  return "";
}

function SaveCookie(name, value, expire) {
var eDate = new Date();
eDate.setDate(eDate.getDate() + expire);
document.cookie = name + "=" + value + "; expires=" +  eDate.toGMTString()+ "; path=/";
}

function RefreshStaticMenu() {
var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;

stmnStartPoint = parseInt(STATICMENU.style.top, 10);
stmnEndPoint = document.body.scrollTop + stmnGAP2;
if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;

stmnRefreshTimer = stmnActivateSpeed;

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;
        }
        stmnTimer = setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
}

function ToggleAnimate() {
	if (!ANIMATE.checked) {
		RefreshStaticMenu();
                SaveCookie("ANIMATE", "true", 300);
                } else {
                clearTimeout(stmnTimer);
                STATICMENU.style.top = stmnGAP1;
                SaveCookie("ANIMATE", "false", 300);
        }
}

function InitializeStaticMenu() {
STATICMENU.style.left = stmnLEFT;
	if (ReadCookie("ANIMATE") == "false") {
                ANIMATE.checked = true;
                STATICMENU.style.top = document.body.scrollTop + stmnGAP1;
                } else {
                ANIMATE.checked = false;
                STATICMENU.style.top = document.body.scrollTop + stmnBASE;
                RefreshStaticMenu();
        }
}
//<-----------------------End
//-->