//文学首页长篇更新
function fnBuildBookTable()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsNewBook24.length;i++){
		var bookID = jsNewBook24[i][2];
		var bookTypeID = jsNewBook24[i][0];
		var bookTypeName = jsNewBook24[i][1];
		var bookName = jsNewBook24[i][3];
		var lastChapterID = jsNewBook24[i][5];
		var volumeName = jsNewBook24[i][4];
		var textTitle = jsNewBook24[i][6];
		var userInfoExtID = jsNewBook24[i][7];
		var penName = jsNewBook24[i][8];
		var BookCreateDateTime = jsNewBook24[i][9];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;
		var chtmlPath	= "http://dt.wx.91.com/Book/BookReadChapter.aspx?Chapterid="+lastChapterID;
		document.write("<tr><td  style='line-height:200%'><a href=\"http://dt.wx.91.com/Book/"+ bookTypeID +"\" target=\"_blank\"><font color=#000000>["+ bookTypeName.substring(0,2) +"]</font></a>");
		document.write(" <a href=\""+htmlPath+"\" target=_blank >"+ bookName.substring(0,10) +"</a> ");
		document.write("<a href=\""+chtmlPath+"\" target=_blank><font color=#000000>"+volumeName.substring(0,4)+" "+textTitle.substring(0,10)+"</font></a>");
		document.write("</td><td width=20% align=right nowrap valign=middle><a href=\"http://dt.wx.91.com/Author/"+userInfoExtID+".html\" target=_blank>"+ penName.substring(0,4) +"</a>");
		document.write("<"+BookCreateDateTime+"> </td></tr>");
	}
	document.write("</table>");
}
//原文学首页长篇更新
function displayBookTable(bookTypeID,bookTypeName,bookID,bookName,volumeName,lastChapterID,textTitle,userInfoExtID,penName,bookUpdateDateTime)
{
	var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;
	var chtmlPath	= "http://dt.wx.91.com/Book/BookReadChapter.aspx?Chapterid="+lastChapterID;
	document.write("<tr><td  style='line-height:200%'><a href=\"../Book/"+ bookTypeID +"\" target=\"_blank\"><font color=#000000>["+ bookTypeName.substring(0,2) +"]</font></a>");
	document.write(" <a title=\"\" href=\""+htmlPath+"\" target=_blank><font color=#3F5B9C>"+bookName.substring(0,8)+"</font></a> ");
	document.write("<a href=\""+chtmlPath+"\" target=_blank><font color=#000000>"+volumeName.substring(0,4)+" "+textTitle.substring(0,12)+"</font></a>");
	document.write("</td><td width=20% align=right nowrap valign=middle><a href=\"../Author/"+userInfoExtID+".html\" target=_blank>"+ penName.substring(0,4) +"</a>");
	document.write("<"+bookUpdateDateTime+"> </td></tr>");
}
//文学首页VIP更新
function fnBuildVipBookTable()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsVipNewBook24.length;i++){
		var bookID = jsVipNewBook24[i][2];
		var bookTypeID = jsVipNewBook24[i][0];
		var bookTypeName = jsVipNewBook24[i][1];
		var bookName = jsVipNewBook24[i][3];
		var lastChapterID = jsVipNewBook24[i][5];
		var volumeName = jsVipNewBook24[i][4];
		var textTitle = jsVipNewBook24[i][6];
		var userInfoExtID = jsVipNewBook24[i][7];
		var penName = jsVipNewBook24[i][8];
		var BookCreateDateTime = jsVipNewBook24[i][9];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;
		document.write("<tr><td height=24><a href=\"http://dt.wx.91.com/VIPBook/VIPBookList.aspx?BookTypeID="+ bookTypeID +"\" target=\"_blank\"><font color=#000000>["+ bookTypeName.substring(0,2) +"]</font></a>");
		document.write(" <a href=\""+htmlPath+"\" target=_blank >"+ bookName.substring(0,10) +"</a> ");
		document.write("<a href=\"http://dt.wx.91.com/VIPBook/VIPBookReadChapter.aspx?BookID="+bookID+"&ChapterID="+lastChapterID+"&LastChapterFlag=1\" target=_blank><font color=#000000>"+volumeName.substring(0,4)+" "+textTitle.substring(0,10)+"</font></a><img src='http://image.91.com/wx91/images/index/vip.gif'>");
		document.write("</td><td width=20% align=right nowrap valign=middle><a href=\"http://dt.wx.91.com/Author/"+userInfoExtID+".html\" target=_blank>"+ penName.substring(0,4) +"</a>");
		document.write("<"+BookCreateDateTime+"> </td></tr>");
	}
	document.write("</table>");
}
//原文学首页VIP更新
function displayVIPBookTable(bookTypeID,bookTypeName,bookID,bookName,volumeName,lastChapterID,textTitle,userInfoExtID,penName,bookUpdateDateTime)
{
	var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;
	document.write("<tr><td height=24 ><a href=\"../VIPBook/VIPBookList.aspx?BookTypeID="+ bookTypeID +"\" target=\"_blank\"><font color=#000000>["+ bookTypeName.substring(0,2) +"]</font></a>");
	document.write(" <a title=\"\" href=\""+htmlPath+"\" target=_blank><font color=#3F5B9C>"+bookName.substring(0,8)+"</font></a> ");
	document.write("<a href=\"../VIPBook/VIPBookReadChapter.aspx?BookID="+bookID+"&ChapterID="+lastChapterID+"&LastChapterFlag=1\" target=_blank><font color=#000000>"+volumeName.substring(0,4)+" "+textTitle.substring(0,13)+"</font></a><img src='/Lib/images/vip.gif'>");
	document.write("</td><td width=20% align=right nowrap valign=middle ><a href=\"../Author/"+userInfoExtID+".html\" target=_blank>"+ penName.substring(0,4) +"</a>");
	document.write("<"+bookUpdateDateTime+"> </td></tr>");
}
//文学首页入站新书
function fnBuildnewBookTable()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsBookUpDate24.length;i++){
		var bookID = jsBookUpDate24[i][2];
		var bookTypeID = jsBookUpDate24[i][0];
		var bookTypeName = jsBookUpDate24[i][1];
		var bookName = jsBookUpDate24[i][3];
		var lastChapterID = jsBookUpDate24[i][5];
		var volumeName = jsBookUpDate24[i][4];
		var textTitle = jsBookUpDate24[i][6];
		var userInfoExtID = jsBookUpDate24[i][7];
		var penName = jsBookUpDate24[i][8];
		var BookCreateDateTime = jsBookUpDate24[i][9];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;
		var chtmlPath	= "http://dt.wx.91.com/Book/BookReadChapter.aspx?Chapterid="+lastChapterID;
		document.write("<tr><td  style='line-height:200%'><a href=\"http://dt.wx.91.com/Book/"+ bookTypeID +"\" target=\"_blank\"><font color=#000000>["+ bookTypeName.substring(0,2) +"]</font></a>");
		document.write(" <a href=\""+htmlPath+"\" target=_blank >"+ bookName.substring(0,10) +"</a> ");
		document.write("<a href=\""+chtmlPath+"\" target=_blank><font color=#000000>"+volumeName.substring(0,4)+" "+textTitle.substring(0,8)+"</font></a>");
		document.write("</td><td width=20% align=right nowrap valign=middle><a href=\"http://dt.wx.91.com/Author/"+userInfoExtID+".html\" target=_blank>"+ penName.substring(0,5) +"</a>");
		document.write("<"+BookCreateDateTime+"> </td></tr>");
	}
	document.write("</table>");
}
//首页长篇推荐
function fnBuildCommendBook(typeID)
{
	var exeJs = "";
	exeJs	+= "document.write(\"<table width=100% Cellpadding=0 Cellspacing=0 border=0>\");";
	exeJs	+= "for(var i=0;i<jsCommendBook"+typeID+".length;i++){";
	exeJs	+= "var bookID = jsCommendBook"+typeID+"[i][2];";
	exeJs	+= "var htmlPath	= \"http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid=\"+bookID;";	
	exeJs	+= "	document.write(\"<tr><td>· <a href=\\\"\"+htmlPath+\"\\\" target=_blank >\"+ jsCommendBook"+typeID+"[i][3].substring(0,16) +\"</a></td></tr>\");";
	exeJs	+= "}";
	exeJs	+= "document.write(\"</table>\");";
	eval(exeJs);
}
//首页女生推荐
function fnBuildFemaleCommendBook()
{
	var exeJs = "";
	exeJs	+= "document.write(\"<table width=100% Cellpadding=0 Cellspacing=0 border=0>\");";
	exeJs	+= "for(var i=0;i<jsFemaleCommendBook4"+".length;i++){";
	exeJs	+= "var bookID = jsFemaleCommendBook4"+"[i][2];";
	exeJs	+= "var htmlPath	= \"http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid=\"+bookID;";	
	exeJs	+= "	document.write(\"<tr><td>· <a href=\\\"\"+htmlPath+\"\\\" target=_blank >\"+ jsFemaleCommendBook4"+"[i][3].substring(0,16) +\"</a></td></tr>\");";
	exeJs	+= "}";
	exeJs	+= "document.write(\"</table>\");";
	eval(exeJs);
}
//首页短篇推荐
function fnBuildCommendArticle(typeID)
{
	var exeJs = "";
	exeJs	+= "document.write(\"<table width=100% Cellpadding=0 Cellspacing=0 border=0>\");";
	exeJs	+= "for(var i=0;i<jsCommendArticle"+typeID+".length;i++){"
	exeJs	+= "var articleID = jsCommendArticle"+typeID+"[i][1];";
	exeJs	+= "var htmlPath	= \"http://dt.wx.91.com/Article/ArticleShowDetail.aspx?articleid=\"+articleID;";
	exeJs	+= "	document.write(\"<tr><td >· <a href=\\\"\"+htmlPath+\"\\\" target=_blank >\"+ jsCommendArticle"+typeID+"[i][2].substring(0,16) +\"</a></td></tr>\");";
	exeJs	+= "}";
	exeJs	+= "document.write(\"</table>\");	";
	eval(exeJs);
}
//文学首页三个点击
function fnBuildRankWeekClick()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsArr_1_3.length;i++){
		var bookID = jsArr_1_3[i][2];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;	
		document.write("<tr><td ><a href=\""+htmlPath+"\" target=_blank >"+ jsArr_1_3[i][3].substring(0,12) +"</a></td></tr>");
	}
	document.write("</table>");				
}
function fnBuildRankMonthClick()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsUserMonthBookClick.length;i++){
		var bookID = jsUserMonthBookClick[i][2];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;	
		document.write("<tr><td ><a href=\""+htmlPath+"\" target=_blank >"+ jsUserMonthBookClick[i][3].substring(0,12) +"</a></td></tr>");
	}
	document.write("</table>");				
}
function fnBuildRankAllClick()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsUserAllBookClick.length;i++){
		var bookID = jsUserAllBookClick[i][2];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;	
		document.write("<tr><td ><a href=\""+htmlPath+"\" target=_blank >"+ jsUserAllBookClick[i][3].substring(0,12) +"</a></td></tr>");
	}
	document.write("</table>");				
}
//文学首页三个推荐
function fnBuildRankWeekCommend()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsArr_1_7.length;i++){
		var bookID = jsArr_1_7[i][2];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;	
		document.write("<tr><td ><a href=\""+htmlPath+"\" target=_blank >"+ jsArr_1_7[i][3].substring(0,12) +"</a></td></tr>");
	}
	document.write("</table>");				
}
function fnBuildRankMonthCommend()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsArr_0_5.length;i++){
		var bookID = jsArr_0_5[i][2];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;	
		document.write("<tr><td ><a href=\""+htmlPath+"\" target=_blank >"+ jsArr_0_5[i][3].substring(0,12) +"</a></td></tr>");
	}
	document.write("</table>");				
}
function fnBuildRankAllCommend()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsUserAllBookCommend.length;i++){
		var bookID = jsUserAllBookCommend[i][2];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;	
		document.write("<tr><td ><a href=\""+htmlPath+"\" target=_blank >"+ jsUserAllBookCommend[i][3].substring(0,12) +"</a></td></tr>");
	}
	document.write("</table>");				
}
//长篇列表页新书点击榜
function fnBuildRankNewBookImg()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsArr_1_11.length;i++){
		var bookID = jsArr_1_11[i][2];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;	
		document.write("<tr><td>· <a href=\""+htmlPath+"\" target=_blank >"+ jsArr_1_11[i][3].substring(0,15) +"</a></td></tr>");
	}
	document.write("</table>");			
}
//长篇列表页各类推荐
function fnBuildCommendBookImg(typeID)
{
	var exeJs = "";
	exeJs	+= "document.write(\"<table width=100% Cellpadding=0 Cellspacing=0 border=0>\");";
	exeJs	+= "for(var i=0;i<jsCommendBook"+typeID+".length;i++){";
	exeJs	+= "var bookID = jsCommendBook"+typeID+"[i][2];";
	exeJs	+= "var htmlPath	= \"http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid=\"+bookID;";	
	exeJs	+= "	document.write(\"<tr><td ><img src=\\\"http://image.91.com/wx91/images/book/booklist.gif\\\" width=11 height=11> <a href=\\\"\"+htmlPath+\"\\\"  target=_blank >\"+ jsCommendBook"+typeID+"[i][3].substring(0,11) +\"</a></td><td><a href=\\\"../Author/\"+ jsCommendBook"+typeID+"[i][6]+\".html\"+\"\\\" target=_blank>\"+ jsCommendBook"+typeID+"[i][7].substring(0,3)+\"</a></td></tr>\");";
	exeJs	+= "}";
	exeJs	+= "document.write(\"</table>\");";
	eval(exeJs);
}

