// Default.asp javaScript functions

function submitForm() {

var a = document.getElementById('registerEmail').value;
var b = isValidEmail(a);
if (a && b) {
	document.form1.submit();
} else {
	alert('Please supply your email address');
}

}

function isValidEmail(str) {
   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
}
