
function doSubmit(btn) 
{
	if (isQuote() && isAuthor() && isLocation())
	{ 
	    var submitMessage = "Please Wait ...";
        btn.value = submitMessage;
        btn.disabled = true;
        requestSubmitted = true;
        setTimeout("document.TestForm.submit()", 250);
	 }
	else
	 {   return false; }
}

function isQuote()  {
var field = document.TestForm.quote;

	if (field.value == "") {
	alert("\nYou must enter a Quote in the field provided.\n");
	field.select();
	field.focus();
	return false;
	}
	return true;
}

function isAuthor()  {
var field = document.TestForm.author;

	if (field.value == "") {
	alert("\nYou must enter the Author's name in the field provided.\n");
	field.select();
	field.focus();
	return false;
	}
	return true;
}

function isLocation()  {
var field = document.TestForm.location;

	if (field.value == "") {
	alert("\nYou must enter the Author's city in the field provided.\n");
	field.select();
	field.focus();
	return false;
	}
	return true;
}

