function isblank(s)
{
	for(var i = 0; i < s.length; i++)
	{
		var c = s.charAt(i);
		if ((c != ' ') && (c != '\n') && (c != '\t')) return false;
	}
	return true;
}

function verify(f)
{
	var msg;
	var errors = "";
	
	if (isblank(document.water.name.value))
		errors += "You did not enter your name.\n";
	if (isblank(document.water.company.value))
		errors += "You did not enter your company name.\n";
	if (isblank(document.water.address.value))
		errors += "You did not enter your address.\n";
	if (isblank(document.water.phone.value))
		errors += "You did not enter your phone number.\n";
	if (!errors) {
		document.water.email.value = "doctor@drdessert.com"
		return true;
	}

	msg = "______________________________________________________________\n\n";
	msg += "The form was not submitted because of the following error(s).\n";
	msg += "Please correct your entries and re-submit.\n";
	msg += "______________________________________________________________\n\n";
	msg += errors;
	alert(msg);
	return false;
}