//长篇专区新书点击
function fnBuildRankNewBook()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsArr_1_11.length;i++){
		var bookID = jsArr_1_11[i][2];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;	
		document.write("<tr><td><a href=\""+htmlPath+"\" target=_blank >"+ jsArr_1_11[i][3].substring(0,18) +"</a></td></tr>");
	}
	document.write("</table>");				
}
//长篇专区新书入站
function fnBuildBookUpDate()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsBookUpDate.length;i++){
		var bookID = jsBookUpDate[i][2];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;	
		document.write("<tr><td >· <a href=\""+htmlPath+"\" target=_blank >"+ jsBookUpDate[i][3].substring(0,15) +"</a></td></tr>");
	}
	document.write("</table>");				
}
//长篇列表页最近更新
function displayBooklistTable(bookTypeID,bookTypeName,bookID,bookName,volumeName,lastChapterID,textTitle,userInfoExtID,penName,bookUpdateDateTime)
{
	var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;
	var chtmlPath	= "http://dt.wx.91.com/Book/BookReadChapter.aspx?Chapterid="+lastChapterID;
	document.write("<tr><td> <a href=\"../Book/"+ bookTypeID +"\" target=\"_blank\"><font color=#000000>["+ bookTypeName.substring(0,4) +"]</font></a>");
	document.write(" <a title=\"\" href=\""+htmlPath+"\" target=_blank><font color=#3F5B9C>"+bookName.substring(0,12)+"</font></a> ");
	document.write("<a href=\""+chtmlPath+"\" target=_blank><font color=#000000>"+volumeName.substring(0,4)+" "+textTitle.substring(0,15)+"</font></a>");
	document.write("</td><td width=20% align=right nowrap valign=middle> <a href=\"../Author/"+userInfoExtID+".html\" target=_blank>"+ penName.substring(0,6) +"</a>");
	document.write("<"+bookUpdateDateTime+"> </td></tr>");
}
//长篇列表页最近推荐
function displayBookCommendTable(bookTypeID,bookTypeName,bookID,bookName,volumeName,lastChapterID,textTitle,userInfoExtID,penName,bookUpdateDateTime)
{
	var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;
	var chtmlPath	= "http://dt.wx.91.com/Book/BookReadChapter.aspx?Chapterid="+lastChapterID;
	document.write("<tr><td> <a href=\"/Book/BookCommendAll.aspx?BookTypeID="+ bookTypeID +"\" target=\"_blank\"><font color=#000000>["+ bookTypeName.substring(0,4) +"]</font></a>");
	document.write(" <a title=\"\" href=\""+htmlPath+"\" target=_blank><font color=#3F5B9C>"+bookName.substring(0,15)+"</font></a> ");
	document.write("<a href=\""+chtmlPath+"\" target=_blank><font color=#000000>"+volumeName.substring(0,4)+" "+textTitle.substring(0,15)+"</font></a>");
	document.write("</td><td width=20% align=right nowrap valign=middle> <a href=\"../Author/"+userInfoExtID+".html\" target=_blank>"+ penName.substring(0,6) +"</a>");
	document.write("<"+bookUpdateDateTime+"> </td></tr>");
}
//长篇列表页已完结图书
function displayBookFinishTable(bookTypeID,bookTypeName,bookID,bookName,volumeName,lastChapterID,textTitle,userInfoExtID,penName,bookUpdateDateTime)
{
	var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;
	var chtmlPath	= "http://dt.wx.91.com/Book/BookReadChapter.aspx?Chapterid="+lastChapterID;
	document.write("<tr><td> <a href=\"../Book/"+ bookTypeID +"\" target=\"_blank\"><font color=#000000>["+ bookTypeName.substring(0,4) +"]</font></a>");
	document.write(" <a title=\"\" href=\""+htmlPath+"\" target=_blank><font color=#3F5B9C>"+bookName.substring(0,12)+"</font></a> ");
	document.write("<a href=\""+chtmlPath+"\" target=_blank><font color=#000000>"+volumeName.substring(0,4)+" "+textTitle.substring(0,15)+"</font></a>");
	document.write("</td><td width=20% align=right nowrap valign=middle> <a href=\"../Author/"+userInfoExtID+".html\" target=_blank>"+ penName.substring(0,6) +"</a>");
	document.write("<"+bookUpdateDateTime+"> </td></tr>");
}
//长篇编辑点评列表
function displayBookCommentTable(bookTypeID,bookTypeName,bookID,bookName,volumeName,lastChapterID,textTitle,userInfoExtID,penName,bookUpdateDateTime)
{
	var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;
	var chtmlPath	= "http://dt.wx.91.com/Book/BookReadChapter.aspx?Chapterid="+lastChapterID;
	document.write("<tr><td> <a href=\"/Book/bookwritingcommentlist.aspx?BookTypeID="+ bookTypeID +"\" target=\"_blank\"><font color=#000000>["+ bookTypeName.substring(0,4) +"]</font></a>");
	document.write(" <a title=\"\" href=\""+htmlPath+"\" target=_blank><font color=#3F5B9C>"+bookName.substring(0,12)+"</font></a> ");
	document.write("<a href=\""+chtmlPath+"\" target=_blank><font color=#000000>"+volumeName.substring(0,4)+" "+textTitle.substring(0,15)+"</font></a>");
	document.write("</td><td width=20% align=right nowrap valign=middle> <a href=\"../Author/"+userInfoExtID+".html\" target=_blank>"+ penName.substring(0,6) +"</a>");
	document.write("<"+bookUpdateDateTime+"> </td></tr>");
}
//其它
function displayVIPBookTableBuy(bookTypeID,bookTypeName,bookID,bookName,volumeName,lastChapterID,textTitle,userInfoExtID,penName,bookUpdateDateTime)
{
	var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;
	document.write("<tr><td  height=26 class='tdLine'><a href=\"../VIPBook/VIPBookList.aspx?BookTypeID="+ bookTypeID +"\" target=\"_blank\">["+ bookTypeName.substring(0,2) +"]</a>");
	document.write(" <a title=\"\" href=\""+htmlPath+"\" target=_blank><font color=#3F5B9C>"+bookName.substring(0,8)+"</font></a> ");
	document.write("<a href=\"../VIPBook/VIPBookReadChapter.aspx?BookID="+bookID+"&ChapterID="+lastChapterID+"&LastChapterFlag=1\" target=_blank>"+volumeName.substring(0,4)+" "+textTitle.substring(0,13)+"</a><img src='/Lib/images/vip.gif'>");
	document.write("</td><td width=20% align=right nowrap valign=middle class='tdLine'><a href=\"../Author/"+userInfoExtID+".html\" target=_blank>"+ penName.substring(0,4) +"</a>");
	document.write("<"+bookUpdateDateTime+"> <A href=\"../VIPBook/VIPBookReadBook.aspx?BookID="+bookID+" \" target=_blank><FONT color=red>订阅</FONT></A></td></tr>");
}

