</TD>
</TR>
<TR><TD COLSPAN=2>
	<H2><? echo $message ? $message : "$name, you're invited!"; ?></H2>
	<DIV ID="status">
	<TABLE CELLPADDING=2 CELLSPACING=0 CLASS="yes"><TR><TH>Yes (<? count_replies($guests, $event, "Y"); ?>)</TH></TR><TR><TD>
	<? show_replies($guests, $event, "Y", $org_id); ?>
	</TD></TR></TABLE>
	<TABLE CELLPADDING=2 CELLSPACING=0 CLASS="maybe"><TR><TH>Maybe (<? count_replies($guests, $event, "M"); ?>)</TH></TR><TR><TD>
	<? show_replies($guests, $event, "M", $org_id); ?>
	</TD></TR></TABLE>
	<TABLE CELLPADDING=2 CELLSPACING=0 CLASS="no"><TR><TH>No (<? count_replies($guests, $event, "N"); ?>)</TH></TR><TR><TD>
	<? show_replies($guests, $event, "N", $org_id); ?>
	</TD></TR></TABLE>
	<TABLE CELLPADDING=2 CELLSPACING=0 CLASS="noreply"><TR><TH>Not yet replied (<? count_replies($guests, $event, null, $org_id); ?>)</TH></TR><TR><TD>
	<? show_replies($guests, $event, null, $org_id); ?>
	</TD></TR></TABLE>
	</DIV>
<?php 
    if ($reply) {
        echo "<DIV CLASS=\"note\">You've already replied. To change your reply, use the form below.</DIV>\n";
    }
    ?>
	<FORM ACTION="?invite=<? echo $invite ?>" METHOD="POST">
	Will you attend? &nbsp;
	<SELECT NAME="reply">
<?php 
    echo "<OPTION VALUE=\"Y\"";
    if ($reply == "Y") {
        echo " SELECTED";
    }
	Location: <INPUT TYPE="TEXT" NAME="where" SIZE=64 VALUE="<? echo $where; ?>" onChange='notifyChange()'><BR>
	</TD>
</TR>
<TR><TD COLSPAN=2>
	<DIV ID="status">
	<TABLE CELLPADDING=2 CELLSPACING=0 CLASS="yes"><TR><TH>Yes (<? count_replies($guests, $id, "Y"); ?>)</TH></TR><TR><TD>
	<? show_replies($guests, $id, "Y", $org_id); ?>
	</TD></TR></TABLE>
	<TABLE CELLPADDING=2 CELLSPACING=0 CLASS="maybe"><TR><TH>Maybe (<? count_replies($guests, $id, "M"); ?>)</TH></TR><TR><TD>
	<? show_replies($guests, $id, "M", $org_id); ?>
	</TD></TR></TABLE>
	<TABLE CELLPADDING=2 CELLSPACING=0 CLASS="no"><TR><TH>No (<? count_replies($guests, $id, "N"); ?>)</TH></TR><TR><TD>
	<? show_replies($guests, $id, "N", $org_id); ?>
	</TD></TR></TABLE>
	<TABLE CELLPADDING=2 CELLSPACING=0 CLASS="noreply"><TR><TH>Not yet replied (<? count_replies($guests, $id, null); ?>)</TH></TR><TR><TD>
	<? show_replies($guests, $id, null, $org_id); ?>
	</TD></TR></TABLE>
	<BR>
	<INPUT TYPE="SUBMIT" NAME="action" VALUE="Remove checked guests"> &nbsp;
	<INPUT TYPE="CHECKBOX" NAME="confirm"> Yes, really.
	</DIV>
	<H2>Invite another guest:</H2>
	Name: <INPUT TYPE="TEXT" NAME="guest" SIZE=40><BR>
	Email: <INPUT TYPE="TEXT" NAME="email" SIZE=40><BR>
	<INPUT TYPE="SUBMIT" NAME="action" VALUE="Invite" STYLE="margin-top: 2px;">
	<INPUT TYPE="SUBMIT" NAME="action" VALUE="Invite & Email message below"><BR>
	<BR>
	Send email (italic sections will be filled in automatically):<BR>
	<TABLE CELLPADDING=0 CELLSPACING=0 ID="email"><TR><TD>
		Dear <I>guest</I>,<BR><BR>