var error="";
e_regex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/;

function Checkit(theform) {
	
	if(theform.yourname.value=="") {
		error+="Your Name\n";
	}
	if(theform.youremail.value=="") {
		error+="Email\n";
	} else if(!e_regex.test(theform.youremail.value)) {
		error+="Invalid email address\n";
	}	
	if(theform.yourmessage.value=="") {
		error+="Event(s) AND Date of Photo(s) (i.e. Skate Night, 11-2008)\n";
	}
	
	if(error) {
		alert('** Hold on a minute, Skippy! We didn\'t get these required fields. **\n\n' + error);
		error="";
		return false;
	} else {
		return true;
	}
}