﻿
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try 
{
    var pageTracker = _gat._getTracker("UA-3749849-2");
    pageTracker._trackPageview();
} 
catch(err) 
{}

//=============================================================================
// 함수명: Popup 
// 설  명: PopUp 창 호출
// 작업일: 
// 작업자: 
//=============================================================================

function PopUp(intStyle, intWidth, intHeight, strUrl) {
   var intLeft = 0, intTop = 0;
   var winstyle;            

   //중앙정렬 (스크롤바 무, 상태표시줄 무)
   if (intStyle == 0) {      
      intLeft = screen.width/2-intWidth/2;
      intTop = screen.height/2-intHeight/2;
      
      return window.open(strUrl, null, 'menubar =0,resizable=0,scrollbars=0,status=no,titlebar=0,toolbar=no,width='+intWidth+',height='+intHeight+',left='+intLeft+',top='+intTop);      
   }    
   //showModelessDialog
   else if (intStyle == 1) {
      winstyle = "dialogWidth=" + intWidth + "px; dialogHeight=" + intHeight + "px; center:yes; status=no; help:no; ";      
      return window.showModelessDialog(strUrl, window, winstyle); 
   }
   //showModalDialog
   else if (intStyle == 2) {
      winstyle = "dialogWidth=" + intWidth + "px; dialogHeight=" + intHeight + "px; center:yes; status=no; help:no; ";      
      return window.showModalDialog(strUrl, window, winstyle); 
   }
   //excel
   else if (intStyle == 3) {      
      intLeft = screen.width/2-intWidth/2;
      intTop = screen.height/2-intHeight/2;
      
      return window.open(strUrl, null, 'menubar =1,resizable=1,scrollbars=0,status=no,titlebar=0,toolbar=no,width='+intWidth+',height='+intHeight+',left='+intLeft+',top='+intTop);      
   }
   //중앙정렬 (스크롤바 유, 상태표시줄 무)
   else if (intStyle == 4) {      
      intLeft = screen.width/2-intWidth/2;
      intTop = screen.height/2-intHeight/2;
      
      return window.open(strUrl, null, 'menubar =0,resizable=0,scrollbars=1,status=no,titlebar=0,toolbar=no,width='+intWidth+',height='+intHeight+',left='+intLeft+',top='+intTop);      
   }
   //좌측상단정렬 (스크롤바 무, 상태표시줄 무)
   else if (intStyle == 5) {      
      
      return window.open(strUrl, null, 'menubar =0,resizable=0,scrollbars=0,status=no,titlebar=0,toolbar=no,width='+intWidth+',height='+intHeight+',left='+intLeft+',top='+intTop);      
   }   
   //테스트용 (스크롤바 유, 상태표시줄 유)   
   else if (intStyle == 99) {      
      intLeft = screen.width/2-intWidth/2;
      intTop = screen.height/2-intHeight/2;
      
      return window.open(strUrl, null, 'menubar =0,resizable=0,scrollbars=1,status=yes,titlebar=0,toolbar=no,width='+intWidth+',height='+intHeight+',left='+intLeft+',top='+intTop);      
   }      
   
}  


//=============================================================================
// 함수명: MM_preloadImages
// 설  명: Mouse Over에 의한 이미지 전환
// 작업일: 
// 작업자: 
//=============================================================================
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];}}
}


//=============================================================================
// 함수명: MM_swapImgRestore
// 설  명: Mouse Over에 의한 이미지 전환
// 작업일: 
// 작업자: 
//=============================================================================
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;
}


//=============================================================================
// 함수명: MM_findObj
// 설  명: Mouse Over에 의한 이미지 전환
// 작업일: 
// 작업자: 
//=============================================================================
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;
}


//=============================================================================
// 함수명: MM_swapImage
// 설  명: Mouse Over에 의한 이미지 전환
// 작업일: 
// 작업자: 
//=============================================================================
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 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; }
}


//=============================================================================
// 함수명: GoHome
// 설  명: 홈페이지 초기화면으로 이동
// 작업일: 
// 작업자: 
//=============================================================================
function GoHome() {
	
	parent.location = "../../index.html" ;
	
}

