//<!--"Copyright © moorescode - Unlicensed Usage Is Strictly Prohibited"-->
function validateForm() 
{
var okSoFar=true
with (document.phpformmailer)
{
if (name.value=="" && okSoFar)
{
okSoFar=false
alert("Please enter your name.")
name.focus()
}
var foundAt = email.value.indexOf("@",0)
if (foundAt < 1 && okSoFar)
{
okSoFar = false
alert ("Please enter a valid email address.")
email.focus()
}
var e1 = email.value
var e2 = email2.value
if (!(e1==e2) && okSoFar)
{
okSoFar = false
alert ("The email addresses you entered do not match.  Please confirm them.")
email.focus()
}
if (thepurpose.value=="" && okSoFar)
{
okSoFar=false
alert("Please enter a topic.")
thepurpose.focus()
}
if (thecomments.value=="" && okSoFar)
{
okSoFar=false
alert("Please enter your questions or comments.")
thecomments.focus()
}
if (okSoFar==true)  
{
block_spam_bots.value=4*3;
submit();                 
} 
}
}
//<!--"Copyright © moorescode - Unlicensed Usage Is Strictly Prohibited"-->


