function isValidEmail(the_email) 
{
	var emailFilter=/^.+@.+\..{2,3}$/;
	var illegalChars= /[\(\)\<\'\>\,\;\:\\\/\"\[\]]/;
	return (emailFilter.test(the_email) && !the_email.match(illegalChars));
}

function validateForm(formElem, good_color, bad_color) 
{
	var inputElem = null;
	var why = '';
	
	inputElem = formElem.email;
	if( inputElem ) 
	{
		if(!isValidEmail(inputElem.value)) 
		{
			why += " * Your Email Address\n";
			inputElem.style.borderColor = bad_color;
			inputElem.focus();
		}
		else 
		{
			inputElem.style.borderColor = good_color;
		}
	}
	
	if( why != "" ) 
	{
		why = "There is an error with your request.\n\nPlease fill out the following required fields:\n" + why;
		alert(why);
		return false;
	}
	return true;
}

