// File download
/*
function FileDown(type, filename, org_filename)
{
	var url = "/common/file_down.jsp?type=" + type + "&filename=" + filename + "&org_filename=" + org_filename;
	location.href = url;
}
*/
function FileDown(type, idx)
{
	var url = "/common/file_down.jsp?type=" + type + "&idx=" + idx;
	location.href = url;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

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_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];}
}


function Trim(st)
{
	while(st && st.indexOf(" ") == 0) st = st.substring(1);
	while(st && st.lastIndexOf(" ") == st.length - 1) st = st.substring(0, st.length -1);
	
	return st
}

function isImageFile(attachfile)
{
	if (attachfile.match(/.jpg|.jpeg|.gif|.bmp$/i))
		return true;
	else
		return false;
}

function C_CheckSpecialChar(str)
{
	var bRet = true;
	var sSpChar = "'\"&%";
	var i ; 
	for( i=0; i < str.length; i++ )  
	{
		if(sSpChar.indexOf(str.substring(i, i+1)) >= 0) {
			bRet = false;
			break ; 
		}
	}

	return bRet;
}

function C_CheckChar(obj)
{
	var str = obj.value;
	if(!C_CheckSpecialChar(str)) {
		alert("Æ¯¼ö¹®ÀÚ ',\",&,% ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
		obj.value = obj.value.substring(0, obj.value.length-1);
		obj.focus();
	}
}

function IsValidLastDay(Year, Mon, Day) 
{
	var Days_in_Month = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);  
	
	if ((Year % 400 == 0) || ((Year % 4 == 0) && (Year % 100 != 0))) {
		Days_in_Month[1] = 29;
	}
	
	if(Day > Days_in_Month[Mon - 1])
		return false;
		
	return true;
}

function C_OpenPopup(id)
{
	 if(id == 1)
		 window.open("/salary/pop_longstay01.jsp", "lwin", "width=630, height=520 resizable=no toolbar=no scrollbars=yes");
	 else if(id == 2)
		 window.open("/salary/pop_grade01.jsp", "lwin", "width=630, height=520 resizable=no toolbar=no scrollbars=yes");
	 else if(id == 3)
		 window.open("/salary/pop_traffic01.jsp", "lwin", "width=630, height=520 resizable=no toolbar=no scrollbars=yes");
}

function getCookie(name) {
    var Found = false;
    var start, end;
    var i = 0;

    // cookie ¹®ÀÚ¿­ ÀüÃ¼¸¦ °Ë»ö
    while(i <= document.cookie.length) {
         start = i;
         end = start + name.length;
         // name°ú µ¿ÀÏÇÑ ¹®ÀÚ°¡ ÀÖ´Ù¸é
         if(document.cookie.substring(start, end) == name) {
             Found = true;
             break;
         }
         i++;
    }

    // name ¹®ÀÚ¿­À» cookie¿¡¼­ Ã£¾Ò´Ù¸é
    if(Found == true) {
        start = end + 1;
        end = document.cookie.indexOf(";", start);
        // ¸¶Áö¸· ºÎºÐÀÌ¶ó´Â °ÍÀ» ÀÇ¹Ì(¸¶Áö¸·¿¡´Â ";"°¡ ¾ø´Ù)
        if(end < start)
            end = document.cookie.length;
        // name¿¡ ÇØ´çÇÏ´Â value°ªÀ» ÃßÃâÇÏ¿© ¸®ÅÏÇÑ´Ù.
        return document.cookie.substring(start, end);
    }
    // Ã£Áö ¸øÇß´Ù¸é
    return "";
}

