#!/usr/bin/perl -U
    # [0] ★  수정항목  - 펄경로
    # 대부분 #!/usr/bin/perl  또는  #!/usr/local/bin/perl 로 되어 있음




# ▨ 이 소스는 테크노트 운영에 반드시 필요한 것은 아니니 필요하신 분만 사용하십시오.(상용,프리공용)
    # 이 소스는 현재 테크노트를 설치하여 사용하시는 분에 한해서 사용가능합니다.
    # 앞에 샾(#) 표시되어 있는 라인은 주석문이므로 프로그램 실행에 영향을 주지 않습니다.
    # 수정항목은 ★표시 되어 있습니다.

# ▨ 이 파일로 할 수 있는 것은.....
     # 1, 하나의 페이지에 여러개의 보드를 동시에 띄울때
     # 2, [공지사항] 게시판이나 각 보드의 '전체현황 출력' 용도로 사용할때
     # 3, 홈페이지의 메인 화면에서 여러 게시판의 목록을 실시간으로 동시에 보여줄때
     # 4, 테크노트 관리자용 전체현황 파악을 위해 사용할때
     # 5, 회원로그인 정보를 인식하여 출력유지 해야할때
     # 6, 회원로그인 정보를 추출해서 폼문서 작성에 이용하려할 때
     # 7, 게시판  본문에 첨부된 그림을 미리 보여주고자 할때
     # 8, 테크노트로 쇼핑몰 구축시 상품소개 페이지 만들때
     # 9, 그 외에도 여러가지 용도로 응용이 가능하며 귀하의 홈페이지에 메인페이지로 
     #     사용하려 할때에도 사이트에 맞게 편집해서 사용하실수 있습니다.

# ▨ 이 '소스 자체' 를 살펴보기 이전에,,,
    # 홈페이지내에 테크노트가 설치된 경로(main.cgi 가 있는 위치)에 
    # 이 파일을 [FTP-ASCII] 모드로 올린후 퍼미션 755 지정하시고, 
    # 부라우저로 출력해서 출력결과를 먼저 살펴 보신 이후에  소스를 보시고
    # 필요한 형태로 수정해서 사용하시기 바랍니다.
    # 변수생성 방법과 생성된 변수를 어떻게 활용하느냐 가 이 파일의 활용도를 결정하는 것이니
    # 소스내의 설명 주석문은 빠뜨리지 말고 모두 읽으십시오,
    # 이 파일은 프리웨어와 상용버전이 동일하며 수정및 배포도 허용됩니다.

# ▨ 이 소스내의 설명만으로 잘 이해가 되지 않는다면 별도 첨부된 도움말 설명을 읽으시기 바랍니다.



require './config.cgi';
# [1] ★  수정항목  - config.cgi 의 경로지정
   # iboard.cgi 와 config.cgi 가 다른 디렉토리에 들어 있다면
   # 반드시 수정해야 함 
            # iboard.cgi 를 기준으로한 상대경로(예, require './board/technote/config.cgi';)
            # 서버내의 절대경로로 지정 (예, require '/usr/home/myhome/technote/config.cgi';)


$icon_dir_url='./iboardicon';
# [2] 아이콘 디렉토리 url (http://www.abcdefg.com/technote/iboardicon)
    # 아이콘이 있는 디렉토리의 url 을 대입한다.



# [3] ★  수정항목 - 현재 이 파일(iboard.cgi)의 이름을 변경해서 사용하려면 변경된 이름 대입
       $This_CGI_Name = 'iboard.cgi';


# [4] ★  수정항목 - 테크노트로 회원등록관리를 하는 경우, 회원등록-로그인 하도록  설정한 '보드이름'을 대입
      $MemberDataBoard = 'main';



# [5]  get QUERY & COOKIE
     &parse;
     &get_cookie;


# [6] ★  수정항목 - 
    # technote/config.cgi 소스의 [41]번 항목(모든게시판의 상,하단에 공통내용 삽입하기)에
    # 넣은 코드를 이 페이지(iboard.cgi)에도 적용시키려면
    # 아래 아래 라인의 앞에 붙은 샾(#) 을 제거하고
    #  htm 코드내에 $BODY_BEGIN(출력상단) ,$BODY_END(출력하단) 변수를 삽입할것
       # &HTM_BODY_BEGIN_END;




# [7] ---  아래는 이 소스 사용목적의 본론격인 html 출력부분입니다. --------------------

    # 아래에 있는 "변수생성 방법 설명" 에서와 같이,  페이지 출력에 필요한 변수를 생성하여,
    # 출력페이지(htm)를 꾸미는것이 이 소스의 활용 포인트입니다.
      # 귀하의 용도에 맞게 아래 htm 코드로 페이지출력화면을 구성하신후,
      # 적합한 위치에 게시판 출력 변수, 혹은 다른 방법으로 생성한 변수를 넣으십시오.
      # 변수 생성 방법에 대한 설명은 아래로 주욱 내려 가면 있습니다.

      # 출력부분에 추가되는 htm 코드나 내용구성에서 '@' 문자가 삽입될때는 반드시 '\@' 형태로 
      # 쓰십시오,(예, master\@board.co.kr)   '\@' 처리를 해주지 않으면 오류납니다.
      # htm 코드내의 자바스크립트 부분은 삭제 하지 마십시오,

        # -- htm 코드에 익숙치 않아서 '나모' 나 드림위버같은 htm 편집기를 써야만 하는 분은--
        # 이 파일(iboard.cgi)을 htm 편집기로 직접 불러들여서 편집하시면 안됩니다.
        # 일단 htm 편집기로 페이지 레이아웃을 잡으신후, 그 htm 코드에서 
        #    <body ...> ~ </body> 부분만 복사하여 아래 보이는 htm 출력부분의 
        #    <body ...> ~ </body> 대신 넣어 주고 , 태그내의 적절한 위치에 변수를 넣어주십시오,

       # 변수의 용도와 역할을 잘 이용하셔서 출력페이지를 꾸미세요,
       # htm 코드내에 삽입된 변수를 생성하는 방법은 아래로 죽~죽 내려 가면 있습니다.