//=============================================================================
// 함수명: GoPage
// 설  명: Page 이동
// 작업일: 
// 작업자: 
//=============================================================================
function GoPage(pStrPageNm) {
	
	parent.location = pStrPageNm ;
	
}

//=============================================================================
// 함수명: SetIframeHeight
// 설  명: Iframe 높이 설정
// 작업일: 
// 작업자: 
//=============================================================================
function SetIframeHeight() {
		
	parent.document.all.Iframe1.height = document.body.scrollHeight; 
	
}

//=============================================================================
// 함수명: scroll
// 설  명: 오른쪽 따라다니는 스크롤
// 작업일: 
// 작업자:
//=============================================================================


function scroll(){
    var a=document.body.scrollTop+138
    menu.style.top=a;
}

//--------------------------------------------------------------------------------------//
// Description  : a function for MS IE ActiveX Rollup Patch                             //
// Parameter    : id                                                                    //
// Example  :                                                                           //
// Etc      :                                                                           //
//--------------------------------------------------------------------------------------//
function __WS__(id)
{
 document.write(id.text); id.id="";
} 


//=============================================================================
// 함수명: ValidateData                                                        
// 설  명: validateForm에 의해 사용된다
// 작업일:                                                                     
// 작업자:                                                                     
//=============================================================================
function validateData(objValue, strValidateStr, strError) 
{
    var epos = strValidateStr.search("="); 
    var command  = ""; 
    var cmdvalue = ""; 
    
    if(epos >= 0) 
    { 
		command  = strValidateStr.substring(0,epos); 
		cmdvalue = strValidateStr.substr(epos+1); 
    } 
    else 
    { 
		command = strValidateStr;
    } 
    switch(command) 
    { 
		case "req": 
        case "required": 
		{
		   var tp = objValue.value.replace(/\s/g,'');
           if(eval(tp.length) == 0) 
           { 
              alert(strError);
              return false; 
           } 
           break;             
        }
        case "maxlen": 
        case "maxlength": 
        { 
             if(eval(objValue.value.length) >  eval(cmdvalue)) 
             { 
				alert(strError);
				return false; 
             }
             break; 
        }
        case "minlen": 
        case "minlength": 
        { 
             if(eval(objValue.value.length) <  eval(cmdvalue) && eval(objValue.value.length) != eval(0)) 
             { 
				alert(strError);
				return false;                 
             }
             break; 
        }        
        case "eng":
        case "english": 
        { 
              var charpos = objValue.value.search("[^A-Za-z]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
				alert(strError);
				return false; 
              } 
              break; 
        }
        case "engnum": 
        case "engnumeric": 
        { 
              var charpos = objValue.value.search("[^A-Za-z0-9]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                alert(strError);
                return false; 
              }
              break; 
        }
        case "engnumhyphen":
		{
              var charpos = objValue.value.search("[^A-Za-z0-9\-_]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                alert(strError);
                return false; 
              }
              break;
		} 
        case "num": 
        case "numeric": 
        { 
              var charpos = objValue.value.search("[^0-9\]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
				alert(strError);
				return false; 
              } 
              break;               
        }
        case "float": 
        { 
			if(objValue != undefined)
			{				
              var charpos = objValue.value.search("[^0-9\-.]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
				alert(strError);
				return false; 
              } 
            }  
            break;           
                
        }
        case "numhyphen": 
        { 
              var charpos = objValue.value.search("[^0-9\-_]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
				alert(strError);
				return false; 
              } 
              break;               
        }
        
        case "han" :
		case "hangul":
		{
              var charpos = objValue.value.search("[^가-힣]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                alert(strError);
                return false; 
              }
              break;
		}
		case "hannum" :
		case "hangulnumeric":
		{
              var charpos = objValue.value.search("[^ㄱ-ㅎ가-힣0-9]");
              alert(charpos);
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                alert(strError);
                objValue.select();
				objValue.focus();
                return false; 
              } 			
				break;
		}
		case "hanalpha" :
		case "hangulalphabetic":
		{
              var charpos = objValue.value.search("[^ㄱ-ㅎ가-힣A-Za-z]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                alert(strError);
                return false;
              } 			
				break;
		}
		case "hanengnum" :
		case "hangulenglishnumeric":
		{
              var charpos = objValue.value.search("[^ㄱ-ㅎ가-힣A-Za-z0-9]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                alert(strError);
                return false; 
              } 			
				break;
		}
        case "email": 
        { 
               if(!CheckEmail(objValue.value)) 
               { 
                 alert(strError);
                 return false; 
               } 
           break; 
        } 
        case "lt": 
        case "lessthan": 
        { 
            if(isNaN(objValue.value)) 
            { 
              return false; 
            }
            if(eval(objValue.value) >=  eval(cmdvalue)) 
            { 
              alert(strError);
              return false;                 
             }             
            break; 
        } 
        case "gt": 
        case "greaterthan": 
        { 
            if(isNaN(objValue.value)) 
            { 
              return false; 
            }
            if(eval(objValue.value) <=  eval(cmdvalue)) 
            { 
               alert(strError); 
               return false;                 
            }             
            break; 
        }        
        case "regexp": 
        { 
		 	if(objValue.value.length > 0)
			{
	            if(!objValue.value.match(cmdvalue)) 
	            { 
	              alert(strError);
	              return false;                   
	            } 
			}
           break; 
        } 
        case "dontselect": 
        { 
            if(objValue.selectedIndex == null) 
            { 
              return false;
            } 
            if(objValue.selectedIndex == eval(cmdvalue)) 
            { 
              alert(strError);
              return false;                                   
            } 
            break; 
        }
        case "dategreaterthan":
        {
			var startSplit = objValue.value.split("-");
			var endSplit;
			var startDate = new Date(startSplit[0], parseInt(startSplit[1])-1, startSplit[2]);
			var tempDate = new Date();
			var endDate;
			
			if(cmdvalue != "")
			{
				endSplit = document.all[cmdvalue].value.split("-");
				endDate = new Date(endSplit[0], parseInt(endSplit[1])-1, endSplit[2]);
			}
			else
			{
				endDate = new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate());
			}
			
			if(startDate <= endDate)
			{
				alert(strError);
				return false;
			}
			break;
        }
    }

    return true; 
}


