document.oncontextmenu = onContext;   // ÀÓÀÇÀÇ ÇÔ¼ö ÁöÁ¤
document.ondragstart=ondrag;		  // ÀÓÀÇÀÇ ÇÔ¼ö ÁöÁ¤
document.onselectstart=onselect;	  // ÀÓÀÇÀÇ ÇÔ¼ö ÁöÁ¤

//»óÅÂ Ç¥½ÃÁÙ °¨Ãß±â ½ÃÀÛ
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus


//»óÅÂÇ¥½ÃÁÙ °¨Ãß±âÆã¼Ç
function hidestatus(){
	window.status=''
	return true;
}

function onContext(){
	event.cancelBubble = true;
	event.returnValue = false;

	document.body.style.pixelLeft = event.x;
	document.body.style.pixelTop = event.y;
	document.body.style.display = "";
}

function ondrag(){
	event.cancelBubble = true;
	event.returnValue = false;

	document.body.style.pixelLeft = event.x;
	document.body.style.pixelTop = event.y;
	document.body.style.display = "";
}

function onselect(){
	event.cancelBubble = true;
	event.returnValue = false;

	document.body.style.pixelLeft = event.x;
	document.body.style.pixelTop = event.y;
	document.body.style.display = "";
}

//ÆË¾÷Ã¢¿­±â(°øÅë)
function GlbOpenPopup(Url) //ÁÖ¼Ò, ÆË¾÷Â÷ÀÌ¸§, ³ÐÀÌ, ±æÀÌ, ½ºÅ©·Ñ, Å©±âÁ¶Àý, ¸Þ´º¹Ù, »óÅÂÇ¥½ÃÁÙ
{
	var newWin = window.open(Url, "_blank", scrollbars="no", resizable="no", menubar="no", status="no");
	newWin.focus();
}

function GlbOpenPopupCtr(Url, Popstr, Width, Height, Scroll, Resize, Menubar, Status) //ÁÖ¼Ò, ÆË¾÷Â÷ÀÌ¸§, ³ÐÀÌ, ±æÀÌ, ½ºÅ©·Ñ, Å©±âÁ¶Àý, ¸Þ´º¹Ù, »óÅÂÇ¥½ÃÁÙ
{
	var winWidth = Width;
	var winHeight = Height;
	var XPosition = (screen.width - winWidth)/2;
	if (Menubar == "1" || Menubar == "yes") {
		var YPosition = (screen.height - winHeight)/2 - 45;
	} else {
		var YPosition = (screen.height - winHeight)/2 - 20;
	}
	var newWin = window.open(Url, Popstr, "width="+ winWidth +", height="+ winHeight +", left="+ XPosition +", top="+ YPosition +", scrollbars="+ Scroll +", resizable="+ Resize +", menubar="+ Menubar +", status="+ Status);
	newWin.focus();
}

