
function ArticleSearchGo()
{
		if ( event.keyCode == 13 ) 
			ArticleSearch();
}

function ArticleSearch()
{
	var val = trim( document.all.txtSearch.value );
	var Url = "ArticleSearch.aspx?sstr={0}"
	Url = Url.replace( /\{0\}/, escape( val ) );	
	
	location.href = Url;
}

//---------------------------------------

function LoginFocus()
{
	if ( document.all.txtSecNum != null )
	{
		document.all.txtSecNum.focus();	
	}
	else
	{
		document.all.txtUserID.focus();			
	}
}

function LoginGo()
{
	if ( document.all.UCMainBodyTop1_UCLogin1_btnLogin != null )
	{
		document.all.UCMainBodyTop1_UCLogin1_btnLogin.click();
		return;
	}

	if ( document.all.UCSubMainLeft1_UCLogin1_btnLogin != null )
	{
		document.all.UCSubMainLeft1_UCLogin1_btnLogin.click();
		return;
	}		
}

function LoginLoginGo()
{
	if ( document.all.txtSecNum != null )
	{
		if ( trim( document.all.txtSecNum.value ).length <= 7 )
			{
				alert( "º¸¾È¹®ÀÚ¸¦ Á¤È®È÷ ÀÔ·ÂÇØ ÁÖ¼¼¿ä." );
				document.all.txtSecNum.select();
				document.all.txtSecNum.focus();
				return false;
			}
	}

	if ( trim( document.all.txtUserID.value ).length < 3 )
	{
		alert( "¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä." );
		document.all.txtUserID.select();
		document.all.txtUserID.focus();
		return false;
	}
	else if ( trim( document.all.txtPwd.value ).length <= 3 )
	{
		alert( "¾ÏÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä." );
		document.all.txtPwd.select();		
		document.all.txtPwd.focus();		
		return false;
	}

	return true;
}