function displayArticleTable(articleTypeID,articleTypeName,contentName,articleID,textTitle,articleWordCount,clickCount,commentCount, userInfoExtID,penName,articleUpdateDateTime)
{
	var htmlPath	= "http://dt.wx.91.com/Article/ArticleShowDetail.aspx?articleid="+articleID;
	document.write("<tr><td width='50%' class=tdLine height=26px style='padding-left:5px'><a href='../Article/ArticleList.aspx?ArticleTypeID="+articleTypeID+"'>["+articleTypeName.substring(0,4)+"]</a> ");
	document.write(" "+fnDisplayCommend(contentName)+"<a href='"+htmlPath+"' title='"+ textTitle +"' ><font color=#3F5B9C>"+textTitle.substring(0,35)+"</font></a> </td>");
	document.write("<td width=100 align=right nowrap valign=middle class=tdLine><a href='../Author/"+ userInfoExtID +".html' title='"+penName+"'>"+penName.substring(0,16)+"</a></td>");
	document.write("<td nowrap align=right class=tdLine style='padding-left:2px'>"+ articleWordCount +"</td>");
	document.write("<td nowrap align=right class=tdLine style='padding-left:2px'>"+ clickCount +"</td>");
	document.write("<td nowrap align=right class=tdLine style='padding-left:2px;'>"+ commentCount);
	document.write("<td nowrap align=right class=tdLine style='padding-right:5px'><"+ articleUpdateDateTime +"></td>");
}									
function displayArticleTableByWriting(articleTypeID,articleTypeName,articleID,textTitle,articleWordCount,clickCount,userInfoExtID,penName,articleUpdateDateTime)
{
	var htmlPath	= "http://dt.wx.91.com/Article/ArticleShowDetail.aspx?articleid="+articleID;
	document.write("<tr><td width='70%' class=tdLine height=26px style='padding-left:5px'><a href='../Article/ArticleList.aspx?ArticleTypeID="+articleTypeID+"'>["+articleTypeName.substring(0,4)+"]</a> ");
	document.write(" <a href='"+htmlPath+"' title='"+ textTitle +"' ><font color=#3F5B9C>"+textTitle.substring(0,35)+"</font></a> </td>");
	document.write("<td width=100 align=right nowrap valign=middle class=tdLine><a href='../Author/"+ userInfoExtID +".html' title='"+penName+"'>"+penName.substring(0,16)+"</a></td>");
	document.write("<td nowrap align=right class=tdLine style='padding-left:2px'>"+ articleWordCount +"</td>");
	document.write("<td nowrap align=right class=tdLine style='padding-left:2px'>"+ clickCount +"</td>");
	document.write("<td nowrap align=right class=tdLine style='padding-right:5px'><"+ articleUpdateDateTime +"></td>");
}	
function fnDisplayCommend(ContentName)
{
	if(ContentName!="")
	{
		return "<font color=red>[荐]</font>";
	}
	else
	{
		return "";
	}
}

