

//----------------------------------------------------------------------------------------------------------------------------------------------------------
// 링크 처리
function fnSiteLink(strPath, strCode, dwSeq, strAddInfo, blsNewWinddow)
{
	strPath		= strPath ? strPath : '';
	strCode		= strCode ? strCode : '';
	dwSeq		= dwSeq ? dwSeq : '';
	strAddInfo	= strAddInfo ? strAddInfo : '';
	blsNewWinddow	 = blsNewWinddow ? blsNewWinddow : false;

	var strUrl			= '/link.asp?';
	var blsPreInfo		= false;

	if(strPath != '')
	{
		strUrl				+= 'path='+ escape(strPath);
		blsPreInfo		= true;
	}

	if(strCode != '')
	{
		strUrl				+= (blsPreInfo ? '&' : '') + 'code='+ escape(strCode);
		blsPreInfo		= true;
	}

	if(dwSeq != '')
	{
		strUrl				+= (blsPreInfo ? '&' : '') + 'seq='+ dwSeq;
		blsPreInfo		= true;
	}

	if(strAddInfo != '')
	{
		strUrl				+= (blsPreInfo ? (strAddInfo.substring(0, 1) == '&' ? '' : '$') : '') + strAddInfo;
		blsPreInfo		= true;
	}

	if(!blsNewWinddow)
		location.href		= strUrl;
	else
		window.open(strUrl);
}


function SiteLink(strPath, strAddInfo, blsNewWinddow)
{
	fnSiteLink(strPath, null, null, strAddInfo, blsNewWinddow);
}

function SitePathLink(strPath, strAddInfo, blsNewWinddow)
{
	fnSiteLink(strPath, null, null, strAddInfo, blsNewWinddow);
}

function SiteCodeLink(strCode, strAddInfo, blsNewWinddow)
{
	fnSiteLink(null, strCode, null, strAddInfo, blsNewWinddow);
}

function SiteSeqLink(dwSeq, strAddInfo, blsNewWinddow)
{
	fnSiteLink(null, null, dwSeq, strAddInfo, blsNewWinddow);
}


//----------------------------------------------------------------------------------------------------------------------------------------------------------
// 3자리 마다 , 찍기
function fnPrintMoney(dwValue)
{
	dwValue				= String(dwValue);
	var dwLength			= dwValue.length;
	var nCount				= 0;
	var strBuf				= '';

	if(dwLength > 0)
	{
		for(var i=dwLength; i>0; i--)
		{
			if(nCount == 3)
			{
				strBuf	= dwValue.substring(i-1, i) + ',' + strBuf;
				nCount	= 0;
			}
			else
			{
				strBuf	= dwValue.substring(i-1, i) + strBuf;
			}
			
			nCount++;
		}
	}

	return strBuf;
}











//----------------------------------------------------------------------------------------------------------------------------------------------------------
// 해당 객체 가지고 오기
function fnGetObject(strName)
{
	var objObject		= null;
	
	if(objObject == null)
	{
		if(document.all)
		{
			objObject	= document.all(strName);
		}
	}
	else
	{
		return objObject;
	}

	if(objObject == null)
	{
		if(document.getElementById)
		{
			objObject	= document.getElementById(strName);
		}
	}
	else
	{
		return objObject;
	}

	return objObject;
}

