function checkform()
{
if ((contact.spam.value != 18) || (contact.spam.value.length != 2))
{
mesg = "Please check the Spam Control Field\n"
mesg = mesg + "You have not entered a valid number.\n"
mesg = mesg + "Please verify your input and submit again."
alert(mesg);
contact.spam.focus();
return (false);
}
else if ((contact.Country.value.length < 3) || (contact.Country.value.length > 20))
{
mesg = "Please check the Country Field\n"
mesg = mesg + "You have not entered a valid country name.\n"
mesg = mesg + "Please verify your input and submit again."
alert(mesg);
contact.Country.focus();
return (false);
}
else if ((contact.Phone1.value.length != 3))
{
mesg = "Please check the Phone Area Code Field\n"
mesg = mesg + "You have not entered a valid number.\n"
mesg = mesg + "Please verify your input and submit again."
alert(mesg);
contact.Phone1.focus();
return (false);
}
else if ((contact.Phone2.value.length != 3))
{
mesg = "Please check the Second Phone Field\n"
mesg = mesg + "You have not entered a valid number.\n"
mesg = mesg + "Please verify your input and submit again."
alert(mesg);
contact.Phone2.focus();
return (false);
}
else if ((contact.Phone3.value.length != 4))
{
mesg = "Please check the the Last Phone Field\n"
mesg = mesg + "You have not entered a valid number.\n"
mesg = mesg + "Please verify your input and submit again."
alert(mesg);
contact.Phone3.focus();
return (false);
}

return (true);
}