//=============================================================================
// 함수명: validateForm
// 설  명: 컨트롤의 유효성을 검사 validateData()를 호출하여 검사한다.
// 작업일: 
// 작업자: 
//=============================================================================
function validateForm(arrObjDesc) 
{ 

	for(var i=0; i < arrObjDesc.length; i++) 
	{
		for(var j=0; j < arrObjDesc[i].length ;j++) 
		{
			var objForm = document.all[arrObjDesc[i][j][0]];
			
			if(validateData(objForm, arrObjDesc[i][j][1], arrObjDesc[i][j][2]) == false) 
			{
				objForm.focus();
				event.returnValue = false;
				return false;				 
			}
		} 
	}
	return true;
}



//=============================================================================
// 함수명: CheckSumIdnNo
// 설  명: 주민번호 CheckSum 확인
// 작업일: 
// 작업자: 
//=============================================================================
function CheckSumIdnNo(pStrIdnNo){
	var tmp = 0 
	var pStrIdnNo1 = pStrIdnNo.substring(0,6);
	var pStrIdnNo2 = pStrIdnNo.substring(6,13);
	
	if (pStrIdnNo2.substring(0, 1) == 5 || pStrIdnNo2.substring(0, 1) == 6)
	{
		return true;  
	}
	else
	{
		for (i = 0; i <=5 ; i++) { 
			tmp = tmp + ((i%8+2) * parseInt(pStrIdnNo1.substring(i,i+1))) 
		}     
		
		for (i = 6; i <=11 ; i++) { 
			tmp = tmp + ((i%8+2) * parseInt(pStrIdnNo2.substring(i-6,i-5))) 
		}     
		
		tmp = 11 - (tmp %11) 
		tmp = tmp % 10 	
		
		if (tmp != pStrIdnNo2.substring(6,7)) { 
			return false;  
		}else{
			return true;  
		}
	}	
}


