////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//   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:46:11 by tews                                                                                              //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 function Enum(arg_sStr){this.sArray=arg_sStr.split(",");this.GetEnum=GetEnum;}function GetEnum(arg_sParam){var iIdx;for(iIdx=0;iIdx < this.sArray.length;iIdx++){if(this.sArray[iIdx]==arg_sParam)return iIdx;}return iIdx;}function Area(){this.left;this.top;this.width;this.height;}function Point(){this.x=0;this.y=0;}function Limit(){this.MinLeft=0;this.MinTop=0;this.MaxLeft=0;this.MaxTop=0;}function SetScreenBufferDepth(){screen.bufferDepth=screen.colorDepth;window.offscreenBuffering=true;}function setCookie(arg_CookieName,arg_CookieValue,arg_CookieExpireDays){var todayDate=new Date();todayDate.setDate(todayDate.getDate()+arg_CookieExpireDays);document.cookie=arg_CookieName+"="+arg_CookieValue+";path=/;expires="+todayDate.toGMTString()+";";}function getCookie(arg_CookieName){var Found=false;var start,end;var i=0;while(i <=document.cookie.length){start=i;end=start+arg_CookieName.length;if(document.cookie.substring(start,end)==arg_CookieName){Found=true;break;}i++;}if(Found==true){start=end+1;end=document.cookie.indexOf(";",start);if(end < start)end=document.cookie.length;return document.cookie.substring(start,end);}return "";}function OpenStyleWnd(arg_Url,arg_Title,arg_WndStyle){if(arg_Url=="")return;var oStyleWnd=window.open(arg_Url,arg_Title,arg_WndStyle);}function OpenStyleWndFocus(){goStyelWnd.focus();}function ShowObj(arg_Obj){if((arg_Obj !=null)&&(arg_Obj.style.visibility !="visible")){arg_Obj.style.visibility="visible";}}function HideObj(arg_Obj){arg_Obj.style.visibility="hidden";}function GetTileCount(arg_ImgSize,arg_TileSize){return Math.ceil((arg_ImgSize-1)/ arg_TileSize);}function GetClassStr(arg_typeStr){return arg_typeStr.substr(2,arg_typeStr.length-2);}function IntToStrDigit(arg_Num,arg_Digit){var iIdx;var sNum=arg_Num.toString();var iCount;if(sNum.length > arg_Digit){return arg_Num;}iCount=arg_Digit-sNum.length;for(iIdx=0;iIdx < iCount;iIdx++){sNum='0'+sNum;}return sNum;}function ChkLR(arg_Page){var iMode;if(arg_Page !=Math.ceil(arg_Page)){return 0;}iMode=arg_Page % 2;if(iMode==0){return-1;}else{return 1;}}

