function buildNavigation(PageIDStr)
{
	var ID = PageIDStr.toUpperCase();

	// Category links
setSelectTitle("桂思强相关网站")
        addSelectList("","","SELECTED")
        addSelectList(unescape("桂思强读者之友"),"http://www.winwalk.com.tw")
        addSelectList(unescape("Access应用推广中心"),"http://access.winwalk.com.tw")

addCategory("no1",unescape("Chapter 1"), false);
addCategory1("no1","1-2",unescape("1-2"),false);
addCategoryLink1("1-2", "RunServer.asp", "ch1/1-2/RunServer.asp");
addCategory1("no1","1-3",unescape("1-3"),true);
addCategoryLink1("1-3", "Login.aspx", "ch1/1-3/cs/Login.aspx");
addCategory("no3",unescape("Chapter 3"), false);
addCategory1("no3","3-2",unescape("3-2"),false);
addCategoryLink1("3-2", "PageTest.asp", "ch3/3-2/cs/PageTest.aspx");
addCategoryLink1("3-2", "PageCtrl.asp", "ch3/3-2/cs/PageCtrl.aspx");
addCategoryLink1("3-2", "bind.aspx", "ch3/3-2/cs/bind.aspx");
addCategoryLink1("3-2", "ClientScript.aspx", "ch3/3-2/cs/ClientScript.aspx");
addCategoryLink1("3-2", "ImgSam.aspx", "ch3/3-2/cs/ImgSam.aspx");
addCategory1("no3","3-3",unescape("3-3"),false);
addCategoryLink1("3-3", "err.aspx", "ch3/3-3/cs/err.aspx");
addCategory("no4",unescape("Chapter 4"), false);
addCategory1("no4","4-1",unescape("4-1"),false);
addCategoryLink1("4-1", "Usegbl.aspx", "ch4/4-1/cs/Usegbl.aspx");
addCategoryLink1("4-1", "Browse.aspx", "ch4/4-1/cs/Browse.aspx");
addCategoryLink1("4-1", "UseSetting.aspx", "ch4/4-1/cs/UseSetting.aspx");
addCategoryLink1("4-1", "SelTable.aspx", "ch4/4-1/cs/SelTable.aspx");
addCategory1("no4","4-2",unescape("4-2"),false);
addCategoryLink1("4-2", "Redirect.aspx", "ch4/4-2/cs/Redirect.aspx");
addCategory("no5",unescape("Chapter 5"), false);
addCategory1("no5","5-1",unescape("5-1"),false);
addCategoryLink1("5-1", "Cover.aspx", "ch5/5-1/cs/Cover.aspx");
addCategoryLink1("5-1", "Upload.aspx", "ch5/5-1/cs/Upload.aspx");
addCategoryLink1("5-1", "Books.aspx", "ch5/5-1/cs/Books.aspx");
addCategory1("no5","5-2",unescape("5-2"),false);
addCategoryLink1("5-2", "join.aspx", "ch5/5-2/cs/join.aspx");
addCategoryLink1("5-2", "cal.aspx", "ch5/5-2/cs/cal.aspx");
addCategoryLink1("5-2", "img.aspx", "ch5/5-2/cs/img.aspx");
addCategoryLink1("5-2", "pnel.aspx", "ch5/5-2/cs/Pnel.aspx");
addCategoryLink1("5-2", "BookX.aspx", "ch5/5-2/cs/BookX.aspx");
addCategory1("no5","5-3",unescape("5-3"),false);
addCategoryLink1("5-3", "PostBack.htm", "ch5/5-3/cs/PostBack.htm");
addCategoryLink1("5-3", "ShowZip.aspx", "ch5/5-3/cs/ShowZip.aspx");
addCategory("no7",unescape("Chapter 7"), false);
addCategory1("no7","7-1",unescape("7-1"),false);
addCategoryLink1("7-1", "Employee.aspx", "ch7/7-1/cs/Employee.aspx");
addCategoryLink1("7-1", "Emn.aspx", "ch7/7-1/cs/Emn.aspx");
addCategoryLink1("7-1", "Emp.aspx", "ch7/7-1/cs/Emp.aspx");
addCategory1("no7","7-2",unescape("7-2"),false);
addCategoryLink1("7-2", "BasicE.aspx", "ch7/7-2/cs/BasicE.aspx");
addCategoryLink1("7-2", "LockC.aspx", "ch7/7-2/cs/LockC.aspx");
addCategoryLink1("7-2", "Edit.aspx", "ch7/7-2/cs/Edit.aspx");
addCategoryLink1("7-2", "AddNew1.aspx", "ch7/7-2/cs/AddNew1.aspx");
addCategoryLink1("7-2", "AddNew2.aspx", "ch7/7-2/cs/AddNew2.aspx");
addCategoryLink1("7-2", "De11.aspx", "ch7/7-2/cs/Del1.aspx");
addCategoryLink1("7-2", "De12.aspx", "ch7/7-2/cs/Del2.aspx");
addCategoryLink1("7-2", "De13.aspx", "ch7/7-2/cs/Del3.aspx");
addCategoryLink1("7-2", "De14.aspx", "ch7/7-2/cs/Del4.aspx");
addCategory1("no7","7-3",unescape("7-3"),false);
addCategoryLink1("7-3", "Sort1.aspx", "ch7/7-3/cs/Sort1.aspx");
addCategoryLink1("7-3", "Sort2.aspx", "ch7/7-3/cs/Sort2.aspx");
addCategoryLink1("7-3", "Page1.aspx", "ch7/7-3/cs/Page1.aspx");
addCategoryLink1("7-3", "Page2.aspx", "ch7/7-3/cs/Page2.aspx");
addCategoryLink1("7-3", "Sample.aspx", "ch7/7-3/cs/Sample.aspx");
addCategoryLink1("7-3", "Sample1.aspx", "ch7/7-3/cs/Sample1.aspx");
addCategory("no8",unescape("Chapter 8"), false);
addCategory1("no8","8-1",unescape("8-1"),false);
addCategoryLink1("8-1", "Dtlst.aspx", "ch8/8-1/cs/Dtlst.aspx");
addCategoryLink1("8-1", "Reap.aspx", "ch8/8-1/cs/Reap.aspx");
addCategory1("no8","8-2",unescape("8-2"),false);
addCategoryLink1("8-2", "EditDt.aspx", "ch8/8-2/cs/EditDt.aspx");
addCategoryLink1("8-2", "EditPn.aspx", "ch8/8-2/cs/EditPn.aspx");
addCategoryLink1("8-2", "DelDT.aspx", "ch8/8-2/cs/DelDT.aspx");
addCategoryLink1("8-2", "GetCount.aspx", "ch8/8-2/cs/GetCount.aspx");
addCategoryLink1("8-2", "PageDt.aspx", "ch8/8-2/cs/PageDt.aspx");
addCategoryLink1("8-2", "GpGrid.aspx", "ch8/8-2/cs/GpGrid.aspx");
addCategory("no9",unescape("Chapter 9"), false);
addCategory1("no9","9-1",unescape("9-1"),false);
addCategoryLink1("9-1", "Book.aspx", "ch9/9-1/cs/Book.aspx");
addCategory1("no9","9-2",unescape("9-2"),false);
addCategoryLink1("9-2", "Order.aspx", "ch9/9-2/cs/Order.aspx");
addCategory1("no9","9-3",unescape("9-3"),false);
addCategoryLink1("9-3", "Query.aspx", "ch9/9-3/cs/Query.aspx");
addCategory("no10",unescape("Chapter 10"), false);
addCategory1("no10","10-1",unescape("10-1"),false);
addCategoryLink1("10-1", "Validation.aspx", "ch10/10-1/cs/Validation.aspx");
addCategoryLink1("10-1", "Login.aspx", "ch10/10-1/cs/Login.aspx");
addCategoryLink1("10-1", "Order.aspx", "ch10/10-1/cs/Order.aspx");
addCategoryLink1("10-1", "OrderC.aspx", "ch10/10-1/cs/OrderC.aspx");
addCategory1("no10","10-2",unescape("10-2"),false);
addCategoryLink1("10-2", "Format.aspx", "ch10/10-2/cs/Format.aspx");
addCategory("no11",unescape("Chapter 11"), false);
addCategory1("no11","11-1",unescape("11-1"),false);
addCategoryLink1("11-1", "Download.aspx", "ch11/11-1/cs/Download.aspx");
addCategoryLink1("11-1", "AllSession.aspx", "ch11/11-1/cs/AllSession.aspx");
addCategory1("no11","11-2",unescape("11-2"),false);
addCategoryLink1("11-2", "Email.aspx", "ch11/11-2/cs/Email.aspx");
addCategoryLink1("11-2", "DBEmail.aspx", "ch11/11-2/cs/DBEmail.aspx");
addCategory1("no11","11-3",unescape("11-3"),false);
addCategoryLink1("11-3", "AllOrder.aspx", "ch11/11-3/cs/AllOrder.aspx");
addCategoryLink1("11-3", "Pattern.aspx", "ch11/11-3/cs/Pattern.aspx");
addCategoryLink1("11-3", "Book.aspx", "ch11/11-3/cs/Book.aspx");
addCategory1("no11","11-5",unescape("11-5"),false);
addCategoryLink1("11-5", "Download.aspx", "ch11/11-5/cs/Download.aspx");
addCategory("no12",unescape("Chapter 12"), false);
addCategory1("no12","12-1",unescape("12-1"),false);
addCategoryLink1("12-1", "Login.aspx", "ch12/12-1/cs/Login.aspx");
addCategoryLink2("12-1", "Login.ascx", "shows.aspx?cate=c&file=ch12/12-1/cs/Login.ascx","_blank");
addCategoryLink1("12-1", "LoginP.aspx", "ch12/12-1/cs/LoginP.aspx");
addCategoryLink2("12-1", "LoginP.ascx", "shows.aspx?cate=c&file=ch12/12-1/cs/LoginP.ascx","_blank");
addCategory1("no12","12-2",unescape("12-2"),false);
addCategoryLink1("12-2", "New.aspx", "ch12/12-2/cs/New.aspx");
addCategoryLink1("12-2", "Orders.aspx", "ch12/12-2/cs/Orders.aspx");
addCategoryLink1("12-2", "OrdersDG.aspx", "ch12/12-2/cs/OrdersDG.aspx");
addCategoryLink1("12-2", "Overtime.aspx", "ch12/12-2/cs/Overtime.aspx");
addCategoryLink1("12-2", "Product.aspx", "ch12/12-2/cs/Product.aspx");
addCategoryLink1("12-2", "Booktool.aspx", "ch12/12-2/cs/Booktool.aspx");
addCategoryLink1("12-2", "Cfd.aspx", "ch12/12-2/cs/Cfd.aspx");
addCategory1("no12","12-3",unescape("12-3"),false);
addCategoryLink1("12-3", "usEdit.aspx", "ch12/12-3/cs/usEdit.aspx");
addCategory1("no12","12-4",unescape("12-4"),false);
addCategoryLink1("12-4", "SQLGrid.aspx", "ch12/12-4/cs/SQLGrid.aspx");
addCategoryLink1("12-4", "AccGrid.aspx", "ch12/12-4/cs/AccGrid.aspx");
addCategory("no13",unescape("Chapter 13"), false);
addCategory1("no13","13-1",unescape("13-1"),false);
addCategoryLink1("13-1", "NewService.asmx", "ch13/13-1/cs/NewService.asmx");
addCategoryLink2("13-1", "NewService.asmx(Source)", "shows.aspx?cate=c&file=ch13/13-1/cs/NewService.asmx","_blank");
addCategoryLink1("13-1", "NewService.asmx?WSDL", "ch13/13-1/cs/NewService.asmx?WSDL");
addCategoryLink1("13-1", "UseService.aspx", "ch13/13-1/cs/UseService.aspx");
addCategory1("no13","13-2",unescape("13-2"),false);
addCategoryLink1("13-2", "DBSrc.asmx", "ch13/13-2/cs/DBSrc.asmx");
addCategoryLink2("13-2", "DBSrc.asmx(Source)", "shows.aspx?cate=c&file=ch13/13-2/cs/DBSrc.asmx","_blank");
addCategoryLink1("13-2", "NewService.asmx?WSDL", "ch13/13-2/cs/DBSrc.asmx?WSDL");
addCategoryLink1("13-2", "UseDB_S.aspx", "ch13/13-2/cs/UseDB_S.aspx");
addCategory("no14",unescape("Chapter 14"), false);
addCategory1("no14","14-1",unescape("14-1"),false);
addCategory1("14-1","cs",unescape("cs"),false);
addCategoryLink2("cs", "Default.aspx", "ch14/14-1/cs/Default.aspx","_blank");
addCategory1("cs","Source",unescape("Source"),false);
addCategoryLink2("Source", "Default.aspx", "shows.aspx?cate=c&file=ch14/14-1/cs/Default.aspx","_blank");
addCategoryLink2("Source", "Login.aspx", "shows.aspx?cate=c&file=ch14/14-1/cs/login.aspx","_blank");
addCategoryLink2("Source", "Showsbj.aspx", "shows.aspx?cate=c&file=ch14/14-1/cs/Showsbj.aspx","_blank");
addCategoryLink2("Source", "View.aspx", "shows.aspx?cate=c&file=ch14/14-1/cs/View.aspx","_blank");
addCategoryLink2("Source", "WriteNew.aspx", "shows.aspx?cate=c&file=ch14/14-1/cs/WriteNew.aspx","_blank");
addCategoryLink2("Source", "Reply.aspx", "shows.aspx?cate=c&file=ch14/14-1/cs/Reply.aspx","_blank");
addCategoryLink2("Source", "Search.aspx", "shows.aspx?cate=c&file=ch14/14-1/cs/Search.aspx","_blank");
addCategoryLink2("Source", "Diss.cs", "shows.aspx?cate=c&file=ch14/14-1/cs/code/Diss.cs","_blank");
addCategoryLink2("Source", "DissData.cs", "shows.aspx?cate=c&file=ch14/14-1/cs/code/DissData.cs","_blank");
addCategory1("14-1","vb",unescape("vb"),false);
addCategoryLink2("vb", "Default.aspx", "ch14/14-1/vb/Default.aspx","_blank");
addCategory1("vb","Source1",unescape("Source"),false);
addCategoryLink2("Source1", "Default.aspx", "shows.aspx?cate=c&file=ch14/14-1/vb/Default.aspx","_blank");
addCategoryLink2("Source1", "Showsbj.aspx", "shows.aspx?cate=c&file=ch14/14-1/vb/Showsbj.aspx","_blank");
addCategoryLink2("Source1", "Login.aspx", "shows.aspx?cate=c&file=ch14/14-1/vb/login.aspx","_blank");
addCategoryLink2("Source1", "View.aspx", "shows.aspx?cate=c&file=ch14/14-1/vb/View.aspx","_blank");
addCategoryLink2("Source1", "WriteNew.aspx", "shows.aspx?cate=c&file=ch14/14-1/vb/WriteNew.aspx","_blank");
addCategoryLink2("Source1", "Reply.aspx", "shows.aspx?cate=c&file=ch14/14-1/vb/Reply.aspx","_blank");
addCategoryLink2("Source1", "Search.aspx", "shows.aspx?cate=c&file=ch14/14-1/vb/Search.aspx","_blank");
addCategoryLink2("Source1", "Diss.vb", "shows.aspx?cate=c&file=ch14/14-1/vb/code/Diss.vb","_blank");
addCategoryLink2("Source1", "DissData.vb", "shows.aspx?cate=c&file=ch14/14-1/vb/code/DissData.vb","_blank");
addCategory1("no14","14-2",unescape("14-2"),false);
addCategory1("14-2","cs1",unescape("cs"),false);
addCategoryLink2("cs1", "Default.aspx", "ch14/14-2/cs/Default.aspx","_blank");
addCategory1("cs1","Source2",unescape("Source"),false);
addCategoryLink2("Source2", "Default.aspx", "shows.aspx?cate=c&file=ch14/14-2/cs/Default.aspx","_blank");
addCategoryLink2("Source2", "SelectP.aspx", "shows.aspx?cate=c&file=ch14/14-2/cs/SelectP.aspx","_blank");
addCategoryLink2("Source2", "Result.aspx", "shows.aspx?cate=c&file=ch14/14-2/cs/Result.aspx","_blank");
addCategory1("14-2","vb1",unescape("vb"),false);
addCategoryLink2("vb1", "Default.aspx", "ch14/14-2/vb/Default.aspx","_blank");
addCategory1("vb1","Source3",unescape("Source"),false);
addCategoryLink2("Source3", "Default.aspx", "shows.aspx?cate=c&file=ch14/14-2/vb/Default.aspx","_blank");
addCategoryLink2("Source3", "SelectP.aspx", "shows.aspx?cate=c&file=ch14/14-2/vb/SelectP.aspx","_blank");
addCategoryLink2("Source3", "Result.aspx", "shows.aspx?cate=c&file=ch14/14-2/vb/Result.aspx","_blank");
addCategory1("no14","14-3",unescape("14-3"),false);
addCategory1("14-3","cs2",unescape("cs"),false);
addCategoryLink1("cs2", "Folders.aspx", "ch14/14-3/cs/Folders.aspx");
addCategory1("cs2","Source4",unescape("Source"),false);
addCategoryLink2("Source4", "Folders.aspx", "shows.aspx?cate=c&file=ch14/14-3/cs/Folders.aspx","_blank");
addCategory1("14-3","vb2",unescape("vb"),false);
addCategoryLink1("vb2", "Folders.aspx", "ch14/14-3/vb/Folders.aspx");
addCategory1("vb2","Source5",unescape("Source"),false);
addCategoryLink2("Source5", "Folders.aspx", "shows.aspx?cate=c&file=ch14/14-3/vb/Folders.aspx","_blank");
addCategory1("no14","14-4",unescape("14-4"),false);
addCategory1("14-4","cs3",unescape("cs"),false);
addCategoryLink1("cs3", "SQL.aspx", "ch14/14-4/cs/SQL.aspx");
addCategoryLink1("cs3", "Accaspx", "ch14/14-4/cs/Acc.aspx");
addCategory1("cs3","Source6",unescape("Source"),false);
addCategoryLink2("Source6", "SQLData.cs", "shows.aspx?cate=c&file=ch14/14-4/cs/SQLData.cs","_blank");
addCategoryLink2("Source6", "ACCData.cs", "shows.aspx?cate=c&file=ch14/14-4/cs/ACCData.cs","_blank");
addCategory1("14-4","vb3",unescape("vb"),false);
addCategoryLink1("vb3", "SQL.aspx", "ch14/14-4/vb/SQL.aspx");
addCategoryLink1("vb3", "Accaspx", "ch14/14-4/vb/Acc.aspx");
addCategory1("vb3","Source7",unescape("Source"),false);
addCategoryLink2("Source7", "SQLData.cs", "shows.aspx?cate=c&file=ch14/14-4/vb/SQLData.vb","_blank");
addCategoryLink2("Source7", "ACCData.cs", "shows.aspx?cate=c&file=ch14/14-4/vb/ACCData.vb","_blank");
}