//=============================================================================
// 함수명: PopupEvent
// 설  명: 이벤트, 공지 Popup
// 작업일: 
// 작업자: 
//=============================================================================
function PopupEvent(pstrUrl, pstrNm, pstrWindowType, pstrPublicYn) {
	var objWindow;	
	
	if (pstrPublicYn == "0")
	{
		if (document.all.txtLoginYn.value != "1")
		{
			alert("로그인을 하셔야 합니다.");
			return;						
		}
	}			
	
	objWindow = window.open(pstrUrl + "?CD=" + pstrNm, pstrNm, pstrWindowType);	        	
	objWindow.focus();
}


//=============================================================================
// 함수명: CheckEmail
// 설  명: 이메일 주소 검사
// 작업일: 
// 작업자: 
//=============================================================================
function CheckEmail(strValue) 
{ 
	var flag = false;
	emailEx1 = /^([\.\,\-A-Za-z0-9_]{1,15})(@{1})([\.\,\-A-Za-z0-9_]{1,15})(\.{1})([\.\,\-A-Za-z0-9_]{2,10})(\.{1}[\.\,\-A-Za-z]{2,10})?(\.{1}[\.\,\-A-Za-z]{2,10})?$/; 
	if (emailEx1.test(strValue)) 
	{
		flag = false; 
	}
	else 
	{
		flag = true; 
	}
	return flag;
} 


//=============================================================================
// 함수명: Trim
// 설  명: 넘어온 문자열들중에 포함된 공백을 모두 없앤 문자열을 리턴
// 작업일: 
// 작업자: 
//=============================================================================
function Trim(strings)
{
    var retString = "";
    var c;
    var i;
    for(i=0;i<strings.length;i++) {
        c = strings.charAt(i);
        if(c != ' '){
           retString += c;
        }
    }
    return(retString);
}

//=============================================================================
// 함수명: ReplaceStr
// 설  명: 문자열 치환 Popup
// 작업일: 
// 작업자: 
//=============================================================================

function ReplaceStr(strOriginal, strFind, strChange)
{
  return strOriginal.split(strFind).join(strChange);
}


//=============================================================================
// 함수명: isDate
// 설  명: 날짜 유효성
// 작업일: 
// 작업자: 
//=============================================================================
function isDate(yyyy,mm,dd)
{
   if (yyyy.length != 4)
      return false;
   else {   
      yyyy=parseInt(yyyy,10);
      mm=parseInt(mm,10);
      dd=parseInt(dd,10);
      d = new Date(yyyy,mm-1,dd);
      if (d=="NaN") return false;
      if (yyyy == d.getFullYear() &&
         mm == d.getMonth()+1 &&
         dd == d.getDate() ) return true;
      return false;
   }   
}


//=============================================================================
// 함수명: isDate_yyyy_m_d
// 설  명: yyyy-mm-dd 형태 유효성
// 작업일: 
// 작업자: 
//=============================================================================
function isDate_yyyy_m_d(s)// yyyy-mm-dd 형태
{
   s=s.replace(/\s/g,""); // 공백제거
   if (s.match(/\d+\-\d+\-\d+/g)!=s) 
      return false; // 1111-11-11 포맷이 아님
   var d = s.split(/\-/g);
   return isDate(d[0],d[1],d[2]);
}


//=============================================================================
// 함수명: checkDate
// 설  명: yyyy-mm-dd 형태 날짜 유효성
// 작업일: 
// 작업자: 
//=============================================================================
function checkDate(s)
{
   var isD

   isD=isDate_yyyy_m_d(s);
   if (isD) 
      return true;
   else
      return false;
}


//=============================================================================
// 함수명: correctDate
// 설  명: yyyy-mm-dd 형태 날짜
// 작업일: 
// 작업자: 
//=============================================================================
function correctDate(s)// yyyy-mm-dd 형태
{
   s=s.replace(/\s/g,""); // 공백제거
   var d = s.split(/\-/g);
   if (d[1].length == 1)
      d[1] = "0" + d[1];
   if (d[2].length == 1)
      d[2] = "0" + d[2];  
   return d[0] + "-"  + d[1] + "-" + d[2];
}


//=============================================================================
// 함수명: EnterProcOnKeyDown
// 설  명: Enter Key Event를 Tab Key Event로 전환
// 작업일: 
// 작업자: 
//=============================================================================
function EnterProcOnKeyDown() { 
   if (event.keyCode == 13) {
      event.keyCode = 9;
   } 
}


