function processForm(theForm) {

	var why = "";

	why += checkFullname(theForm.fromName.value);
	why += checkEmail(theForm.from.value);
	why += checkSubject(theForm.subject.value);
	why += checkMessage(theForm.Message.value);

	if (why != "") {
		alert(why);
		return false;
	}

	theForm.content.value = "";
	theForm.content.value = theForm.content.value + "<TABLE border=0 CELLSPACING='0' CELLPADDING='0' WIDTH='650' ALIGN='Center'><TR HEIGHT='120'><TD WIDTH='650' STYLE='padding-bottom:0px;border-bottom: 2px solid #3B7499;' COLSPAN='2'><SPAN STYLE='width:252px;margin:0px;padding:0px;'><A HREF='http:/";
	theForm.content.value = theForm.content.value + "/www.racefortheoceans.org/'><IMG SRC='http:/";
	theForm.content.value = theForm.content.value + "/www.racefortheoceans.org/themes/oceana/logo.jpg' WIDTH='252' HEIGHT='120' BORDER='0' ALT='RacefortheOceans.org Banner'></A></SPAN><SPAN STYLE='width:142px;margin:0px;padding-left:225px;'><A HREF='http:/";
	theForm.content.value = theForm.content.value + "/www.oceana.org/'><IMG SRC='http:/";
	theForm.content.value = theForm.content.value + "/www.racefortheoceans.org/themes/oceana/images/oc_oceana_logo.jpg' WIDTH='142' HEIGHT='39' BORDER='0' STYLE='padding-bottom:5px;'></A></SPAN></TD></TR><TR HEIGHT='40'><TD WIDTH='650' COLSPAN='2' VALIGN='Bottom' STYLE='padding:0px 0px 0px 20px;font-family:Arial,Helvetica,sans-serif;font-size:11px;color:#142733;'><B>From ";
	theForm.content.value = theForm.content.value + theForm.fromName.value;
	theForm.content.value = theForm.content.value + ":</B></TD></TR><TR><TD WIDTH='485' VALIGN='Top' STYLE='padding:15px 40px 20px 20px;font-family:Arial,Helvetica,sans-serif;font-size:11px;color:#142733;'>";
	theForm.content.value = theForm.content.value + theForm.Message.value;
	theForm.content.value = theForm.content.value + "<BR/><BR/>***<BR/>Oceana<BR/>2501 M Street, NW<BR/>Suite 300<BR/>Washington, D.C. 20037-1311<BR/>1.877.7.OCEANA<BR/><A HREF='http:/";
	theForm.content.value = theForm.content.value + "/www.oceana.org/' STYLE='color:#4c9aca;text-decoration:none;'>www.oceana.org</A><BR/><A HREF='mailto:info@oceana.org' STYLE='color:#4c9aca;text-decoration:none;'>info@oceana.org</A></TD><TD WIDTH='170' VALIGN='Top' STYLE='padding:15px 0px 20px 0px;font-family:Arial,Helvetica,sans-serif;font-size:11px;color:#333333;'><TABLE WIDTH='150' CELLSPACING='0' CELLPADDING='0' STYLE='margin-right:20px;'><TR><TD STYLE='font-family:Arial,Helvetica,sans-serif;background:url(http:/";
	theForm.content.value = theForm.content.value + "/www.racefortheoceans.org/themes/oceana/images/oc_nav_bg.jpg) repeat-x #3B759A;text-transform:uppercase;font-stretch:wider;letter-spacing: 2px;margin:0px;font-size:10px;padding: 8px 5px 8px 5px;color:#FFFFFF;border-top:1px solid white;'><A HREF='http:/";
	theForm.content.value = theForm.content.value + "/www.racefortheoceans.org/join' STYLE='color:#fff;text-decoration:none;'>Join the Team</A></TD></TR><TR><TD STYLE='font-family:Arial,Helvetica,sans-serif;font-size:11px;color:#142733;background:#E0EEF7;padding:10px 10px 10px 10px;border-color:#4C9ACA;border-style:solid;border-width:1px;border-top-width:0px;'>Join the Race for the Oceans, and you'll receive exclusive updates from Aaron and Oceana about the race's progress and what you can do to help protect the oceans. <A HREF='http:/";
	theForm.content.value = theForm.content.value + "/www.racefortheoceans.org/join' STYLE='text-decoration:none;color:#4c9aca;'>>> GO</A></TD></TR><TR><TD STYLE='font-family:Arial,Helvetica,sans-serif;background:url(http:/";
	theForm.content.value = theForm.content.value + "/www.racefortheoceans.org/themes/oceana/images/oc_nav_bg.jpg) repeat-x #3B759A;text-transform:uppercase;font-stretch:wider;letter-spacing: 2px;margin:0px;font-size:10px;padding: 8px 5px 8px 5px;color:#FFFFFF;border-top:1px solid white;'><A HREF='http:/";
	theForm.content.value = theForm.content.value + "/www.racefortheoceans.org/support_the_race' STYLE='color:#fff;text-decoration:none;'>Support the Race</A></TD></TR><TR><TD STYLE='font-family:Arial,Helvetica,sans-serif;background:url(http:/";
	theForm.content.value = theForm.content.value + "/www.racefortheoceans.org/themes/oceana/images/oc_nav_bg.jpg) repeat-x #3B759A;text-transform:uppercase;font-stretch:wider;letter-spacing: 2px;margin:0px;font-size:10px;padding: 8px 5px 8px 5px;color:#FFFFFF;border-top:1px solid white;'><A HREF='http:/";
	theForm.content.value = theForm.content.value + "/www.racefortheoceans.org/recruit_a_friend' STYLE='color:#fff;text-decoration:none;'>Recruit a Friend</A></TD></TR><TR><TD STYLE='background:url(http:/";
	theForm.content.value = theForm.content.value + "/www.racefortheoceans.org/themes/oceana/images/oc_nav_wav_right_bottom.jpg) no-repeat top left;margin:0px;border-top:1px solid white;'>&nbsp;</TD></TR></TABLE></TD></TR><TR HEIGHT='20'><TD COLSPAN='2' STYLE='background:none;text-align:left;margin:5px 0px 20px 0px;font-size: 10px;font-family: Arial, Helvtica, sans-serif;color: #CCC;border-top:2px solid #3B7499;padding:5px 0px 0px 0px;'><span style='float:left;'><a href='http:/";
	theForm.content.value = theForm.content.value + "/www.oceana.org' STYLE='color:#4c9aca;text-decoration:none;' title='Visit Oceana.org: Protecting The World's Oceans'>Oceana.org</a> | <a href='http:/";
	theForm.content.value = theForm.content.value + "/www.racefortheoceans.org/contact' STYLE='color:#4c9aca;text-decoration:none;' title=''>Contact</a> | <a href='http:/";
	theForm.content.value = theForm.content.value + "/www.racefortheoceans.org/press' STYLE='color:#4c9aca;text-decoration:none;' title=''>Press</a> | <a href='http:/";
	theForm.content.value = theForm.content.value + "/www.racefortheoceans.org/privacy' STYLE='color:#4c9aca;text-decoration:none;' title='View our privacy policy'>Privacy Policy</a></span><span STYLE='color: #777;float:right;'>&copy; 2007 Aaron Peirsol's Race for the Oceans</span></TD></TR></TABLE><BR/>";

	return true;
}


function limitText(limitField, limitNum) {
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum);
	}
}

