function pverify(f)
{
	var msg;
	var errors = "";
	var valemail = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
	var valphone = /\d{3}-\d{3}-\d{4}/;
	
	if (isblank(document.contact.pemail.value) && isblank(document.contact.pphone.value))
		errors += "* You must enter either your email address or your phone number.\n";
	if ((!isblank(document.contact.pemail.value)) && (!document.contact.pemail.value.match(valemail)))
		errors += "* You must enter a valid email address (user@domain.name).\n";
	if ((!isblank(document.contact.pphone.value)) && (!document.contact.pphone.value.match(valphone)))
		errors += "* You must enter a valid phone number (123-456-7890).\n";
	if (isblank(document.contact.pcomments.value))
		errors += "* You did not enter any comments or requests.\n";
	if (!errors) {
		if (isblank(document.contact.pemail.value)) document.contact.pemail.value = "webmaster@pcvsoftware.net";
		return true;
	}
	msg = "Error!\n\n";
	msg += errors;
	alert(msg);
	return false;
}

function preadCookie()
{
	var cname = getCookie("name");
	document.contact.pname.value = (cname == null || cname == "") ? "" : cname;
	var cemail = getCookie("email");
	document.contact.pemail.value = (cemail == null || cemail == "") ? "" : cemail;
	var cphone = getCookie("phone");
	document.contact.pphone.value = (cphone == null || cphone == "") ? "" : cphone;
	document.contact.pname.focus();
}
