// JavaScript Document

<!--이미지 새창띄우기-->

function view(what) {
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=10,height=0');
imgwin.focus();
imgwin.document.open();

imgwin.document.write("<html>\n");
imgwin.document.write("<head>\n");
imgwin.document.write("<title>수상/인증서보기</title>\n"); //오픈창 타이틀 이름 지정하는 부분
imgwin.document.write("<sc"+"ript>\n");
imgwin.document.write("function resize() {\n");
imgwin.document.write("pic = document.il;\n");
//imgwin.document.write("alert(eval(pic).height);\n");
imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n");
imgwin.document.write(" if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height + 36; myWidth = eval(pic).width + 10;\n");
imgwin.document.write(" } else { myHeight = eval(pic).height + 36; myWidth = eval(pic).width + 10; }\n");
imgwin.document.write(" clearTimeout();\n");
imgwin.document.write(" var height = screen.height;\n");
imgwin.document.write(" var width = screen.width;\n");
imgwin.document.write(" var leftpos = width / 2 - myWidth / 2;\n");
imgwin.document.write(" var toppos = height / 2 - myHeight / 2; \n");
imgwin.document.write(" self.moveTo(leftpos, toppos);\n");
imgwin.document.write(" self.resizeTo(myWidth, myHeight+0);\n");
imgwin.document.write("}else setTimeOut(resize(), 100);}\n");
imgwin.document.write("</sc"+"ript>\n");
imgwin.document.write("</head>\n");

imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">\n');
imgwin.document.write("<a href='javascript:window.close()' onfocus='this.blur();'><img border=0 src="+what+" xwidth=100 xheight=9 name=il onload='resize();'></a>\n");
imgwin.document.write("</body>\n");

imgwin.document.write("</html>\n");
imgwin.document.close();
}
<!-- //이미지 새창띄우기-->

<!-- 탭메뉴-->
function tab_change(tab, cnt){
  for(var i = 1; i <= cnt; i++) {
    img = document.getElementById('tab'+i);
    if(tab == i) {
      img.src = "./template/design/02_busi/tab_"+i+"_on.jpg";
      eval("document.getElementById('tab_content"+i+"').style.display = ''");
    }else{
      img.src = "./template/design/02_busi/tab_"+i+"_off.jpg";
      eval("document.getElementById('tab_content"+i+"').style.display = 'none'");
    }
  }
}
<!-- //탭메뉴-->


//flash ie ---
function ShowFlash(url, width, height){
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '" VIEWASTEXT>');
  document.write('<param name="movie" value="' + url + '">');
  document.write('<param name="quality" value="high">');
  document.write('<param name="wmode" value="transparent">');
  document.write('<PARAM NAME=lnb VALUE=false>');
  document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="incrlication/x-shockwave-flash" wmode="transparent" width="' + width + '" height="' + height + '"></embed>');
  document.write('</object>');
}


//open window ---
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// rollover --
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_swapImgRernde() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


function family_site(strUrl) {
  if (strUrl.length > 0) {
    window.open(strUrl, "", "");
  }
}

//Sitemap
function showHideLayer(stat){
  if(stat){
    document.all.sitemap.style.visibility = "visible";
  }else{
    document.all.sitemap.style.visibility = "hidden";
  }
}

// full_menu01 function ---
  function gnb02(){
    document.getElementById("sitemap_ov").style.display = "block";
    //document.getElementById("sitemap").style.visibility = "visible";
  }

  function full_menu02(){
    document.getElementById("sitemap_ov").style.display = "none";
    //document.getElementById("sitemap").style.visibility = "hidden";
  }


// CI
  function ci()
    { self.location.href = './index.php'; }


// GNB
  function gnb01() //Home
    { self.location.href = './index.php'; }

  //function gnb02() //Sitemap
  //  { self.location.href = '/index.php'; }
  function gnb03() //admin
    { self.location.href = './admin'; }
  function gnb04() //English
    { self.location.href = './index.php'; }
  function gnb05() //Korean
    { self.location.href = '../kor/index.php'; }

  function vod() //vod
    { window.open('./template/include/vod.php','','width=760,height=584'); }

// LNB------------------------------------------------------------
// 01 ICREON
  function lnb010101() //
    { self.location.href = './sub.php?atom=abou01'; }
  function lnb010201() //
    { self.location.href = './sub.php?atom=abou02'; }
  function lnb010301() //
    { self.location.href = './sub.php?atom=abou03'; }
  function lnb010401() //
    { self.location.href = './sub.php?atom=abou04'; }
  function lnb010501() //
    { self.location.href = './sub.php?atom=abou05'; }

// 02 Products
  function lnb020101() //
    { self.location.href = './sub.php?atom=prod01'; }
  function lnb020201() //
    { self.location.href = './sub.php?atom=prod02'; }
  function lnb020301() //
    { self.location.href = './sub.php?atom=prod03'; }
  function lnb020401() //
    { self.location.href = './sub.php?atom=prod04'; }
  function lnb020501() //
    { self.location.href = './sub.php?atom=prod05'; }
  function lnb020601() //
    { self.location.href = './sub.php?atom=prod06'; }

// 03 Support
  function lnb030101() //
    { self.location.href = './sub.php?atom=supp01'; }
  function lnb030201() //
    { self.location.href = './sub.php?atom=supp02'; }
  function lnb030301() //
    { self.location.href = './sub.php?atom=supp0301'; }

// 04 Contact us
  function lnb040101() //
    { self.location.href = './sub.php?atom=cont01'; }
  function lnb040201() //
    { self.location.href = './sub.php?atom=cont02'; }

//FOOTER
  function footer01() // 인사말
    { self.location.href = './sub.php?atom=abou01'; }
  function footer02() // 이메일무단수집거부
    { window.open('/template/include/refu/refusal.php','','width=461,height=285'); }
  function footer03() // 찾아오시는 길
    { self.location.href = './sub.php?atom=abou06'; }


