function favsTableCreate(dPage) {
//
//This procedure will open the lists table
//
	dPage.write("<table width='75%' cellpadding='9' align='center'>");
	dPage.write("<tr><td width='10%'><font color='#ff0000' size='+1'>Pos.</font></td>");
	dPage.write("<td><font color='#ff0000' size='+1'>Author / Series</font></td>");
	dPage.write("<td><font color='#ff0000' size='+1'>Story Title</font></td>");
	dPage.write("<td><font color='#ff0000' size='+1'>Format</font></td></tr>");	
}
function favsTableLine(dPage,iPos,sAuthor,sTitle,sFormat,sAuthorPage,sBookPage){
//
//This procedure will create the line with links for this favourites table
//
	dPage.write("<tr><td width='10%' valign='top'>"+iPos+"</td>");
	dPage.write("<td valign='top'>");
	if (sAuthorPage!="") {
		dPage.write("<a href='../books/" + sAuthorPage.charAt(0) + "/" + sAuthorPage + ".html'>");
	}
	dPage.write(sAuthor);
	if (sAuthorPage!="") {
		dPage.write("</A>");
	}
	
	dPage.write("</td><td valign='top'>");
	
	if (sBookPage!="") {
		dPage.write("<a href='../books/" + sAuthorPage.charAt(0) + "/" + sAuthorPage + "/" + sBookPage + ".html'>");
	}
	dPage.write(sTitle);
	if (sBookPage!="") {
		dPage.write("</a>");
	}
	
	dPage.write("</td><td>");
	dPage.write(sFormat);
	dPage.write("</td></tr>");
}
function listsTableCreate(dPage) {
//
//This procedure will open the lists table
//
	dPage.write("<table width='75%' cellpadding='9' align='center'>");
	dPage.write("<tr><td><font color='#ff0000' size='+1'>Author / Series</font></td>");
	dPage.write("<td><font color='#ff0000' size='+1'>Story Title</font></td>");
	dPage.write("<td><font color='#ff0000' size='+1'>Format</font></td></tr>");	
}
function listsTableLine(dPage, sAuthor, sTitle, sFormat, sAuthorPage, sBookPage) {
//
//This procedure will create the line with links for this lists table
//
	dPage.write("<tr><td valign='top'>");
	if (sAuthorPage!="") {
		dPage.write("<a href='../../books/" + sAuthorPage.charAt(0) + "/" + sAuthorPage + ".html'>");
	}
	dPage.write(sAuthor);
	if (sAuthorPage!="") {
		dPage.write("</A>");
	}
	
	dPage.write("</td><td valign='top'>");
	
	if (sBookPage!="") {
		dPage.write("<a href='../../books/" + sAuthorPage.charAt(0) + "/" + sAuthorPage + "/" + sBookPage + ".html'>");
	}
	dPage.write(sTitle);
	if (sBookPage!="") {
		dPage.write("</a>");
	}
	
	dPage.write("</td><td>");
	dPage.write(sFormat);
	dPage.write("</td></tr>");
}

function awardsTableLine(dPage, sCat, sAuthor, sTitle, sAuthorPage, sBookPage) {
//
//This procedure will create the line for awards table (including the links)
//
	dPage.write("<tr><td valign='top'>");
	dPage.write(sCat);
	dPage.write("</td><td valign='top'>");
	if (sAuthorPage!="") {
		dPage.write("<a href='../books/" + sAuthorPage.charAt(0) + "/" + sAuthorPage + ".html'>");
	}
	dPage.write(sAuthor);
	if (sAuthorPage!="") {
		dPage.write("</a>");
	}
	dPage.write("</td><td valign='top'>");
	if (sBookPage!="") {
		dPage.write("<a href='../books/" + sAuthorPage.charAt(0) + "/" + sAuthorPage + "/" + sBookPage + ".html'>");
	}
	dPage.write(sTitle);
	if (sBookPage!="") {
		dPage.write("</a>");
	}
	dPage.write("</td></tr>");	
}
function awardsHeaderLine(dPage, sHeader) {
//
//This procedure will add a header line
//
	dPage.write("<tr><td><font color='#00ffcc' size='+2'>");
	dPage.write(sHeader);
	dPage.write("</font></td><td></td><td></td></tr>");
}