// JavaScript Document
function CheckNewsLetter(){
	var InError =  false;
	var okforemail = /(@\w[-._\w]*\w\.\w{2,3})$/;
	if(!okforemail.test($('NewsEmail').value)){
		$('NewsEmail').addEvent('keyup',function(){
			if(!okforemail.test($('NewsEmail').value)){
				$('NewsEmail').setStyle('background','transparent url(../images/sign_txtbox_error.jpg) no-repeat scroll 0 0');
				InError = true
			}else{
				$('NewsEmail').setStyle('background');
				InError = false;
			}
												 });
		
		$('NewsEmail').setStyle('background','transparent url(../images/sign_txtbox_error.jpg) no-repeat scroll 0 0 ');
		InError = true;
	}
	
	if (!InError){
		$('NewsLetter').submit();
	}else{
		alert('Please fix the errors marked with a red x.');
	}
}
