// hide
function checkForm() {
var error_string = "";

// check text fields
if(document.the_form.sender.value == "") {
	error_string += "You must include a your name\n";
	}
if(document.the_form.email.value == "") {
	error_string += "You must include an email address\n";
	}

// check email syntax	
	if(!document.the_form.email.value == "") {
		var str=document.the_form.email.value
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		if (filter.test(str)) {
			error_string == "";
			}
		else {
			error_string += "You E-Mail Address is not quite correct.\n";
			}
		}	


if(error_string == "") {
	return true;
	}
else {
	error_string ="We found the following omissions in your form sumbission: \n" + error_string;
	alert (error_string);
	return false;
	}
}		
