// define validation function
function validateRecipeSubscriptionForm (form) {
	if(!(/^\w+((-\w+)|(\.\w+)|(\+\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9][A-Za-z0-9]+$/.test(form.i_emailgeneric.value))) {
		alert("This does not appear to be a valid e-mail address.  Please try again.");
		form.i_emailgeneric.select();
		return false;
	}
	return true;
}



document.writeln('<div class="gradientBox roundedCorners" style="background-image:none;">');
document.writeln('	<div class="contentBox">');
document.writeln('		<div style="padding-bottom:10px;">');
document.writeln('			<span class="bold">Get delicious recipes sent directly to your inbox!</span>');
document.writeln('			Sign up to receive our recipe e-mails.');
document.writeln('		</div>');
document.writeln('		<form name="signupForm" id="signupForm" action="http://forms.geconsumerandindustrial.com/asbs/servlet/SubmitForm" method="post" onsubmit="return validateRecipeSubscriptionForm(this);">');
document.writeln('			<input type="hidden" name="FormId" value="3123800" />');
document.writeln('			<input type="hidden" name="i_consumer_recipes" value="Y" />');
document.writeln('			<input type="hidden" name="ThankYouURL" id="ThankYouURL" value="http://www.geappliances.com/recipes/recipe_thanks.htm" />');
document.writeln('			<input type="text" name="i_emailgeneric" id="i_emailgeneric" class="longInput" style="vertical-align:middle; width:120px;" onfocus="if(this.value==this.defaultValue){this.value=\'\'};" onblur="if(this.value==\'\'){this.value=this.defaultValue};" value="Enter E-Mail Address" />&nbsp; <input type="submit" value="Go" class="button" />');
document.writeln('		</form>');
document.writeln('	</div>');
document.writeln('</div><!-- end .gradientBox -->');