////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//   This computer program is protected by copyright law and international treaties.                                                      //
//   Unauthorized reproduction or distribution of the program, or any portion of it, may result in severe civil and criminal penalties,   //
//   and will be prosecuted to the maximum extent possible under law.                                                                     //
//   Copyright(c) Digitomi Corp. All Right Reserved.                                                                                      //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//   Last Update 2004_07_27 19:58:09 by tews                                                                                              //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 function PageStatus2(){this.id="oPageStatus2";this.oBookInfo=oBookInfo;this.CurrPageNo=arguments[0];this.TotalPageNo=arguments[1];this.GotoInputPageNo=arguments[2];this.dpsInvalidPage=dpsInvalidPage;this.dpsSetPageNo=dpsSetPageNo;this.dpsInitial=dpsInitial;this.dpsInitial();var iPageNo=oBook.cobGetCurrPage();if(Math.floor(iPageNo)!=iPageNo){iPageNo+=-0.5;}this.dpsSetPageNo(iPageNo);}function dpsInitial(){if(String(this.CurrPageNo)=="undefined"){this.CurrPageNo=null}if(String(this.TotalPageNo)=="undefined"){this.TotalPageNo=null}else{this.TotalPageNo.innerText=this.oBookInfo.iPageCount-1;}if(String(this.GotoInputPageNo)=="undefined"){this.CurrPageNo=null}}function dpsSetPageNo(arg_Page){if((this.CurrPageNo)!=null){this.CurrPageNo.innerText=arg_Page;}if((this.GotoInputPageNo)!=null){this.GotoInputPageNo.value=arg_Page;}}function dpsInvalidPage(arg_Page){if(0 >=arg_Page){if(GetRes("MsgFirstPage",gaRes_Deco)){alert(GetRes("MsgFirstPage",gaRes_Deco));}}else if(arg_Page >=this.oBookInfo.iPageCount){if(GetRes("MsgLastPage",gaRes_Deco)){alert(GetRes("MsgLastPage",gaRes_Deco));}}else if(arg_Page <=giSBP){if(GetRes("MsgFirstPage",gaRes_Deco)){alert(GetRes("MsgFirstPage",gaRes_Deco));}}else if(arg_Page >=giSEP){if(GetRes("MsgLastPage",gaRes_Deco)){alert(GetRes("MsgLastPage",gaRes_Deco));}}}