function fnGetObjectTagName(strName)
{
	var objObject	= null;

	if(objObject == null)
	{
		if(document.getElementsByTagName)
		{
			objObject	= document.getElementsByTagName(strName);
		}
		else if(document.all)
		{
			var objAll		= document.all;
			var objReturn	= new Array;
			for(var i=0; i<objAll.length; i++)
			{
				if(objAll[i].tagName.toLowerCase() == strName.toLowerCase())
				{
					objReturn[objReturn.length]		= objAll[i];
				}
			}

			objObject	= objReturn;
			alert(2);

			return objObject;
		}
	}
	else
	{
		return objObject;
	}

	return objObject;
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------


//----------------------------------------------------------------------------------------------------------------------------------------------------------
//	이벤트 추가
function fnAddEvent(objObject, strEvent, strEventstring, strInputEventType)
{
	strInputEventType	= strInputEventType ? strInputEventType.toLowerCase() : 'string';

	var blsEventString	= strInputEventType == 'string' ? true : false;

	strEvent	= strEvent.toLowerCase();

	if(strEvent.substring(0, 2) == 'on')
	{
		strEvent	= strEvent.substring(2);
	}

	try
	{
		if(objObject.attachEvent)
		{
			if(blsEventString)
				objObject.attachEvent('on'+ strEvent, function (){ eval(strEventstring); });
			else
				objObject.attachEvent('on'+ strEvent, strEventstring);
		}
		else if(objObject.addEventListener)
		{
			if(blsEventString)
				objObject.addEventListener(strEvent, function (){ eval(strEventstring); }, false);
			else
				objObject.addEventListener(strEvent, strEventstring, false);
		}
	}
	catch (e)
	{
		window.status	= 'Error : 이벤트를 추가하지 못했습니다. ['+ strEventstring +']';
		return false;
	}

	blsEventString	= null;

	return true;
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------


//----------------------------------------------------------------------------------------------------------------------------------------------------------
// 해당 객체의 속성 처리

//		속성 가지고 오기
function fnGetObjectAttribute(objThis, strAttributeName, defaultValue)
{
	var returnValue	= defaultValue;
	if(objThis.hasAttribute)
	{
		if(objThis.hasAttribute(strAttributeName))
		{
			returnValue		= objThis.getAttribute(strAttributeName);
		}
	}
	else if(objThis.getAttribute)
	{
//		if(objThis.getAttribute(strAttributeName))
//		{
//			returnValue		= objThis.getAttribute(strAttributeName);
//		}
		returnValue		= objThis.getAttribute(strAttributeName);
	}

	if(returnValue == null)
		returnValue	= defaultValue

	return returnValue;
}

//		속성 저장하기
function fnSetObjectAttribute(objThis, strAttributeName, defaultValue)
{
	if(objThis.setAttribute)
	{
		objThis.setAttribute(strAttributeName, defaultValue);
	}

	return true;
}

//		속성삭제하기
function fnRemoveObjectAttribute(objThis, strAttributeName)
{
	if(objThis.removeAttribute)
	{
		objThis.removeAttribute(strAttributeName);
	}

	return true;
}

//----------------------------------------------------------------------------------------------------------------------------------------------------------

// 플래쉬 파일 삽입
function fnInsertFlashFile(strPrintAreaId, strId, strFilePath, nWidth, nHeight, strValue, blsBackground)
{
	var objObject		= null;

	blsBackground	= blsBackground ? blsBackground : true;

//	if(document.createElement('OBJECT'))

	var strAppName		= navigator.appName;
	var fAppVersion		= parseFloat(navigator.appVersion.split("MSIE")[1]);
	if(strAppName == "Microsoft Internet Explorer" || (strAppName == "Microsoft Internet Explorer" && fAppVersion >= 5.5))
	{
		objObject		= document.createElement('OBJECT');

		if(objObject)
		{
			with (objObject)
			{
				setAttribute('id', 'flash_'+ strId);
				setAttribute('classid', 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000');
				setAttribute('width', nWidth);
				setAttribute('height', nHeight);

				var objParamMovie		= document.createElement('PARAM');
				objParamMovie.setAttribute('name', 'movie');
				objParamMovie.setAttribute('value', strFilePath);
				appendChild(objParamMovie);

				var objParamSrc			= document.createElement('PARAM');
				objParamSrc.setAttribute('name', 'src');
				objParamSrc.setAttribute('value', strFilePath);
				appendChild(objParamSrc);

				var objParamMenu		= document.createElement('PARAM');
				objParamMenu.setAttribute('name', 'menu');
				objParamMenu.setAttribute('value', 0);
				appendChild(objParamMenu);

				var objParamQua		= document.createElement('PARAM');
				objParamQua.setAttribute('name', 'quality');
				objParamQua.setAttribute('value', 'high');
				appendChild(objParamQua);

				if(blsBackground)
				{
					var objParamMode		= document.createElement('PARAM');
					objParamMode.setAttribute('name', 'wmode');
					objParamMode.setAttribute('value', 'transparent');
					appendChild(objParamMode);
				}
			}
		}
	}
//	else if(document.createElement('EMBED'))
	else
	{
		objObject		= document.createElement('EMBED');

		if(objObject)
		{
			with (objObject)
			{
				setAttribute('id', 'flash_'+ strId);
				setAttribute('src', strFilePath);
				setAttribute('pluginspage', 'http://www.macromedia.com/go/getflashplayer');
				setAttribute('type', 'application/x-shockwave-flash');

				setAttribute('quality', 'high');
				setAttribute('wmode', 'transparent');
				setAttribute('width', nWidth);
				setAttribute('height', nHeight);
				setAttribute('FlashVars', strValue);
			}
		}
	}

	if(objObject)
	{
		var objPrintArea			= fnGetObject(strPrintAreaId);

		if(objPrintArea != null)
		{
			objPrintArea.appendChild(objObject);
			objPrintArea.innerHTML		= objPrintArea.innerHTML;
		}
	}
}

function InsertFlash(strPrintAreaId, strId, strFilePath, nWidth, nHeight, strValue, blsBackground)
{
	try
	{
		fnInsertFlashFile(strPrintAreaId, strId, strFilePath, nWidth, nHeight, strValue, blsBackground)	
	}
	catch (e)
	{
		fnOldFlashFilePrint(strId, strFilePath, nWidth, nHeight, strValue)
	}
}

// 구형 플래쉬 삽입
function fnOldFlashFilePrint(strId, strFilePath, nWidth, nHeight, strValue)
{
	var strAppName		= navigator.appName;
	var fAppVersion		= parseFloat(navigator.appVersion.split("MSIE")[1]);
	
	// 익스플로어 버전아니거나 하위 버전일 경우
	if(strAppName != "Microsoft Internet Explorer" || (strAppName == "Microsoft Internet Explorer" && fAppVersion < 5.5))
	{
		var strPrintTag		= '';
		var strAddValue		= '';
		
		if(strValue != '')
		{
			strAddValue	= ' FlashVars="'+ strValue +'"';
		}
		
		strPrintTag	= '<embed id="'+ strId +'" name="'+ strId +'" src="'+ strFilePath +'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" quality="High" wmode="transparent" width="'+ nWidth +'" height="'+ nHeight +'"'+ strAddValue +'/>';
		
		document.write(strPrintTag);
	}
	// 윈도우 익스플로러 일경우
	else
	{
		var objOuter	= gfnGetObject(strId);
		
		if(objOuter)
		{
			var objParam	= new Array;
			var objFlash	= document.createElement('<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" name="'+ strId +'" id="'+ strId +'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="'+ nWidth +'" height="'+ nHeight +'">');
			
			objParam[0]		= document.createElement('<param name="movie" value="'+ strFilePath +'">');
			objParam[1]		= document.createElement('<param name="quality" value="High">');
			objParam[2]		= document.createElement('<param name="wmode" value="transparent">');
			
			if(strValue != '')
			{
				objParam[3]		= document.createElement('<param name="FlashVars" value="'+ strValue +'">');
			}
			
			for(var i=0; i<objParam.length; i++)
			{
				objFlash.appendChild(objParam[i]);
			}
			
			objOuter.appendChild(objFlash);

			objOuter.innerHTML		= objOuter.innerHTML;
		}
	}
}



// 동영상 삽입
function fnInsertMovieFile(strPrintAreaId, strId, strFilePath, nWidth, nHeight, bAutoStart, bShowControls, nVolume)
{
	var objObject		= null;

//	if(document.createElement('OBJECT'))

	var strAppName		= navigator.appName;
	var fAppVersion		= parseFloat(navigator.appVersion.split("MSIE")[1]);
	if(strAppName == "Microsoft Internet Explorer" || (strAppName == "Microsoft Internet Explorer" && fAppVersion >= 5.5))
	{
		objObject		= document.createElement('OBJECT');

		if(objObject)
		{
			with (objObject)
			{
				setAttribute('id', 'movie_'+ strId);
				setAttribute('classid', 'clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95');
				setAttribute('codebase', 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715');
				setAttribute('standby', 'Loading Player components...');
				setAttribute('type', 'application/x-oleobject');
				setAttribute('width', nWidth);
				setAttribute('height', nHeight);

				var objParam01			= document.createElement('PARAM');
				objParam01.setAttribute('name', 'filename');
				objParam01.setAttribute('value', strFilePath);
				appendChild(objParam01);

				var objParam02			= document.createElement('PARAM');
				objParam02.setAttribute('name', 'autostart');
				objParam02.setAttribute('value', bAutoStart);
				appendChild(objParam02);

				var objParam03			= document.createElement('PARAM');
				objParam03.setAttribute('name', 'ShowControls');
				objParam03.setAttribute('value', bShowControls);
				appendChild(objParam03);

				var objParam04			= document.createElement('PARAM');
				objParam04.setAttribute('name', 'ShowStatusBar');
				objParam04.setAttribute('value', bShowControls);
				appendChild(objParam04);

				var objParam05			= document.createElement('PARAM');
				objParam05.setAttribute('name', 'Volume');
				objParam05.setAttribute('value', (nVolume * 10) - 1000);
				appendChild(objParam05);
			}
		}
	}
//	else if(document.createElement('EMBED'))
	else
	{
		objObject		= document.createElement('EMBED');

		if(objObject)
		{
			with (objObject)
			{
				setAttribute('id', 'movie_'+ strId);
				setAttribute('src', strFilePath);
				setAttribute('pluginspage', 'http://www.microsoft.com/Windows/MediaPlayer/');
				setAttribute('type', 'application/x-mplayer2');

				setAttribute('autostart', bAutoStart);
				setAttribute('showcontrols', bShowControls);
				setAttribute('volume', nVolume);
				setAttribute('width', nWidth);
				setAttribute('height', nHeight);
			}
		}
	}

	if(objObject)
	{
		var objPrintArea			= fnGetObject(strPrintAreaId);

		if(objPrintArea != null)
		{
			objPrintArea.appendChild(objObject);
			objPrintArea.innerHTML		= objPrintArea.innerHTML;
		}
	}
}

function InsertMovie(strPrintAreaId, strId, strFilePath, nWidth, nHeight, bAutoStart, bShowControls, nVolume)
{
	fnInsertMovieFile(strPrintAreaId, strId, strFilePath, nWidth, nHeight, bAutoStart, bShowControls, nVolume);
}



g_dwContentFontSize	= null;
function fnBodyFontSizeChange(nChaange)
{
	var objContent		= fnGetObject('content');
	var strFontSize		= '';
	var dwFontSize		= -1;
	if(objContent)
	{
		if(g_dwContentFontSize == null)
		{
			strFontSize		= objContent.style.fontSize ? objContent.style.fontSize : '9pt';

			dwFontSize	= parseInt(strFontSize.replace(/pt/gi, ''), 10);
		}
		else
		{
			dwFontSize	= g_dwContentFontSize;
		}

		if(nChaange > 0)
			dwFontSize++;
		else
			dwFontSize--;

		if(dwFontSize > 18)
			dwFontSize	= 18;
		else if(dwFontSize < 8)
			dwFontSize	= 8;

		
		objContent.style.fontSize	= dwFontSize + 'pt';

		g_dwContentFontSize		= dwFontSize;
	}
}



////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


// 페이지 내부에 별도 페이지만 불러오기
function fnInnerSubPage(strImagePath, strShowParentPage)
{
	strShowParentPage	= strShowParentPage ? strShowParentPage.toLowerCase() : 'no';
	if(strShowParentPage != 'no' && strShowParentPage != 'top' && strShowParentPage != 'bottom')
	{
		strShowParentPage	 = 'no';
	}

	var strGetName01	= 'innerpage';
	var strGetName02	= 'showparent';

	var strUrl	= document.location.href;

	if(strUrl.indexOf('#') >= 0)
	{
		strUrl	= strUrl.substring(0, strUrl.indexOf('#'));
	}

	var strPagePath	= strUrl.substring(0, (strUrl.indexOf('?') >= 0 ? strUrl.indexOf('?') : strUrl.length));
	var strGetValue	= strUrl.substring((strUrl.indexOf('?') >= 0 ? strUrl.indexOf('?') + 1 : strUrl.length), strUrl.length);

	var arrGetValue	= strGetValue == '' ? null : strGetValue.split('&');
	if(arrGetValue)
	{
		strGetValue		= '';

		var strBuf01		= '/'+ strGetName01 +'/gi';
		var strBuf02		= '/'+ strGetName02 +'/gi';

		for(var i=0; i<arrGetValue.length; i++)
		{
			if(arrGetValue[i].search(eval(strBuf01)) < 0 && arrGetValue[i].search(eval(strBuf02)) < 0)
			{
				strGetValue	+= (strGetValue != '' ? '&' : '') + arrGetValue[i];
			}
		}
	}

	strGetValue	= (strGetValue != '' ? '?' : '') + strGetValue;

	strGetValue	+= (strGetValue != '' && strGetValue != '?' ? '&' : (strGetValue == '' ? '?' : '')) + strGetName01 +'='+ escape(strImagePath);
	strGetValue	+= (strGetValue != '' && strGetValue != '?' ? '&' : (strGetValue == '' ? '?' : '')) + strGetName02 +'='+ strShowParentPage;


	var strUrl		= strPagePath + strGetValue;
	location.href	= strUrl;
}

// 이미지 보이기
var g_objShowImageBox01		= null;
var g_objShowImageBox02		= null;

function fnShowImage(strImagePath, strImageName, strPrintTitle, strShowType)
{
	var blsMSIE	= navigator.userAgent ? (navigator.userAgent.toLowerCase().indexOf('msie') >= 0 ? true : false) : false;

	strImagePath	= strImagePath ? strImagePath : '';
	strImageName	= strImageName ? strImageName : '';
	strShowType	= strShowType ? strShowType.toLowerCase() : 'popup';

	if(strShowType == 'popup')
	{
		var objWindow	= window.open('', 'show_popup_image', 'width=1, height=1, resizable=yes, scrollbars=auto');
		var strHtml			= '<html>\n\n<head>\n<meta http-equiv="Content-Language" content="ko">\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\n\n<title>문서제목</title>\n\n<style type="text/css" media="screen">\nhtml, body\n{\n\tpadding: 0px;\n\tmargin: 0px;\n\tbackground-color: #333333;\n}\n\n#div_print_image\n{\n\tfloat: left;\n\tclear: left;\n\t\n\twidth: 100%;\n\theight: 100%;\n\t\n\tbackground-image: url(\'이미지전체주소\');\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n}\n</style>\n\n<script language="javascript">\n<!--\nvar strImagePath\t= null;\nvar objImage\t\t= null;\nvar dwTimerId\t\t= null;\nvar dwCheckCount\t= 0;\nfunction fnOnloadWindow()\n{\n\tstrImagePath\t= \'이미지전체주소\';\n\tobjImage\t\t= new Image;\n\t\n\tobjImage.src\t= strImagePath;\n\n\tdwTimerId\t= setInterval(fnImageLoadCheck, 200);\n}\n\nfunction fnImageLoadCheck()\n{\n\tif(objImage)\n\t{\n\t\tdwCheckCount++;\n\t\tif(objImage.width > 0)\n\t\t{\n\t\t\tclearInterval(dwTimerId);\n\t\t\tfnImage_onload();\n\t\t}\n\t\t\n\t\tif(dwCheckCount > 100)\n\t\t{\n\t\t\tclearInterval(dwTimerId);\n\t\t\talert(\'이미지 로딩에 실패를 하였습니다.\\n다시한번 시도를 해주시기 바랍니다.\\n\\n지속적인 문제가 발생될 경우 관리자에게 문의바랍니다.\');\n\t\t}\n\t}\n\telse\n\t{\n\t\tclearInterval(dwTimerId);\n\t\talert(\'이미지 처리를 실패 하였습니다.\\n다시한번 시도를 해주시기 바랍니다.\\n\\n지속적인 문제가 발생될 경우 관리자에게 문의바랍니다.\');\n\t}\n}\n\nfunction fnImage_onload()\n{\n\tif(objImage)\n\t{\n\t\tvar dwWidth\t\t= objImage.width;\n\t\tvar dwHeight\t= objImage.height;\n\t\t\n\t\tdwWidth\t\t+= 40;\n\t\tdwHeight\t+= 60;\n\t\t\n\t\twindow.resizeTo(dwWidth, dwHeight);\n\t}\n}\n\n//-->\n</script>\n</head>\n\n<body onload="javascript:fnOnloadWindow()">\n<div id="div_print_image" style="cursor: pointer;" title="클릭하시면 창이 닫힘니다." onclick="javascript:self.close();"></div>\n</body>';
		strHtml				= strHtml.replace(/문서제목/gi, strPrintTitle);
		strHtml				= strHtml.replace(/이미지전체주소/gi, strImagePath + strImageName);
		
		if(objWindow)
		{
			objWindow.document.open();
			objWindow.document.write(strHtml);
			objWindow.document.close();
		}
		else
		{
			//alert('이미지를 보시려면 팝업창 열기 가능으로 변경을 하셔야 합니다.');
			fnShowImage(strImagePath, strImageName, strPrintTitle, 'inner');
		}
	}
	else if(strShowType == 'inner')
	{
		if(g_objShowImageBox01 && g_objShowImageBox02)
		{
			fnShowImage_Close();
			return;
		}

		if(blsMSIE)
		{
			var dwBodyWidth		= document.body.offsetWidth;
			var dwBodyHeight		= document.body.offsetHeight;

			var dwScreenWidth		= document.documentElement.clientWidth;
			var dwScreenHeight	= document.documentElement.clientHeight;

			dwBodyHeight	= dwBodyHeight + (dwScreenWidth - dwBodyWidth)
			dwBodyWidth		= dwScreenWidth;

			dwBodyWidth		= dwBodyWidth +'px';
			dwBodyHeight	= dwBodyHeight + 'px'
			dwScreenWidth	= dwScreenWidth +'px';
			dwScreenHeight	= dwScreenHeight + 'px'
		}
		else
		{
			var dwBodyWidth		= document.documentElement.offsetWidth > document.body.offsetWidth ? document.documentElement.offsetWidth : document.body.offsetWidth;
			var dwBodyHeight		= document.documentElement.offsetHeight > document.body.offsetHeight ? document.documentElement.offsetHeight : document.body.offsetHeight;

			var dwScreenWidth		= document.documentElement.clientWidth > document.body.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth;
			var dwScreenHeight	= document.documentElement.clientHeight > document.body.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;

			dwBodyWidth		= dwBodyWidth > dwScreenWidth ? dwBodyWidth : dwScreenWidth;
			dwBodyHeight	= dwBodyHeight > dwScreenHeight ? dwBodyHeight : dwScreenHeight;

			dwBodyWidth		= dwBodyWidth +'px';
			dwBodyHeight	= dwBodyHeight + 'px'
			dwScreenWidth	= dwScreenWidth +'px';
			dwScreenHeight	= dwScreenHeight + 'px';
		}


		var dwScrollTop			= document.documentElement.scrollTop + 'px';

		var objDiv					= document.createElement('div');
		objDiv.style.width		= dwBodyWidth;
		objDiv.style.height		= dwBodyHeight;

		objDiv.style.backgroundColor		= '#333333';

		
		if(blsMSIE)
			objDiv.style.filter				= 'Alpha(style=0, opacity = 50)';
		else
			objDiv.style.opacity	= 0.5;

		objDiv.style.position		= 'absolute';
		objDiv.style.left				= 0;
		objDiv.style.top				= 0;
		objDiv.style.zIndex			= 10000;



		var objDivBox					= document.createElement('div');
		objDivBox.style.width		= dwScreenWidth;
		objDivBox.style.height		= dwScreenHeight;

		objDivBox.style.backgroundImage			= 'url(\''+ strImagePath + strImageName +'\')';
		objDivBox.style.backgroundPosition		= 'center center';
		objDivBox.style.backgroundRepeat	 	= 'no-repeat';

		objDivBox.style.cursor			= 'pointer';

		objDivBox.style.position		= 'absolute';
		objDivBox.style.left				= 0;
		objDivBox.style.top				= dwScrollTop;
		objDivBox.style.zIndex			= 10001;


		objDiv.setAttribute('title', '클릭하시면 그림을 닫습니다.');
		objDivBox.onclick			= fnShowImage_Close;


		document.body.appendChild(objDiv);
		document.body.appendChild(objDivBox);

		g_objShowImageBox01		= objDiv;
		g_objShowImageBox02		= objDivBox;
	}
}


function fnShowImage_Close()
{
	if(g_objShowImageBox01)
		document.body.removeChild(g_objShowImageBox01);

	if(g_objShowImageBox02)
		document.body.removeChild(g_objShowImageBox02);
}


//	인쇄처리
function fnPrint(objArea)
{
	objArea.print();
	return;


	if(verIE5 || verIE6 || verIE7)
	{
		var objWebBrowserBox	= fnGetObject('webbrowser_print_box');

		if(objWebBrowserBox)
		{
			//document.body.removeChild(objWebBrowser);

			objWebBrowserBox.innerHTML	= '';
		}
		else
		{
			objWebBrowserBox		= document.createElement('div');
			objWebBrowserBox.id				= 'webbrowser_print_box';
			objWebBrowserBox.style.display	= 'none';

			document.body.appendChild(objWebBrowserBox);
		}

		var dwOLECMDID		= 7;
		/* OLECMDID values:
		* 6 - print
		* 7 - print preview
		* 1 - open window
		* 4 - Save As
		*/
		var dwPROMPT		= 1; // 2 DONTPROMPTUSER

		var strWebBrowser	= '<OBJECT ID="webbrowser_print" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
		objWebBrowserBox.innerHTML		= strWebBrowser;

		var objWebBrowser	= fnGetObject('webbrowser_print');
		objWebBrowser.ExecWB(dwOLECMDID, dwPROMPT);
	}
	else
	{
		if(objArea == window)
		{
			objArea.print();
		}
		else
		{
			objArea.window.print();
/*
			var objWindow	= window.open();
			objWindow.document.open();

			objWindow.document.write	= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">';
			objWindow.document.write	= '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">';
			objWindow.document.write	= '<head>';
			objWindow.document.write	= '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
			objWindow.document.write	= '<meta http-equiv="Content-Language" content="ko">';
			objWindow.document.write	= '<title>'+ objArea.window.document.title ? objArea.window.document.title : '' +'</title>';
			objWindow.document.write	= '</head>';
			objWindow.document.write	= '<body>';
			objWindow.document.write	= objArea.document.body.innerHTML;
			objWindow.document.write	= '</body>';
			objWindow.document.write	= '</html>';

			objWindow.document.close();

			objWindow.print();
			objWindow.self.close();
*/
		}
	}
}


