function submitForm(theForm)
{
    //54 characters long
    var valResults = "The following field(s) need to be entered correctly:\n";

    if (theForm.contactname.value == "")
        valResults += "contact name\n";
    if (theForm.phone.value == "")
        valResults += "phone number\n"
    if (theForm.emailAddress.value == "")
        valResults += "email address\n"        
    else if (theForm.emailAddress.value !="")
    {
        if((theForm.emailAddress.value.indexOf("@") < 0) || (theForm.emailAddress.value.indexOf(".") < 0))
            valResults += "email address\n";
    }

    if (theForm.message.value == "")
        valResults += "message";

    if (valResults.length <55)
    {
        return true;
    }

    else
    {
        alert(valResults);
        return false;
    }
}