function validateform( form ) {
	if( form.namefirst.value == '' ) {
		form.namefirst.focus();
		alert( 'You must fill out the "first name" field.' );
		return false;
	}
	
	if( form.namesurname.value == '' ) {
		form.namesurname.focus();
		alert( 'You must fill out the "last name" field.' );
		return false;
	}
	
	if( form.orgname.value == '' ) {
		form.orgname.focus();
		alert( 'You must fill out the "organization" field.' );
		return false;
	}

	if( form.orgrole.value == '' ) {
		form.orgrole.focus();
		alert( 'You must fill out the "role in organization" field.' );
		return false;
	}

	if( form.addressstreet1.value == '' ) {
		form.addressstreet1.focus();
		alert( 'You must fill out the "street address 1" field.' );
		return false;
	}

	if( form.addresscity.value == '' ) {
		form.addresscity.focus();
		alert( 'You must fill out the "city / town" field.' );
		return false;
	}

	if( form.addressstate.value == '' ) {
		form.addressstate.focus();
		alert( 'You must fill out the "state / province" field.' );
		return false;
	}

	if( form.addresszip.value == '' ) {
		form.addresszip.focus();
		alert( 'You must fill out the "zip / postal code" field.' );
		return false;
	}

	if( form.contactemail.value == '' ) {
		form.contactemail.focus();
		alert( 'You must fill out the "e-mail" field.' );
		return false;
	}
	
	var atPosition = form.contactemail.value.indexOf( "@" );
	if( atPosition == '-1' ) {
		form.contactemail.focus();
		alert( 'Please enter your e-mail address in a valid format, for example name@gmail.com.' );
		return false;
	}
	
	if( form.contactemailconfirm.value == '' ) {
		form.contactemailconfirm.focus();
		alert('You must fill out the "confirm e-mail" field.' );
		return false;
	}
	
	if( form.contactemail.value != form.contactemailconfirm.value ) {
		form.contactemail.focus();
		alert( 'The addresses in "e-mail" and "confirm e-mail" do not match. Please correct any mistakes, and then click "send message" again.' );
		return false;
	}

	if( form.contactphone.value == '' ) {
		form.contactphone.focus();
		alert('You must fill out the "phone" field.' );
		return false;
	}

	if( form.contacttime.value == '' ) {
		form.contacttime.focus();
		alert('You must fill out the "best time(s) to reach me" field.' );
		return false;
	}

	if( form.screeningdate.value == '' ) {
		form.screeningdate.focus();
		alert('You must fill out the "date(s) to screen the film" field.' );
		return false;
	}

	isChecked = -1;
	for( i = form.screeningspeaker.length - 1; i > -1; i-- ) {
		if( form.screeningspeaker[ i ].checked ) {
			isChecked = i; i = -1;
		}
	}
	if( isChecked == -1 ) {
		form.screeningspeaker[0].focus();
		alert( 'Are you interested in having a Jewish Women\'s Archive speaker at your event?' );
		return false;
	}

	isChecked = -1;
	for( i = form.sendinfoonjwa.length - 1; i > -1; i-- ) {
		if( form.sendinfoonjwa[ i ].checked ) {
			isChecked = i; i = -1;
		}
	}
	if( isChecked == -1 ) {
		form.sendinfoonjwa[0].focus();
		alert( 'Would you like more information?' );
		return false;
	}

	if( form.screeningdescription.value == '' ) {
		form.screeningdescription.focus();
		alert( 'Please describe your event.' );
		return false;
	}


	form.submit();
}