function fnDisplayCommendJsWrite(ContentName)
{
	if(ContentName!="")
	{
		document.write( "<font color=red>[荐]</font>");
	}
}

function fnBuildNewBook()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsNewBook.length;i++){
		var bookID			= jsNewBook[i][2];
		var lastChapterID	= jsNewBook[i][5];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;
		var chtmlPath	= "http://dt.wx.91.com/Book/BookReadChapter.aspx?Chapterid="+lastChapterID;	
		document.write("<tr><td  style='line-height:180%'><a href=\"../Book/"+ jsNewBook[i][0] +"\" target=\"_blank\">["+ jsNewBook[i][1].substring(0,2) +"]</a>");
		document.write(" <a title=\"\" href=\""+htmlPath+"\" target=_blank><font color=#3F5B9C>"+jsNewBook[i][3].substring(0,8)+"</font></a> ");
		document.write("<a href=\""+chtmlPath+"\" target=_blank>"+jsNewBook[i][4].substring(0,4)+" "+jsNewBook[i][6].substring(0,13)+"</a>");
		document.write("</td><td width=20% align=right nowrap valign=middle><a href=\"../Author/"+jsNewBook[i][7]+".html\" target=_blank>"+ jsNewBook[i][8].substring(0,4) +"</a>");
		document.write("<"+jsNewBook[i][9]+"> </td></tr>");
	}
	document.write("</table>");
}





