//check the email address is valid
function validate(){
	var email = document.getElementById('email').value;
	if((email.indexOf('@')==-1)||(email.indexOf('.')==-1)){
		alert("Invalid email address");
		return false;
	}
	else
		return true;
}
