function submitContactForm() {

    if (! $('#name').val()) {
        alert('Please, enter your name.');;
        $('#name').focus();
        return;
    }
    
    if (! $('#email').val()) {
        alert('Please, enter your email.');
        $('#email').focus();
        return;
    }
    
    if (! $('#text_area').val()) {
        alert('Please, enter your message.');
        $('#text_area').focus();
        return;
    }
    
    $('#info').html('<img src="/img/ajax-loading.gif" alt="Sending message" />Sending message...');
    

    $.post("/submit_comment/", { 
        name: $('#name').val(), email: $('#email').val(), msg: $('#text_area').val() }, 
        function(data) { 
            $('.contactForm').css({ opacity: 0.3 });
            
            $('#info').html( 'Thank you for your message.' ) 
        }
    );
    
}

function submitReservationForm() {

    if (! $('#reservation_name').val()) {
        alert('Please, enter your name.');;
        $('#reservation_name').focus();
        return;
    }
    
    if (! $('#reservation_email').val()) {
        alert('Please, enter your email.');
        $('#reservation_email').focus();
        return;
    }

    if (! $('#reservation_phone').val()) {
        alert('Please, enter your phone.');
        $('#reservation_phone').focus();
        return;
    }
    
    if (! $('#reservation_text_area').val()) {
        alert('Please, enter your message.');
        $('#reservation_text_area').focus();
        return;
    }
    
    $('#reservation_info').html('<img src="/img/ajax-loading.gif" alt="Sending message" />Sending message...');
    

    $.post("/submit_comment/submit_reservation/", { 
        name: $('#reservation_name').val(), email: $('#reservation_email').val(), msg: $('#reservation_text_area').val(), phone: $('#reservation_phone').val() }, 
        function(data) { 
            $('.reservationForm').css({ opacity: 0.3 });
            
            $('#reservation_info').html( 'Thank you! We will contact you soon for more information!' ) 
        }
    );
    
}
