// Form validation, verify data prior to submit.

// this script was written by Alec Berry.
// It is copyright (c) 2005 RestonTech, Ltd
// 703-437-5262 http://www.restontech.com/
// Used by permission

function formValidate() {  // check form elements
	var t = "";
	with (document.Form) {
		t += (First_Name.value) ? "" : "First Name\n";
		t += (Last_Name.value) ? "" : "Last Name\n";
		t += (Email.value) ? "" : "Email Address\n";
		t += (Wedding_Month.value) ? "" : "Month of Wedding\n";
		t += (Wedding_Day.value) ? "" : "Day of Wedding\n";
		t += (Wedding_Year.value) ? "" : "Year of Wedding\n";

		} // end with
	if (t != "") {
		t = "The information you entered could not be submitted\nbecause some of the required information is missing:\n\n" + t;
		alert(t);
		return false;
		} // end if
	else return true;
	} // end checkform
		
function submitit() {
	if (checkform()) {
		document.info.submit()
		alert("Thank you for your interest in New Couture - Washington's Premier Custom Bridal Designers.\nYou should hear back from us shortly.")
		} // end if
	} // end submitit

