function validateForm2(theForm)
{
    var msg = '';
    var reg_email = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
    var reg_phone = /^(\+\d)*\s*(\(\d{3}\)\s*)*\d{3}(-{0,1}|\s{0,1})\d{2}(-{0,1}|\s{0,1})\d{2}$/;  // /^(\()?\d{3}(\))?([\s\-])?\d{3}([\s\-])?\d{4}$/;
    var reg_postal = /^\D{1}\d{1}\D{1}\-?\d{1}\D{1}\d{1}$/;

    var name_first     = theForm.name_first.value;
    var name_last      = theForm.name_last.value;
    var contact_email  = theForm.contact_email.value;
    var address_postal = theForm.address_postal.value;
    var contact_phone  = theForm.contact_phone.value;
    var check_over_18  = true;
    
    if(typeof(theForm.check_over_18.value) == 'undefined')
    {
        check_over_18 = false;
    }    

    if(
        (name_first == '' || name_first == null) ||
            (name_last == '' || name_last == null) ||
                (contact_email == '' || contact_email == null) ||
                    (address_postal == '' || address_postal == null) 
    )
    {
        msg += '- enter all required fields (*)\n';
    }

    if(contact_email != '' && reg_email.test(contact_email) == false)
    {
        msg += '- enter a valid email address\n';
    }

    if(contact_phone != '' && reg_phone.test(contact_phone) == false)
    {
        msg += '- enter a valid 10 digit phone number\n';
    }

    if(address_postal != '' && reg_postal.test(address_postal) == false)
    {
        msg += '- enter a valid postal code\n';
    }

    if(check_over_18 == false)
    {
        msg += '- enter you are over 18 years of age';
    }

    if(msg != '')
    {
        msg = 'Please correct the following:\n\n' + msg;

        alert(msg);
        return false;
    }
    else
    {
        return true;
    } 
}
