
function form_submit() {
	emailname = document.getElementById('emailname');
	if (emailname.value == "") {
		alert('Type in your Name.');
		emailname.focus();
		return false;
	}

	emailfrom = document.getElementById('emailfrom');
	if (emailfrom.value == "") {
		alert('There must be an email address.'); 
		emailfrom.focus();
		return false;
	}
	else {
		var regex_emailfrom=/^[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+\.[a-zA-Z]{2,4}$/;
		if (!regex_emailfrom.test(emailfrom.value)) {
			alert("The e-mail address is invalid format.")
			emailfrom.focus();
			return false;
		}
	}

	emaildatecompleted = document.getElementById('emaildatecompleted');
	if (emaildatecompleted.value == "") {
		alert('Type in the Date Completed.');
		emaildatecompleted.focus();
		return false;
	}

	emailprojectlocation = document.getElementById('emailprojectlocation');
	if (emailprojectlocation.value == "") {
		alert('Type in the Project Location.');
		emailprojectlocation.focus();
		return false;
	}

	emailphone = document.getElementById('emailphone');
	if (emailphone.value == "") {
		alert('Type in your Phone number.');
		emailphone.focus();
		return false;
	}

	/*
	emailto = document.getElementById('emailto');
	if (emailto.value == "") {
		// alert('There must be at least one address in the To box.');
		emailto.focus();
		return false;
	}
	else {
		var regex_emailto=/^(([a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+\.[a-zA-Z]{2,4})([;]{0,999})){0,999}$/;
		if (!regex_emailto.test(emailto.value)) {
			alert("At least one of the provided e-mail addresses is invalid format in the To box.")
			emailto.focus();
			return false;
		}
	}
	*/

	/*
	emailcc = document.getElementById('emailcc');
	if (emailcc.value != "") {
		var regex_emailcc=/^(([a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+\.[a-zA-Z]{2,4})([;]{0,999})){0,999}$/;
		if (!regex_emailcc.test(emailcc.value)) {
			alert("At least one of the provided e-mail addresses is invalid format in the Cc box.")
			emailcc.focus();
			return false;
		}
	}
	*/

	/*
	emailbcc = document.getElementById('emailbcc');
	if (emailbcc.value != "") {
		var regex_emailbcc=/^(([a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+\.[a-zA-Z]{2,4})([;]{0,999})){0,999}$/;
		if (!regex_emailbcc.test(emailbcc.value)) {
			alert("At least one of the provided e-mail addresses is invalid format in the BCc box.")
			emailbcc.focus();
			return false;
		}
	}
	*/
	
	/*
	emailsubject = document.getElementById('emailsubject');
	if (emailsubject.value == "") {
		// alert('Type in the Subject of your Message.');
		emailsubject.focus();
		return false;
	}
	*/
	
	emailbody = document.getElementById('emailbody');
	if (emailbody.value == "") {
		if (confirm("Continue without any Comments or Questions?")) {
		}
		else { 
			emailbody.focus();
			return false;
		}
	}
}