function validateEmail(){
	var emailRegEx = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	str = document.getElementById('form_email').value;
	if(!str.match(emailRegEx)){
		alert('Please enter a valid email address.');
		return false;
	}

	if (str != document.getElementById('form_email_confirm').value) {
		alert('Email addresses must match!');
		return false;
	}

	return true;
}