function fnBuildLongCommendBook()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsLongBookCommend.length;i++){
		var bookID = jsLongBookCommend[i][2];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;	
		document.write("<tr><td >· <a href=\""+htmlPath+"\" target=_blank >"+ jsLongBookCommend[i][3].substring(0,11) +"</a></td></tr>");
	}
	document.write("</table>");
}
function fnBuildLongCommendBookImg()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsLongBookCommend.length;i++){
		var bookID = jsLongBookCommend[i][2];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;	
		document.write("<tr><td><img src=\"/Lib/BookImages/pic_6.jpg\" width=11 height=11><a href=\""+htmlPath+"\" target=_blank >"+ jsLongBookCommend[i][3].substring(0,11) +"</a></td><td><a href=\"/Author/"+ jsLongBookCommend[i][6] +".html\" target=\"_blank\">"+ jsLongBookCommend[i][7].substring(0,6)  +"</a></td></tr>");
	}
	document.write("</table>");
}

function fnBuildCommendArticleImg()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsCommendArticle0.length;i++){
		var articleID	= jsCommendArticle0[i][1];
		var htmlPath	= "http://dt.wx.91.com/Article/ArticleShowDetail.aspx?articleid="+articleID;	
		document.write("<tr><td > <a href=\""+htmlPath+"\" target=_blank >"+ jsCommendArticle0[i][2].substring(0,10) +"</a></td><td > <a href=\"/Author/"+ jsCommendArticle0[i][5] +".html\" target=_blank >"+ jsCommendArticle0[i][6].substring(0,5) +"</a></td></tr>");
	}
	document.write("</table>");	
}