//=============================================================================
// 함수명: CheckLogin
// 설  명: 로그인 체크
// 작업일: 
// 작업자: 
//=============================================================================
function CheckLogin() {
	if (document.all.txtLoginYn.value != "1")
	{
		alert("로그인을 하셔야 합니다.");
		return false;						
	}
	else
	{
		return true;
	}	
}


//=============================================================================
// 함수명: getCookie
// 설  명: 쿠키값을 가져오는 함수 
// 작업일: 
// 작업자: 
//=============================================================================
function getCookie(name) { 
   var from_idx = document.cookie.indexOf(name+'='); 
   if (from_idx != -1) { 
      from_idx += name.length + 1 
      to_idx = document.cookie.indexOf(';', from_idx) 

      if (to_idx == -1) { 
            to_idx = document.cookie.length 
      } 
      return unescape(document.cookie.substring(from_idx, to_idx)) 
   } 
} 


//=============================================================================
// 함수명: setCookie
// 설  명: 쿠키 생성 함수
// 작업일: 
// 작업자: 
//=============================================================================
function setCookie(name, value, expire) { 
    var expire_date = new Date(expire) 
    document.cookie = name + "=" + escape(value) + "; expires=" + expire_date.toGMTString(); 
} 


//=============================================================================
// 함수명: clearCookie
// 설  명: 쿠키 소멸 함수
// 작업일: 
// 작업자: 
//=============================================================================
function clearCookie(name) { 
    var today = new Date() 
    //어제 날짜를 쿠키 소멸 날짜로 설정한다. 
    var expire_date = new Date(today.getTime() - 60*60*24*1000) 
    document.cookie = name + "= " + "; expires=" + expire_date.toGMTString() 
} 


//=============================================================================
// 함수명: controlCookie
// 설  명: 체크 상태에 따라 쿠키 생성과 소멸을 제어하는 함수 
// 작업일: 
// 작업자: 
//=============================================================================
function controlCookie(elemnt, name) { 
        if (elemnt.checked) { 
            var today = new Date() 
    		var expire_date = new Date(today.getTime() + 60*60*24*1000) 
            
            //체크 박스를 선택했을 경우 쿠키 생성 함수 호출 
        	setCookie(name, "true", expire_date) 
        } 
        else { 
        	//체크 박스를 해제했을 경우 쿠키 소멸 함수 호출 
            clearCookie(name) 
        } 
        return 
} 


//=============================================================================
// 함수명: GetFormatDate(strDate)
// 설  명: 날자형식포멧
// 작업일: 
// 작업자: 
//=============================================================================
function GetFormatDate(strDate) { 
   var strFormatDt;

   if (strDate)
      strFormatDt = strDate.substring(0, 4) + '-' + strDate.substring(4, 6) + '-' + strDate.substring(6, 8);
   else   
      strFormatDt = "";
   return strFormatDt;
}


//=============================================================================
// 함수명: DeleteSpace(string)
// 설  명: 공백제거
// 작업일: 
// 작업자: 
//=============================================================================
function DeleteSpace(source) {
   var i = 0;
   var str_temp = "";

   for (i = 0; i < source.length; i++)
      if (source.substring(i, i + 1) != " ")
         str_temp += source.substring(i , i + 1) 
   return str_temp ;
}


//=============================================================================
// 함수명: PopUpUpload(int, int, string)
// 설  명: 업로드 팝업 호출
// 작업일: 
// 작업자: 
//=============================================================================
function PopUpUpload(intWidth, intHeight, strUrl) {
      var intLeft = 0, intTop = 0;
    
      intLeft = screen.width/2-intWidth/2;
      intTop = screen.height/2-intHeight/2;
      
      return window.open(strUrl, null, 'menubar =0,resizable=0,scrollbars=0,status=no,titlebar=0,toolbar=no,width='+intWidth+',height='+intHeight+',left='+intLeft+',top='+intTop);      

}


//=============================================================================
// 함수명: 
// 설  명: 
// 작업일: 
// 작업자: 
//=============================================================================
function newpages(sel)
			{
			  var URL = sel.options[sel.selectedIndex].value;
				if (URL != "" && URL != null){
					popup = window.open(URL,'');
				}
			}
			
			
			


