/**********************************************************************************************/
// function Subscribe_Validate(theform)
// - Validates subscribe.asp fields
//
// Author: Ram Razavi
// Date: 2/03/2002
// Last Modified: 6/27/2009

function Subscribe_Validate(theform)
{
	var errormsg = '';
	
	if ((theform.email.value.indexOf('@') == -1) || (theform.email.value.indexOf('.') == -1))
	{
		errormsg = errormsg + 'Please specify a valid email address.\n';
		theform.email.focus();
	}
	
	if (errormsg != '')
	{
		window.alert(errormsg);
		return false;
	}
	else
	{
		return true;
	}
}