sub HTML_PRINT{









print <<END_LINE;



<!----------------------------------------------------------------------------------->
<!-------------------------------   htm 출력코드 시작  ---------------------------------->
<title>ArchiSystems-아키시스템즈-cafm 시스템 및 컨설팅회사 FM Vision</title>

<meta http-equiv=Cache-Control content=No-Cache>
<meta http-equiv=Pragma content=No-Cache>
<!-- 편집시 아래 자바스크립트 부분은 삭제하지 마십시오 -->
<script language='Javascript'>
     function NewWindows(impt) {
          // 새창에서 본문 출력시
          // 창크기는 아래 라인에서 재지정할수 있음
          opennew = window.open('', 'aaa', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=650,height=550');
          opennew.focus();
          return;
     }
     function NewWindows2(impt) {
          // 새창으로 게시판 목록 출력시
          // 창크기는 아래 라인에서 재지정할수 있음
          opennew2 = window.open('', 'bbb', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=650,height=600');
          opennew2.focus();
          return;
     }

     // 마우스 on - 본문 미리보여주기
     document.write( '<div id=Textonmouse style="font-size:9pt; border:1 solid #5256ac; width:400; height:50;');
     document.write( ' position:absolute; visibility:hidden; z-Index:10; padding:3; background-color:#f3f3f3;"></div>' );

     function textbodyprint(txtin,closeview){
          if(closeview==1){
               Textonmouse.opened = false;
               Textonmouse.style.visibility = 'hidden';
               return;
          }
          Textonmouse.opened = true;
          Textonmouse.style.pixelTop = event.clientY + document.body.scrollTop - 50;
          Textonmouse.style.pixelLeft = event.clientX + document.body.scrollLeft + 10;
          Textonmouse.style.visibility = 'visible';
          document.all["Textonmouse"].innerHTML =txtin;
     }
    // 그림 미리 보여주기
     function IMGprint(txtin){
          imgwindow = window.open('', 'img$scripimport', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=450,height=400');
          imgwindow.document.write('<html><title>▒▒▒▒▒▒▒▒▒ 그림보기 ▒▒▒▒▒▒▒▒▒▒▒</title><body topmargin=5 leftmargin=0></body></html>');
          imgwindow.document.body.innerHTML ='<div align=center>'  +  txtin  + "<p align=center><input type=button value='CLOSE' onclick='window.close()' style='font-size:9pt; background-color:#EEFAF7; border:1 #000000 solid;'>&nbsp;<br>&nbsp;";
          imgwindow.focus();
          // imgwindow.moveTo(5,5); // 그림 미리보기 윈도창 출력 위치---
    }
</script>
<!-- 편집시 위 자바스크립트 부분은 삭제하지 마십시오 -->

<STYLE TYPE='text/css'>
     A:link {text-decoration: none}
     A:visited {text-decoration: none}
     A:hover {color: blue; text-decoration: none}
     BODY,TR,TD{font-size:9pt;font-family:굴림,Tahoma,Verdana,MS Sans Serif,Courier New;line-height:130%; word-break:break-all;}
</style>

<!--  
이하의 내용(혹은 코드)을 임의대로 수정하십시오,
변수삽입은 옵션입니다. 불필요한 변수는 삭제하고 
추가로 필요한 변수는 아래 '변수생성' 설명을 읽으신 후
추가 생성해 넣으십시오
-->


<title>ArchiSystems-아키시스템즈-cafm 시스템 및 컨설팅회사 FM Vision</title>

<meta http-equiv=Cache-Control content=No-Cache>
<meta http-equiv=Pragma content=No-Cache>
<STYLE TYPE='text/css'>
     A:link {text-decoration: none}
     A:visited {text-decoration: none}
     A:hover {color: blue; text-decoration: none}
     BODY,TR,TD{font-size:9pt;font-family:굴림,Tahoma,Verdana,MS Sans Serif,Courier New;line-height:130%; word-break:break-all;}
</style>

<title>ArchiSystems-아키시스템즈-cafm 시스템 및 컨설팅회사 FM Vision</title>

<meta http-equiv=Cache-Control content=No-Cache>
<meta http-equiv=Pragma content=No-Cache>
<STYLE TYPE='text/css'>
     A:link {text-decoration: none}
     A:visited {text-decoration: none}
     A:hover {color: blue; text-decoration: none}
     BODY,TR,TD{font-size:9pt;font-family:굴림,Tahoma,Verdana,MS Sans Serif,Courier New;line-height:130%; word-break:break-all;}
</style>

<script language="JavaScript">
<!--
function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++) {
    document.preloadlist[top+i]     = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

// -->
</script>
</head>
<body  background="http://www.afm.co.kr/img/bg_01.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" text="#000000" link="#000000" vlink="#000000" alink="red" OnLoad="na_preload_img(false, 'http://www.afm.co.kr/img/co_left01_04b.gif', 'http://www.afm.co.kr/img/co_left01_01b.gif', 'http://www.afm.co.kr/img/co_left01_02b.gif', 'http://www.afm.co.kr/img/co_left01_03b.gif', 'http://www.afm.co.kr/img/co_left01_05b.gif', 'http://www.afm.co.kr/img/co_left01_06b.gif');">


<!-- technote/config.cgi 소스의 [41]번항목(모든 보드의 상단에 공통내용 삽입) 변수 -->
$BODY_BEGIN

<!-- 편집시 아래 자바스크립트 부분은 삭제하지 마십시오 -->
<script language='Javascript'>
     function NewWindows(impt) {
          // 새창에서 본문 출력시
          // 창크기는 아래 라인에서 재지정할수 있음
          opennew = window.open('', 'aaa', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=650,height=550');
          opennew.focus();
          return;
     }
     function NewWindows2(impt) {
          // 새창으로 게시판 목록 출력시
          // 창크기는 아래 라인에서 재지정할수 있음
          opennew2 = window.open('', 'bbb', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=650,height=600');
          opennew2.focus();
          return;
     }

     // 마우스 on - 본문 미리보여주기
     document.write( '<div id=Textonmouse style="font-size:9pt; border:1 solid #5256ac; width:400; height:50;');
     document.write( ' position:absolute; visibility:hidden; z-Index:10; padding:3; background-color:#f3f3f3;"></div>' );

     function textbodyprint(txtin,closeview){
          if(closeview==1){
               Textonmouse.opened = false;
               Textonmouse.style.visibility = 'hidden';
               return;
          }
          Textonmouse.opened = true;
          Textonmouse.style.pixelTop = event.clientY + document.body.scrollTop - 50;
          Textonmouse.style.pixelLeft = event.clientX + document.body.scrollLeft + 10;
          Textonmouse.style.visibility = 'visible';
          document.all["Textonmouse"].innerHTML =txtin;
     }
    // 그림 미리 보여주기
     function IMGprint(txtin){
          imgwindow = window.open('', 'img$scripimport', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=450,height=400');
          imgwindow.document.write('<html><title>▒▒▒▒▒▒▒▒▒ 그림보기 ▒▒▒▒▒▒▒▒▒▒▒</title><body topmargin=5 leftmargin=0></body></html>');
          imgwindow.document.body.innerHTML ='<div align=center>'  +  txtin  + "<p align=center><input type=button value='CLOSE' onclick='window.close()' style='font-size:9pt; background-color:#EEFAF7; border:1 #000000 solid;'>&nbsp;<br>&nbsp;";
          imgwindow.focus();
          // imgwindow.moveTo(5,5); // 그림 미리보기 윈도창 출력 위치---
    }
</script>
<!-- 편집시 위 자바스크립트 부분은 삭제하지 마십시오 -->

<!--  
이하의 내용(혹은 코드)을 임의대로 수정하십시오,
변수삽입은 옵션입니다. 불필요한 변수는 삭제하고 
추가로 필요한 변수는 아래 '변수생성' 설명을 읽으신 후
추가 생성해 넣으십시오
-->


<script language="JavaScript">
<!--
function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++) {
    document.preloadlist[top+i]     = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

// -->
</script>
<!-- technote/config.cgi 소스의 [41]번항목(모든 보드의 상단에 공통내용 삽입) 변수 -->
$BODY_BEGIN

<!------- 출력 본문 시작 --------------------------------->
<!-- 편집시 아래 자바스크립트 부분은 삭제하지 마십시오 -->
<script language='Javascript'>
     function NewWindows(impt) {
          // 새창에서 본문 출력시
          // 창크기는 아래 라인에서 재지정할수 있음
          opennew = window.open('', 'aaa', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=650,height=550');
          opennew.focus();
          return;
     }
     function NewWindows2(impt) {
          // 새창으로 게시판 목록 출력시
          // 창크기는 아래 라인에서 재지정할수 있음
          opennew2 = window.open('', 'bbb', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=650,height=600');
          opennew2.focus();
          return;
     }

     // 마우스 on - 본문 미리보여주기
     document.write( '<div id=Textonmouse style="font-size:9pt; border:1 solid #5256ac; width:400; height:50;');
     document.write( ' position:absolute; visibility:hidden; z-Index:10; padding:3; background-color:#f3f3f3;"></div>' );

     function textbodyprint(txtin,closeview){
          if(closeview==1){
               Textonmouse.opened = false;
               Textonmouse.style.visibility = 'hidden';
               return;
          }
          Textonmouse.opened = true;
          Textonmouse.style.pixelTop = event.clientY + document.body.scrollTop - 50;
          Textonmouse.style.pixelLeft = event.clientX + document.body.scrollLeft + 10;
          Textonmouse.style.visibility = 'visible';
          document.all["Textonmouse"].innerHTML =txtin;
     }
    // 그림 미리 보여주기
     function IMGprint(txtin){
          imgwindow = window.open('', 'img$scripimport', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=450,height=400');
          imgwindow.document.write('<html><title>▒▒▒▒▒▒▒▒▒ 그림보기 ▒▒▒▒▒▒▒▒▒▒▒</title><body topmargin=5 leftmargin=0></body></html>');
          imgwindow.document.body.innerHTML ='<div align=center>'  +  txtin  + "<p align=center><input type=button value='CLOSE' onclick='window.close()' style='font-size:9pt; background-color:#EEFAF7; border:1 #000000 solid;'>&nbsp;<br>&nbsp;";
          imgwindow.focus();
          // imgwindow.moveTo(5,5); // 그림 미리보기 윈도창 출력 위치---
    }
</script>
<!-- 편집시 위 자바스크립트 부분은 삭제하지 마십시오 -->

<!--  
이하의 내용(혹은 코드)을 임의대로 수정하십시오,
변수삽입은 옵션입니다. 불필요한 변수는 삭제하고 
추가로 필요한 변수는 아래 '변수생성' 설명을 읽으신 후
추가 생성해 넣으십시오
-->


<script language="JavaScript">
<!--
function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++) {
    document.preloadlist[top+i]     = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

// -->
</script>
<!-- technote/config.cgi 소스의 [41]번항목(모든 보드의 상단에 공통내용 삽입) 변수 -->
$BODY_BEGIN
<!------- 출력 본문 시작 --------------------------------->
<script language="JavaScript">
<!--
function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length-1; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';

  menubar_str = menubar ? 'yes' : 'no';

  statusbar_str = statusbar ? 'yes' : 'no';

  scrollbar_str = scrollbar ? 'yes' : 'no';

  resizable_str = resizable ? 'yes' : 'no';



  cookie_str = document.cookie;
  cookie_str.toString();


  pos_start  = cookie_str.indexOf(name);

  pos_start  = cookie_str.indexOf('=', pos_start);

  pos_end    = cookie_str.indexOf(';', pos_start);
  
  if (pos_end <= 0) pos_end = cookie_str.length;

  cookie_val = cookie_str.substring(pos_start + 1, pos_end);



  if (cookie_val  == "done")

    return;



  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);

}

// -->
</script>
<script language="JavaScript">
<!--
function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length-1; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';

  menubar_str = menubar ? 'yes' : 'no';

  statusbar_str = statusbar ? 'yes' : 'no';

  scrollbar_str = scrollbar ? 'yes' : 'no';

  resizable_str = resizable ? 'yes' : 'no';



  cookie_str = document.cookie;
  cookie_str.toString();


  pos_start  = cookie_str.indexOf(name);

  pos_start  = cookie_str.indexOf('=', pos_start);

  pos_end    = cookie_str.indexOf(';', pos_start);
  
  if (pos_end <= 0) pos_end = cookie_str.length;

  cookie_val = cookie_str.substring(pos_start + 1, pos_end);



  if (cookie_val  == "done")

    return;



  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);

}

// -->
</script>
<script language="JavaScript">
<!--
function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length-1; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';

  menubar_str = menubar ? 'yes' : 'no';

  statusbar_str = statusbar ? 'yes' : 'no';

  scrollbar_str = scrollbar ? 'yes' : 'no';

  resizable_str = resizable ? 'yes' : 'no';



  cookie_str = document.cookie;
  cookie_str.toString();


  pos_start  = cookie_str.indexOf(name);

  pos_start  = cookie_str.indexOf('=', pos_start);

  pos_end    = cookie_str.indexOf(';', pos_start);
  
  if (pos_end <= 0) pos_end = cookie_str.length;

  cookie_val = cookie_str.substring(pos_start + 1, pos_end);



  if (cookie_val  == "done")

    return;



  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);

}

// -->
</script>

<center>
<TABLE cellSpacing=0 cellPadding=0 width="900" border=0>
<TBODY>
<TR>

<TD width="900">
<TABLE cellSpacing=0 cellPadding=0 width="900" border=0 bgcolor="white">
<TBODY>
<TR>
<TD width="212" height=50>
                            <p align="center"><A href="http://www.afm.co.kr/cgi/fm.cgi" target=_top><IMG  
src="http://www.afm.co.kr/img/logo.gif" width="210" height="50"  border=0></A><TD width="421" height=50 valign="bottom">
                            <p align="center"><b><font color="#666666"><span style="font-size:10pt;">통합시설관리(CAFM, FMS), 
                            &nbsp;빌딩자동제어(IBS,BAS) 전문회사</span></font></b></p>
</TD>
<TD vAlign=top align=right width="269">
<TABLE cellSpacing=0 cellPadding=0 border=0 width="275">
<TBODY>
<TR>
<TD width="275"><a name="top"></a><a href="http://www.afm.co.kr/aaa.htm"><IMG height=24 src="http://www.afm.co.kr/img/top_menu.gif" width="263" useMap="#topmenu" 
border=0></a></TD></TR>
<TR>
<TD align=right 
height="2" width="275">
</TD></TR>
                            <tr>
<TD align=right 
height="22" width="275">
                                    <p align="right"><span style="font-size:9pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.afm.co.kr/cgi/main.cgi?board=main&inputidview=1&Loginform=n&Regform=y"><img src="http://www.afm.co.kr/img/comunity.gif" width="103" height="26" border="0"></a></span>                            </tr>
</TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="900" border=0>
<TBODY>

<TR>

<TD width="900" bgcolor="#CCCCCC">
            <img src="http://www.afm.co.kr/img/top_menu01.gif" height="30" border="0" usemap="#ImageMap1"></TD></TR></TBODY></TABLE><TABLE cellSpacing=0 cellPadding=0 width="755" border=0>
<TBODY>
<TR>
<TD width="1">&nbsp;</TD>
<TD width="899">
<TABLE cellSpacing=0 cellPadding=0 width="900" border=0>
<TBODY>
<TR>
<TD width="900">
                        <img src="http://www.afm.co.kr/img/top_menu02_02.gif" width="900" height="120" border="0"></TD></TR>
<TR>
<TD width="900">
<TABLE cellSpacing=0 cellPadding=0 width=900 border=0 bgcolor="white">
<TBODY>
<TR>
<TD width=160><IMG height=32 src="http://www.afm.co.kr/img/co_left01.gif" 
width=160></TD>
<TD><IMG height=32 src="http://www.afm.co.kr/img/co_guide01.gif" 
width="738"></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD width="900">
<TABLE cellSpacing=0 cellPadding=0 width="900" border=0 bgcolor="white">
<TBODY>
                                <TR>
<TD width=1 bgColor=#cccccc><IMG height=1 src="img01/0.gif" width=1></TD>
<TD vAlign=top width=158 bgColor=#eeeeee>
<TABLE cellSpacing=0 cellPadding=0 width=158 border=0 bgcolor="white">
<TBODY>
<TR>
<TD><IMG height=20 src="http://www.afm.co.kr/img/digi_left02.gif" width=158></TD></TR>
<TR>

                                            <td></td>
                                        </tr>
                                        <tr>
<TD>
                                                <p><a href="http://www.afm.co.kr/cgi/fm.cgi" OnMouseOut="na_restore_img_src('image04', 'document')" OnMouseOver="na_change_img_src('image04', 'document', 'http://www.afm.co.kr/img/co_left01_04b.gif', true);"><img src="http://www.afm.co.kr/img/co_left01_04a.gif" width="158" height="22" border="0" name="image04"></a></p>
</TD>
                                        </tr>
                                        <tr>
<TD>
<a OnMouseOut="na_restore_img_src('image01', 'document')" OnMouseOver="na_change_img_src('image01', 'document', 'http://www.afm.co.kr/img/co_left01_01b.gif', true);" href="http://www.afm.co.kr/co_intro.htm"><img src="http://www.afm.co.kr/img/co_left01_01a.gif" width="158" height="22" border="0" name="image01"></a></TD>
                                        </tr>
                                        <tr>
<TD>
                                                <p><a href="http://www.afm.co.kr/co_ceo.htm" OnMouseOut="na_restore_img_src('image02', 'document')" OnMouseOver="na_change_img_src('image02', 'document', 'http://www.afm.co.kr/img/co_left01_02b.gif', true);"><img src="http://www.afm.co.kr/img/co_left01_02a.gif" width="158" height="22" border="0" name="image02"></a></p>
</TD>
                                        </tr>
                                        <tr>
<TD>
                                                <p><a href="http://www.afm.co.kr/co_history.htm" OnMouseOut="na_restore_img_src('image03', 'document')" OnMouseOver="na_change_img_src('image03', 'document', 'http://www.afm.co.kr/img/co_left01_03b.gif', true);"><img src="http://www.afm.co.kr/img/co_left01_03a.gif" width="158" height="22" border="0" name="image03"></a></p>
</TD>
                                        </tr>
                                        <tr>
<TD>
                                                <p><a href="http://www.afm.co.kr/locate.htm" OnMouseOut="na_restore_img_src('image05', 'document')" OnMouseOver="na_change_img_src('image05', 'document', 'http://www.afm.co.kr/img/co_left01_05b.gif', true);"><img src="http://www.afm.co.kr/img/co_left01_05a.gif" width="158" height="22" border="0" name="image05"></a></p>
</TD>
                                        </tr>
                                        <tr>
<TD>
                                                <p><a href="http://www.afm.co.kr/cgi/main.cgi?board=intranet" OnMouseOut="na_restore_img_src('image1', 'document')" OnMouseOver="na_change_img_src('image1', 'document', 'http://www.afm.co.kr/img/co_left01_06b.gif', true);"><img src="http://www.afm.co.kr/img/co_left01_06a.gif" width="158" height="22" border="0" name="image1"></a></p>

											</TD>
                                        </tr>
                                        <tr>
<TD>
                                                <p><a href="http://www.afm.co.kr/cgi/main.cgi?board=freepds" OnMouseOut="na_restore_img_src('image1', 'document')" OnMouseOver="na_change_img_src('image1', 'document', 'http://www.afm.co.kr/img/co_left01_06b.gif', true);"><img src="http://www.afm.co.kr/img/co_left01_06a.gif" width="158" height="22" border="0" name="image1"></a></p>

											</TD>
                                        </tr>
                                        <tr>
<TD>
                                                <p><a href="http://www.afm.co.kr/cgi/main.cgi?board=admin" OnMouseOut="na_restore_img_src('image1', 'document')" OnMouseOver="na_change_img_src('image1', 'document', 'http://www.afm.co.kr/img/co_left01_06b.gif', true);"><img src="http://www.afm.co.kr/img/co_left01_06a.gif" width="158" height="22" border="0" name="image1"></a></p>

											</TD>
                                        </tr>



		                                        <tr>

<TD bgColor=#eeeeee height=15>
													<br>

<a href="http://www.afm.co.kr/archibus.htm" top><img src="http://www.afm.co.kr/img/fm_bar2.gif" width="158" height="22" border="0"></a></TD>
                                        </tr>

		                                        <tr>
<TD height=15>
                                                <p><span style="font-size:9pt;"><a href="http://www.afm.co.kr/archibus.htm"><img src="http://www.afm.co.kr/img/archibus12_01.gif" width="158" height="167" border="0"></a></span></p>
</TD>
                                        </tr>

                                        <tr>






                                                <td></td>
</TBODY>
                                            </tr>
</TABLE></TD>
<TD width=1 bgColor=#cccccc><IMG height=1 src="img01/0.gif" width=1></TD>
<TD width="7">&nbsp; </TD>
                                    <TD vAlign=top width="480">

                                        <TABLE cellSpacing=0 cellPadding=0 width="541" border=0 bgcolor="white">
                                            <TR>
                                                <TD height="8" width="541">

                                                    <p>&nbsp;</p>
</TD></TR>
                                            <TR>
                                                <TD width="541" height="36"><a name="04"></a><img src="http://www.afm.co.kr/img/co_guide01_04-01.gif" width="18" height="18" border="0"><b><font color="#666666"><span style="font-size:11pt;">빌딩자동화시스템과 
                                                    시설관리시스템으로 자산관리 
                                                    업무 효율 향상</span></font></b> <img src="http://www.afm.co.kr/img/co_guide01_04-02.gif" width="360" height="11" border="0"></TD></TR>
                                            <TR>
                                                <TD height="6" width="541"></TD></TR>
                                            <TR>
                                                <TD height="5" width="541">

                                                    <p><font color="#666666">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;빌딩 
                                                    자동화 시스템과 시설관리시스템은 
                                                    빌딩의 효율을 극대화 시키고 
                                                    관리비용 및  
                                                    <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;에너지 비용을 절감합니다.<br>&nbsp;</font></p>
</TD></TR>
                                            <TR>
                                                <TD width="541">

                                                    <TABLE cellSpacing=0 cellPadding=0 width="480" border=0 bgcolor="white" align="center">
                                                        <TBODY>

                                                        <TR>
                                                            <TD vAlign=top width="480">

                                                                <p align="center"><font color="#666666"><img src="image/bas1.jpg" width="418" height="251" border="0"></font></p>
</TD>
</TR></TBODY></TABLE></TD></TR>
                                            <TR>
                                                <TD height="13" width="541"><font color="#666666">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></TD></TR>
                                            <TR>
                                                <TD height="17" width="541">

                                                    <p><font color="#666666">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;빌딩자동제어 
                                                    시스템과 시설관리시스템의 
                                                    통합한 시스템을 개발 제공함으로서 
                                                    <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;관리자에게는 편리성과 
                                                    건물주에게는 수익을 향상시키고 
                                                    있습니다.<br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;또한 
                                                    빌딩자동시스템 유지보수 
                                                    업무와 시설관리 시스템 유지 
                                                    보수 업무를<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;지원합니다.<br><br> 
                                                    </font><b><font color="#666666">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;아키시스템즈 
                                                    빌딩자동제어 유지 보수의 
                                                    특징 <br></font></b><font color="#666666"> 
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1. 
                                                    유지 보수계약시 4일간의 
                                                    자동제어 진단을 통하여 &nbsp;문제점을 
                                                    진단합니다.<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2. 
                                                    유지보수시 운영자에게 월 
                                                    1회 4시간의 자동제어 교육을 
                                                    실시합니다.<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3. 
                                                    자동제어 유지보수용 자재를 
                                                    업계 최저가에 지원합니다.<br> 
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4. 
                                                    자동제어 시스템의 교체시 
                                                    야간작업을 통하여 업무손실을 
                                                    최소화합니다.<br><br> </font><b><font color="#666666">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;아키시스템즈 
                                                    시설관리 시스템 유지 보수의 
                                                    특징<br></font></b><font color="#666666"> 
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1. 
                                                    기존 시스템을 신규제품으로 
                                                    교체하여 드립니다.(단 유지보수 
                                                    계약기간에 따라)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2. 
                                                    사용자의 운영상태를 파악함으로서 
                                                    문제점을 사전에 진단해 드립니다.<br> 
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3. 
                                                    빌딩의 수입지출과 계산서 
                                                    발급, 미수금 관리 연체 관리를 
                                                    완벽하게 지원합니다.<br> 
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4. 
                                                    일일업무 일지 및 자료 공유, 
                                                    회사의 결재 관리를 위한 
                                                    인트라넷 시스템을  <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;지원합니다.<br><br> 
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;관리하고 
                                                    계신건물의 자동제어나 빌딩관리 
                                                    시스템이 문제가 발생한 경우 
                                                    바로 연락 주십시오<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;운영에 
                                                    편리하게 사용할 수 있도록 
                                                    최선의 노력을 다해서 보완하겠습니다.<br> 
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br> 
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;아키시스템즈 
                                                    <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br> 
                                                    &nbsp;</font></p>
</TD></TR>
                                            </TBODY></TABLE>
                                        <p><IMG height=1 src="img01/0.gif" width=1></p>
</TD>
                                    <TD vAlign=top width="173">

                                        <TABLE cellSpacing=0 cellPadding=0 width=172 border=0 bgcolor="white">
                                            <TBODY>
                                       
                                       
                                            <TR>
                                                <TD height=15><a href="javascript:na_open_window('new_products', 'http://www.afm.co.kr/cgi/main.cgi?board=product', 100, 50, 630, 600, 0, 0, 0, 1, 1)"><img src="http://www.afm.co.kr/img/fm_bar3.gif" width="172" height="22" border="0"></a></TD></TR>
                                       
                                       
                                            <TR>
                                                <td width="180" valign=top height="21">    $table53     </TD>
                                        </tr>
                                            <TR>
                                                <TD height="8">

                                                    <p align="center"><span style="font-size:9pt;"><font color="#0099FF"><b>아키시스템즈</b></font><font color="#666666"><b>는 
                                                     
                                               </b></font></span></TR>
                                                <TR>
                                                    <TD height="16">

                                                        <p align="center"><span style="font-size:9pt;"><font color="#666666"><b>빌딩자동제어(BAS, 
                                                    IBS) 및</b></font></span></TR>
                                                    <TR>
                                                        <TD>

                                                            <p align="center"><span style="font-size:9pt;"><font color="#666666"><b>통합시설관리(CAFM, 
                                                    FMS)
                                                    전문회사입니다. </b></font></span></TR>
                                                        <br>

                                                        <tr>
                                                            <TD>

                                                                <p><span style="font-size:9pt;"><a href="http://www.afm.co.kr/cgi/eee01.cgi"><img src="http://www.afm.co.kr/img/fm_data.gif" width="172" height="110" border="0"></a></span></p>
</TD>
		
                                        </tr>
<TD>

                                                            <p><span style="font-size:9pt;">&nbsp;</span></p>
</TD>
                                                        <tr>
                                                            <TD>

                                                                <p><span style="font-size:9pt;">&nbsp;</span></p>
</TD>
                                        </tr>
                                                        <tr>
                                                            <TD>

                                                                <p><span style="font-size:9pt;">&nbsp;</span></p>
</TD>
                                        </tr>
                                                        <tr>
                                                            <TD>

                                                                <p><span style="font-size:9pt;">&nbsp;</span></p>
</TD>
                                        </tr>
                                                        <tr>
                                                            <TD>

                                                                <p><span style="font-size:9pt;">&nbsp;</span></p>
</TD>
                                        </tr>
                                                        <tr>
                                                            <TD>

                                                                <p>&nbsp;</p>
</TD>
                                        </tr>
                                                        <TR>
                                                            <TD>&nbsp;</TD></TR></TBODY></TABLE>
                                                    <p><IMG height=1 src="img01/0.gif" 
width=1></p>
</TD>
</TR></TBODY></TABLE></TD></TR>
<TR>
<TD width="900">
<TABLE cellSpacing=0 cellPadding=0 width="900" border=0 bgcolor="white">
<TBODY>
<TR>
<TD width=1 bgColor=#cccccc><IMG height=1 src="img01/0.gif" width=1></TD>
<TD width=158 bgColor=#eeeeee><IMG height=1 src="img01/0.gif" width=1></TD>
<TD width=1 bgColor=#cccccc><IMG height=1 src="img01/0.gif" width=1></TD>
<TD width="581"><IMG height=31 src="http://www.afm.co.kr/img/bottom01.gif" width="582" useMap="#Map" 
border=0></TD>
<TD width="194" bgColor=#cccccc><IMG height=1 src="img01/0.gif" 
width=1></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD width="900"><IMG height=50 src="http://www.afm.co.kr/img/bottom02.gif" 
width="900"></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>&nbsp;<MAP name=topmenu>
<area shape="rect" coords="2, 1, 76, 23" href="http://www.afm.co.kr/cgi/fm.cgi">
<area shape="rect" coords="77, 1, 163, 22" href="http://www.afm.co.kr/sitemap.htm">
<area shape="rect" coords="164, 1, 260, 23" href="http://www.afm.co.kr/contact.htm">
</MAP><map name="ImageMap1">
<area shape="rect" coords="5, 1, 151, 29" href="http://www.afm.co.kr/co_intro.htm">
<area shape="rect" coords="152, 1, 302, 29" href="http://www.afm.co.kr/bu_fms.htm">
<area shape="rect" coords="304, 2, 454, 29" href="http://www.afm.co.kr/so_overview.htm">
<area shape="rect" coords="456, 1, 605, 29" href="http://www.afm.co.kr/pro_bom.htm">
<area shape="rect" coords="593, 10, 594, 11" href="http://">
<area shape="rect" coords="605, 2, 754, 29" href="http://www.afm.co.kr/cgi/eee01.cgi">
<area shape="rect" coords="489, 12, 490, 13" href="http://">
</map><MAP 
name=Map><AREA shape="rect" coords="490, 5, 574, 26" href="#top"></MAP>
</center><!--------------------------   htm 출력코드 여기가 끝 --------------------------->
<!---------------------------------------------------------------------------><!--------------------------   htm 출력코드 여기가 끝 --------------------------->
<!--------------------------------------------------------------------------->
</center><!--------------------------   htm 출력코드 여기가 끝 --------------------------->
<!--------------------------------------------------------------------------->



END_LINE
exit;
}





#★★★★★★★★★★★  변수 생성하기 ★★★★★★★★★★★★★★★★★★
    # 위의 htm 코드내에 삽입할 변수들을 여기서 생성합니다.
 


# [8] ▨▨▨ -게시판 기본출력 형태 설정
    # 테크노트내에 생성된 게시판의 형태를 단순화 하여
    # 위 htm 출력부분에  변수로 삽입할 수 있습니다.
    # 이 항목은 그 단순화할 게시판의 '기본출력형태'를 설정 합니다.

    # 각 설정 옵션에 대한  구체적 설명은 별도 첨부된 설명서(도움말)에서
    #  "4, 게시판 출력변수 생성 옵션 설명 " 항목을 참조하십시오. 

    
   &StandardTable
       ("
          headline_text=게 쉬 판;
          items_visit=1;
          table_width=350;
          index_many=7;
          new_icon_time=24;
          board_path=./board/main;
          text_num_addition=2;
          text_link_url=./read.cgi;
          cell_column=1/2/3/4;
          cell_width_expand=1;
          append_img=x35;
          append_img_underview=0;
          Print_indextable=1;
          line_color=#ffffff;
          head_bgcolor=#f0f0f0;
          head_icon_url=$icon_dir_url/i_subtitle.gif;
          index_bgcolor=#ffffff;
          mouse_over_color=#f5f5ff;
          text_color=#666666;
          subject_length=25;
          body_length=0;
          body_position=0;
          body_htm_allow=no;
          other_length=15;
          open_new_window=yes;
          main_board_link=no;
          subject_icon_url=$icon_dir_url/i_square01.gif
          cross_line=dot;
      ");

#---------------------------------------------------------



# [9] ▨▨▨ [변수생성 예제1]- 게시판 출력 변수 생성하기 ▨▨▨
    # 생성되는 변수명 : $table1
    # 출력되는 게시판 : ./board/FREE_BOARD 

     #  상세설명  #
          # 아래 코드는 '$table1' 이라는 변수에
          # 'FREE_BOARD' 게시판의 글목록 테이블을 저장시킨 예제입니다.
          # 위에 있는 htm  출력내에  변수 '$table1' 을 삽입하면 
          # 그 위치에 FREE_BOARD 게시판의 글목록이 출력됩니다.
          # 출력시키고자 하는 게시판 수 만큼 아래와 같은식으로  변수를 생성해 주면 되는데
          # 이때, 생성되는  변수명은  임의 지정(예, $table1 , $table2 , $abcd ,.... )하면 됩니다만. 
          # 같은 변수명을 사용 할 수는 없으며 , 
          # 영문 혹은 숫자만 사용하되 $기호 다음의 첫자는 반드시 영문이어야 합니다.

             # 세부지정옵션으로 게시판마다 색상이나 크기등 출력형태를  다르게 하려면
             # 별도 첨부된 설명서에서 "4, 게시판 출력변수 생성 옵션 설명" 을 참고하여, 
             # 변경하고자 하는 옵션만 다시  지정해 주면 됩니다.
             # 지정하지 않은 옵션은 위의 [표준설정]을 따르게 됩니다.

             # 표준형태로 출력시키려면 아래와 같이 게시판 타이틀과 보드경로만 대입하면 됩니다.

      $table1 = &open_table
      ("
           headline_text=예제1:  자유게시판;
           board_path=./board/FREE_BOARD;
      ");


#------------------------------------------------------



# [10] ▨▨▨ [변수생성 예제2]- 게시판 출력 테이블 변수 생성하기 ▨▨▨
   # 생성되는 변수명 : $table2
   # 출력되는 게시판 : ./board/FREE_BOARD 
          # '$table2' 이라는 변수에
          # 'FREE_BOARD' 게시판의 글목록을 저장시킨 예제입니다.
          # 위 htm  출력부분내에  변수 '$table2' 을 삽입하면 
          # 그 위치에 FREE_BOARD 게시판 글목록 테이블이 출력됩니다.
          # 지정하지 않은 옵션은 표준 설정을 따릅니다.

  
#---------------------------------------------------------------

# [13] ▨▨▨ [변수생성 예제5]
    $table5 = &open_table
       ("
          headline_text=내용전체보기;
          table_width=255;
          index_many=6;
          new_icon_time=720;
          board_path=./board/main;
          text_num_addition=2;
          text_link_url=./read.cgi;
          cell_column=11/2;
          cell_width_expand=1;
          append_img=x40;
          Print_indextable=1;
          line_color=#ffffff;

          mouse_over_color=#ffeeff;
          subject_length=55;
          body_length=400;
          body_position=1;
          body_htm_allow=no;
          open_new_window=yes;
          main_board_link=no;
          cross_line=dot;
       ");
    $table51 = &open_table
       ("
          headline_text=내용전체보기;
          table_width=255;
          index_many=19;
          new_icon_time=720;
          board_path=./board/fff;
          text_num_addition=2;
          text_link_url=./read.cgi;
          cell_column=2;
          cell_width_expand=1;
          append_img=x40;
          Print_indextable=1;
          line_color=#ffffff;

          mouse_over_color=#ffeeff;
          subject_length=55;
          body_length=400;
          body_position=1;
          body_htm_allow=no;
          open_new_window=yes;
          main_board_link=no;
          cross_line=dot;
       ");


    $table52 = &open_table
       ("
          headline_text=내용전체보기;
          table_width=255;
          index_many=6;
          new_icon_time=720;
          board_path=./board/bldg;
          text_num_addition=2;
          text_link_url=./read.cgi;
          cell_column=2;
          cell_width_expand=1;
          append_img=x40;
          Print_indextable=1;
          line_color=#ffffff;

          mouse_over_color=#ffeeff;
          subject_length=55;
          body_length=400;
          body_position=1;
          body_htm_allow=no;
          open_new_window=yes;
          main_board_link=no;
          cross_line=dot;
       ");
#-------정연웅 수정분--------------------------------------------------
    $table53 = &open_table
       ("
          headline_text=no;
          table_width=180;
          index_many=23;
          board_path=./board/product;
          text_num_addition=-2;
          text_link_url=./read.cgi;
          cell_column=2;
          append_img=x40;
          Print_indextable=1;
          line_color=#ffffff;
          mouse_over_color=#33cc00;
          subject_length=70;
          open_new_window=yes;
          cross_line=dot;
       ");

    $table54 = &open_table
       ("
          headline_text=no;
          table_width=220;
          index_many=9;
          board_path=./board/pds_sp;
          text_num_addition=-2;
          text_link_url=./read.cgi;
          cell_column=2/4;
          append_img=x40;
          Print_indextable=1;
          line_color=#ffffff;
          mouse_over_color=#ffeeff;
          subject_length=23;
          open_new_window=yes;
          cross_line=dot;
       ");

	       $table55 = &open_table
       ("
          headline_text=no;
          table_width=220;
          index_many=9;
          board_path=./board/fm;
          text_num_addition=-2;
          text_link_url=./read.cgi;
          cell_column=2/4;
          append_img=x40;
          Print_indextable=1;
          line_color=#ffffff;
          mouse_over_color=#ffeeff;
          subject_length=23;
          open_new_window=yes;
          cross_line=dot;
       ");
	          $table56 = &open_table
       ("
          headline_text=no;
          table_width=220;
          index_many=9;
          board_path=./board/qna;
          text_num_addition=-2;
          text_link_url=./read.cgi;
          cell_column=2/4;
          append_img=x40;
          Print_indextable=1;
          line_color=#ffffff;
          mouse_over_color=#ffeeff;
          subject_length=23;
          open_new_window=yes;
          cross_line=dot;
       ");
	   	          $table57 = &open_table
       ("
          headline_text=no;
          table_width=220;
          index_many=9;
          board_path=./board/ga;
          text_num_addition=-2;
          text_link_url=./read.cgi;
          cell_column=2/4;
          append_img=x40;
          Print_indextable=1;
          line_color=#ffffff;
          mouse_over_color=#ffeeff;
          subject_length=23;
          open_new_window=yes;
          cross_line=dot;
       ");
#---------------------------------------------------------


#---------------------------------------------------------------------


# [17] ▨▨▨ [변수생성 예제10]- 회원로그인 변수 이용하기 ▨▨▨

          # 예전에 로그인을 했었고, 현재는 로그인하지 않은 상태라면 아래 변수에는
          # 예전의 로그인 정보가 저장되어 있다.
               # 아이디:    $cook_id 
               # 이름:       $cook_name 
               # 메일:       $cook_mail 
               # 홈페이지: $cook_home 
               # 우편번호: $cook_post 
               # 주소:        $cook_address 
               # 전화번호: $cook_tel 

          # 현재 로그인을 한 상태라면 아래 변수에는 
          # 현재 로그인한 정보가 저장되어 있다.
               # 아이디:   $visitor_line[0] 
               # 이름:      $visitor_line[2]
               # 메일:      $visitor_line[3]
               # 홈페이지:$visitor_line[4]
               # 우편번호:$visitor_line[7]
               # 주소:      $visitor_line[8]
               # 전화번호:$visitor_line[9]
               # 회원등급:$visitor_line[19]
               # [관리설정]-[9-10]: $visitor_line[10]
               # [관리설정]-[9-11]: $visitor_line[11]
               # [관리설정]-[9-12]: $visitor_line[12]
               # [관리설정]-[9-13]: $visitor_line[13]
               # [관리설정]-[9-14]: $visitor_line[14]
               # [관리설정]-[9-15]: $visitor_line[15]
               # [관리설정]-[9-16]: $visitor_line[16]
               # [관리설정]-[9-17]: $visitor_line[17]
               # [관리설정]-[9-18]: $visitor_line[18]

          # 위의 변수를 htm 출력 부분에 삽입하여 원하는 회원정보를 출력할수 있다.
          # 2001 버전에서는 우편번호, 주소, 전화번호 적용되지 않음

#----------------------------------------------------------------------

# [18] ▨▨▨ [변수생성 예제 11]- 회원로그인  여부에 따른 '조건 변수' 생성하기 ▨▨▨
            # 회원로그인된 상태라면 $LoginMember 변수에 1이 대입되어 있고,
            # 회원로그인 하지 않은 상태라면 $LoginMember 에 아무것도 대입되어 있지 않음
            # ★ 표시있는 부분은  수정해야 함
            # 추가 내용에 느낌표(!)가 들어 갈때는 반드시 \! 와 같이 앞에 \을 붙여 넣을것
            # 기타사항은 별도 첨부된 도움말 참조


          #  조건 변수 생성

          # 만약 로그인 된 상태라면 => '..님 로그인되었습니다' 라는 문장과 '로그아웃' 버튼 링크를 $Message_Print 변수에 저장함
          if($LoginMember){
               $Message_Print = qq!

                    <br>
                     <b>$visitor_line[2]</b>님 로그인되었습니다.

                     <\!-- ★회원로그인/아웃할 보드의 주소를 링크한다
                                로그아웃후 별도의 페이지가 출력되게 하려면 logout_after_url= 뒤에
                                그 페이지 URL(http://...) 을 붙여 준다.-->
                     <span style='background-color:#dddddd; border:1 solid #333333; padding:1;'>
                          <a href='./main.cgi?board=main&LogOut=1&logout_after_url=http://www.afm.co.kr/iboard.cgi'>로그아웃</a>
                     </span>

               !;
           }

          # 로그인하지 않은 상태라면 => 아이디, 비밀번호 입력폼 태그를 $Message_Print 변수에 저장함
          else{
                 $Message_Print = qq!

                        <script language='JavaScript'>
                             function checking(){
                                if(LOGINFORM.input_id.value.length < 2){return false;}
                                if(LOGINFORM.password.value.length < 2){return false;}
                             }
                        </script>

                        <\!--  ★action='./main.cgi' 에는 main.cgi 의 전체url(http://.....technote/main.cgi)을 대입 -->
                     <form method='post' name='LOGINFORM' action='http://www.afm.co.kr/main.cgi'>

                        <input type='hidden' name='command' value='keep_form'>
                        <input type='hidden' name='ch_id_pass' value='1'>

                        <\!-- ★value='FREE_BOARD' 에는 회원로그인 설정한 '보드명'을 대입 -->
                        <input type='hidden' name='board' value='main'>

                        <\!-- ★value='' 에는.. 회원 로그인후 출력될 페이지를 별도 지정하려면
                            출력될 페이지의 url 을 대입한다, ([관리설정]-[9-5 , 9-6] 에서 지정보다 우선함) -->
                        <input type=hidden name='login_after_url' value='http://www.afm.co.kr/iboard.cgi'>

                        아이디<input type='text' name='input_id' size='10' value='$cook_id' style='border:1 solid #0000a0; font-size:8pt'>
                        비밀번호<input type='password' name='password' size='10' style='border:1 solid #0000a0; font-size:8pt'>

                        <input type='submit' value='로그인' onClick="return checking()" 
                        style='border:1 solid #0000a0; background-color:#cccccc; font-size:9pt; height:13pt;'>
                     </form>

                 !;
          }
#         위와 같이 조건 적용으로 생성된 '$Message_Print' 변수에는 로그인 여부에 따라 다른 내용이
#         저장되므로 html 출력 부분에 $Message_Print 변수를 넣으면 역시 로그인 여부에 따라 
#         그 위치에 로그인폼이나 로그아웃 버튼이 출력됩니다.
#         작성 내용에 느낌표(!)가 들어 갈때는 반드시 \! 와 같이 앞에 \을 붙여 넣으십시오.

#           위와 같이
#            if($LoginMember){$변수명= "로그인된 경우에 출력될 내용";} 
#            else{$변수명="로그인되지 않은 경우에 출력될 내용";}
#            형태로 다른 변수를 생성해서 사용해도 됩니다.

#         위 수정부분에 보면 로그아웃후 출력될 페이지 지정과, 로그인후 출력될 페이지 지정 
#         방법이 있는데 그것이 정상작동되게 하려면 
#         * technote/library/Lib-12.cgi 소스 최상단에 
#            if(length($FORM{'login_after_url'}) > 7){$config[80] = 3; $config[220] = $FORM{'login_after_url'};}
#            위 코드를 추가하고,
#         * technote/main.cgi  소스에서  &TempCookie("$AFmMan",""); 코드를 검색하고 그 코드 바로 뒤에다
#            &LocationurlMV("$FORM{'logout_after_url'}") if(length($FORM{'logout_after_url'}) > 7);
#            위 코드를 추가하십시오.






         #  위의 [변수생성 예제10,11] 에 설명한 로그인 관련 변수를 사용하기 위해서는.......
         # 이 iboard.cgi 가 테크노트의 main.cgi 가 있는 디렉토리에 위치하거나 그 하위의 경로에 있어야 합니다.
         # 만약 테크노트의 main.cgi 보다 상위 경로에 iboard.cgi 를 위치시켰다면 
         # 위 [변수생성 예제 10 , 11] 에서 설명한 로그인 변수는 적용되지 않습니다. 
         # 이때는 technote/config.cgi 소스내의 수정항목 31  번에 '/' 를 대입해 주면 됩니다




#------------------------------------------------------------------------




# [19] ▨▨▨ [기타참고]- iboard.cgi 의 설정옵션을 이용한것이 아닌,
    # '실제 게시판' 을  HTM 코드내에  삽입하려면
    # 아래 예와 같이 'object' 태그나 'iframe' 태그를 사용하면 됩니다.
    # 일반 htm 파일에서도 동일합니다.

        #      <object 
        #           type='text/x-scriptlet'
        #           data='http://www.technote.co.kr/cgi-bin/tech2002/mbboard/main.cgi?board=op_free'
        #           width='400'
        #           height='500'>
        #      </object> 


        #      <iframe
        #          src='http://www.technote.co.kr/cgi-bin/tech2002/mbboard/main.cgi?board=op_free'
        #          border='0'
        #          frameBorder='0'
        #          scrolling='no'
        #          width='400'
        #          height='500'
        #          marginhieght='0'
        #          marginWidth='0'>
        #      </iframe>





# --------------------  수고 많이 하셨습니다. ---------------------------------------#








# [20] ★★★★★★★★★★★  변수조합 코드 부분 ★★★★★★★★★★★★★★


# 이하 사용자 수정항목은 없습니다. 
# 필요하다면 수정해도 상관 없습니다.
# 코드내에 주석문을 넣었으니 해당 코드의 용도를 확실히 파악하신후 수정하십시오,
# 페이지 출력의 직접적인 구성은 위에서 다 하도록 되어 있으니
# 이곳은 가급적 수정하지 않으시는게 좋습니다. 
# cgi 파일 실행에 직접 영향을 주는 부분이므로 조금만 잘못 수정해도 에러가 날수 있습니다.




# HTML PRINT
print "Content-type: text/html\n\n";
&HTML_PRINT;

# 게시판 출력 옵션 조합
sub open_table{
local($const)=@_;
local($boardname,$tabletag,$indexsize,$indexsizetm,$nextpg,$prevpg,$Nextibutton,$Opentarget_1,$Opentarget_2,$Boldface1,$Boldface2,$textline_2body,$textline_3body,$imgsrc,$imgsrc2,$img_width,$img_height,$wi_cross,$Trtagchk,$Ud_num,@DIVpart,@index,@today,@visitor,@CellConst,@textline_body);

undef(%TABLE);

@DIVpart = split(/;/,$const);
foreach $key (@DIVpart) {
     $key =~ s/^\s+//;
     $key =~ s/\s+$//;
#   $key =~ /(.*)=(.*)/;
     $key =~ /([^=]*)=(.*)/;
     $TABLE{$1} = $2;
}

while(($STname,$STvalue)=each(%ST_TBL)){
    $TABLE{$STname} = $STvalue unless($TABLE{$STname});
}

@CellConst = split(/\//,$TABLE{'cell_column'});
foreach $key (@CellConst) {
     if($key == 11){
          if($TABLE{'append_img'} =~ /^(\d+)x(\d+)/){
               $img_width = " width=$1 ";
               $img_height = " height=$2 ";
          }
          elsif($TABLE{'append_img'} =~ /x(\d+)$/){
               $img_height = " height=$1 ";
          }
          elsif($TABLE{'append_img'} =~ /^(\d+)x/){
               $img_width = " width=$1 ";
          }
          elsif($TABLE{'append_img'} =~ /^(\d+)$/){
               $img_height = " height=$1 ";
          }
           elsif($TABLE{'append_img'} =~ /^x$/){
                '';
          }
          elsif($TABLE{'append_img'} !~ /\//){
               $TABLE{'append_img'} = "$icon_dir_url/i_imgfile.gif";
          }
          else{'';}
          next;
     }
     $key += 28 if($key > 8);
     $key += 14 if($key > 4 && $key < 9);
}

    if(!$TABLE{'append_img_underview'}){'';}
    elsif($TABLE{'append_img_underview'}==2){$Ud_num = 2;}
    elsif($TABLE{'append_img_underview'}==3){$Ud_num = 3;}
    elsif($TABLE{'append_img_underview'}==4){$Ud_num = 23;}
    elsif($TABLE{'append_img_underview'}==5){$Ud_num = 19;}
    elsif($TABLE{'append_img_underview'}==6){$Ud_num = 20;}
    elsif($TABLE{'append_img_underview'}==7){$Ud_num = 21;}
    elsif($TABLE{'append_img_underview'}==8){$Ud_num = 22;}
    elsif($TABLE{'append_img_underview'}==9){$Ud_num = 37;}
    elsif($TABLE{'append_img_underview'}==10){$Ud_num = 38;}
    else{'';}

     # 본문 출력 타겟 지정   --  (타겟을 별도 지정하려면 여기서 코드를 수정할것)

         # 만약, 메인htm 파일내에 <iframe> 태그를 이용해 iboard.cgi 를 삽입한 형태에서
         # 글제목 클릭하면 메인 htm의 전체화면에서 출력되게 하려면...

             #  $Opentarget_1 = " target='_parent' ";
             #  $Opentarget_2 = " target='_parent' ";
             # 위 두라인앞의 샾(#) 을 제거하고 아래보이는 코드는 삭제할것

     if($TABLE{'open_new_window'} ne 'no'){
        $Opentarget_1 = "target='aaa' onClick='NewWindows()'";
        $Opentarget_2 = "target='bbb' onClick='NewWindows2()'";
     }else{
        $TABLE{'Print_indextable'}=2;
     }


# 바탕색 지정 옵션으로 백그라운드 이미지 지정한 경우,
if($TABLE{'index_bgcolor'} =~ /\//){
  $TABLE{'index_bgcolor'} = "style=\"background-image:url('$TABLE{'index_bgcolor'}'); BACKGROUND-REPEAT: no-repeat;\"";
}
else{
  $TABLE{'index_bgcolor'} = "bgcolor=$TABLE{'index_bgcolor'}";
}

open(INDEX,"$TABLE{'board_path'}/$indexfile");
$indexsizetm = $indexsize = @index = <INDEX>;
close(INDEX);
chop(@index);

open(TODAY,"$TABLE{'board_path'}/today.txt");
@today = <TODAY>;
close(TODAY);
chop(@today);

open(COUNT,"$TABLE{'board_path'}/$countfile");
@visitor = <COUNT>;
close(COUNT);
chop(@visitor);

$todaytxt = ($today[0] eq $DateTime)? $today[1] : '0';
$TABLE{'board_path'} =~ /[^\/]+$/;
$boardname = $&;
($link2 = $TABLE{'text_link_url'}) =~ s/$readcg/$maincgorfile/;
($link3 = $TABLE{'text_link_url'}) =~ s/$readcg/$imgcg/;


## 보드 테이블 목록 구성 시작 부분
$tabletag .= "<table width=$TABLE{'table_width'} cellspacing=1 cellpadding=1  border=0 ";
# 테이블 테두리가 점선라인으로 지정되었다면
if($TABLE{'line_color'} =~ s/-dot$//i){
     $tabletag .= "style='border: 1px dashed $TABLE{'line_color'}'";
}
# 테이블 테두리가 칼라 라인으로 지정되었다면
else{
     $tabletag .= "bgcolor=$TABLE{'line_color'}";
}
$tabletag .= ">\n";

# 테이블의 타이틀바(헤드라인) 부분
if($TABLE{'headline_text'} ne 'no'){  
$tabletag .= "<tr bgcolor=$TABLE{'head_bgcolor'}><td width=100%><a href='$link2?board=$boardname' $Opentarget_2 alt=board>";
$tabletag .= "<img src=$TABLE{'head_icon_url'} border=0 align=absmiddle>\n" if($TABLE{'head_icon_url'});
$tabletag .= "$TABLE{'headline_text'}</a>";
$tabletag .= "&nbsp; <font face='돋움'><글:$todaytxt/$indexsize><방문:$visitor[1]/$visitor[0]></font>" if($TABLE{'items_visit'} == 1);
$tabletag .= "</td>\n";
# 타이틀바(헤드라인) 우측의 페이지 넘기기 화살표
if($TABLE{'main_board_link'} ne 'no'){
     $nextpg = $FORM{$boardname} + 1;
     $prevpg = $FORM{$boardname} - 1;
     $prevpg = '0' if($FORM{'page'});
     $tabletag .= "<td><nobr>";
     $tabletag .= "<a href='./$This_CGI_Name?$boardname=$prevpg' alt=prev>" if($prevpg >= 0);
     $tabletag .= "<img src=$icon_dir_url/i_prev.gif border=0 align=absmiddle alt=Prev>";
     $tabletag .= "</a>" if($prevpg >= 0);

     if(($indexsize/$TABLE{'index_many'}) >= $nextpg){
          $tabletag .= "<a href='./$This_CGI_Name?$boardname=$nextpg' alt=next>" ;
          $Nextibutton = 1;
     }

     $tabletag .= "<img src=$icon_dir_url/i_next.gif border=0 align=absmiddle alt=Next>";
     $tabletag .= "</a>" if($Nextibutton);
     $tabletag .= " <a href='$link2?board=$boardname' $Opentarget_2 alt=board><img src=$icon_dir_url/i_top.gif border=0 align=absmiddle alt=Open_Board></a></nobr></td>";
}
     $tabletag .= "</tr>\n";
}

     $tabletag .= "<tr bgcolor=#ffffff><td colspan=2>\n";

     # 게시판 글제목 부분 출력구성 시작
     $tabletag .= "<table border=0 width=100% cellspacing=0 cellpadding=2 $TABLE{'index_bgcolor'}>\n";

if($FORM{'page'}){
     $indexsize -= ($TABLE{'index_many'} * $FORM{'page'});
}

if($FORM{$boardname}){
     $indexsize -= ($TABLE{'index_many'} * $FORM{$boardname});
}

for($i=($indexsize-1); $i >= ($indexsize-$TABLE{'index_many'}); $i--){
     next if(!$index[$i]);
     last if($i < 0);
     $tabletag .= "<tr onMouseOver=this.style.backgroundColor=\"$TABLE{'mouse_over_color'}\" onMouseOut=this.style.backgroundColor=''>" if($Trtagchk < 1);
     @indexbody = split(/\|/,$index[$i]);

# 가로 라인선 색상 지정이 있다면
if($TABLE{'cross_line'} ne 'no'){
          $Main_Colspan=@CellConst;
          $Main_Colspan *= $TABLE{'cell_width_expand'} if($TABLE{'cell_width_expand'} > 1);
          $wi_cross =  "\n<tr><td colspan=$Main_Colspan ";
          $wi_cross .= ($TABLE{'cross_line'} =~ /dot/)? " background=$icon_dir_url/i_dotlinet.gif " : " bgcolor=$TABLE{'cross_line'} ";
          $wi_cross .= " height=1></td></tr>\n";
}

     foreach $Cell (@CellConst){


     ## 글번호
          if($Cell == 1){
             $tabletag .= "<td>";
               if($TABLE{'text_num_addition'} == 1){
                    $tabletag .= "&nbsp;<font color=$TABLE{'text_color'} style='font-size:8pt;'>".($indexsizetm - $i)."</font>";
               }
               else{
                    $tabletag .= "&nbsp;<font color=$TABLE{'text_color'}  style='font-size:8pt;'>".($i+1)."</font>";
               }
             $tabletag .= "</td>";
          }



     ## 작성일
          elsif($Cell == 4){
               # 시간, 요일등이 기록되어 있으면 이를 제거
               if($indexbody[23] =~ /^\d+\/(\d+\/\d+)/){$indexbody[23] = $1;}
               elsif($indexbody[23] =~ /^\d+\/\d+/){$indexbody[23] = $&;}
               elsif($indexbody[23] =~ /^\d+-(\d+-\d+)/){$indexbody[23] = $1;}
               elsif($indexbody[23] =~ /^\d+-\d+/){$indexbody[23] = $&;}else{'';}
               $tabletag .= "<td>";
               $tabletag .= "&nbsp;<font color=$TABLE{'text_color'}  style='font-size:8pt;'>$indexbody[23]</font>";
               $tabletag .= "</td>";
          }


     ## 글제목
          elsif($Cell == 2){
             $tabletag .= "<td>";

               if($indexbody[4] > 0 && $TABLE{'cell_width_expand'} < 2){
                   $tabletag .=      ('&nbsp;&nbsp;' x $indexbody[4]);
                     ## 답변글 앞에 이음줄을 넣으려면 위 라인을 아래 라인으로 교체할것.
                     #   $tabletag .=      ('&nbsp;&nbsp;' x ($indexbody[4]-1))."<img src=$icon_dir_url/i_reline.gif border=0>";
               }

               ## body_length 이 10보다 크면 본문출력함
               if($TABLE{'body_length'} > 10){     
                         if($indexbody[32] ne 'x'){
                              $T_dir_x2 = $indexbody[39] ? $indexbody[39] : $textdir ;
                              open(BODY,"$TABLE{'board_path'}/$T_dir_x2/$indexbody[1].$filename_exp");
                                   @textline_body = <BODY>;
                              close(BODY);
                              shift(@textline_body);
                              $textline_2body=join(' ',@textline_body );
                         }
                         else{
                              $textline_2body= '&nbsp; &nbsp; 비공개 지정글 입니다.';
                         }
                              $textline_2body =~ s/::DISPLAY::/ /ig;

                    # MouseOver : 박스내에 본문출력
                         if($TABLE{'body_position'} > 0){
                        # htm 태그는 제거
                              $textline_2body =~ s/<([^>]|\n)*>/ /g;
                              $textline_3body = $textline_2body; 
                              $textline_3body =~ s/\"//g;
                              $textline_3body =~ s/\'//g;
                              $indexbody[2]=~ s/\"//g;
                              $indexbody[2]=~ s/\'//g;
                              $textline_3body =~ s/\r//g;
                              if($indexbody[31]==1 || !$indexbody[31]){     $textline_3body =~ s/\n/<br>/g;}
                              else{     $textline_3body =~ s/\n/ /g;}
                              $textline_3body=&SubstrReturn($textline_3body,0,$TABLE{'body_length'},"");
                              $textline_3body = "onMouseover=\"textbodyprint('<font size=2><b><img src=$icon_dir_url/subjec2.gif border=0> $indexbody[2]</b></font><br>$textline_3body')\" onMouseout=textbodyprint(0,1)";
                              $textline_2body='';
                         }
                    # 글제목 아래에 본문출력
                         else{
                        # htm 태그는 제거
                              $textline_2body =~ s/<([^>]|\n)*>/ /g if($TABLE{'body_htm_allow'} ne 'yes');
                              $textline_2body =~ s/onclick=[^>]+//gi;
                              $Boldface1 = '<b>';
                              $Boldface2 = '</b>';
                              if($indexbody[31]==1 || !$indexbody[31]){     $textline_2body =~ s/\n/<br>/g;}
                              $textline_2body=&SubstrReturn($textline_2body,0,$TABLE{'body_length'},"");
                              $textline_2body = "<br>$textline_2body<br><font style='font-size:2pt;'>&nbsp;</font>";
                         }
               }
               if((length($indexbody[2]) > $TABLE{'subject_length'}) || !$indexbody[2]){
                    $indexbody[2] = &SubstrReturn($indexbody[2],0,$TABLE{'subject_length'},'..');
               }
               $tabletag .=      "<img src=$TABLE{'subject_icon_url'} border=0>" if($TABLE{'subject_icon_url'});
               $tabletag .=      " <a href=\"$TABLE{'text_link_url'}?board=$boardname&y_number=$i&nnew=$TABLE{'Print_indextable'}\" $Opentarget_1 $textline_3body><font color=$TABLE{'text_color'}>$Boldface1$indexbody[2]$Boldface2";
               $tabletag .=      "<font color=red><b>㉥</b></font>" if($indexbody[32] eq 'x');

               ## new 아이콘 이미지 출력(이미지경로 직접지정 가능)
               $tabletag .=      " <img src=$icon_dir_url/i_new.gif width=9 height=9 border=0>" if((time - ($TABLE{'new_icon_time'} * 3600)) < $indexbody[1]);
               $tabletag .=      "$textline_2body</font></a>";
               $tabletag .= "</td>";
               undef $textline_2body;
               undef $textline_3body;
          }



     ## 그림보기(섬네일)
          elsif($Cell == 11){
            $tabletag .= "<td align=center  valign=top>";
                    
                    if(($imgsrc,$imgsrc2) = &img_search){
                        # 그림클릭하면 - 현재창에서 본문글 + 글목록이 출력
                        if($TABLE{'append_img_click_event'}==3){
                            $tabletag .= "<a href=\"$TABLE{'text_link_url'}?board=$boardname&y_number=$i&nnew=2\">";
                        }
                        # 그림클릭하면 - 새창에서  본문글이 출력
                        elsif($TABLE{'append_img_click_event'}==1){
                            $tabletag .= "<a href=\"$TABLE{'text_link_url'}?board=$boardname&y_number=$i&nnew=1\" target='aaa' onClick='NewWindows()'>";
                        }
                        # 그림클릭하면 - 새창에서 본문글 + 글목록이 출력
                        elsif($TABLE{'append_img_click_event'}==2){
                            $tabletag .= "<a href=\"$TABLE{'text_link_url'}?board=$boardname&y_number=$i&nnew=2\" target='bbb' onClick='NewWindows2()'>";
                        }
                        # 그림클릭하면 - 새창에서 큰그림으로 출력
                        else{
                             $tabletag .= "<a href=\"javascript:IMGprint('$imgsrc2')\">";
                        }
                             $tabletag .= "$imgsrc";
                             $tabletag .= "<br><font style=font-size:2pt;>&nbsp;</font><br>$indexbody[$Ud_num]" if($Ud_num && $indexbody[$Ud_num]);
                             $tabletag .= "</a></td>";
                    }
                    else{
                         $tabletag .= "&nbsp;</td>";
                    }
        }


        ## 조회수
        elsif($Cell == 40){
             $tabletag .= "<td align=center>";
                    unless($Cnt_dir){
                        $Cnt_dir = ($indexbody[39] =~ /\d+/)? ('count'.$&) : 'count';
                        open(CNT,"$TABLE{'board_path'}/$Cnt_dir/$indexbody[1].cgi");
                        @Cnt_arr = split(/\|/,<CNT>);
                        close(CNT);
                    }
             $tabletag .= "&nbsp;<font color=$TABLE{'text_color'} style='font-size:8pt;'>$Cnt_arr[1]</font>";
             $tabletag .= "</td>"; 
        }


        ## 댓글수
        elsif($Cell == 41){
             $tabletag .= "<td align=center>";
                    unless($Cnt_dir){
                        $Cnt_dir = ($indexbody[39] =~ /\d+/)? ('count'.$&) : 'count';
                        open(CNT,"$TABLE{'board_path'}/$Cnt_dir/$indexbody[1].cgi");
                        @Cnt_arr = split(/\|/,<CNT>);
                        close(CNT);
                    }
             $tabletag .= "<font color=$TABLE{'text_color'} style='font-size:7pt;'>[$Cnt_arr[2]]</font>" if($Cnt_arr[2]);
             $tabletag .= "&nbsp;</td>";
        }


     ## 그외 출력 셀
          else{
             $tabletag .= "<td>";
               if(length($indexbody[$Cell]) > $TABLE{'other_length'}){
                    $indexbody[$Cell] = &SubstrReturn($indexbody[$Cell],0,$TABLE{'other_length'},'');
               }
               $tabletag .= "&nbsp;<font color=$TABLE{'text_color'}>$indexbody[$Cell]</font>";
             $tabletag .= "</td>";
          }


       }

        undef $Cnt_dir;

        # 가로 확장
        if($TABLE{'cell_width_expand'} < 2){
            $tabletag .= "</tr>$wi_cross\n";
        }
        else{
            $Trtagchk++;
            if($Trtagchk == $TABLE{'cell_width_expand'}){
                $tabletag .= "</tr>$wi_cross\n";
                $Trtagchk=0;
            }
        }
     }
   $tabletag .= "</table>\n</td></tr>\n</table>\n";
   return $tabletag;
}

sub parse{
$buffer = $ENV{'QUERY_STRING'};
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
  ($name, $value) = split(/=/, $pair);
  $value =~ tr/+/ /;
  $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
  $FORM{$name} = $value;
}
@timeday=localtime(time+$NewLocaltime);
$DateTime=($timeday[4]+1).$timeday[3];
}

sub SubstrReturn{
     local($strings,$startlen,$endlen,$addin) = @_;
     local($reststr);
     $reststr = $strings =  substr($strings,$startlen,$endlen);
     chop($strings) if((($reststr =~ tr/[\xA1-\xFE]//) % 2) != 0 );
     return ($strings."$addin");
}

sub img_search{
local ($returnimgtag_1,$returnimgtag_2,$returnimgtag_3);

# 파일첨부
if($indexbody[17] =~ /\.(gif|jpg|bmp|swf)$/i){
     if($cgi_dir_appoint==1){
          $returnimgtag_1 ="$board_dir_url/$boardname/$uploaddir/$indexbody[17]";
     }
     else{
          $returnimgtag_1 ="$link3?board=$boardname&xfile=1&img=$indexbody[17]";
     }
}

# 파일링크
elsif($indexbody[28] =~ /\.(gif|jpg|bmp|swf)$/i){
        $returnimgtag_1 = "$indexbody[28]";
}else{'';}

# 이미지첨부
if($indexbody[10]){
     if($cgi_dir_appoint==1){
          $returnimgtag_2 ="$board_dir_url/$boardname/$upimgdir/$indexbody[10]";
     }
     else{
          $returnimgtag_2 = "$link3?board=$boardname&img=$indexbody[10]";
     }
}

#이미지링크
elsif($indexbody[11]){
    $returnimgtag_2 ="$indexbody[11]";
}else{'';}

$returnimgtag_1 = $returnimgtag_2 unless($returnimgtag_1);
$returnimgtag_2 = $returnimgtag_1 unless($returnimgtag_2);
return unless($returnimgtag_1);
if($img_width || $img_height || !$TABLE{'append_img'} || $TABLE{'append_img'} eq 'x'){
$returnimgtag_3 = "<". &img_flash_ck($returnimgtag_1) ." src=$returnimgtag_1 border=1 $img_width $img_height>";
}
else{
$returnimgtag_3 = "<img src=$TABLE{'append_img'} border=0>";
}
# 미리보여질 그림 , 클릭후 보여질 그림
return($returnimgtag_3,"<a href=$TABLE{'text_link_url'}?board=$boardname&y_number=$i&nnew=1><". &img_flash_ck($returnimgtag_2) ." src=$returnimgtag_2 border=0 alt=click_now!></a>");

}

## flash
sub img_flash_ck{
    local($flimg)=@_;
    if($flimg =~ /\.swf$/i){
        return 'embed';
    }
        return 'img';
}


sub get_cookie{
local($m_name, $m_value,$Main_Logpass,$cookie_key,$cook_dirkey,$xcookiename,@M_config,@cookies);
return unless($MemberDataBoard);
@cookies = split(/; /, $ENV{'HTTP_COOKIE'});
foreach $key (@cookies) {$key =~ /([^=]*)=(.*)/;	$COOKIE{$1} = $2;}
#foreach (@cookies) {
#($m_name, $m_value) = split(/=/, $_);
#$COOKIE{$m_name} = $m_value;
#}

     open(MEMBER,"$board_dir_path/$MemberDataBoard/$configfile");
     @M_config = <MEMBER>;
     close(MEMBER);
     chop(@M_config);

     if($M_config[112] == 2){
          $cookie_key=$scripimport.$MemberDataBoard;
          $cook_dirkey=$MemberDataBoard.$M_config[0];
     }
     else{
          $cookie_key=$scripimport.'nSXq';
          $cook_dirkey=$scripimport.'olkZq';
     }
     ($cook_name,$cook_mail,$cook_home,$cook_visit,$cook_id,$cook_post,$cook_address,$cook_tel,$cook_file)=split(/\|/,$COOKIE{$cookie_key});

     $xcookiename = $M_config[292].'home'.$frankscrip;
     return unless($COOKIE{$xcookiename});
     @visitor_line=split(/\|/,$COOKIE{$xcookiename});
     if($M_config[112] == 2){
               if(($visitor_line[5] eq $M_config[0]) && ($MemberDataBoard eq $visitor_line[6])){
                    $LoginMember=1;
                    print "Set-Cookie: $xcookiename=$COOKIE{$xcookiename}; \n";
               }
     }
     else{
               open(MEMBER,"$board_dir_path/$loginfile");
               $Main_Logpass = <MEMBER>;
               close(MEMBER);
               $Main_Logpass =~ s/\s//g;

               if(($visitor_line[5] eq $Main_Logpass) && ($scripimport.'olkZq' eq $visitor_line[6])){     
                    $LoginMember=1;
                    print "Set-Cookie: $xcookiename=$COOKIE{$xcookiename}; \n";
               }
     }
          undef @visitor_line unless($LoginMember);
}

sub Link_Cut{
     if($LINK_PMS_URL[0] && $ENV{'HTTP_REFERER'}){
               foreach $key (@LINK_PMS_URL) {
                    next unless($key);
                    if($ENV{'HTTP_REFERER'} =~ /^$key/i){
                         $linkpms_in = 1;
                         last;
                    }
               }
               &error_message('<font size=3>무단링크 허용불가!</font>') unless($linkpms_in);
     }
}

sub StandardTable{
    local @StnTab = split(/;/,$_[0]);
    foreach $t_key (@StnTab) {
         $t_key =~ s/^\s+//;
         $t_key =~ s/\s+$//;
#       $t_key =~ /(.*)=(.*)/;
         $t_key =~ /([^=]*)=(.*)/;
         $ST_TBL{$1} = $2;
    }
}

1;




# end #
