function checkForm() {
	
	// MESSAGE VARIABLE
	var message = "Please correct the following error(s):\n\n";
	
	// BOOLEAN VARIABLE
	var sendForm = true;

	// GET NAME
	var name = document.getElementById('name').value;
	
	// GET EMAIL
	var email = document.getElementById('email').value;
	
	// CHECK NAME 
	if (document.lectureattendees.name.value.length == 0) {
          alert("Please fill out your name.\n");
	  return false;
     }
	
	// CHECK EMAIL
	if (document.lectureattendees.email.value.length == 0) {
          alert("Please fill out your email address.\n");
	  return false;
     }
	
	// CHECK CHECKBOX
	if ( document.lectureattendees.terms.checked == false )
    {
        alert("Please agree to the terms by checking the box.\n");
        return false;
    }
	
	
	
	// RETURN STATUS AND/OR MESSAGE
	if (sendForm) {
		return true;
	}
	else {
		alert(message);
		return false;
	}

}