<!--
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 

document.body.focus(); 
} 
document.onfocusin=bluring; 

function f_OnLink(url,col,val){
var strUrl, strFrontUrl, strLastUrl, v_strUrl, v_strUrl1, backUrl;
var frm=eval("location.href");

	if (frm.lastIndexOf("/")>-1){
		backUrl=frm.substring( frm.lastIndexOf("/")+1, frm.length );
		if (backUrl.indexOf("?")>-1){
				backUrl=backUrl.substring(backUrl.indexOf("?"),backUrl.length);
		}else{
			backUrl="";	
		}

			frm=frm.substring( 0, frm.lastIndexOf("/"))+"/"+url+ backUrl;
	}else{
			frm=frm + "/" + url;
	}

	if ( frm.indexOf(col)<0 ){
		if ( frm.indexOf("&")>-1 ){
			strUrl=frm +"&" + col + "=" + val;
		}else{
			if ( frm.indexOf("?")>-1 ) strUrl=frm +"&" + col + "=" + val;
			else strUrl=frm +"?" + col + "=" + val;
		}
	}else{
		strFrontUrl=frm.substring( 0, frm.search(col) );
		v_strUrl=frm.substring( frm.search(col), frm.length );
		if ( v_strUrl.indexOf("&")<0 ) {
			strUrl=strFrontUrl + col + "=" + val;
		}else{
			v_strUrl1=v_strUrl.substring( v_strUrl.search("&"), v_strUrl.length );
		
			strUrl=strFrontUrl + col + "=" + val + v_strUrl1;
		}
	}

	location.href=strUrl;
}

function open_popup(name,gubun,login)
{
	if (login=="1")
	{
	m_url = '/Common/pdf_popup_member.asp?name=' + name +'&gubun=' + gubun; 
	}else{
	m_url = '/Common/pdf_popup.asp?name=' + name +'&gubun=' + gubun; 
	}
	//alert(m_url);
	window.open(m_url,'pdf','resizable=1,width=800,height=700,scrollbars=yes');
}

function open_popup2(name,gubun,login,seqno)
{
	if (login=="1")
	{
	m_url = '/Common/pdf_popup_member.asp?name=' + name +'&gubun=' + gubun; 
	}else{
	m_url = '/Common/pdf_popup2.asp?name=' + name +'&gubun=' + gubun +'&seqno=' + seqno; 
	}
	//alert(m_url);
	window.open(m_url,'pdf','resizable=1,width=800,height=700,scrollbars=yes');
}

function open_popup3(name,gubun,login)
{
	if (login=="1")
	{
	m_url = 'http://www.korcham.net/Common/pdf_popup_member3.asp?name=' + name +'&gubun=' + gubun; 
	}else{
	m_url = 'http://www.korcham.net/Common/pdf_popup.asp?name=' + name +'&gubun=' + gubun; 
	}
	//alert(m_url);
	window.open(m_url,'pdf','resizable=1,width=800,height=700,scrollbars=yes');
}

function open_popup4(name,gubun,login,siteid)
{
	if (login=="1")
	{
	m_url = 'http://www.korcham.net/Common/pdf_popup_member3.asp?name=' + name +'&gubun=' + gubun + '&siteid=' + siteid; 
	}else{
	m_url = 'http://www.korcham.net/Common/pdf_popup2.asp?name=' + name +'&gubun=' + gubun +'&seqno=' + seqno; 
	}
	//alert(m_url);
	window.open(m_url,'pdf','resizable=1,width=600,height=290,scrollbars=nos');
}

function open_popup5(name,gubun,login,siteid)
{
	if (login=="1")
	{
	m_url = '/Common/pdf_popup_member3.asp?name=' + name +'&gubun=' + gubun + '&siteid=' + siteid; 
	}else{
	m_url = '/Common/pdf_popup2.asp?name=' + name +'&gubun=' + gubun +'&seqno=' + seqno; 
	}
	//alert(m_url);
	window.open(m_url,'pdf','resizable=1,width=980,height=800,scrollbars=nos');
}

function frame_down(name,gubun,login,seqno,site)
{
	if (login=="1")
	{
	m_url = '/Common/download_webdb_member.asp?name=' + name +'&gubun=' + gubun+'&seqno='+seqno+'&site='+site; 
	}else{
	m_url = '/Common/download_webdb.asp?name=' + name +'&gubun=' + gubun+'&seqno='+seqno+'&site='+site; 
	}
	
	//alert(m_url);
	var exp;
	var file = name.substring(name.lastIndexOf('\\')+1,name.length);
	exp = file.substring(file.lastIndexOf('.')+1,file.length);
	exp.toLowerCase();
	if (exp == "doc")
	{
	window.open(m_url,'office_Word','resizable=1,width=800,height=700,scrollbars=yes,menu=yes');
	}else if (exp == "xls")
	{
	window.open(m_url,'office_Excel','resizable=1,width=800,height=700,scrollbars=yes');
	}
	else if (exp == "ppt")
	{
	window.open(m_url,'office_PowerPoint','resizable=1,width=800,height=700,scrollbars=yes');
	}
	else if (exp == "hwp")
	{
	window.open(m_url,'hwp','resizable=1,width=800,height=700,scrollbars=yes');
	}
	else		
	{
//	document.down.location.href=m_url;
//	location.href=m_url;
	window.open(m_url,'hwp','resizable=1,width=800,height=700,scrollbars=yes');
	}

}
function frame_down2(name,gubun,login,seqno,site)
{
	if (login=="1")
	{
	m_url = '/Common/download_webdb_member2.asp?name=' + name +'&gubun=' + gubun+'&seqno='+seqno+'&site='+site; 
	}else{
	m_url = '/Common/download_webdb.asp?name=' + name +'&gubun=' + gubun+'&seqno='+seqno+'&site='+site; 
	}
	
	//alert(m_url);
	var exp;
	var file = name.substring(name.lastIndexOf('\\')+1,name.length);
	exp = file.substring(file.lastIndexOf('.')+1,file.length);
	exp.toLowerCase();
	if (exp == "doc")
	{
	window.open(m_url,'office_Word','resizable=1,width=800,height=700,scrollbars=yes,menu=yes');
	}else if (exp == "xls")
	{
	window.open(m_url,'office_Excel','resizable=1,width=800,height=700,scrollbars=yes');
	}
	else if (exp == "ppt")
	{
	window.open(m_url,'office_PowerPoint','resizable=1,width=800,height=700,scrollbars=yes');
	}
	else if (exp == "hwp")
	{
	window.open(m_url,'hwp','resizable=1,width=800,height=700,scrollbars=yes');
	}
	else		
	{
	document.down.location.href=m_url;
//	location.href=m_url;
	}
 
}

function frame_down3(file, dir, login)
{
	if (login=="1")
	{
		location.href = "/Management/include/Download.asp?filename="+file+"&dirname="+dir;
	}else{
	m_url = '/Common/download_webdb.asp?name=' + name +'&gubun=' + gubun+'&seqno='+seqno+'&site='+site; 
	}
	



}


function ch (obj) 
{ 
 if(obj.style.backgroundImage == "") return; 
 
 obj.style.backgroundImage=""; 
}

function keyCheck(){
	if ( window.event.keyCode == 13 ){
		goSearchOnlyTop();
	}else{
		return true;
	}
}
-->