function fg0500() {
    document.location.href = "../../HTML/FG/fg0500.aspx";
}
function fg0510() {
    document.location.href = "../../HTML/FG/fg0510.aspx";
}
function fg1000() {
    document.location.href = "../../HTML/FG/fg1000.aspx";
}
function fg1010() {
    document.location.href = "../../HTML/FG/fg1010.aspx";
}
function fg1020() {
    document.location.href = "../../HTML/FG/fg1020.aspx";
}
function fg1500() {
    document.location.href = "../../HTML/FG/fg1500.aspx";
}
function fg2000() {
    document.location.href = "../../HTML/FG/fg2000.aspx";
}
function fg2500() {
    document.location.href = "../../HTML/FG/fg2500.aspx";
}
function fg3000() {
    document.location.href = "../../HTML/FG/fg3000.aspx";
}




function business0500() {
    document.location.href = "../../HTML/BUSINESS/business0500.aspx";
}
function business0510() {
    document.location.href = "../../HTML/BUSINESS/business0510.aspx";
}
function business0520() {
    document.location.href = "../../HTML/BUSINESS/business0520.aspx";
}
function business1000() {
    document.location.href = "../../HTML/BUSINESS/business1000.aspx";
}
function business1010() {
    document.location.href = "../../HTML/BUSINESS/business1010.aspx";
}
function business1020() {
    document.location.href = "../../HTML/BUSINESS/business1020.aspx";
}
function business1030() {
    document.location.href = "../../HTML/BUSINESS/business1030.aspx";
}

function business1500() {
    document.location.href = "../../HTML/BUSINESS/business1500.aspx";
}
function business1510() {
    document.location.href = "../../HTML/BUSINESS/business1510.aspx";
}
function business1520() {
    document.location.href = "../../HTML/BUSINESS/business1520.aspx";
}
function business1530() {
    document.location.href = "../../HTML/BUSINESS/business1530.aspx";
}
function business1540() {
    document.location.href = "../../HTML/BUSINESS/business1540.aspx";
}
function business1550() {
    document.location.href = "../../HTML/BUSINESS/business1550.aspx";
}
function business2000() {
    document.location.href = "../../HTML/BUSINESS/business2000.aspx";
}
function business2010() {
    document.location.href = "../../HTML/BUSINESS/business2010.aspx";
}
function business2020() {
    document.location.href = "../../HTML/BUSINESS/business2020.aspx";
}
function business2030() {
    document.location.href = "../../HTML/BUSINESS/business2030.aspx";
}
function business2040() {
    document.location.href = "../../HTML/BUSINESS/business2040.aspx";
}
function business2500() {
    document.location.href = "../../HTML/BUSINESS/business2500.aspx";
}
function business3000() {
    document.location.href = "../../HTML/BUSINESS/business3000.aspx";
}
function business3010() {
    document.location.href = "../../HTML/BUSINESS/business3010.aspx";
}
function business3020() {
    document.location.href = "../../HTML/BUSINESS/business3020.aspx";
}
function business3030() {
    document.location.href = "../../HTML/BUSINESS/business3030.aspx";
}
function business3040() {
    document.location.href = "../../HTML/BUSINESS/business3040.aspx";
}




