<?	// Preamble 
	$pageName = "Mailing Lists";
	$focused = "none";					// Dock icon name to get a border
	$currPage = "none";
	require "parts/preamble.php";	// Load most of document

	if (!$list) {
		echo "Bad Beavis! Go away.\n";
		require "parts/postamble.php";
		exit ();
	} else {
		$list = strToLower ($list);
	}
	
?>

<FORM method="post" action="http://lists.quakeforge.net/lists/subscribe/<? echo $list; ?>">
<?
	tableBoxHeader (featureBgColor, tableHeadColor);
	tableTitle ('Subscribing to ' . ucWords ($list), 1, tableHeadColor);
?>
	<TD align="center">
		<?
			tableHeader ("90%", featureBgColor);
		?>
		<TR vAlign="middle">
			<TD align="right" width="50%">
				<STRONG>E-mail Address:</STRONG>
			</TD>
			<TD align="left" width="50%">
				<INPUT name="email" type="text" size="30">
			</TD>
		</TR>
		<TR vAlign="middle">
			<TD align="center" colSpan="2">
				This address <STRONG>will be kept private</STRONG>.
				<BR><BR>
			</TD>
		</TR>
		<TR vAlign="middle">
			<TD align="right">
				<STRONG>Password:</STRONG>
			</TD>
			<TD align="left">
				<INPUT name="pw" type="text" size="15">
			</TD>
		</TR>
		<TR vAlign="middle">
			<TD align="right">
				<STRONG>Confirm password:</STRONG>
			</TD>
			<TD align="left">
				<INPUT name="pw-conf" type="text" size="15">
			</TD>
		</TR>
		<TR vAlign="middle">
			<TD colSpan="2">
				<H5>On choosing a password:</H5>
				<P>You need to enter a privacy password. This provides only
				mild security, but should prevent others from messing with your
				subscription. <STRONG>Do not use a valuable password</STRONG>,
				because it <STRONG>is</STRONG> possible (though a bit unlikely)
				for others to see it in transit.</P><BR>
			</TD>
		</TR>
		<TR vAlign="middle">
			<TD align="right">
				<STRONG>Digest mode?</STRONG>
			</TD>
			<TD align="left">
				<INPUT type="radio" name="digest" value="1"> Yes
            	<INPUT type="radio" name="digest" value="0" CHECKED> No
			</TD>
		</TR>
		<TR vAlign="middle">
			<TD colSpan="2">
				<H5>Digest mode:</H5>
				<P>&quot;Digest Mode&quot; is a different way of reading <? echo $list; ?>.
				Instead of receiving an email every time someone posts to the list,
				you will receive an email once per day containing all list messages
				posted that day.</P><BR>
			</TD>
		</TR>
		<TR vAlign="middle">
			<TD colSpan="2" align="center">
				<INPUT type="submit" name="email-button" value="Subscribe">
			</TD>
		</TR>
		<?
			tableFooter ();
			tableBoxFooter ();
		?>
</FORM>
<!--NOSEARCH-->
<?
	require "parts/postamble.php";		// Finish this sucker up
?>
