////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//   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:10 by tews                                                                                              //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 function Contents2(){this.id="oContents2";try{this.oParentDiv=arguments[0];this.Color_BG=arguments[1];this.Color_MouseOver=arguments[2];this.Color_MouseOut=arguments[3];this.Color_Text=arguments[4];}catch(e){}this.aSearch=new Array();this.oBookInfo=oBookInfo;this.oBaseTable=null;this.dcoInitial=dcoInitial;this.dcoSearch=dcoSearch;this.dcoClear=dcoClear;this.dcoUpdate=dcoUpdate;this.dcoDispAll=dcoDispAll;this.dcoIsNoExistResult=dcoIsNoExistResult;this.dcoInitial();}function dcoInitial(){if(typeof(this.Color_BG)=="undefined"){this.Color_BG="white";}if(typeof(this.Color_MouseOver)=="undefined"){this.Color_MouseOver="#dddddd";}if(typeof(this.Color_MouseOut)=="undefined"){this.Color_MouseOut="white";}if(typeof(this.Color_Text)=="undefined"){this.Color_Text="#333333";}var tmpBaseTABLE=document.createElement("TABLE");this.oParentDiv.appendChild(tmpBaseTABLE);tmpBaseTABLE.outerHTML="<Table id=\"oBaseDivContent\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"></table>";this.oBaseTable=oBaseDivContent;delete tmpBaseTABLE;if(typeof(ga_Contents)=="undefined"){return}this.dcoUpdate(ga_Contents);}function dcoSearch(arg_Keyword){if(arg_Keyword==""){return;}if(this.aSearch.length !=0){this.aSearch.length=0;}var jIdx=0;for(var iIdx=0;iIdx < ga_Contents.length;iIdx++){var iSearched=ga_Contents[iIdx][1].search(arg_Keyword);if(iSearched !=-1){this.aSearch[jIdx++]=ga_Contents[iIdx];}}if(this.aSearch.length==0){this.aSearch[0]=new Array(100,GetRes("MsgNoExistResult",gaRes_Deco),0)}this.dcoUpdate(this.aSearch);}function dcoClear(){for(var iIdx=this.oBaseTable.rows.length;iIdx > 0;iIdx--){this.oBaseTable.deleteRow([iIdx-1 ]);}}function dcoUpdate(arg_List){var y=0;this.dcoClear();for(var iIdx=0;iIdx < arg_List.length;iIdx++){var oRow=this.oBaseTable.insertRow();var oCell=oRow.insertCell();oCell.innerHTML=" <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" bgcolor=\""+this.Color_BG+"\" style=\"cursor:hand;\">"+"\n"+" <tr height=\"22\" style=\"background-color:"+this.Color_MouseOut+"\" OnMouseOut=\"this.style.backgroundColor='"+this.Color_MouseOut+"'\" OnMouseOver=\"this.style.backgroundColor='"+this.Color_MouseOver+"'\">"+"\n"+" <td width=\"20\" align=\"center\"><img src=\""+gsProtocol+gsSrv_Cache+gsPort+gsSlash+gsDecoSkinDir+"/ball.gif\"></td>"+"\n"+" <td style=\"font-size:9pt;\" onclick=\"oContents2.dcoIsNoExistResult('"+arg_List[iIdx][1]+"','"+arg_List[iIdx][2]+"')\" style=\"color:"+this.Color_Text+"\"> "+arg_List[iIdx][1]+"</td>\n"+" </tr>"+"\n"+" </table>";}}function dcoDispAll(){this.dcoUpdate(ga_Contents);}function dcoIsNoExistResult(arg_Msg,arg_Page){if(GetRes("MsgNoExistResult",gaRes_Deco)!=arg_Msg){oBook.GotoPageLevel(arg_Page);}}

