/****************************************************************
*                                                               *
*	For use with ProChoiceAmerica.org and affiliated websites	*
*                                                               *
*	written by Michael Rathmann                                 *
*	(c)RathmannDesign.com. All rights reserved.                 *
*                                                               *
****************************************************************/

//	Form Generator
if (is_nav6up || is_ie5up) {
	dynaCode = ' ID="textbox" onFocus="handleFocus(this)" onBlur="handleBlur(this)"';
	bigField = 'width:385px; height:20px'; midField = 'width:170px; height:20px'; smlField = 'width:35px; height:20px';
	areaField = 'width:570px';

	document.writeln('<TR><TD STYLE="padding-top:20px"><TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">'
	+ '<TR><TD ID="sectTitle">* These fields are required</TD></TR>');

	document.writeln('<TR><TD ID="listTitle">Customize Your Communications - What You Want to Know About!</TD></TR>');
	document.writeln('<TR><TD ID="listEntry" STYLE="padding:0px"><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2">'
	+ '<TR><TD WIDTH="1%" ID="listTitleAlt"><INPUT TYPE="checkbox" NAME="contactOpt1" VALUE="checked" CHECKED></TD>'
		+ '<TD ID="listTitleAlt">Send Me Breaking News on Critical Choice Issues!</TD></TR>'
		+ '<TR><TD COLSPAN="2" STYLE="padding:4px 4px 10px 4px">Get periodic e-mail notifications with breaking news about reproductive freedom and efforts to prevent unintended or unwanted pregnancy in Colorado and nationally.</TD></TR>'
	+ '<TR><TD ID="listTitleAlt"><INPUT TYPE="checkbox" NAME="contactOpt2" VALUE="checked" CHECKED></TD>'
		+ '<TD ID="listTitleAlt">Sign Me Up for the <EM>Insider</EM> Update</TD></TR>'
		+ '<TR><TD COLSPAN="2" STYLE="padding:4px 4px 10px 4px">This monthly e-newsletter contains an overview of NARAL Pro-Choice\'s latest happenings, upcoming events, and more.</TD></TR>'
	+ '<TR><TD ID="listTitleAlt"><INPUT TYPE="checkbox" NAME="contactOpt3" VALUE="checked" CHECKED></TD>'
		+ '<TD ID="listTitleAlt">Sign Me Up as a Constituent Lobbyist</TD></TR>'
		+ '<TR><TD COLSPAN="2" STYLE="padding:4px 4px 10px 4px">Join the front lines of our grassroots advocacy efforts! As a Constituent Lobbyist, you\'ll receive urgent calls for action to notify your elected officials about critical legislation that affects Coloradans\' reproductive rights. You\'ll also be identified as a legislative leader in your community to write letters to the editor and be notified of opportunities to meet with your elected officials.</TD></TR>'
	+ '<TR><TD ID="listTitleAlt"><INPUT TYPE="checkbox" NAME="contactOpt4" VALUE="checked" CHECKED></TD>'
		+ '<TD ID="listTitleAlt">Tell Me About Upcoming Volunteer Activities!</TD></TR>'
		+ '<TR><TD COLSPAN="2" STYLE="padding:4px 4px 10px 4px">Join us during community festivals, help us coordinate our annual Choice Celebration Gala &amp; Auction, place calls to pro-choice voters in your community, or donate a few hours of your time to support our efforts to protect and promote reproductive rights in Colorado.</TD></TR>'
	+ '<TR><TD ID="listTitleAlt"><INPUT TYPE="checkbox" NAME="contactOpt5" VALUE="checked" CHECKED></TD>'
		+ '<TD ID="listTitleAlt">Tell Me How to Support Choice in My Community!</TD></TR>'
		+ '<TR><TD COLSPAN="2" STYLE="padding:4px 4px 10px 4px">Receive targeted e-mail notices of upcoming events in your community and learn how you can host house parties to educate your friends and neighbors about choice in Colorado.</TD></TR>'
	+ '<TR><TD ID="listTitleAlt"><INPUT TYPE="checkbox" NAME="contactOpt6" VALUE="checked" onClick="if (contactOpt6.checked) { clearOpt(form) } else { fillOpt(form) }"></TD>'
		+ '<TD ID="listTitleAlt">Remove me from your e-mail distribution lists.</TD></TR>'
	+ '</TABLE></TD></TR>');

	document.writeln('<TR><TD ID="listTitle">Contact Information:</TD></TR>'
	+ '<TR><TD ID="listEntry" STYLE="padding:2px 2px 10px 2px"><TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="2">'
	+ '<TR><TD><STRONG>*FULL NAME:</STRONG> <SPAN STYLE="font-size:10px">(First M Last)</SPAN></TD>'
		+ '<TD ALIGN="right"><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">'
		+ '<TR><TD STYLE="padding-right:5px"><INPUT TYPE="text" NAME="contactName01" STYLE="'+midField+'" MAXLENGTH="50"'+dynaCode+'></TD>'
			+ '<TD STYLE="padding-right:5px"><INPUT TYPE="text" NAME="contactName02" STYLE="'+smlField+'" MAXLENGTH="1"'+dynaCode+'></TD>'
			+ '<TD><INPUT TYPE="text" NAME="contactName03" STYLE="'+midField+'" MAXLENGTH="50"'+dynaCode+'></TD></TR>'
		+ '</TABLE></TD></TR>'
	+ '<TR><TD><STRONG>*E-MAIL ADDRESS:</STRONG></TD>'
		+ '<TD ALIGN="right"><INPUT TYPE="text" NAME="contactEmail" VALUE="'+contactEmail+'" STYLE="'+bigField+'" MAXLENGTH="100"'+dynaCode+'></TD></TR>'
	+ '<TR><TD>MAILING ADDRESS:</TD>'
		+ '<TD ALIGN="right"><INPUT TYPE="text" NAME="contactAddress01" STYLE="'+bigField+'" MAXLENGTH="100"'+dynaCode+'></TD></TR>'
	+ '<TR><TD>BLDG, STE, APT:</TD>'
		+ '<TD ALIGN="right"><INPUT TYPE="text" NAME="contactAddress02" STYLE="'+bigField+'" MAXLENGTH="100"'+dynaCode+'></TD></TR>'
	+ '<TR><TD>CITY/STATE/ZIP:</TD>'
		+ '<TD ALIGN="right"><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">'
		+ '<TR><TD STYLE="padding-right:5px"><INPUT TYPE="text" NAME="contactCity" STYLE="'+midField+'" MAXLENGTH="50"'+dynaCode+'></TD>'
			+ '<TD STYLE="padding-right:5px"><INPUT TYPE="text" NAME="contactState" STYLE="'+smlField+'" MAXLENGTH="2"'+dynaCode+'></TD>'
			+ '<TD><INPUT TYPE="text" NAME="contactZip" STYLE="'+midField+'" MAXLENGTH="10"'+dynaCode+'></TD></TR>'
		+ '</TABLE></TD></TR>'
	+ '<TR><TD>HOME PHONE #:</TD>'
		+ '<TD ALIGN="right"><TABLE WIDTH="385" BORDER="0" CELLSPACING="0" CELLPADDING="0">'
		+ '<TR><TD><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">'
			+ '<TR><TD STYLE="padding-right:5px"><INPUT TYPE="text" NAME="contactHome" STYLE="'+midField+'" MAXLENGTH="12"'+dynaCode+'></TD>'
				+ '<TD STYLE="font-size:10px; padding-right:15px">(###-###-####)</TD>'
				+ '<TD STYLE="padding-right:5px">Ext:</TD>'
				+ '<TD><INPUT TYPE="text" NAME="contactHomeExt" STYLE="'+smlField+'"'+dynaCode+'></TD></TR>'
			+ '</TABLE></TD></TR>'
		+ '</TABLE></TD></TR>'
	+ '<TR><TD>MOBILE PHONE #:</TD>'
		+ '<TD ALIGN="right"><TABLE WIDTH="385" BORDER="0" CELLSPACING="0" CELLPADDING="0">'
		+ '<TR><TD><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">'
			+ '<TR><TD STYLE="padding-right:5px"><INPUT TYPE="text" NAME="contactMobile" STYLE="'+midField+'" MAXLENGTH="12"'+dynaCode+'></TD>'
				+ '<TD STYLE="font-size:10px; padding-right:15px">(###-###-####)</TD>'
				+ '<TD STYLE="padding-right:5px">Ext:</TD>'
				+ '<TD><INPUT TYPE="text" NAME="contactMobileExt" STYLE="'+smlField+'"'+dynaCode+'></TD></TR>'
			+ '</TABLE></TD></TR>'
		+ '</TABLE></TD></TR>'
	+ '<TR><TD>WORK PHONE #:</TD>'
		+ '<TD ALIGN="right"><TABLE WIDTH="385" BORDER="0" CELLSPACING="0" CELLPADDING="0">'
		+ '<TR><TD><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">'
			+ '<TR><TD STYLE="padding-right:5px"><INPUT TYPE="text" NAME="contactWork" STYLE="'+midField+'" MAXLENGTH="12"'+dynaCode+'></TD>'
				+ '<TD STYLE="font-size:10px; padding-right:15px">(###-###-####)</TD>'
				+ '<TD STYLE="padding-right:5px">Ext:</TD>'
				+ '<TD><INPUT TYPE="text" NAME="contactWorkExt" STYLE="'+smlField+'"'+dynaCode+'></TD></TR>'
			+ '</TABLE></TD></TR>'
		+ '</TABLE></TD></TR>'
	+ '<TR><TD><STRONG>*CONTACT PREFERENCE:</STRONG></TD>'
		+ '<TD ALIGN="right"><TABLE WIDTH="385" BORDER="0" CELLSPACING="0" CELLPADDING="0">'
		+ '<TR><TD WIDTH="20%"><INPUT TYPE="radio" NAME="contactMethod" VALUE="by e-mail">E-mail</TD>'
			+ '<TD WIDTH="20%"><INPUT TYPE="radio" NAME="contactMethod" VALUE="by mail">Mail</TD>'
			+ '<TD WIDTH="20%"><INPUT TYPE="radio" NAME="contactMethod" VALUE="at home">Home</TD>'
			+ '<TD WIDTH="20%"><INPUT TYPE="radio" NAME="contactMethod" VALUE="at mobile">Mobile</TD>'
			+ '<TD><INPUT TYPE="radio" NAME="contactMethod" VALUE="at work">Work</TD></TR>'
		+ '</TABLE></TD></TR>'
	+ '</TABLE></TD></TR>');

	document.writeln('<TR><TD ID="formBtm" ALIGN="center"><INPUT TYPE="submit" VALUE="Submit Request" ID="button"> <INPUT TYPE="Reset" ID="button" onClick="fillOpt(form)"></TD></TR>');
	document.writeln('</TABLE></TD></TR>');
} else {
	document.writeln('<TR><TD STYLE="padding-top:20px"><TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">'
	+ '<TR><TD ID="sectTitle">* Incompatible Browser</TD></TR>'
	+ '<TR><TD ID="listEntry"><P><STRONG>Sorry, this form is compatible with Microsoft Internet Explorer 5.0+higher, Netscape Navigator 6.0+higher, and Firefox 1.5+higher browsers only.</STRONG></P>'
	+ '<P>Please download one of these browsers if you wish to use this online form.<BR>We apologize for the inconvenience.</P>'
	+ '<P>If you are currently using the appropriate browser, please make sure that you have it set to be <B>JavaScript enabled</B>. After JavaScript has been enabled, simply reload this page and you will be taken to the form. Thank you.</P></TD></TR>'
	+ '</TABLE></TD></TR>');
}

function clearOpt(form) {
	form.contactOpt1.checked = false; form.contactOpt1.disabled = true;
	form.contactOpt2.checked = false; form.contactOpt2.disabled = true;
	form.contactOpt3.checked = false; form.contactOpt3.disabled = true;
	form.contactOpt4.checked = false; form.contactOpt4.disabled = true;
	form.contactOpt5.checked = false; form.contactOpt5.disabled = true;
}

function fillOpt(form) {
	form.contactOpt1.checked = true; form.contactOpt1.disabled = false;
	form.contactOpt2.checked = true; form.contactOpt2.disabled = false;
	form.contactOpt3.checked = true; form.contactOpt3.disabled = false;
	form.contactOpt4.checked = true; form.contactOpt4.disabled = false;
	form.contactOpt5.checked = true; form.contactOpt5.disabled = false;
}
