// 조직도 시작 var currID; function clickshow(elem,ID) { $(".people").hide(); if(currID != ID){ $("#"+ID).show(); currID = ID; }else{ currID = ""; } } //]]> // 조직도 종료 function Displaytabmenu(index) { for (i=1; i<=3; i++) if (index == i) { thistabmenu = eval("tabmenu" + index + ".style"); thistabmenu.display = ""; } else { othertabmenu = eval("tabmenu" + i + ".style"); othertabmenu.display = "none"; } } function OpenImage(s){ // // 변수 정의 // srcImg = new Image(); clientWidth = screen.width; clientHeight = screen.height; srcImg.src = s; // // 열려는 파일을 이름 // var srcFileName = srcImg.src.substr(srcImg.src.lastIndexOf("/")+1, srcImg.src.length); // // 새창 띄우고 이미지 삽입 // win = window.open("","","width=15,height=15,scrollbars=no,resizable=no,left="+(clientWidth/2-15)+",top="+(clientHeight/2-15)+""); win.document.writeln(""); win.document.writeln(""); win.document.writeln(""+document.title+""); win.document.writeln(""); win.document.writeln(""); win.document.writeln(""); win.document.writeln(" "); win.document.writeln(" "); win.document.writeln(" "); win.document.writeln("
"); win.document.writeln(""); win.document.writeln(""); srcImg = win.document.winImg; // // 이미지가 모두 로딩될때까지 기다림 // while(true) if(srcImg.readyState == "complete") break; // // 새창의 크기 설정 // var winWidth = srcImg.width+10; var winHeight = srcImg.height+29; // // 새창이 띄워질 위치 설정 // var left = (clientWidth/2)-(srcImg.width/2); var top = (clientHeight/2)-(srcImg.height/2); // // 이미지의 크기 overflow 확인후 새창의 크기와 위치 재설정 // if(clientWidth <= srcImg.width){ winWidth = clientWidth; left = 0; win.document.body.scroll = "auto"; } if(clientHeight <= srcImg.height){ winHeight = clientHeight-30; top = 0; win.document.body.scroll = "auto"; } // // 이미지로딩이 끝났음으로 이미지의 크기를 사용할수 있다. // 해당 이미지의 사이즈에 맞게 윈도우를 재설정한다. win.moveTo(left, top); win.resizeTo(winWidth, winHeight); }