function fnBuildShortCommendArticle()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsShortCommendArticle.length;i++){
		var articleID	= jsShortCommendArticle[i][1];
		var htmlPath	= "http://dt.wx.91.com/Article/ArticleShowDetail.aspx?articleid="+articleID;	
		document.write("<tr><td >· <a href=\""+htmlPath+"\" target=_blank >"+ jsShortCommendArticle[i][2].substring(0,11) +"</a></td></tr>");
	}
	document.write("</table>");		
}

function fnBuildShortCommendArticleImg()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsShortCommendArticle.length;i++){
		var articleID	= jsShortCommendArticle[i][1];
		var htmlPath	= "http://dt.wx.91.com/Article/ArticleShowDetail.aspx?articleid="+articleID;	
		document.write("<tr><td class=jsTd> <a href=\""+htmlPath+"\" target=_blank >"+ jsShortCommendArticle[i][2].substring(0,10) +"</a></td><td class=jsTd> <a href=\"/Author/"+ jsShortCommendArticle[i][5] +".html\" target=_blank >"+ jsShortCommendArticle[i][6].substring(0,6) +"</a></td></tr>");
	}
	document.write("</table>");	
}

//其他
function fnBuildBookUpDateImg()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsBookUpDate.length;i++){
		var bookID = jsBookUpDate[i][2];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;	
		document.write("<tr><td><img src=\"/Lib/BookImages/pic_6.jpg\" width=11 height=11> <a href=\""+htmlPath+"\" target=_blank >"+ jsBookUpDate[i][3].substring(0,11) +"</a></td><td><a href=\"/Author/"+ jsBookUpDate[i][7] +".html\" target=\"_blank\">"+ jsBookUpDate[i][8].substring(0,6)  +"</a></td></tr>");
	}
	document.write("</table>");					
}