function support0500() {
    document.location.href = "../../HTML/SUPPORT/support0500.aspx";
}
function support0510() {
    document.location.href = "../../HTML/SUPPORT/support0510.aspx";
}
function support0520() {
    document.location.href = "../../HTML/SUPPORT/support0520.aspx";
}
function support0530() {
    document.location.href = "../../HTML/SUPPORT/support0530.aspx";
}
function support0540() {
    document.location.href = "../../HTML/SUPPORT/support0540.aspx";
}
function support1000() {
    document.location.href = "../../HTML/SUPPORT/support1000.aspx";
}
function support1010() {
    document.location.href = "../../HTML/SUPPORT/support1010.aspx";
}
function support1020() {
    document.location.href = "../../HTML/SUPPORT/support1020.aspx";
}
function support1030() {
    document.location.href = "../../HTML/SUPPORT/support1030.aspx";
}
function support1500() {
    document.location.href = "../../HTML/SUPPORT/support1500.aspx";
}
function support1510() {
    document.location.href = "../../HTML/SUPPORT/support1510.aspx";
}
function support2000() {
    document.location.href = "../../HTML/SUPPORT/support2000.aspx";
}
function support2010() {
    document.location.href = "../../HTML/SUPPORT/support2010.aspx";
}
function support2500() {
    document.location.href = "../../HTML/SUPPORT/support2500.aspx";
}
function support2510() {
    document.location.href = "../../HTML/SUPPORT/support2510.aspx";
}
function support3000() {
    document.location.href = "../../HTML/SUPPORT/support3000.aspx";
}
function support3010() {
    document.location.href = "../../HTML/SUPPORT/support3010.aspx";
}
function support3500() {
    document.location.href = "../../HTML/SUPPORT/support3500.aspx";
}





function entry0500() {
    document.location.href = "../../HTML/ENTRY/entry0500.aspx";
}
function entry0510() {
    document.location.href = "../../HTML/ENTRY/entry0510.aspx";
}
function entry0520() {
    document.location.href = "../../HTML/ENTRY/entry0520.aspx";
}
function entry0530() {
    document.location.href = "../../HTML/ENTRY/entry0530.aspx";
}
function entry0540() {
    document.location.href = "../../HTML/ENTRY/entry0540.aspx";
}
function entry1000() {
    document.location.href = "../../HTML/ENTRY/entry1000.aspx";
}
function entry1010() {
    document.location.href = "../../HTML/ENTRY/entry1010.aspx";
}
function entry1020() {
    document.location.href = "../../HTML/ENTRY/entry1020.aspx";
}
function entry1030() {
    document.location.href = "../../HTML/ENTRY/entry1030.aspx";
}
function entry1500() {
    document.location.href = "../../HTML/ENTRY/entry1500.aspx";
}
function entry1510() {
    document.location.href = "../../HTML/ENTRY/entry1510.aspx";
}
function entry1520() {
    document.location.href = "../../HTML/ENTRY/entry1520.aspx";
}
function entry1530() {
    document.location.href = "../../HTML/ENTRY/entry1530.aspx";
}
function entry1540() {
    document.location.href = "../../HTML/ENTRY/entry1540.aspx";
}
function entry1550() {
    document.location.href = "../../HTML/ENTRY/entry1550.aspx";
}
function entry2000() {
    document.location.href = "../../HTML/ENTRY/entry2000.aspx";
}
function entry2010() {
    document.location.href = "../../HTML/ENTRY/entry2010.aspx";
}
function entry2020() {
    document.location.href = "../../HTML/ENTRY/entry2020.aspx";
}
function entry2030() {
    document.location.href = "../../HTML/ENTRY/entry2030.aspx";
}
function entry2500() {
    document.location.href = "../../HTML/ENTRY/entry2500.aspx";
}
function entry3000() {
    document.location.href = "../../HTML/BUSINESS/business3500.aspx";
}




function counsel0500() {
    document.location.href = "../../HTML/COUNSEL/counsel0500.aspx";
}
function counsel1000() {
    document.location.href = "../../HTML/COUNSEL/counsel1000.aspx";
}
function counsel1010() {
    document.location.href = "../../HTML/COUNSEL/counsel1010.aspx";
}
function counsel1500() {
    document.location.href = "../../HTML/COUNSEL/counsel1500.aspx";
}
function counsel2000() {
    document.location.href = "../../HTML/COUNSEL/counsel2000.aspx";
}




function community0500() {
    document.location.href = "../../HTML/COMMUNITY/community0500.aspx";
}
function community1000() {
    document.location.href = "../../HTML/COMMUNITY/community1000.aspx";
}
function community1500() {
    document.location.href = "../../HTML/COMMUNITY/community1500.aspx";
}
function community2000() {
    document.location.href = "../../HTML/COMMUNITY/community2000.aspx";
}
function community2100() {
    document.location.href = "../../HTML/COMMUNITY/community2100.aspx";
}
function community2200() {
    document.location.href = "../../HTML/COMMUNITY/community2200.aspx";
}




