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

}