function fnBuildArticleNews()
{
	for(var i=0;i<jsArticleNews.length;i++){
		document.write("<div style=\"height:20px\"><img src=\"/Lib/BookImages/pic_6.jpg\" width=\"11\" height=\"11\" />");
		document.write("<a href='/News/NewsContent.aspx?NewsID="+jsArticleNews[i][0]+"' target=\"_blank\" title='"+jsArticleNews[i][1]+"'>");
		execScript("n = DateDiff('d','"+ jsArticleNews[i][2]  +"',Now)","vbscript");
		if (n==0) {
			document.write("<b>"+ jsArticleNews[i][1].substring(0,11) +"</b>");
		}
		else
		{
			document.write(jsArticleNews[i][1].substring(0,11));
		}		 	
		document.write("</a></div>");
	}
}

function fnImgload()
{
	var oImg = document.images;
	var oClientSreen=0;
	for(var i=0;i<oImg.length;i++) 
	{
		if ( oImg[i].src.indexOf("Cache") != -1 )
		{
			// 基本上是限制贴中图片的大小
			oClientSreen=500;
			if(oImg[i].height>300 && oImg[i].width<oClientSreen) {oImg[i].style.height=300;}
			if(oImg[i].width>oClientSreen) {oImg[i].style.width=oClientSreen-10;}
		}
	}
}



// 战国首页长篇更新
function fnBuildBookTableZG()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsNewBook24.length;i++){
		var bookID = jsNewBook24[i][2];
		var bookTypeID = jsNewBook24[i][0];
		var bookTypeName = jsNewBook24[i][1];
		var bookName = jsNewBook24[i][3];
		var lastChapterID = jsNewBook24[i][5];
		var volumeName = jsNewBook24[i][4];
		var textTitle = jsNewBook24[i][6];
		var userInfoExtID = jsNewBook24[i][7];
		var penName = jsNewBook24[i][8];
		var BookCreateDateTime = jsNewBook24[i][9];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;
		var chtmlPath	= "http://dt.wx.91.com/Book/BookReadChapter.aspx?Chapterid="+lastChapterID;
		document.write("<tr><td  style='line-height:200%'><a href=\"http://dt.wx.91.com/Book/"+ bookTypeID +"\" target=\"_blank\"><font color=#eb6100>["+ bookTypeName.substring(0,4) +"]</font></a>");
		document.write(" <a href=\""+htmlPath+"\" target=_blank ><font color=#000000>"+ bookName.substring(0,10) +"</font></a> ");
		document.write("<a href=\""+chtmlPath+"\" target=_blank>"+volumeName.substring(0,10)+" "+textTitle.substring(0,10)+"</a>");
		document.write("</td><td width=20% align=right nowrap valign=middle><a href=\"http://dt.wx.91.com/Author/"+userInfoExtID+".html\" target=_blank>"+ penName.substring(0,8) +"</a> ");
		document.write("["+BookCreateDateTime+"] </td></tr>");
	}
	document.write("</table>");
}

