function contactForm() {
	var theApp = document.getElementById('contact');
	var theAlert = "You must enter the following fields before continuing: \n\n";
	if (document.contact.name.value=="") {
		theAlert = theAlert + " Name \n";
	}
	if (document.contact.email.value=="") {
		theAlert = theAlert + " Email \n";
	}
	if (document.contact.message.value=="") {
		theAlert = theAlert + " Message \n";
	}
	//alert if fields are empty and cancel form submit
	if (theAlert == "You must enter the following fields before continuing: \n\n") {
		document.forms.contact.submit();
	}
	else {
		alert(theAlert);
		return false;
	}
}
function rev911Form() {
	var theApp = document.getElementById('rev911');
	var theAlert = "You must enter the following fields before continuing: \n\n";
	if (document.rev911.name.value=="") {
		theAlert = theAlert + " Name \n";
	}
	if (document.rev911.phone.value=="") {
		theAlert = theAlert + " Phone \n";
	}
	if (document.rev911.address.value=="") {
		theAlert = theAlert + " Address \n";
	}
	if (document.rev911.city.value=="") {
		theAlert = theAlert + " City \n";
	}
	if (document.rev911.state.value=="") {
		theAlert = theAlert + " State \n";
	}
	if (document.rev911.zip.value=="") {
		theAlert = theAlert + " Zip \n";
	}
	//alert if fields are empty and cancel form submit
	if (theAlert == "You must enter the following fields before continuing: \n\n") {
		document.forms.rev911.submit();
	}
	else {
		alert(theAlert);
		return false;
	}
}
function adsForm() {
	var theApp = document.getElementById('ads');
	var theAlert = "You must enter the following fields before continuing: \n\n";
	if (document.ads.item.value=="") {
		theAlert = theAlert + " Item \n";
	}
	if (document.ads.category.value=="0") {
		theAlert = theAlert + " Category \n";
	}
	if (document.ads.description.value=="") {
		theAlert = theAlert + " Description \n";
	}
	//alert if fields are empty and cancel form submit
	if (theAlert == "You must enter the following fields before continuing: \n\n") {
		document.forms.ads.submit();
	}
	else {
		alert(theAlert);
		return false;
	}
}
function pollForm(poll) {
	choice = -1;
	for (i=poll.answer.length-1; i > -1; i--) {
		if (poll.answer[i].checked) {
			choice = i; i = -1;
		}
	}
	if (choice == -1) {
		alert("Please select an option");
		return false;
	}
	poll.submit();
}