function logout()
{
	parent.location.href = "/ahnlab.asp?cmd=logout";
	return false;
}

function setIdField(obj)
{
	if(obj.value == "ID (Ò°Ù±ÄÞÚ½)" || obj.value == "")
	{
		obj.value = "";
	}
}

function setTextPasswordField(obj)
{
	obj.style.display = "none";
	obj.form.password.style.display = "inline";
	obj.form.password.focus();
}

function resetIdField(obj)
{
	if(obj.value == "")
	{
		obj.value = "ID (Ò°Ù±ÄÞÚ½)";
	}
}

function resetPasswordField(obj)
{
	if(obj.value == "PASSWORD" || obj.value == "")
	{
		obj.value = "";
		obj.style.display = "none";
		obj.form.textPassword.style.display = "inline";
	}
}

function initialize(form)
{
	if("object" == typeof(form))
	{
		form.id.focus();	
		setIdField(form.id);
	}


	var loginFrameObj = parent.document.getElementById("loginFrame");

	if(loginFrameObj != null && "object" == typeof(loginFrameObj))
	{
		//parent.document.getElementById("loginFrame").height = document.body.scrollHeight;
		loginFrameObj.height = document.body.scrollHeight;
	}
}

