Here's a javascript that you can use to validate an email address, taken from the following link: http://www.freshmango.com/support/kb/web-design-programming/javascript/javascript-email-validation-with-regular-expressions/
<script type="text/javascript">
function validateEmail(){
var emailRegEx = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
str = document.getElementById('emailAddress').value;
if(str.match(emailRegEx)){
document.mailingListForm.submit();
}else{
alert('Please enter a valid email address.');
return false;
}
}
</script>
Regards,
http://www.sql-server-helper.com/faq/data-types-p01.aspx