/* Å¬¸¯½Ã Á¡¼± ¾Èº¸ÀÌ±â S */
<!--

function autoBlur(){ 
  if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
  document.body.focus(); 
} 
  document.onfocusin=autoBlur; 
//-->
/* Å¬¸¯½Ã Á¡¼± ¾Èº¸ÀÌ±â E */



/*»õÃ¢ ¶ç¿ì±â S */
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
/* »õÃ¢ ¶ç¿ì±â E */

/* Àú¼öÁö ¼ö¹®Á¶»ç º¸°í¼­ »õÃ¢ S */
 function pop(a)
{
	 url = a.getAttribute("href");
	 window.open(url,'report','scrollbars=yes,width=870,height=650,top=80');
	 return false;
}
/* Àú¼öÁö ¼ö¹®Á¶»ç º¸°í¼­ »õÃ¢ E */


/* Àú¼öÁö ¼ö¹®Á¶»ç º¸°í¼­ »õÃ¢_1 S */
 function pop1(a)
{
	 url = a.getAttribute("href");
	 window.open(url,'report1','scrollbars=yes,width=870,height=650,top=120');
	 return false;
}
/* Àú¼öÁö ¼ö¹®Á¶»ç º¸°í¼­ »õÃ¢_1 E */




/* ÀÌ¹ÌÁö¼öÁ¤ÇÏ±â »õÃ¢ S */
 function file(a)
{
	 url = a.getAttribute("href");
	 window.open(url,'file','scrollbars=no,width=400,height=170,top=80');
	 return false;
}
/* ÀÌ¹ÌÁö¼öÁ¤ÇÏ±â »õÃ¢ E */


/* Àú¼öÁö ¼ö¹®Á¶»ç º¸°í¼­ »õÃ¢ »çÀÌÁî ÀÚµ¿Á¶Àý S */
function auto_fit_size() {
    window.resizeTo(100, 100);
    var thisX = 870;
    var thisY = parseInt(document.body.scrollHeight);
    var maxThisX = screen.width - 50;
    var maxThisY = screen.height - 50;
    var marginY = 0;
    //alert(thisX + "===" + thisY);
    //alert("ÀÓ½Ã ºê¶ó¿ìÀú È®ÀÎ : " + navigator.userAgent);
    // ºê¶ó¿ìÀúº° ³ôÀÌ Á¶Àý. (Ç¥ÁØ Ã¢ ÇÏ¿¡¼­ Á¶ÀýÇØ ÁÖ½Ê½Ã¿À.)
    if (navigator.userAgent.indexOf("MSIE 6") > 0) marginY = 60;        // IE 6.x
    else if(navigator.userAgent.indexOf("MSIE 7") > 0) marginY = 80;    // IE 7.x
    else if(navigator.userAgent.indexOf("Firefox") > 0) marginY = 50;   // FF
    else if(navigator.userAgent.indexOf("Opera") > 0) marginY = 30;     // Opera
    else if(navigator.userAgent.indexOf("Netscape") > 0) marginY = -2;  // Netscape

    if (thisX > maxThisX) {
        window.document.body.scroll = "yes";
        thisX = maxThisX;
    }
    if (thisY > maxThisY - marginY) {
        window.document.body.scroll = "yes";
        thisX += 19;
        thisY = maxThisY - marginY;
    }
    window.resizeTo(thisX+10, thisY+marginY);
}
/* Àú¼öÁö ¼ö¹®Á¶»ç º¸°í¼­ »õÃ¢ »çÀÌÁî ÀÚµ¿Á¶Àý E */




/* ÀÌ¹ÌÁö »çÀÌÁî(Ç¥°í¹×°æ»çº° ¸éÀûºÐÆ÷µµ) ÀÚµ¿Á¶Àý S */
function check_img_size()
{
if(document.oImg.height > 512 || document.oImg.width > 680)
{
if(512 / document.oImg.height > 680 / document.oImg.width)
{
  document.oImg.height *= 512 / document.oImg.width;
  document.oImg.width = 680;
}
else
{
  document.oImg.height = 512;
  document.oImg.width *= 680 / document.oImg.height;
}
}
}
/* ÀÌ¹ÌÁö »çÀÌÁî ÀÚµ¿Á¶Àý E */




/* ÀÌ¹ÌÁö »çÀÌÁî(Ç¥°í¹×°æ»çº° ¸éÀûºÐÆ÷µµ) ÀÚµ¿Á¶Àý2 S */
function check_img_size1()
{
if(document.oImg1.height > 512 || document.oImg1.width > 680)
{
if(512 / document.oImg1.height > 680 / document.oImg1.width)
{
  document.oImg1.height *= 512 / document.oImg1.width;
  document.oImg1.width = 680;
}
else
{
  document.oImg1.height = 512;
  document.oImg1.width *= 680 / document.oImg1.height;
}
}
}
/* ÀÌ¹ÌÁö »çÀÌÁî ÀÚµ¿Á¶Àý2 E */



/* ÀÌ¹ÌÁö »çÀÌÁî(Ç¥°í¹×°æ»çº° ¸éÀûºÐÆ÷µµ) ÀÚµ¿Á¶Àý3 S */
function check_img_size2()
{
if(document.oImg2.height > 512 || document.oImg2.width > 680)
{
if(512 / document.oImg2.height > 680 / document.oImg2.width)
{
  document.oImg2.height *= 512 / document.oImg2.width;
  document.oImg2.width = 680;
}
else
{
  document.oImg2.height = 512;
  document.oImg2.width *= 680 / document.oImg2.height;
}
}
}
/* ÀÌ¹ÌÁö »çÀÌÁî ÀÚµ¿Á¶Àý E */



