if ($_amount)
{
$vr=int($_range/$blaetter_lang) unless $_range==0;
$vr=$vr*$blaetter_lang;
out "<td width='15' bgcolor='$color' align='center'><a class='stil1' href=$_link&range=".($vr-$blaetter_lang).",$_range_length$merken\><<</a></td>" if ($vr-$blaetter_lang)>=0;
for ($i=$vr;$i<($vr+$blaetter_lang<=$_amount_query?($vr+$blaetter_lang):$_amount_query); $i+=$blaettern)
{
out "<td width='15' bgcolor='$color' align='center'>".($_range==$i?"<b>".($i+1)."</b>":"<a class='stil1' href=$_link&range=$i,$_range_length$merken>".($i+1)."</a>")."</td>";
}
out "<td width='15' bgcolor='$color' align='center'><a class='stil1' href=$_link&range=$i,$_range_length$merken>>></a></td>" if $i<$_amount_query;
}
out "</tr></table></div>";
my $oldrange=$_range-$_range_length;
$oldrange=0 if $oldrange<0 && $oldrange>-$_range_length;
out "<a class=\"stil3\" href=\"$_link&range=$oldrange,$_range_length$merken\"><img src=\"http://www.gruppen-online.de/gruppenreisen/icon/wett_pfeil.gif\" border=\"0\" alt=\"zurück\"></a> " if $oldrange>=0;
out "<a class=\"stil3\" href=\"$_link&range=$newrange,$_range_length$merken\"><img src=\"http://www.gruppen-online.de/gruppenreisen/icon/wett_pfeil1.gif\" border=\"0\" alt=\"weiter\"></a>" if $newrange<$_amount_query;
</perl>
</td>
</tr>
</table>