
/*******************************************************************************************
*	Cookie Function
******************************************************************************************/
	function setCookie(name,value,expires) { document.cookie=name + "=" + escape(value) + ((expires == null)? "" : (" ; expires=" + expires.toGMTString())); }

	function getCookie (name) {

	    var arg = name + "=";
	    var alen = arg.length;
	    var clen = document.cookie.length;
	    var i = 0;

	    while (i < clen) {
	        var j = i + alen;
	        if (document.cookie.substring(i, j) == arg)
	            return getCookieVal (j);
	        i = document.cookie.indexOf(" ", i) + 1;
	        if (i == 0) break;
	    }
	    return null;
	}

	function getCookieVal(offset) {
	    var endstr = document.cookie.indexOf (";", offset);
	    if (endstr == -1)
	        endstr = document.cookie.length;
	    return unescape(document.cookie.substring(offset, endstr));
	}

/*******************************************************************************************
*	¸ÞÀÎ ¿À¸¥ÂÊ ÇÏ´Ü ·¹ÀÌ¾î ¹è³Ê
******************************************************************************************/
	function ad_rightbottom(cot_tl_theLogo){

	    document.write('<div id="ad_rightbottom">')
	    document.write('<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width=216 height=216 id=ShockwaveFlash1>');
	    document.write('<param name=movie value=' + cot_tl_theLogo + '>');
	    document.write('<param name=quality value=high>');
	    document.write('<param name="wmode" value="transparent" />');
	    document.write('<embed src=' + cot_tl_theLogo + ' wmode=transparent quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=216 height=216></embed></object>');
	    document.write('</div>')
	}

/*******************************************************************************************
*	Etc Function
******************************************************************************************/
	// ÆË¾÷¶ç¿ì±â
	function win_open(url,name,para){
	    window.open(url,name,para);
	}

	// ÀüÃ¼ È­¸éÀ¸·Î ÆË¾÷¶ç¿ì±â
	function resize(url){
	  var width, height;
	   width = screen.width;       //È­¸éÀÇ °¡·ÎÆø
	   height= screen.height;      //È­¸éÀÇ ¼¼·ÎÆø

	   win_open(url,'','titlebar=yes,status=no,menubar=no,resizable=yes,scrollbars=yes,top=0,left=0,width='+width+',height='+height);
	}

	// ÀÌ¸ÞÀÏ¼öÁý¹æÁö ÇÔ¼ö
	function MailtoClick_Func(MDomain,MailID){
		var goMailAddress = "mailto:"+ MailID +"@"+ MDomain;

		self.location.href = goMailAddress;
		return;
	}

	// »óÇ° ÆË¾÷
	function PopupManager1(URL){
		win_open('/g_common/popup/popupmanager.asp?t=1&rd=' + escape(URL),'option','marginwidth=0,toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,width=825,height=640,top=0,left=0');
	}
	function PopupManager2(URL,job){
		win_open('/g_common/popup/popupmanager.asp?t=1&rd=' + escape(URL) +'&job='+job,'option','');
	}
	function PopupManager3(URL,job){
		win_open('/g_common/popup/popupmanager.asp?t=1&rd=' + escape(URL) +'&job='+job,'option','marginwidth=0,toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,width=825,height=640,top=0,left=0');
	}

	// ·Î±×ÀÎÃ¢ Function
	function loginform_clearbg(type) {
	    if (type == "id") {
	        document.loginform.txtUserID.style.backgroundImage = '';
	        document.loginform.txtUserID.style.backgroundColor  = '#ffffff';

	    } else if (type == "pw") {
	        document.loginform.txtPassword.style.backgroundImage = '';
	        document.loginform.txtPassword.style.backgroundColor  = '#ffffff';
	    }
	}

	// Flash Link Finction	
	function flash_link(str) {  
		if (str == "ad_top_right")
		{
			var obj = document.getElementById(str);
			goCL(obj,'18281','www','ÀÎÅ©·çÆ®È¸¿ø°¡ÀÔÇýÅÃ');
			location.href = obj.href;
		}
		
		if (str == "main_top")
		{
			var obj = document.getElementById(str);
			goCL(obj,'17372','www','ÀÎÅ©·çÆ®(BI)');
			location.href = obj.href;
		}
	}

/******************************************************************************************************************************************************************************
*	?? Function
*****************************************************************************************************************************************************************************/

function showFullName(str)
{
	var obj = document.getElementById('divSrchedKwFullName');

	if (obj != null)
	{
		var e = window.event;
		obj.innerHTML = str;
		obj.style.left = document.body.scrollLeft + e.clientX - document.body.clientLeft + 10;
		obj.style.top = document.body.scrollTop + e.clientY - document.body.clientTop + 10;
		showLayer('divSrchedKwFullName');
	}
}

//°Ë»ö¹Ù Å°¿öµå °ª Àü¼Û
function selectKeyword(Kw)
{
	document.searchForm.Kw.value = Kw;
	searchFromBar();
}