/* Áö¿ª°Ë»ö S */
function auto_fit_size3() {
    window.resizeTo(100, 100);
    var thisX = 400;
    var thisY = parseInt(document.body.scrollHeight);
    var maxThisX = screen.width - 50;
    var maxThisY = screen.height - 50;
    var marginY = 0;
    //alert(thisX + "===" + thisY);
    //alert("ÀÓ½Ã ºê¶ó¿ìÀú È®ÀÎ : " + navigator.userAgent);
    // ºê¶ó¿ìÀúº° ³ôÀÌ Á¶Àý. (Ç¥ÁØ Ã¢ ÇÏ¿¡¼­ Á¶ÀýÇØ ÁÖ½Ê½Ã¿À.)
    if (navigator.userAgent.indexOf("MSIE 6") > 0) marginY = 60;        // IE 6.x
    else if(navigator.userAgent.indexOf("MSIE 7") > 0) marginY = 80;    // IE 7.x
    else if(navigator.userAgent.indexOf("Firefox") > 0) marginY = 50;   // FF
    else if(navigator.userAgent.indexOf("Opera") > 0) marginY = 30;     // Opera
    else if(navigator.userAgent.indexOf("Netscape") > 0) marginY = -2;  // Netscape

    if (thisX > maxThisX) {
        window.document.body.scroll = "yes";
        thisX = maxThisX;
    }
    if (thisY > maxThisY - marginY) {
        window.document.body.scroll = "yes";
        thisX += 19;
        thisY = maxThisY - marginY;
    }
    window.resizeTo(thisX+10, thisY+marginY);
}
/* Áö¿ª°Ë»ö E */




/*ÁÖ¼Ò °¨Ãß±â S */

function hidestatus(){ 
window.status='' 
return true 
} 

if (document.layers) 
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) 

document.onmouseover=hidestatus 
document.onmouseout=hidestatus 

/*ÁÖ¼Ò °¨Ãß±â E */




/* active flash  E */
function activex_flash(wd,hd,fn,wmode) 
{
	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="'+wd+'" height="'+hd+'">');
	document.write('<param name="movie" value="'+fn+'">');
	document.write('<param name=quality value=high>');
	if(wmode==1) 
	{
		document.write('<param name="wmode" value="transparent">');
	}
	document.write('<embed src="'+fn+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+wd+'" height="'+hd+'"></embed>');
	document.write('</object>');
}
/* active flash  E */

function toggle_A(item_ma) {
if(item_ma.style.display =="none") item_ma.style.display = "";
else item_ma.style.display = "none";
}






/*½ºÄ«ÀÌ½ºÅ©¸³Æ® S */



function CheckUIElements1()
{
	    D2.style.left = (document.body.scrollWidth / 2) + 420;
		var yMenu1From, yMenu1To, yOffset, timeoutNextCheck;
		var wndWidth = parseInt(document.body.clientWidth);

			yMenu1From   = parseInt (D2.style.top, 10);
			yMenu1To     = document.body.scrollTop + 138; // À§ÂÊ À§Ä¡

		timeoutNextCheck = 5;

		if ( yMenu1From != yMenu1To ) {
			   yOffset = Math.ceil( Math.abs( yMenu1To - yMenu1From ) / 20 );
			if ( yMenu1To < yMenu1From )
					yOffset = -yOffset;

	D2.style.top = parseInt (D2.style.top, 10) + yOffset;

			timeoutNextCheck = 5;
	}

	setTimeout ("CheckUIElements1()", timeoutNextCheck);
}

function MovePosition1()
{
	var wndWidth = parseInt(document.body.clientWidth);

	// ÆäÀÌÁö ·Îµù½Ã Æ÷Áö¼Ç

			D2.style.top = document.body.scrollTop + 400;

			D2.style.visibility = "visible";

	// initializing UI update timer
	CheckUIElements1();

	return true;
}


/*½ºÄ«ÀÌ½ºÅ©¸³Æ® E */



/*·Ñ¿À¹ö S */
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

/*·Ñ¿À¹ö E */


/*ÀÌ¹ÌÁö Å©°Ô º¸±â S */
String.prototype.popupView = function () { 

var img_view = this; 
var x = x + 20 ; 
var y = y + 30 ; 
htmlz = "<html><head><title>ÀÌ¹ÌÁöÅ©°Ôº¸±â</title><style>body{margin:0;cursor:hand;}</style></head><body scroll=auto onload='width1=document.all.Timage.width;if(width1>1024)width1=1024;height1=document.all.Timage.height;if(height1>768)height1=768;top.window.resizeTo(width1+25,height1+54);' onclick='top.window.close();'><img src='"+img_view+"'  title='Å¬¸¯ÇÏ½Ã¸é ´ÝÈü´Ï´Ù.' name='Timage' id='Timage'></body></html>" 
imagez = window.open('', "image", "width="+ 450 +", height="+ 100 +", top=80,scrollbars=no,resizable=1,toolbar=0,menubar=0,location=0,directories=0,status=1"); 
imagez.document.open(); 
imagez.document.write(htmlz) 
imagez.document.close(); 
} 
/*ÀÌ¹ÌÁö Å©°Ô º¸±â E */