function setCookie( name, value, expiredays ){
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

/***********************************************************½Ã°¢Àå¾ÖÀÎ**********************************************/
var textResizer={
	_cssKey_:[
				"td", 
				"th", 
				".txt",
				".t1",
				".paystructure .tab",
				
				".paystructure .box03",
				".paystructure .boxbg",
				".paystructure .boxtab",
				".manysided .box li",
				".txt2",
				".dot",
				".ratig5 th",
				
				".t2",
				".t3",
				".t4",
				".t5"
				
				
			 ],			 
			 
	_cssValue_0:[
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 9pt; color: #5b5b5b ; line-height: 14pt; font-weight: normal",
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 9pt; color: #5b5b5b ; line-height: 14pt; font-weight: normal", 
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 8pt; color: #5b5b5b",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 11px; color: #7C7268;line-height: 14px",
				"height:24px; background:url('../image/pay/paystructure_tab.gif') no-repeat left top; font-size:11px; color:#20859C; font-weight:bold; padding:5px 0 0 12px;",
				
				"font-size:12px; line-height:15px; color:#7D7D7D; border-top:#97DCD3 3px solid; border-bottom:#97DCD3 3px solid; padding:0 0 0 16px;",
				"background:url('../image/pay/paystructure_box.gif') no-repeat left bottom; padding:8px 12px; font-size:11px; line-height:14px; color:#597575;",
				"background:url('../image/pay/paystructure_boxtab.gif') no-repeat left top; font-size:11px; color:#20859C; font-weight:bold; vertical-align:middle; padding:0 10px;",
				"background:url('../image/pay/manysided_bl.gif') no-repeat left 3px; padding:0 0 0 5px; font-size:11px; line-height:140%; letter-spacing:-1px;",
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 8pt; color: #005100",
				"font-size: 8pt;",
				"font-size:12px; line-height:140%; color:#6B543C; background-color:#E6E1D8; padding:7;",
			
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 11px; color: #757575;line-height: 14px",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼', 'Arial';font-size: 12px;line-height: 18px;color: #A21F1F;text-decoration: none;font-weight: bold;",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 11px; color: #ff9999;line-height: 14px",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼', 'Arial';font-size: 12px;line-height: 18px;color: #DE9B5E;text-decoration: none;font-weight: bold;"

				],
				
	_cssValue_m1:[
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 8pt; color: #5b5b5b ; line-height: 14pt; font-weight: normal",
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 8pt; color: #5b5b5b ; line-height: 14pt; font-weight: normal", 
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 7pt; color: #5b5b5b",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 10px; color: #7C7268;line-height: 14px",
				"height:24px; background:url('../image/pay/paystructure_tab.gif') no-repeat left top; font-size:10px; color:#20859C; font-weight:bold; padding:5px 0 0 12px;",
				
				"font-size:11px; line-height:15px; color:#7D7D7D; border-top:#97DCD3 3px solid; border-bottom:#97DCD3 3px solid; padding:0 0 0 16px;",
				"background:url('../image/pay/paystructure_box.gif') no-repeat left bottom; padding:8px 12px; font-size:10px; line-height:14px; color:#597575;",
				"background:url('../image/pay/paystructure_boxtab.gif') no-repeat left top; font-size:10px; color:#20859C; font-weight:bold; vertical-align:middle; padding:0 10px;",
				"background:url('../image/pay/manysided_bl.gif') no-repeat left 3px; padding:0 0 0 5px; font-size:10px; line-height:140%; letter-spacing:-1px;",
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 7pt; color: #005100",
				"font-size: 7pt;",
				"font-size:11px; line-height:140%; color:#6B543C; background-color:#E6E1D8; padding:7;",
			
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 10px; color: #757575;line-height: 14px",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼', 'Arial';font-size: 11px;line-height: 18px;color: #A21F1F;text-decoration: none;font-weight: bold;",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 10px; color: #ff9999;line-height: 14px",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼', 'Arial';font-size: 11px;line-height: 18px;color: #DE9B5E;text-decoration: none;font-weight: bold;"
			
				],
				
	_cssValue_m2:[
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 7pt; color: #5b5b5b ; line-height: 14pt; font-weight: normal",
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 7pt; color: #5b5b5b ; line-height: 14pt; font-weight: normal", 
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 6pt; color: #5b5b5b",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 9px; color: #7C7268;line-height: 14px",
				"height:24px; background:url('../image/pay/paystructure_tab.gif') no-repeat left top; font-size:9px; color:#20859C; font-weight:bold; padding:5px 0 0 12px;",
			
				"font-size:10px; line-height:15px; color:#7D7D7D; border-top:#97DCD3 3px solid; border-bottom:#97DCD3 3px solid; padding:0 0 0 16px;",
				"background:url('../image/pay/paystructure_box.gif') no-repeat left bottom; padding:8px 12px; font-size:9px; line-height:14px; color:#597575;",
				"background:url('../image/pay/paystructure_boxtab.gif') no-repeat left top; font-size:9px; color:#20859C; font-weight:bold; vertical-align:middle; padding:0 10px;",
				"background:url('../image/pay/manysided_bl.gif') no-repeat left 3px; padding:0 0 0 5px; font-size:9px; line-height:140%; letter-spacing:-1px;",
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 6pt; color: #005100",
				"font-size: 6pt;",
				"font-size:10px; line-height:140%; color:#6B543C; background-color:#E6E1D8; padding:7;",
			
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 9px; color: #757575;line-height: 14px",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼', 'Arial';font-size: 10px;line-height: 18px;color: #A21F1F;text-decoration: none;font-weight: bold;",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 9px; color: #ff9999;line-height: 14px",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼', 'Arial';font-size: 10px;line-height: 18px;color: #DE9B5E;text-decoration: none;font-weight: bold;"
			
			
				],
				
	_cssValue_m3:[
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 6pt; color: #5b5b5b ; line-height: 14pt; font-weight: normal",
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 6pt; color: #5b5b5b ; line-height: 14pt; font-weight: normal", 
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 5pt; color: #5b5b5b",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 8px; color: #7C7268;line-height: 14px",
				"height:24px; background:url('../image/pay/paystructure_tab.gif') no-repeat left top; font-size:8px; color:#20859C; font-weight:bold; padding:5px 0 0 12px;",
				
				"font-size:9px; line-height:15px; color:#7D7D7D; border-top:#97DCD3 3px solid; border-bottom:#97DCD3 3px solid; padding:0 0 0 16px;",
				"background:url('../image/pay/paystructure_box.gif') no-repeat left bottom; padding:8px 12px; font-size:8px; line-height:14px; color:#597575;",
				"background:url('../image/pay/paystructure_boxtab.gif') no-repeat left top; font-size:8px; color:#20859C; font-weight:bold; vertical-align:middle; padding:0 10px;",
				"background:url('../image/pay/manysided_bl.gif') no-repeat left 3px; padding:0 0 0 5px; font-size:8px; line-height:140%; letter-spacing:-1px;",
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 5pt; color: #005100",
				"font-size: 5pt;",
				"font-size:9px; line-height:140%; color:#6B543C; background-color:#E6E1D8; padding:7;",
			
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 8px; color: #757575;line-height: 14px",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼', 'Arial';font-size: 9px;line-height: 18px;color: #A21F1F;text-decoration: none;font-weight: bold;",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 8px; color: #ff9999;line-height: 14px",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼', 'Arial';font-size: 9px;line-height: 18px;color: #DE9B5E;text-decoration: none;font-weight: bold;"
			
			
			
				],
	
	_cssValue_p1:[
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 10pt; color: #5b5b5b ; line-height: 14pt; font-weight: normal",
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 10pt; color: #5b5b5b ; line-height: 14pt; font-weight: normal", 
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 9pt; color: #5b5b5b",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 12px; color: #7C7268;line-height: 14px",
				"height:24px; background:url('../image/pay/paystructure_tab.gif') no-repeat left top; font-size:12px; color:#20859C; font-weight:bold; padding:5px 0 0 12px;",
			
				
				"font-size:13px; line-height:15px; color:#7D7D7D; border-top:#97DCD3 3px solid; border-bottom:#97DCD3 3px solid; padding:0 0 0 16px;",
				"background:url('../image/pay/paystructure_box.gif') no-repeat left bottom; padding:8px 12px; font-size:12px; line-height:14px; color:#597575;",
				"background:url('../image/pay/paystructure_boxtab.gif') no-repeat left top; font-size:12px; color:#20859C; font-weight:bold; vertical-align:middle; padding:0 10px;",
				"background:url('../image/pay/manysided_bl.gif') no-repeat left 3px; padding:0 0 0 5px; font-size:12px; line-height:140%; letter-spacing:-1px;",
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 9pt; color: #005100",
				"font-size: 9pt;",
				"font-size:13px; line-height:140%; color:#6B543C; background-color:#E6E1D8; padding:7;",
			
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 12px; color: #757575;line-height: 14px",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼', 'Arial';font-size: 13px;line-height: 18px;color: #A21F1F;text-decoration: none;font-weight: bold;",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 12px; color: #ff9999;line-height: 14px",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼', 'Arial';font-size: 13px;line-height: 18px;color: #DE9B5E;text-decoration: none;font-weight: bold;"

						

				],
				
	_cssValue_p2:[
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 11pt; color: #5b5b5b ; line-height: 14pt; font-weight: normal",
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 11pt; color: #5b5b5b ; line-height: 14pt; font-weight: normal", 
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 10pt; color: #5b5b5b",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 13px; color: #7C7268;line-height: 14px",
				"height:24px; background:url('../image/pay/paystructure_tab.gif') no-repeat left top; font-size:13px; color:#20859C; font-weight:bold; padding:5px 0 0 12px;",
				

				"font-size:14px; line-height:15px; color:#7D7D7D; border-top:#97DCD3 3px solid; border-bottom:#97DCD3 3px solid; padding:0 0 0 16px;",
				"background:url('../image/pay/paystructure_box.gif') no-repeat left bottom; padding:8px 12px; font-size:13px; line-height:14px; color:#597575;",
				"background:url('../image/pay/paystructure_boxtab.gif') no-repeat left top; font-size:13px; color:#20859C; font-weight:bold; vertical-align:middle; padding:0 10px;",
				"background:url('../image/pay/manysided_bl.gif') no-repeat left 3px; padding:0 0 0 5px; font-size:13px; line-height:140%; letter-spacing:-1px;",
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 10pt; color: #005100",
				"font-size: 10pt;",
				"font-size:14px; line-height:140%; color:#6B543C; background-color:#E6E1D8; padding:7;",
			
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 13px; color: #757575;line-height: 14px",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼', 'Arial';font-size: 14px;line-height: 18px;color: #A21F1F;text-decoration: none;font-weight: bold;",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 13px; color: #ff9999;line-height: 14px",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼', 'Arial';font-size: 14px;line-height: 18px;color: #DE9B5E;text-decoration: none;font-weight: bold;"

										
				],
				
	_cssValue_p3:[
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 12pt; color: #5b5b5b ; line-height: 14pt; font-weight: normal",
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 12pt; color: #5b5b5b ; line-height: 14pt; font-weight: normal", 
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 11pt; color: #5b5b5b",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 14px; color: #7C7268;line-height: 14px",
				"height:24px; background:url('../image/pay/paystructure_tab.gif') no-repeat left top; font-size:14px; color:#20859C; font-weight:bold; padding:5px 0 0 12px;",
				

				"font-size:15px; line-height:15px; color:#7D7D7D; border-top:#97DCD3 3px solid; border-bottom:#97DCD3 3px solid; padding:0 0 0 16px;",
				"background:url('../image/pay/paystructure_box.gif') no-repeat left bottom; padding:8px 12px; font-size:14px; line-height:14px; color:#597575;",
				"background:url('../image/pay/paystructure_boxtab.gif') no-repeat left top; font-size:14px; color:#20859C; font-weight:bold; vertical-align:middle; padding:0 10px;",
				"background:url('../image/pay/manysided_bl.gif') no-repeat left 3px; padding:0 0 0 5px; font-size:14px; line-height:140%; letter-spacing:-1px;",
				"font-family: '±¼¸²', 'seoul', 'arial', 'MS Gothic'; font-size: 11pt; color: #005100",
				"font-size: 11pt;",
				"font-size:15px; line-height:140%; color:#6B543C; background-color:#E6E1D8; padding:7;",
			
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 14px; color: #757575;line-height: 14px",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼', 'Arial';font-size: 15px;line-height: 18px;color: #A21F1F;text-decoration: none;font-weight: bold;",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼','Arial'; font-size: 14px; color: #ff9999;line-height: 14px",
				"font-family: 'µ¸¿ò', 'µ¸¿òÃ¼', 'Arial';font-size: 15px;line-height: 18px;color: #DE9B5E;text-decoration: none;font-weight: bold;"

					
				],
				

	_zoomValue:0,
	_zoomMin:-3,
	_zoomMax:3,
	
	zoom_test:function (n) {
		//½ºÅ¸ÀÏ ¹Ù²Ù±â
		var cssValue="";
		this._zoomValue=this._zoomValue+eval(n);
		
		if(this._zoomValue<this._zoomMin) this._zoomValue=this._zoomMin;
		if(this._zoomValue>this._zoomMax) this._zoomValue=this._zoomMax;
			
		
		
		if(this._zoomValue>0) {
			cssValue="_cssValue_p"+this._zoomValue;
		}else if(this._zoomValue<0){
			cssValue="_cssValue_m"+(this._zoomValue*(-1));
		}else{
			cssValue="_cssValue_0";
		}	
			
		var ss=false;
		if(document.styleSheets)ss=document.styleSheets[0];
		if(ss.sheet)ss=ss.sheet;
		if(ss.styleSheet)ss=ss.styleSheet;
			
		//alert( eval(zoomValue+"[1]") );	
		
		//ºê¶ó¿ìÀú ÆÇ´Ü.
		if(ss.addRule){	//ie¿ë
			//È®´ëÃà¼Ò
			
			for (var i=0; i<this._cssKey_.length; i++){
				//alert(this._cssKey_[i]+"---"+eval("this."+cssValue+"["+i+"]"));				
				if(ss) this.addRuleIE(ss,this._cssKey_[i],eval("this."+cssValue+"["+i+"]"));
			}	
			//this.setCookie('pagesetting', newclass, 1) 	// ³¯Â¥ ÁöÁ¤½Ã.
			this.setCookie('pagesetting', this._zoomValue) 
		}else{	////ff, nsµî ±âÅ¸.
			//È®´ëÃà¼Ò
			for (i=0; i<this._cssKey_.length; i++){
				if(ss)this.addRuleETC(ss,this._cssKey_[i],eval("this."+cssValue+"["+i+"]"));	
			}	
			this.setCookie('pagesetting', this._zoomValue) 		
		}
		
		//new_rule = document.styleSheets[0].addRule("td", "font-size:19pt");
		//clear();
	}	,
	

	addRuleIE:function (s,l,c){
	
		if(!s)return false;	
	
		//±âÁ¸ ½ºÅ¸ÀÏ »èÁ¦
		for (var i=0; i<s.rules.length; i++){
			//alert(s.rules[i].selectorText);
			if ( (s.rules[i].selectorText).toLowerCase()==(l).toLowerCase() )
			s.removeRule(i)
		
		}	
		try{
		return s.addRule(l,c)?true:false;
		}catch(e){alert(e.toString())}
	},

	addRuleETC:function (s,l,c){
		if(!s)return false;		
		//±âÁ¸ ½ºÅ¸ÀÏ »èÁ¦
		for (var i=0; i<s.cssRules.length; i++){
			//alert(s.cssRules[i].selectorText);
			if ((s.cssRules[i].selectorText).toLowerCase()==(l).toLowerCase() )
			s.deleteRule(i)
		}	
		s.insertRule(l+"{"+c+"}",s.cssRules.length);				
		return true;		
	},
	
	
	init:function(){		
		var n=this.getCookie('pagesetting')		
		//alert(n);
		this.zoom_test(n)
	}	,		
	
	/******************************** ÄíÅ°¼³Á¤  ***********************************/
	getCookie:function(Name){ 
		var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
		if (document.cookie.match(re)) //if cookie found
			return document.cookie.match(re)[0].split("=")[1] //return its value
		return null
	},
	
	setCookie:function(name, value, days){		
		if (typeof days!="undefined"){ //if set persistent cookie
			var expireDate = new Date()
			var expstring=expireDate.setDate(expireDate.getDate()+days)
			document.cookie = name+"="+value+"; path=/; expires="+expireDate.toGMTString()
		}
		else //else if this is a session only cookie
			document.cookie = name+"="+value
	},	
	

	
	
	/******************************** ¹è°æ, ±ÛÀÚ »ö»ó¼³Á¤  ***********************************/

	isReverse:0, //°í´ëºñ

	setFontColor:function (color){
		var con = document.getElementById("pay_content");
		//con.border=1;		
		// con.style.color = this.fontColor[fontColorIndex]; //						
		//con.style.color= this.fontColor[i];
			
		tmp = con.getElementsByTagName("td"); 
		for (i=0; i<tmp.length; i++) 
		{ 
			tmp[i].style.color = color; 
		} 		
		tmp = con.getElementsByTagName("a"); 
		for (i=0; i<tmp.length; i++) 
		{ 
			tmp[i].style.color = color; 
		} 			
		
	},
	
	setBGColor:function (color){
		var con = document.getElementById("pay_content");		
		// con.style.backgroundColor = this.bgColor[bgColorIndex]; //		
		con.style.background = color;
	}	,
		
	//°í´ëºñ¼³Á¤	
	set_bgcolor:function (){
		if( this.isReverse ==0){
			this.isReverse = 1;			
			this.setFontColor("white");
			this.setBGColor("black");		
		}else{		// ¿ø»óÅÂ·Î
			this.isReverse = 0;
			this.setFontColor("black");
			this.setBGColor("white");
		}	
	}
}
/***********************************************************½Ã°¢Àå¾ÖÀÎ ³¡**********************************************/