var $totalpagecount = 0;
var $totalwordcount = 0;
var $words_per_page = 300;
function status($num,$words)
{
	$showstate = new Array;
	$showstate[0] = '<img src="graphics/nothing.png" title="Nothing: Moving story from Head to Text ratio is ZERO" alt="Nothing Yet" />';
	$showstate[1] = '<img src="graphics/outline.png" title="Outline: The plot is spelled out in outline, no real story" alt="outline" />';
	$showstate[2] = '<img src="graphics/inprogress.png" title="In Progress: Still sections to write" alt="In Progress" />';
	$showstate[3] = '<img src="graphics/draft.png" title="Draft: Basic story is complete" alt="Draft" />';
	$showstate[4] = '<img src="graphics/final.png" title="Final Edit: Clean Up and Tweaking" alt="Final Edit" />';
	$showstate[5] = '<img src="graphics/donedone.png" title="Done. Finished. Complete" alt="Finished" />';
	if ($words != undefined)
	{
		$pages = Math.floor($words/$words_per_page);
		document.write('<td class="ct">'+$pages+'</td>');
		$totalwordcount += $words;
		$totalpagecount += $pages;
	}
	else
	{
		document.write('<td class="ct">&nbsp;</td>');
	}
	document.write('<td>'+$showstate[$num]+'</td>');
}
function get_pagecount()
{
	document.write($totalpagecount);
}
function get_wordcount()
{
	document.write($totalwordcount);
}
