<p><?php $thetable->showWeeklyOptions($therecord, $repeatBase); ?> </p> </div> <div id="MonthlyDiv"> <p><input type="radio" id="monthlyEach" name="monthlyWhat" onchange="monthlyChange();" value="1" <?php if (!$therecord["repeatontheday"]) { echo 'checked="checked"'; } ?> /><label for="monthlyEach"> each</label></p> <p><?php $thetable->showMonthlyOptions($therecord, $repeatBase); ?> </p> <p><input type="radio" id="monthlyOnThe" name="monthlyWhat" onchange="monthlyChange();" value="2" <?php if ($therecord["repeatontheday"]) { echo 'checked="checked"'; } ?> /><label for="monthlyOnThe"> on the</label></p> <p> <?php $theform->showField("monthlyontheweek"); ?> <?php $theform->showField("monthlyontheday");