﻿function Validate()
{
	//--- Make sure the Name was entered
	if (document.frmContacts.firstname.value.length == 0) {
		alert("Please enter your fist name to continue.");
		document.frmContacts.firstname.focus();
		document.frmContacts.firstname.select();
		return false;
	}
	
	if (document.frmContacts.lastname.value.length == 0) {
		alert("Please enter your last name to continue.");
		document.frmContacts.lastname.focus();
		document.frmContacts.lastname.select();
		return false;
	}
	
	//--- Make sure your Company name was entered
	if (document.frmContacts.companyname.value.length == 0) {
		alert("Please enter your company name to continue.");
		document.frmContacts.companyname.focus();
		document.frmContacts.companyname.select();
		return false;
	}
	
	//--- Make sure the EMail Address was entered
	if (document.frmContacts.email.value.length == 0) {
		alert("Please enter an email address to continue.");
		document.frmContacts.email.focus();
		document.frmContacts.email.select();
		return false;
	}
	
	//--- Make sure the a comment was entered
	if (document.frmContacts.comments.value.length == 0) {
		alert("Please enter a comments to continue.");
		document.frmContacts.comments.focus();
		document.frmContacts.comments.select();
		return false;
	}
	//Submit the Contact Us Form
	document.frmContacts.submit();
	return true;

}