function info0500() {
    document.location.href = "../../HTML/INFO/info0500.aspx";
}
function info1000() {
    document.location.href = "../../HTML/INFO/info1000.aspx";
}
function info1010() {
    document.location.href = "../../HTML/INFO/info1010.aspx";
}
function info1500() {
    document.location.href = "../../HTML/INFO/info1500.aspx";
}
function info2000() {
    document.location.href = "../../HTML/INFO/info2000.aspx";
}


function membership0500() {
    document.location.href = "../../HTML/MEMBERSHIP/membership0500.aspx";
}
function membership1000() {
    document.location.href = "../../HTML/MEMBERSHIP/membership1000.aspx";
}
function membership1500() {    
    if (getCookieValue("val3") == "0010") {
        document.location.href = "../../HTML/MEMBERSHIP/membership1510.aspx";
    } else if (getCookieValue("val3") == "0020") {
        document.location.href = "../../HTML/MEMBERSHIP/membership1520.aspx";
    } else if (getCookieValue("val3") == "0030") {
        document.location.href = "../../HTML/MEMBERSHIP/membership1530.aspx";
    } else if (getCookieValue("val3") == "0040") {
        document.location.href = "../../HTML/MEMBERSHIP/membership1530.aspx";
    } else {
        alert("로그인이 필요합니다.");
        document.location.href = "../../HTML/MEMBERSHIP/membership0500.aspx";
    }
}

function membership2000() {
    if (getCookie("val1") != "" || getCookie("val1") != null) {
        document.location.href = "../../HTML/MEMBERSHIP/membership2000.aspx";
    } else {
        alert("로그인이 필요합니다.");
        document.location.href = "../../HTML/MEMBERSHIP/membership0500.aspx";
    }
    
}
function membership2500() {
    document.location.href = "../../HTML/MEMBERSHIP/membership2500.aspx";
}
function membership3000() {
    document.location.href = "../../HTML/MEMBERSHIP/membership3000.aspx";
}
function membership3500() {
    document.location.href = "../../HTML/MEMBERSHIP/membership3510.aspx";
}
function membership4000() {
    document.location.href = "../../HTML/MEMBERSHIP/membership4000.aspx";
}
function membership4500() {
    document.location.href = "../../HTML/MEMBERSHIP/membership4500.aspx";
}

function logo_link() {
    document.location.href = "../../HTML/COMMON/main.aspx";
}

function goSupport() {
    document.location.href = "../../HTML/SUPPORT/support0500.aspx";
    /*
    if (getCookie("val1") != "" || getCookie("val1") != null) {
        document.location.href = "../../HTML/MEMBERSHIP/membership2000.aspx";
    } else {
        document.location.href = "../../HTML/MEMBERSHIP/membership0500.aspx";
    }*/
}



//=============================================================================
// 함수명: getCookieValue(string)
// 설  명: 쿠키정보가져오기
// 작업일: 2009-01-29
// 작업자: 이종환
//=============================================================================

function getCookieValue(strName) {
    var strCookieName = strName + "=";
    var objCookie = document.cookie;

    if (objCookie.length > 0) {
        var nBegin = objCookie.indexOf(strCookieName);

        if (nBegin < 0) {
            return;
        }

        nBegin += strCookieName.length;
        var nEnd = objCookie.indexOf("&", nBegin);

        if (nEnd == -1) {
            nEnd = objCookie.length;
        }
    }

    return unescape(objCookie.substring(nBegin, nEnd));
}

//=============================================================================
// 함수명: Request(string)
// 설  명: javascript로 구현한 Request
// 작업일: 2009-01-29
// 작업자: 이종환
//=============================================================================
function Request(valuename)
{
    var rtnval;
    var nowAddress = unescape(location.href);
    var parameters = new Array();
    parameters = (nowAddress.slice(nowAddress.indexOf("?") + 1, nowAddress.length)).split("&");
    for (var i = 0; i < parameters.length; i++) {
        if (parameters[i].indexOf(valuename) != -1) {
            rtnval = parameters[i].split("=")[1];
            if (rtnval == undefined || rtnval == null) {
                rtnval = "";
            }
            return rtnval;
        }
    }
}