var reqFields = 'contactFirstName';

/* validation for contact page. 
 *  
 *  "Only first name and email or phone are required – please indicate and provide
 *   error message for missing data in those fields"
 */
$(document).ready( function() {
    /*$('#contactForm').submit( function(e) {
        if ($('#contactFirstName').val() == "") {
            $('#contactFirstName').addClass('err');
            alert('First Name is required.');
            return false;
        }
        if ($('#contactEmail').val() == "" && ($('#contactPhone').val() == "")) {
            $('#contactEmail').addClass('err');
            $('#contactPhone').addClass('err');
            alert('Either e-mail or phone are required.');
            return false;
        }
        return true;
    }) */ 

    // for LC only - height of the two columns needs to match. We 
    $('td.btnSubmit > input').bind('click', function() {
        $(this).attr('src', '/img/btn.submit1.click.gif');
        //window.setTimeout("$('#contactForm').submit()", 100);
        return false;
    });

    /* for LC only, equalize the heights of these two divs. on the contact page. */
    $('#contactFormW, #contactPanelContent>div').equalizeCols();

    $('div.btnSubmit > input').bind('mouseover', function() { $(this).attr('src', 'img/btn.submit1.over.gif') })
                              .bind('mouseout',  function() { $(this).attr('src', 'img/btn.submit1.gif') });

});


