$bisTag--;
}
if ($bisTag < 0) {
    $bisTag = getNumberOfDaysOfMonth($monat, $jahr) - $bisTag;
    $bisMonat--;
}
if ($bisMonat < 0) {
    $bisMonat = 12 - $bisMonat;
    $bisJahr--;
}
while ($d = $res->FetchNextObject()) {
    $id = $d->TISCHNUMMER;
    $lefts = getLeftPosOfTisch($id);
    $tops = getTopPosOfTisch($id);
    $wi = getWidthOfTisch($id);
    $hi = getHeightOfTisch($id);
    ?>
					
						<div id="tisch<?php 
    echo $id;
    ?>
" style="z-index:<?php 
    echo $zindex++;
    ?>
;
							text-align: center; background-position:center center;
							width:<?php 
    echo $wi;
    ?>
px;height:<?php 
    echo $hi;
        ?>
',<?php 
        echo TRANSPARENZ;
        ?>
)</script>	<?php 
    }
}
//fuer jeden tisch einen layer in anderer farbe:
//zuerst den momentan ausgewaehlten tisch anzeigen:
$res = getTische($raum_id);
$zindex++;
while ($d = $res->FetchNextObject()) {
    $id = $d->TISCHNUMMER;
    if ($id == $tisch_id) {
        $width = getWidthOfTisch($id);
        $height = getHeightOfTisch($id);
        $left = getLeftPosOfTisch($id);
        $top = getTopPosOfTisch($id);
        $bild = getBildOfTisch($id);
        ?>
		    <div id="panelDiv" style="z-index:<?php 
        echo $zindex;
        ?>
;">
		    	Tisch <?php 
        echo $id;
        ?>
		       	<div id="handleDiv" style="z-index:<?php 
        echo $zindex;
        ?>
;"></div>