////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//   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 2005_02_21 09:45:13 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}if(giSBP==""){giSBP=0}if(giSEP==""){giSEP=this.oBookInfo.iPageCount-1}}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){var iPageNo=oBook.cobGetCurrPage();if(arg_Page < 0){if(Math.floor(iPageNo)==0){if(GetRes("MsgFirstPage",gaRes_Deco)){alert(GetRes("MsgFirstPage",gaRes_Deco));}}else{if(GetRes("OverPage",gaRes_Deco)){alert(giSBP+"-"+giSEP+GetRes("OverPage",gaRes_Deco));}}}else if(arg_Page >(this.oBookInfo.iPageCount-1)){if(Math.ceil(iPageNo)==(this.oBookInfo.iPageCount-1)){if(GetRes("MsgLastPage",gaRes_Deco)){alert(GetRes("MsgLastPage",gaRes_Deco));}}else{if(GetRes("OverPage",gaRes_Deco)){alert(giSBP+"-"+giSEP+GetRes("OverPage",gaRes_Deco));}}}}
