<!-- HIDE FROM INCOMPATIBLE BROWSERS

/*
*	LaDePaws JavaScript Code Snippets
*
*	By: Tammy C. Wilson
*	5/8/07
*/

function confirmName() {
	if (document.forms[0].name.value != "")
		return true;
	else {
		window.alert("We will need your name.");
		return false;
	}
}

function confirmEmail() {
	if (document.forms[0].email.value != "")
		return true;
	else {
		window.alert("You must enter an email address.");
		return false;
	}
}

function confirmPhone() {
	if (document.forms[0].phone.value != "")
		return true;
	else {
		window.alert("You must enter a phone number.");
		return false;
	}
}

function confirmDetails() {
	if (document.forms[0].details.value != "")
		return true;
	else {
		window.alert("You must enter a comment or question.");
		return false;
	}
}

function selectText() {
	document.forms[0].details.select();
}

// This function allows the use of one form for two different uses
function showInfo(whichForm) {
	var curForm = document.getElementById('form');
	var curFormTitle = document.getElementById(whichForm);

// Hide the form, including both titles otherwise both might be displayed in future
	if (curForm.style.display == "block") {
		curForm.style.display = "none";
		document.getElementById('ladepaws').style.display = "none";
		document.getElementById('webmaster').style.display = "none";
	}
// Display the form with the appropriate title, pass info on which form so we use the correct email address
// also set the focus to the name field
	else {
		curForm.style.display = "block";
		curFormTitle.style.display = "block";
		document.getElementById('who').value = whichForm;
		document.getElementById('name').focus();
	}

	return false;
}

function dateMod() {
	var days = new Array(7);
	days[0] = "Sunday";
	days[1] = "Monday";
	days[2] = "Tuesday";
	days[3] = "Wednesday";
	days[4] = "Thursday";
	days[5] = "Friday";
	days[6] = "Saturday";

	var months = new Array(12);
	months[0] = "January";
	months[1] = "February";
	months[2] = "March";
	months[3] = "April";
	months[4] = "May";
	months[5] = "June";
	months[6] = "July";
	months[7] = "August";
	months[8] = "September";
	months[9] = "October";
	months[10] = "November";
	months[11] = "December";

	var dateObj = new Date(document.lastModified);
	var wday = days[dateObj.getDay()];
	var lmonth = months[dateObj.getMonth()];
	var date = dateObj.getDate();
	var fyear = dateObj.getFullYear();

	var modObject = document.getElementById('mod');
	modObject.innerHTML = "Last Modified: " + wday + ", " + lmonth + " " + date + ", " + fyear;
}

// STOP HIDING FROM INCOMPATIBLE BROWSERS -->
