function SubmitPhoneOrder() {
    var name = $('#from').val();
    var phone = $('#phone').val();
    var text = $('#message').val();
    var country = $('#country_list_ajax_index').val();
    var city = $('#city_list_ajax_index').val();

    if (name == '' && phone == '' && text == '') {
        $('#phone_order_req').show(500);
        return false;
    }

    $.ajax({
        type: 'POST',
        url: '/product.php',
        async: true,
        data: 'ajax=submitOrderIndex' + '&from=' + name + '&phone=' + phone + '&country=' + country + '&city=' + city + '&message=' + text,
        success: function (response) {
            $('#phone_order_req').hide();
            $('#phone_order_err').hide();
            $('#phone_order form').hide(500);
            $('#phone_order_ok').show(500);
        },
        error: function (req, status, error) {
            $('#phone_order_err').show();
        }
    });
    return false;
}
