//Áß¾Ó¿¡ ÆäÀÌÁö ¿­±â(sURL:ÆäÀÌÁöÀÌ¸§, sWindowName:Ã¢ÀÌ¸§, w:Æø, h:³ôÀÌ, sScroll:½ºÅ©·Ñ¹Ù)
function openWin(sURL, sWindowName, w, h, sScroll, sScreen) {
	var x = ((screen.width - w) / 2) - 5;
	var y = ((screen.height - h) / 2) - 30;
	
	if (sScroll==null) sScroll = "no";

	var sOption = "";
	sOption = sOption + "fullscreen=" + sScreen + ", toolbar=no, channelmode=no, location=no, directories=no, resizable=no, menubar=no";
	sOption = sOption + ", scrollbars=" + sScroll + ", left=" + x + ", top=" + y + ", width=" + w + ", height=" + h;

	var win = window.open(sURL, sWindowName, sOption);
	return win;
}

//Å×µÎ¸®¾ø´Â Ã¢
function openIT(theurl, winname, w, h) {
	var isIE
	var isNAV

	if (navigator.appName=="Netscape") {
		isNAV = true;
	} else {
		isIE = true;
	}

	if (isIE) {
		<!------------------¿©±â°¡ °¡·Î ¼¼·ÎÅ©±â¸¦ Á¶ÀýÇÏ´Â °÷ÀÔ´Ï´Ù ¼öÄ¡¸¦ ¹Ù²ã¼­ Àû´çÈ÷ ¼öÁ¤ÇØ º¸¼¼¿ä---------->
		windowCERRARa 		= "close_01.gif"
		windowCERRARd 		= "close_02.gif"
		windowCERRARo 		= "close_03.gif"
		windowTIT 	    	= "<font face=verdana size=1 color=#787878>&nbsp; example</font>"
		windowBORDERCOLOR   	= "#ffffff"
		windowBORDERCOLORsel	= "#ffffff"
		windowTITBGCOLOR    	= "#c0c0c0"
		windowTITBGCOLORsel 	= "#ebebeb"
		openchromeless(theurl, winname, w, h, windowCERRARa, windowCERRARd, windowCERRARo, windowTIT, windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
	} else {
		var thereman = screen.availWidth;
		var hereman = screen.availHeight;
		window.open(theurl, winname, 'toolbar=no,resizable=no,scrollbars=no,width=400,height=300,left=' + ((thereman - 800 - 10) * .5) + ',top=' + ((hereman - 375 - 30) * .2))
	}

}

//Menu
function Menu_OMO(Num1)
{
	document.all["MainMeun" + Num1].style.visibility = "visible";
}

function Menu_OMU(Num2)
{
	document.all["MainMeun" + Num2].style.visibility = "hidden";
}

function SubMenu_OMO(Num3)
{
	document.all["SubMenu" + Num3].style.background = "#ffffff";
	document.all["SubMenu" + Num3].style.cursor = "hand";
}

function SubMenu_OMU(Num4)
{
	document.all["SubMenu" + Num4].style.background = "#ddeeff";
}

//Ã¢ÀÇ Å©±â¿¡ ¸Âµµ·Ï frameÀÇ ³ôÀÌ Á¶Àý
function frameResize(frm_name)
{
	var frm_body  = top.document.frames(frm_name).document.body;
	var frm_obj  = top.document.getElementById(frm_name);
	frm_obj.style.height = frm_body.scrollHeight + (frm_body.offsetHeight - frm_body.clientHeight) + 50;
	
	/*
	var frm_body  = top.document.all[frm_name].document.body;
	var frm_obj  = top.document.getElementById(frm_name);
	frm_obj.style.height = frm_body.scrollHeight + (frm_body.offsetHeight - frm_body.clientHeight) + 50;
	*/
}
