ns4 = (document.layers)?true:false
ie4 = (document.all)?true:false

/**********************************************************************************
	Layer Show Hide
***********************************************************************************/

function LayerSH(LayerName,Status) {
ns4 = (document.layers)?true:false
ie4 = (document.all)?true:false

	if (ns4) {
		LayerN = document.layers[LayerName]
		if (Status == 'show') LayerN.visibility = 'show';
		if (Status == 'hide') LayerN.visibility = 'hidden';
	}	
	if (ie4) {
		LayerN = document.all[LayerName].style
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
	}
}

/**********************************************************************************
	Image Roll Over
***********************************************************************************/

function preload(imgObj,imgSrc) {
	if (document.images) {
		eval(imgObj+' = new Image()')
		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}
function imgChg(imgName,imgObj) {
	if (document.images) {
		document.images[imgName].src = eval(imgObj+".src")
	}
}

function login_window()
{

	window.open("../login.html", "", "toolbar=no,scrollbars=no,resizable=no,copyhistory=no,width=281,height=168");
}

/**********************************************************************************
	Roll Over color change.
***********************************************************************************/

function movr(src,clrOver)
{ 
	if (!src.contains(event.fromElement)) {	src.bgColor = clrOver;	}
}

function mout(src,clrIn) 
{ 
	if (!src.contains(event.toElement)) { src.style.cursor = 'default'; src.bgColor = clrIn;	}
}

/**********************************************************************************
	Search 
***********************************************************************************/

function checkQueryOnMain(Form)
{
	if (Form.QU.value == "") {
		alert(" °Ë»ö¾î¸¦ ÀÔ·ÂÇÏÁö ¾Ê¾Ò½À´Ï´Ù.");
		return false;
	}
}
