//form validation

function checkData(){
	var name = document.getElementById("name"); 
	var email = document.getElementById("email");
	
	
	if(name.value == "" || !isNaN(name.value)){  //check to see if field is empty or is a number
		alert("Please enter your name");
		name.focus();	//not valid, so set focus to correct field
		return false;  //stops the form being submitted
	}
	
	//you only get here if the name is valid
	else if (email.value == ""){  //check if email field is empty
		alert("Please enter your email");
		email.focus();  //set focus to email
		return false;	
	}
	
	
	
	
		return true;	//allows form to be submitted	

}