echo "<td title=\"Enter the number of hours for the spectrogram mosaic. End time will be start time plus this many hours\">Number of hours:\n";
echo "<input type=\"text\" name=\"numhours\" value=\"{$numhours}\" size=\"2\"> ";
echo "</td>\n";
# Submit button
echo "<input type=\"hidden\" name=\"subnetsToUse[]\" value=\"{$subnetsToUse}\">\n";
print "\t\t\t<td title=\"Redraw spectrogram mosaic with start time and number of hours given here\"><input type=\"submit\" name=\"submit\" value=\"Go\"></td>\n";
echo "\t\t</tr>\n";
?>
        </table>

</form>

<br/>
<!-- <div class="center" id="mosaic"> -->

<?php 
if ($plotMosaic == 1) {
    foreach ($subnetsToUse as $subnet) {
        $title = mosaicMaker($subnet, $year, $month, $day, $hour, $minute, $numhours, $numhours * 6, $WEBPLOTS, $thumbs, 0);
    }
} else {
    echo "<h1>Welcome to the Spectrogram Mosaic Scoller!</h1><p>This page provides links to PNG files of 10-minute spectrograms pre-generated by the \"TreMoR\" system.</p>";
}
?>

<a class="button" href="#top" style="float:right;">Top</a>

</body>
</html>

# Submit button
echo "<input type=\"hidden\" name=\"subnet\" value=\"{$subnet}\">\n";
echo "<input type=\"hidden\" name=\"plotsPerRow\" value=\"{$plotsPerRow}\">\n";
print "\t\t\t<td title=\"Redraw spectrogram mosaic with start time and number of hours given here\"><input type=\"submit\" name=\"submit\" value=\"Go\"></td>\n";
echo "\t\t</tr>\n";
?>
        </table>

</form>

<br/>
<!-- <div class="center" id="mosaic"> -->

<?php 
if ($plotMosaic == 1) {
    $title = mosaicMaker($numMins, $subnet, $year, $month, $day, $hour, $minute, $numhours, $plotsPerRow, $WEBPLOTS, $thumbs, 1);
} else {
    echo "<h1>Welcome to the Spectrogram Mosaic Maker!</h1><p>This page provides links to PNG files of 10-minute spectrograms pre-generated by the \"TreMoR\" system.</p>";
}
?>
<script type="text/javascript">
document.title = "<?php 
echo $title;
?>
";
</script>

<table width=800px align="center">
<tr><td>
<table class="center" width=780px>
<tr>