// Insert copyright
function copyright_year() {
	document.write ("2010");
}

// Validate contact form
function validate_contact_form(theForm) {
	if (theForm.Name.value == "") {
		alert("Please provide your name in the \"Name\" field.");
		theForm.Name.focus();
		return (false);
	}
	if (theForm.Name.value.length < 2) {
		alert("Please provide a complete first and last name in the \"Name\" field.");
		theForm.Name.focus();
		return (false);
	}
	if (theForm.Name.value.length > 50) {
		alert("Please enter no more than 50 characters in the \"Name\" field.");
		theForm.Name.focus();
		return (false);
	}
	if (theForm.Email.value == "") {
		alert("Please provide your email address in the \"Email\" field.");
		theForm.Email.focus();
		return (false);
	}
	if (theForm.Email.value.length < 6) {
		alert("Please provide a complete email address in the \"Email\" field.");
		theForm.Email.focus();
		return (false);
	}
	if (theForm.Email.value.length > 100) {
		alert("Please enter no more than 100 characters in the \"Email\" field.");
		theForm.Email.focus();
		return (false);
	}
	if (theForm.Message.value == "") {
		alert("Please provide a message in the \"Message\" field.");
		theForm.Message.focus();
		return (false);
	}
	if (theForm.Message.value.length < 5) {
		alert("Please enter at least 5 characters in the \"Message\" field.");
		theForm.Message.focus();
		return (false);
	}
	if (theForm.Message.value.length > 500) {
		alert("Please enter no more than 500 characters in the \"Message\" field.");
		theForm.Message.focus();
		return (false);
	}
	return (true);
}
