// Copyright (c) 2000-2007 Unidocs. All rights reserved. function directPageMove(){var fw=document.pageGoFrm.jumpno;var pageno=fw.value;if(pageno.length==0){alert(BookMsgList[am]["PLZ_WRITE_PAGENO"]);fw.value=(g+1);if(fw.value==0)fw.value=1;return}if(!hm(pageno)){alert(BookMsgList[am]["PLZ_USE_NUMBER"]);fw.value=(g+1);if(fw.value==0)fw.value=1;return}pageno=parseInt(pageno);var destPage=pageno+ja;if(destPage>=ah){if(am=='en')alert('[Page no :'+pageno+'] does not exist.');else alert('[ÆäÀÌÁö ¹øÈ£ :'+pageno+']´Â Á¸ÀçÇÏÁö ¾Ê´Â ÆäÀÌÁö ÀÔ´Ï´Ù.');fw.value=(g+1);if(fw.value==0)fw.value=1}else if(g==destPage){document.pageGoFrm.jumpno.value=(g+1);if(document.pageGoFrm.jumpno.value==0)document.pageGoFrm.jumpno.value=1;if(ew)alert(BookMsgList[am]["SAME_PAGE_NO"]);else eu(BookMsgList[am]["SAME_PAGE_NO"]);}else{if(g==ah-1)gl();jn();he();if(destPage';kv+='';document.body.insertAdjacentHTML('beforeEnd',kv);mi=true}waitMesg.innerHTML=BookMsgList[am]["PREPARE_PRINTING"];;v(document.getElementById("PdfWaitingLayer"));ht=0;printWaitTimer=setTimeout("waitPrinting2()",50);}else{ht++;setTimeout("waitPrinting()",50);}}function waitPrinting2(){clearTimeout(printWaitTimer);if(ht==20){if(printWhich==1){if((g+1)==0)PdfPlugin.printPagesFit(1,1,1);else PdfPlugin.printPagesFit(g+1,g+1,1);}else if(printWhich==2)PdfPlugin.printPagesFit(g+2,g+2,1);else if(printWhich==3)PdfPlugin.printPagesFit(g+1,g+2,1);else if(printWhich==4){var startObj=document.chechBoxSel.printStart.value;var endObj=document.chechBoxSel.printEnd.value;if(startObj.length==0){alert(BookMsgList[am]["PRINT_START_NO_NEED"]);hideLayer(document.getElementById("PdfWaitingLayer"));return}if(endObj.length==0){alert(BookMsgList[am]["PRINT_END_NO_NEED"]);hideLayer(document.getElementById("PdfWaitingLayer"));return}if(!hm(startObj)){alert(BookMsgList[am]["PLZ_USE_NUMBER"]);startObj="";hideLayer(document.getElementById("PdfWaitingLayer"));return}if(!hm(endObj)){alert(BookMsgList[am]["PLZ_USE_NUMBER"]);endObj="";hideLayer(document.getElementById("PdfWaitingLayer"));return}var startPageno=parseInt(startObj);var endPageno=parseInt(endObj);if(1>startPageno||startPageno>ah){if(am=='en')alert('Beginning page number must exist in 1 ~ '+ah);else alert('½ÃÀÛ ÆäÀÌÁö ¹øÈ£°¡ 1 ~ '+ah+' ³»¿¡ Á¸Àç ÇÏ¿©¾ß ÇÕ´Ï´Ù');hideLayer(document.getElementById("PdfWaitingLayer"));return}if(1>endPageno||endPageno>ah){if(am=='en')alert('End page number must exist in 1 ~ '+ah);else alert('³¡ ÆäÀÌÁö ¹øÈ£°¡ 1 ~ '+ah+' ³»¿¡ Á¸Àç ÇÏ¿©¾ß ÇÕ´Ï´Ù');hideLayer(document.getElementById("PdfWaitingLayer"));return}if(startPageno>endPageno){alert(BookMsgList[am]["NEED_BIGGER_PAGE_NO"]);hideLayer(document.getElementById("PdfWaitingLayer"));return}PdfPlugin.printPagesFit(startPageno,endPageno,1);document.onkeydown=iw}ht=0;hideLayer(document.getElementById("PdfWaitingLayer"));}else{ht++;setTimeout("waitPrinting2()",50);}}function printPDF(){if(!mi&&glbSourceDoc!=''){waitMesg.innerHTML=BookMsgList[am]["LOADING_PDF_DOC"];document.getElementById("PdfWaitingLayer").style.left=Math.ceil((ix-300)/2);document.getElementById("PdfWaitingLayer").style.top=Math.ceil((iy-60)/2);v(document.getElementById("PdfWaitingLayer"));}ht=0;printWaitTimer=setTimeout("waitPrinting()",50);}function printImage(){if(printWhich==3||printWhich==4){alert(BookMsgList[am]["IMAGE_PRINTING"]);return}var cj=(650/ak);var qr=(980/aq);if(cj>qr)cj=qr;var cc=document.createElement("DIV");us(cc,cj);var pageno=g+1;if(printWhich==2)pageno=g+2;if(pageno==0)pageno=1;else if(pageno>ah)pageno=ah;if(g==-1&&printWhich==1){if(ew)alert(BookMsgList[am]["IMAGE_PRINTING_THIS"]);else eu(BookMsgList[am]["IMAGE_PRINTING_THIS"]);}else if(g+1>=ah&&printWhich==2){if(ew)alert(BookMsgList[am]["IMAGE_PRINTING_THIS"]);else eu(BookMsgList[am]["IMAGE_PRINTING_THIS"]);}else{for(i=0;i<=iz-1;i++){for(j=0;j<=hl-1;j++){var ap=document.createElement("IMG");ut(ap,j,i,pageno,cj);cc.appendChild(ap);}}printContents=cc.outerHTML;window.onbeforeprint=beforeDivs;window.onafterprint=uu;window.print();}}var printContents;function beforeDivs(){divArrays=new Array();hideDivs();document.getElementById("objSelection").innerHTML=printContents}function uu(){document.getElementById("objSelection").innerHTML="";uv();}function us(target,cj){target.id="LargePrintGridDiv";target.style.cursor="hand";target.style.position="absolute";target.style.overflow="hidden";target.style.visibility="visible";target.style.left=0;target.style.top=0;target.style.width=ak*cj;target.style.height=aq*cj;target.style.zIndex=1000;return target;}function ut(ao,ay,az,pageno,cj){var pageStr=''+pageno;var eh='';switch(pageStr.length){case 1:pageStr="000"+pageStr;break;case 2:pageStr="00"+pageStr;break;case 3:pageStr="0"+pageStr;break}var di=''+az;switch(di.length){case 1:di="00"+di;break;case 2:di="0"+di;break}var dj=''+ay;switch(dj.length){case 1:dj="00"+dj;break;case 2:dj="0"+dj;break}pageStr=hg+'_'+pageStr+'_'+di+'_'+dj;if(ga&&fz&&EN_FULLDRAW)eh=fm+'ext_large/'+gd(pageStr).toUpperCase()+'.jpg';else eh=fm+'large/'+gd(pageStr).toUpperCase()+'.jpg';var ei=0;var ej=0;if(ay==hl-1&&hj!=0)ei=hj;else ei=ar;if(az==iz-1&&hk!=0)ej=hk;else ej=db;var et="Print_Large_"+ay+"_"+az;ao.src=eh;ao.id=et;ao.style.position="absolute";ao.style.overflow="hidden";ao.style.left=Math.ceil(ar*ay*cj);ao.style.top=Math.ceil(db*az*cj);ao.style.width=Math.ceil(ei*cj);ao.style.height=Math.ceil(ej*cj);ao.style.alt=""}function xt(){fc("PrintPageNo_LEFT");fc("PrintPageNo_RIGHT");fx("PrintPageNo_LEFT",dm('medium',g));fx("PrintPageNo_RIGHT",dm('medium',g+1));fx("PrintPageNo_LEFT_pno",g);fx("PrintPageNo_RIGHT_pno",g+1);fx("TotalPageCount",dg);uw(dq);open("print.html","eBookPrint","left=100, top=100, width=1024, height=768, directories=no, status=no, location=no, menubar=no, scrollbars=no, resizable=1, fullscreen=no");}function openHelpWindow(){if(am=='en')open("common/help/en/help.html","eBookHelp","left=100, top=100, width=460, height=730, directories=no, status=no, location=no, menubar=no, scrollbars=yes, resizable=0, fullscreen=no");else open("common/help/help.html","eBookHelp","left=100, top=100, width=460, height=730, directories=no, status=no, location=no, menubar=no, scrollbars=yes, resizable=0, fullscreen=no");}function openLinkWindow(ux){open(ux,"","left=100, top=100, width=800, height=600, directories=yes, status=yes, location=yes, menubar=yes, scrollbars=yes, resizable=1, fullscreen=no");}function openBoard(){if(boardLinkUrl==''){if(ew)alert(BookMsgList[am]["BOARD_NOT_FOUND"]);else eu(BookMsgList[am]["BOARD_NOT_FOUND"]);return}openLinkWindow(boardLinkUrl);}divArrays=new Array();function divAtt(){this.obj;this.display}function hideDivs(){if(document.all){var divs=document.all.tags('DIV');var divObj;for(var d=0;d