function checkform() {
	var objForm = document.forms["submitphoto"];
	if (objForm.firstname.value == "" ) {
		alert( "You must enter a first name" );
		objForm.firstname.focus();
		return false;
	}
	if (objForm.lastname.value == "" ) {
		alert( "You must enter a last name" );
		objForm.lastname.focus();
		return false;
	}
	if (objForm.email.value == "" ) {
		alert( "You must enter an email address" );
		objForm.email.focus();
		return false;
	}
	if (!objForm.permission.checked) {
		alert( "We cannot accept a photograph unless you agree to the Terms and Conditions" );
		objForm.permission.focus();
		return false;
	}
}
