/************************************************************************
* Name: newsletter.js													*
* Company: Fusework Studios												*
* Author: Brandon Coppernoll											*
* Date Created: August 24, 2006											*
*																		*
* This file will allow the client to access functions and server actions*
* for the newsletter module.											*
*																		*
*	Date		Change													*
*	12/21/2007	Reduced the number of spaces for a "." in the email.	*
************************************************************************/

/*
* This function checks to make sure that a valid email address had been entered.
* It will also send back to the newsletter subscribe page with a message relating
* to the subscribe process.
*/
function _subscribeEmail()
{
	if (document.frmSubscribe.txtEmail.value==""||document.frmSubscribe.txtEmail.value.indexOf("@")<2||document.frmSubscribe.txtEmail.value.indexOf(".")<2)
		alert("Please enter a valid email address.");
	else
		document.frmSubscribe.submit();
}