//战国首页入站新书
function fnBuildnewBookTableZG()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsBookUpDate24.length;i++){
		var bookID = jsBookUpDate24[i][2];
		var bookTypeID = jsBookUpDate24[i][0];
		var bookTypeName = jsBookUpDate24[i][1];
		var bookName = jsBookUpDate24[i][3];
		var lastChapterID = jsBookUpDate24[i][5];
		var volumeName = jsBookUpDate24[i][4];
		var textTitle = jsBookUpDate24[i][6];
		var userInfoExtID = jsBookUpDate24[i][7];
		var penName = jsBookUpDate24[i][8];
		var BookCreateDateTime = jsBookUpDate24[i][9];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;
		var chtmlPath	= "http://dt.wx.91.com/Book/BookReadChapter.aspx?Chapterid="+lastChapterID;
		document.write("<tr><td  style='line-height:200%'><a href=\"http://dt.wx.91.com/Book/"+ bookTypeID +"\" target=\"_blank\"><font color=#eb6100>["+ bookTypeName.substring(0,4) +"]</font></a>");
		document.write(" <a href=\""+htmlPath+"\" target=_blank ><font color=#000000>"+ bookName.substring(0,10) +"</font></a> ");
		document.write("<a href=\""+chtmlPath+"\" target=_blank>"+volumeName.substring(0,10)+" "+textTitle.substring(0,10)+"</a>");
		document.write("</td><td width=20% align=right nowrap valign=middle><a href=\"http://dt.wx.91.com/Author/"+userInfoExtID+".html\" target=_blank>"+ penName.substring(0,8) +"</a> ");
		document.write("["+BookCreateDateTime+"] </td></tr>");
	}
	document.write("</table>");
}
//战国首页右侧周点击榜
function fnBuildRankWeekClickZG()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsArr_1_3.length;i++){		
		var bookID = jsArr_1_3[i][2];
		var bookTypeID = jsArr_1_3[i][0];
		var bookTypeName = jsArr_1_3[i][1];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;	
		document.write("<tr><td><a href=\"http://dt.wx.91.com/Book/"+ bookTypeID +"\" target=\"_blank\"><font color=#cc793e>["+ bookTypeName.substring(0,4) +"]</font></a>  ");
		document.write("<a href=\""+htmlPath+"\" target=_blank >"+ jsArr_1_3[i][3].substring(0,15) +"</a></td></tr>");
	}
	document.write("</table>");				
}
//战国首页右侧周推荐榜
function fnBuildRankWeekCommendZG()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsArr_1_7.length;i++){
		var bookID = jsArr_1_7[i][2];
		var bookTypeID = jsArr_1_7[i][0];
		var bookTypeName = jsArr_1_7[i][1];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;	
		document.write("<tr><td><a href=\"http://dt.wx.91.com/Book/"+ bookTypeID +"\" target=\"_blank\"><font color=#cc793e>["+ bookTypeName.substring(0,4) +"]</font></a>  ");
		document.write("<a href=\""+htmlPath+"\" target=_blank >"+ jsArr_1_7[i][3].substring(0,15) +"</a></td></tr>");
	}
	document.write("</table>");				
}
//战国首页右侧新书点击榜
function fnBuildRankNewBookImgZG()
{
	document.write("<table width=100% Cellpadding=0 Cellspacing=0 border=0>");
	for(var i=0;i<jsArr_1_11.length;i++){
		var bookID = jsArr_1_11[i][2];
		var bookTypeID = jsArr_1_11[i][0];
		var bookTypeName = jsArr_1_11[i][1];
		var htmlPath	= "http://dt.wx.91.com/Book/BookShowDetail.aspx?bookid="+bookID;	
		document.write("<tr><td><a href=\"http://dt.wx.91.com/Book/"+ bookTypeID +"\" target=\"_blank\"><font color=#cc793e>["+ bookTypeName.substring(0,4) +"]</font></a>  ");
		document.write("<a href=\""+htmlPath+"\" target=_blank >"+ jsArr_1_11[i][3].substring(0,15) +"</a></td></tr>");
	}
	document.write("</table>");			
}
