/* Tagebuch Javascript Funktionen */

itemCount = 1;
maxCount = 9999;

function listItem(strText)
{
	html= "<a name='"+itemCount+"'><table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td width='90%'>"
			+itemCount+". Tag: "+strText
			+"</td><td width='5%' align=center>";

	if (itemCount < maxCount)
	{
		html += "<a href='#"+(itemCount+1)+"'><img src='../images/arrow_u.gif' border=0></a>";
	}
	else
	{
		html += "&nbsp;";
	}
	
	html += "</td><td width='5%' align=center>";
	if (itemCount > 1)
	{
		html += "<a href='#"+(itemCount-1)+"'><img src='../images/arrow_o.gif' border=0></a>";
	}
	else
	{
		html += "&nbsp;";
	}
	html += "</td></tr></table></a>";
	
	document.write( html );
	++itemCount;
}

function lastListItem(strText)
{
	maxCount = itemCount;
	listItem(strText);
}

