out "<table width=90% cellpadding=2 cellspacing=2><tr align=center><td>";
my $newrange=$_range+$_range_length;
my $oldrange=$_range-$_range_length;
$oldrange=0 if $oldrange<0 && $oldrange>-$_range_length;
out $oldrange>=0?"<a href=\"$_link&v=0\">|<</a> ":"|< ";
out $oldrange>=0?"<a href=\"$_link&v=$oldrange\"><<</a> ":"<< ";
out "</td><td>";
$ende=substr($_amount_query,0,length($_amount_query)-1);
out $newrange<$_amount_query?"<a href=\"$_link&v=$newrange\">>></a> ":">> ";
out $newrange<$_amount_query?"<a href=\"$_link&v=".($ende."0")."\">>| </a>":">| ";
out "</td><td>Einträge ".($v+1)." bis ".(($v+10)>$_amount_query?"$_amount_query":($v+10))." von $_amount_query</td>";
if ($_amount)
{
$vr=int($v/50) unless $v==0;
$vr=$vr*50;
out "<td><a href=$_link&v=".($vr-50)."><<</a></td>" if ($vr-50)>=0;
for ($i=$vr;$i<($vr+50<=$_amount_query?($vr+50):$_amount_query); $i+=10)
{
out "<td>".($v==$i?"<b>".($i+1)."</b>":"<a href=$_link&v=$i>".($i+1)."</a>")."</td><td> </td>";
}
out "<td><a href=$_link&v=$i>>></a></td>" if $i<$_amount_query;
}
out "</tr></table><br>";