/* ------------ emailCheck.js --------------*/

function emailCheck()
{
if(!location.search || location.search!='?OK') // no search code or bad entry
	{document.write('<form method="post" action="http://www.GFarnsworth.com/GRACE/eMailing.cfm" name="f1">'
			+ 'Sign up for email: '
			+ '<input type="text" size="30" maxlength="70" onFocus="this.value=\'\';" '
			+ '	name="Person" value="Your name">&nbsp;'
			+ '<input type="text" size="40" maxlength="70" onFocus="this.value=\'\';" '
			+ '	name="Email" value="Your email"><br><br>'
			+ '<div align="center"><input type="submit" class="buttonGreen" value="Enter"></div>');	};

if(location.search=='?ERR')
	{document.write('<div style="color:red;font-weight:bold">Sorry, bad email address, please re-enter.</div>	</form>');	};

if(location.search=='?OK')
	{document.write('<h2 style="color:#006600;font-weight:bold">Thank you for signing up!</h2>');	};
	
};

