{"id":117,"date":"2020-05-12T14:54:28","date_gmt":"2020-05-12T14:54:28","guid":{"rendered":"https:\/\/clsrentacar.com\/reservas\/"},"modified":"2025-08-28T15:56:36","modified_gmt":"2025-08-28T15:56:36","slug":"reservas","status":"publish","type":"page","link":"https:\/\/clsrentacar.com\/en\/reservas\/","title":{"rendered":"Bookings"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; use_background_color_gradient=&#8221;on&#8221; background_color_gradient_stops=&#8221;rgba(0,0,0,0.89) 0%|rgba(0,0,0,0.1) 100%&#8221; background_color_gradient_overlays_image=&#8221;on&#8221; background_image=&#8221;https:\/\/clsrentacar.com\/wp-content\/uploads\/2025\/08\/cls_banner_2.jpg&#8221; custom_padding=&#8221;141px||141px|||&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; title_text=&#8221;cls_banner_2&#8243; sticky_enabled=&#8221;0&#8243;][et_pb_row column_structure=&#8221;1_4,1_2,1_4&#8243; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; width=&#8221;90%&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;1_4&#8243; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_column][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;&#8211;et_global_heading_font|700|||||||&#8221; header_text_align=&#8221;center&#8221; header_text_color=&#8221;#FFFFFF&#8221; header_font_size=&#8221;40px&#8221; header_line_height=&#8221;1.3em&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h1>BOOKINGS<\/h1>\n<p>[\/et_pb_text][\/et_pb_column][et_pb_column type=&#8221;1_4&#8243; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.16&#8243; custom_css_main_element=&#8221;z-index:12;&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; width=&#8221;90%&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_code _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<!--<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 w2r_titulo\">\n  <h3><\/h3>\n<\/div>-->\n  \n<div id=\"bodyreserva\" class=\"bodyreserva2 col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"background: rgba(255,255,255,0.6);height: auto;margin-bottom:40px;\">\n  <div class=\"w2r_main_nav col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding:10px;\">\n      <div class=\"selected\"><a href=\"javascript:void(0)\">1.Date and Location<\/a><\/div>\n      <div class=\"w2r_disable\"><a href=\"javascript:void(0)\">2.Vehicle<\/a><\/div>\n      <div class=\"w2r_disable\"><a href=\"javascript:void(0)\">3.Insurances and Extras<\/a><\/div>\n      <div class=\"w2r_disable\"><a href=\"javascript:void(0)\">4.Get Quote \/ Book<\/a><\/div>\n  <\/div>\n  <!--<div class=\"<\/\/?=$cssClass?>col-lg-12 <\/\/?=$cssClass?>col-md-12 <\/\/?=$cssClass?>col-sm-12 <\/\/?=$cssClass?>col-xs-12 w2r_header\">\n    <h4 style=\"margin-top:10px;margin-bottom:10px;\"><\/\/?=$lang[$l]['book_now']?><\/h4>\n  <\/div>-->\n  <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 w2r_main\" style=\"padding-left:0;padding-right:0;margin-top:20px;\">\n    \n      <form  method=\"post\" id=\"w2rForm\" name=\"w2rForm\" action=\"https:\/\/clsrentacar.com\/en\/bookings?step=2#bodyreserva\" class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;\">\n        <div class=\"error-div\" id=\"error-div\"><\/div>\n          <div class=\"w2r_main_data col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;margin-top:20px;margin-bottom: 20px;\">\n       \n            <!-- REGULAR -->\n                <div class=\"row form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 \" style=\"padding-left:0;padding-right:0;\">\n                    \n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12\">\n                            \n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Pick up Location<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"pickup\" id=\"pickup\" class=\"form-control\">\n                                <option value=\"5\">Aeroporto S\u00e1 Carneiro<\/option><option value=\"2\">Amarante - Terminal Rodovi\u00e1rio <\/option><option value=\"1\">Lixa - Av. do Alto da Lixa<\/option><option value=\"4\">Marco Canavezes - Esta\u00e7\u00e3o CP<\/option><option value=\"3\">Vila-Me\u00e3 - Esta\u00e7\u00e3o CP<\/option>                                <\/select>\n                                <span ><i class=\"fa fa-map-marker\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"\/icon_localizacao.png\">--><\/span>                        \n                            <\/div>\n                        <\/div>\n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Pick up date<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <input name=\"pickup_date\"  id=\"pickup_date\" type=\"text\" onfocus=\"blur();\" class=\"form-control\" value=\"2026-04-25\" autocomplete=\"off\"\/>\n                                <span><i class=\"fa fa-calendar\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"\/icon_calendario.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">        \n                                <label>Pick up hour<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"pickup_hour\"  id=\"pickup_hour\" style=\"z-index: 111111111;\" class=\"form-control\"  value=\"15:00\" autocomplete=\"off\"\/>\n                                <\/select>\n                                <span><i class=\"far fa-clock\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"\/icon_relogio.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                    <\/div>\n                    \n                  \n                  \n                  <!-- Dropoff-->\n                  \n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Drop off Location<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"dropoff\" id=\"dropoff\" class=\"form-control\">\n                                    <option value=\"5\">Aeroporto S\u00e1 Carneiro<\/option><option value=\"2\">Amarante - Terminal Rodovi\u00e1rio <\/option><option value=\"1\">Lixa - Av. do Alto da Lixa<\/option><option value=\"4\">Marco Canavezes - Esta\u00e7\u00e3o CP<\/option><option value=\"3\">Vila-Me\u00e3 - Esta\u00e7\u00e3o CP<\/option>                                <\/select>\n                                <span ><i class=\"fa fa-map-marker\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"\/icon_localizacao.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                        \n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                    <label>Drop off date<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <input name=\"dropoff_date\" id=\"dropoff_date\" type=\"text\" onfocus=\"blur();\" class=\"form-control\" value=\"2026-04-28\" autocomplete=\"off\"\/>\n                                <span><i class=\"fa fa-calendar\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"\/icon_calendario.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                        \n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Drop off hour<\/label>\n                            <\/div>   \n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"dropoff_hour\" id=\"dropoff_hour\" class=\"form-control\"  value=\"11:00\" autocomplete=\"off\"\/>\n                                <\/select>\n                                <span><i class=\"far fa-clock\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"\/icon_relogio.png\">--><\/span>\n                            <\/div>  \n                        <\/div>          \n                    <\/div>\n                    \n                       \n                <\/div>\n                  \n\n                <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 button_next\">\n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"margin-top:20px;\">\n                        <button type=\"button\" onclick=\"nextStep()\" class=\"btn btn-primary steps_button\">See availabilities<\/button>\n                    <\/div>\n                <\/div>\n                <input type=\"hidden\" name=\"step\" value=\"2\"\/>\n            \n            <\/div>\n            \n    <\/form>\n  <\/div>\n<\/div>    \n            <script>\n                    way2rentals.jQuery(function(){\n                        way2rentals.jQuery.datetimepicker.setLocale('en');\n                        way2rentals.jQuery( \"#pickup_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n                        way2rentals.jQuery( \"#dropoff_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n                    });\n            <\/script>\n            \t\n\n<script>\n\nwindow.history.pushState(null, \"\", window.location.href);\n\nwindow.onpopstate = function () {\n\n    window.history.pushState(null, \"\", window.location.href);\n\n};\n\n\n\nway2rentals.jQuery(\"#pickup_date\").on(\"keydown\", function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery(\"#dropoff_date\").on(\"keydown\", function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery('#pickup_hour').on('keydown', function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery('#dropoff_hour').on('keydown', function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery(function(){\n    way2rentals.jQuery( \"#pickup_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n    way2rentals.jQuery( \"#dropoff_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n    way2rentals.jQuery('#transition_loader').fadeOut();\n\n    \/*setTimeout(function(){ \n        showPopUp('Aten\u00e7\u00e3o!','Esta p\u00e1gina est\u00e1 a ser visitada por mais  utilizadores'); \n    }, 4000);*\/\n    \n});\n\n\n\nway2rentals.jQuery(\"#pickup\").change(function() {\n     \n\tvar date = new Date(way2rentals.jQuery(\"#pickup_date\").val());\n\tnonWorkingDatesPickup(date);\n});\n\nway2rentals.jQuery(\"#dropoff\").change(function() {\n    \n    var date = new Date(way2rentals.jQuery(\"#dropoff_date\").val());\n    nonWorkingDatesDropoff(date);\n});\n\nway2rentals.jQuery(\"#pickup_date\").change(function() {\n\t \n    if (way2rentals.jQuery('#dropoff_date').val() < way2rentals.jQuery(\"#pickup_date\").val()) {\n       \n    \tvar date = new Date(way2rentals.jQuery(\"#pickup_date\").val());\n        date.setDate(date.getDate() + 1);\n        \n        while (nonWorkingDatesPickup(date)[0] != true) {\n        \tdate.setDate(date.getDate() + 1);\n        }\n        way2rentals.jQuery('#dropoff_date').val(date.toInputFormat());\n    }\n});\n\nDate.prototype.toInputFormat = function() {\n    var yyyy = this.getFullYear().toString();\n    var mm = (this.getMonth()+1).toString(); \/\/ getMonth() is zero-based\n    var dd  = this.getDate().toString();\n    return yyyy + \"-\" + (mm[1]?mm:\"0\"+mm[0]) + \"-\" + (dd[1]?dd:\"0\"+dd[0]); \/\/ padding\n };\n\nfunction nextStep(){\n    var check_dates_filledup = checkData(['pickup_date','dropoff_date', 'pickup_hour', 'dropoff_hour', 'pickup','dropoff']);\n    var check_dates = checkDates('pickup_date','dropoff_date','pickup_hour','dropoff_hour');\n    \/\/var check_dates_range = checkDateRange('pickup_date','dropoff_date','pickup_hour','dropoff_hour');\n    var check_saturdays = checkSaturdays('pickup_date','dropoff_date','pickup_hour','dropoff_hour');\n    var next=true;\n    \n    if(check_dates_filledup == false){\n        next=false;\n        addError(\"- Please make sure all fields are full.<br>\");\n    }\n    \n    if (check_dates == false) {\n        next=false;\n        addError(\"- Please make sure that the pickup date is not longer than the dropoff date and less than the current date.<br>\");\n    }\n    \n    \/*if (check_dates_range == false) {\n        next=false;\n        addError('<br>');\n    }*\/\n\n    if(next == true){\n    \tway2rentals.jQuery('body').append('<div id=\"transition_loader2\" class=\"loading-w2r\">Loading &#8230;<\/div>');\n    \t\/\/way2rentals.jQuery('#w2rForm').submit();\n    \twp.ajax.post( \"w2r_check_schedules_request\", {\n            pickup: way2rentals.jQuery('#pickup').val(),\n            dropoff: way2rentals.jQuery('#dropoff').val(),\n            pickup_date: way2rentals.jQuery('#pickup_date').val(),\n            pickup_hour: way2rentals.jQuery('#pickup_hour').val(),\n            dropoff_date: way2rentals.jQuery('#dropoff_date').val(),\n            dropoff_hour: way2rentals.jQuery('#dropoff_hour').val(),            \n            agreewithage: way2rentals.jQuery('#agreewithage').is(\":checked\")\n            \n        }).done(function(response) {\n        \tresponse = way2rentals.jQuery.parseJSON(response);\n\n            if(response.success == 1){\n                \n\n                way2rentals.jQuery('#w2rForm').submit();\n\n            } else if(response.success == 2) {\n\n                way2rentals.jQuery('#transition_loader').fadeOut();\n                way2rentals.jQuery('#transition_loader2').remove();\n                ConfirmDialog(response.error);\n\n            }else{\n\n            \tway2rentals.jQuery('#transition_loader').fadeOut();\n                way2rentals.jQuery('#transition_loader2').remove();\n            \taddError(response.error);\n\n            }\n    \t});\n    }\n}\n\nfunction ConfirmDialog(message) {\n\n      way2rentals.jQuery('<div><\/div>').appendTo('body')\n\n        .html('<div><p>' + message + '<\/p><\/div>')\n\n        .dialog({\n\n          modal: true,\n\n          title: '',\n\n          zIndex: 10000,\n\n          autoOpen: true,\n\n          width: 'auto',\n\n          resizable: false,\n\n          buttons: {\n\n            \n\n            Cancel: function() {\n\n\n\n              way2rentals.jQuery(this).dialog(\"close\");\n\n            },\n\n            Confirm: function() {\n\n              way2rentals.jQuery('#w2rForm').submit();\n\n\n\n              way2rentals.jQuery(this).dialog(\"close\");\n\n            }\n\n          },\n\n          close: function(event, ui) {\n\n            way2rentals.jQuery(this).remove();\n\n          }\n\n        });\n\n    };\n\nvar entity_out =way2rentals.jQuery.parseJSON('{\"4\":{\"id_local\":\"5\",\"designation\":\"Aeroporto S\\u00e1 Carneiro\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Aeroporto S\\u00e1 Carneiro\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"1\":{\"id_local\":\"2\",\"designation\":\"Amarante - Terminal Rodovi\\u00e1rio \",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Amarante - Terminal Rodovi\\u00e1rio \",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"0\":{\"id_local\":\"1\",\"designation\":\"Lixa - Av. do Alto da Lixa\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Lixa - Av. do Alto da Lixa\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"3\":{\"id_local\":\"4\",\"designation\":\"Marco Canavezes - Esta\\u00e7\\u00e3o CP\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Marco Canavezes - Esta\\u00e7\\u00e3o CP\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"2\":{\"id_local\":\"3\",\"designation\":\"Vila-Me\\u00e3 - Esta\\u00e7\\u00e3o CP\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Vila-Me\\u00e3 - Esta\\u00e7\\u00e3o CP\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}}}');\nvar entity_in =way2rentals.jQuery.parseJSON('{\"4\":{\"id_local\":\"5\",\"designation\":\"Aeroporto S\\u00e1 Carneiro\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Aeroporto S\\u00e1 Carneiro\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"1\":{\"id_local\":\"2\",\"designation\":\"Amarante - Terminal Rodovi\\u00e1rio \",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Amarante - Terminal Rodovi\\u00e1rio \",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"0\":{\"id_local\":\"1\",\"designation\":\"Lixa - Av. do Alto da Lixa\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Lixa - Av. do Alto da Lixa\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"3\":{\"id_local\":\"4\",\"designation\":\"Marco Canavezes - Esta\\u00e7\\u00e3o CP\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Marco Canavezes - Esta\\u00e7\\u00e3o CP\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"2\":{\"id_local\":\"3\",\"designation\":\"Vila-Me\\u00e3 - Esta\\u00e7\\u00e3o CP\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Vila-Me\\u00e3 - Esta\\u00e7\\u00e3o CP\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}}}');\nvar allowed_times_pickup = [];\nvar allowed_times_dropoff = [];\n\n\n    function nonWorkingDatesPickup(date){\n    \tvar day = date.getDay();\n        var closedDates = ['2019-11-12'];\n        var selected_date = way2rentals.jQuery('#pickup_date').val();\n     \n        var selected_station = way2rentals.jQuery('#pickup').val();\n        var closedDays = [];\n        \n        var from = way2rentals.jQuery(\"#pickup_date\").val().split(\"-\");\n        var aux = new Date(from[0], from[1] - 1, from[2]);\n        var day_aux = aux.getDay();\n        \n        allowed_times_pickup = [];\n        way2rentals.jQuery.each( entity_out, function( key, value ) {\n        \tvar aux_is_this_entity = false;\n        \t\n            if('id_local' == 'stationid'){\n                if (value.stationid == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }else{\n                if (value.id_local == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }\n            \n            if (aux_is_this_entity == true) {\n            \t\n                way2rentals.jQuery.each( value.schedule.working_hours, function( key2, value2 ) {\n                    \n                    switch(day_aux) {\n                        case 1:\n                            if(key2 == 'seg'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 2:\n                            if(key2 == 'ter'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 3:\n                            if(key2 == 'qua'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 4:\n                            if(key2 == 'qui'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 5:\n                            if(key2 == 'sex'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 6:\n                            if(key2 == 'sab'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 0:\n                            if(key2 == 'dom'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 7:\n                            if(key2 == 'dom'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                    }\n                });\n                \n                \n                addOptionsToTimeField('pickup_hour', allowed_times_pickup);\n\n                way2rentals.jQuery.each( value.open_days, function( day_abreviation, status ) {\n                  if(status == 0){\n                      switch(day_abreviation) {\n                            case \"sun\":\n                            closedDays.push([0]);\n                            break\n                            case \"mon\":\n                            closedDays.push([1]);\n                            break\n                            case \"tue\":\n                            closedDays.push([2]);\n                            break\n                            case \"wed\":\n                            closedDays.push([3]);\n                            break\n                            case \"thu\":\n                            closedDays.push([4]);\n                            break\n                            case \"fri\":\n                            closedDays.push([5]);\n                            break\n                             case \"sat\":\n                            closedDays.push([6]);\n                            break\n                        }\n                  }\n              });\n                  \n             }\n        })\n        \n        var holidays = way2rentals.jQuery.parseJSON('[]');\n        \n        var datestring = way2rentals.jQuery.datepicker.formatDate('yy-mm-dd', date);\n        if(holidays.indexOf(datestring) != -1){\n            return [false];\n        }\n        \n        \n        for (var i = 0; i < closedDays.length; i++) {\n            if (day == closedDays[i][0]) {\n                return [false];\n            }\n\n        }\n\n        for (i = 0; i < closedDates.length; i++) {\n            if (date.getMonth() == closedDates[i][0] - 1 &&\n            date.getDate() == closedDates[i][1] &&\n            date.getFullYear() == closedDates[i][2]) {\n                return [false];\n            }\n        }\n\n        return [true];\n    }\n\n    function nonWorkingDatesDropoff(date){\n       var day = date.getDay();\n        var closedDates = [];\n        \n        var selected_station = way2rentals.jQuery('#dropoff').val();\n        var closedDays = [];\n        var from = way2rentals.jQuery(\"#dropoff_date\").val().split(\"-\");\n        var aux = new Date(from[0], from[1] - 1, from[2]);\n        var day_aux = aux.getDay();\n        \n        allowed_times_dropoff = [];\n        way2rentals.jQuery.each( entity_in, function( key, value ) {\n        \tvar aux_is_this_entity = false;\n            if('id_local' == 'stationid'){\n                if (value.stationid == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }else{\n                if (value.id_local == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }\n            \n            if (aux_is_this_entity == true) {\n            console.log(day_aux);\n                way2rentals.jQuery.each( value.schedule.working_hours, function( key2, value2 ) {\n                    switch(day_aux) {\n                        case 1:\n                            if(key2 == 'seg'){\n                            \n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 2:\n                            if(key2 == 'ter'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 3:\n                            if(key2 == 'qua'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 4:\n                            if(key2 == 'qui'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 5:\n                            if(key2 == 'sex'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 6:\n                            if(key2 == 'sab'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 0:\n                        \n                            if(key2 == 'dom'){\n                            \n                            \n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 7:\n                        \n                            if(key2 == 'dom'){\n                            \n                            \n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                    }\n                });\n                \n                addOptionsToTimeField('dropoff_hour', allowed_times_dropoff);\n                \n                way2rentals.jQuery.each( value.open_days, function( day_abreviation, status ) {\n                  if(status == 0){\n                      switch(day_abreviation) {\n                            case \"sun\":\n                            closedDays.push([0]);\n                            break\n                            case \"mon\":\n                            closedDays.push([1]);\n                            break\n                            case \"tue\":\n                            closedDays.push([2]);\n                            break\n                            case \"wed\":\n                            closedDays.push([3]);\n                            break\n                            case \"thu\":\n                            closedDays.push([4]);\n                            break\n                            case \"fri\":\n                            closedDays.push([5]);\n                            break\n                             case \"sat\":\n                            closedDays.push([6]);\n                            break\n                        }\n                  }\n              });\n                  \n             }\n        })\n        \n        \n        var holidays = way2rentals.jQuery.parseJSON('[]');\n        \n        var datestring = way2rentals.jQuery.datepicker.formatDate('yy-mm-dd', date);\n        if(holidays.indexOf(datestring) != -1){\n            return [false];\n        }\n        \n        for (var i = 0; i < closedDays.length; i++) {\n            if (day == closedDays[i][0]) {\n                return [false];\n            }\n    \n        }\n    \n        for (i = 0; i < closedDates.length; i++) {\n            if (date.getMonth() == closedDates[i][0] - 1 &&\n            date.getDate() == closedDates[i][1] &&\n            date.getFullYear() == closedDates[i][2]) {\n                return [false];\n            }\n        }\n    \n        return [true];\n    }\n\n    way2rentals.jQuery('#pickup_date').datetimepicker({\n        format:\t'Y-m-d',\n        beforeShowDay: nonWorkingDatesPickup,\n        timepicker:false,\n        minDate:'+1970\/01\/01',\n        onShow:function( ct ){\n        this.setOptions({\n            maxDate: false,\n        })\n        }\n    });\n    \n    way2rentals.jQuery('#dropoff_date').datetimepicker({\n        format:'Y-m-d',\n        timepicker:false,\n        beforeShowDay: nonWorkingDatesDropoff,\n        minDate:'+1970\/01\/01',\n        onShow:function( ct ){\n        this.setOptions({\n        \tminDate:jQuery('#pickup_date').val()?jQuery('#pickup_date').val():false,\n        })\n        }\n    });\n\n    \/*way2rentals.jQuery('#pickup_hour').datetimepicker({\n        format: 'H:i',\n        datepicker: false,\n        timepicker:true,\n        closeOnTimeSelect: false,\n        closeOnWithoutClick: true,\n        onShow:function( ct ){\n            this.setOptions({\n                maxDate: false,\n                allowTimes: allowed_times_pickup,\n           })\n        }\n    });\n\n    way2rentals.jQuery('#dropoff_hour').datetimepicker({\n        format: 'H:i',\n        datepicker: false,\n        timepicker:true,\n        closeOnTimeSelect: false,\n        closeOnWithoutClick: true,\n        onShow:function( ct ){\n            this.setOptions({\n                maxDate: false,\n                allowTimes: allowed_times_dropoff,\n           })\n        }\n    });*\/\n\n    function addOptionsToTimeField(field, options){\n        way2rentals.jQuery('#'+field).empty();\n        var selected = '';\n        switch(field) {\n            case 'pickup_hour':\n                if('0' == '1'){\n                    selected = '0';\n                }else{\n                    selected = '15:00';\n                }\n            break\n            case 'dropoff_hour':\n                if('0' == '1'){\n                    \n                    selected = '0';\n                }else{\n                    selected = '11:00';\n                }\n            break\n        }\n\n        for (var i = 0; i < options.length; i++) {\n\n            var time = options[i];\n            var aux = options[i].split(':');\n        \n            if(aux[0].length == 1){\n                time = '0'+aux[0]+':'+aux[1];\n            }\n\n            if(time == selected){\n                way2rentals.jQuery('#'+field).append('<option selected value=\"'+time+'\">'+time+'<\/option>');\n            } else {\n                way2rentals.jQuery('#'+field).append('<option value=\"'+time+'\">'+time+'<\/option>');\n            }\n        }\n\n    }\n<\/script>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.4&#8243; custom_padding=&#8221;34px||34px|||&#8221; custom_css_main_element=&#8221;z-index:0;&#8221; border_width_top=&#8221;4px&#8221; border_color_top=&#8221;#CDA95F&#8221; global_module=&#8221;195&#8243; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row column_structure=&#8221;1_3,1_3,1_3&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;1_3&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.27.4&#8243; header_text_color=&#8221;#CDA95F&#8221; header_3_font=&#8221;|700|||||||&#8221; header_3_text_color=&#8221;#CDA95F&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h3>About CLS Rent-a-Car<\/h3>\n<p>At <strong>CLS Rent-a-Car<\/strong>, <strong>every journey begins with confidence<\/strong>. We are more than just a car hire company: we are partners in your freedom, ready to make every journey simple, safe and memorable.<\/p>\n<p>Every car you choose, every service you use, every detail of your journey is handled with <strong>care and transparency<\/strong>.<\/p>\n<p>[\/et_pb_text][et_pb_social_media_follow _builder_version=&#8221;4.27.4&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_social_media_follow_network social_network=&#8221;facebook&#8221; _builder_version=&#8221;4.27.4&#8243; background_color=&#8221;#CDA95F&#8221; background_enable_color=&#8221;on&#8221; border_radii=&#8221;on|37px|37px|37px|37px&#8221; global_colors_info=&#8221;{}&#8221; follow_button=&#8221;off&#8221; url_new_window=&#8221;on&#8221;]facebook[\/et_pb_social_media_follow_network][et_pb_social_media_follow_network social_network=&#8221;instagram&#8221; _builder_version=&#8221;4.27.4&#8243; background_color=&#8221;#CDA95F&#8221; background_enable_color=&#8221;on&#8221; border_radii=&#8221;on|37px|37px|37px|37px&#8221; global_colors_info=&#8221;{}&#8221; follow_button=&#8221;off&#8221; url_new_window=&#8221;on&#8221;]instagram[\/et_pb_social_media_follow_network][\/et_pb_social_media_follow][\/et_pb_column][et_pb_column type=&#8221;1_3&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.27.4&#8243; link_text_color=&#8221;#000000&#8243; header_3_font=&#8221;|700|||||||&#8221; header_3_text_color=&#8221;#CDA95F&#8221; custom_margin=&#8221;||1px|||&#8221; global_colors_info=&#8221;{}&#8221; link_text_color__hover_enabled=&#8221;on|hover&#8221; link_text_color__hover=&#8221;#009731&#8243;]<\/p>\n<h3>Useful Links<\/h3>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.4&#8243; _dynamic_attributes=&#8221;link_option_url&#8221; text_text_color=&#8221;#292929&#8243; header_5_font=&#8221;|600|||||||&#8221; custom_margin=&#8221;||12px|||&#8221; link_option_url=&#8221;@ET-DC@eyJkeW5hbWljIjp0cnVlLCJjb250ZW50IjoicG9zdF9saW5rX3VybF9wYWdlIiwic2V0dGluZ3MiOnsicG9zdF9pZCI6IjUxNyJ9fQ==@&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>Faq&#8217;s<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.4&#8243; _dynamic_attributes=&#8221;link_option_url&#8221; text_text_color=&#8221;#292929&#8243; header_5_font=&#8221;|600|||||||&#8221; custom_margin=&#8221;||12px|||&#8221; link_option_url=&#8221;@ET-DC@eyJkeW5hbWljIjp0cnVlLCJjb250ZW50IjoicG9zdF9saW5rX3VybF9wYWdlIiwic2V0dGluZ3MiOnsicG9zdF9pZCI6IjUxNSJ9fQ==@&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>Terms and Conditions<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.4&#8243; _dynamic_attributes=&#8221;link_option_url&#8221; text_text_color=&#8221;#292929&#8243; header_5_font=&#8221;|600|||||||&#8221; link_option_url=&#8221;@ET-DC@eyJkeW5hbWljIjp0cnVlLCJjb250ZW50IjoicG9zdF9saW5rX3VybF9wYWdlIiwic2V0dGluZ3MiOnsicG9zdF9pZCI6IjQ1OCJ9fQ==@&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>Cookie Policy<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/clsrentacar.com\/wp-content\/uploads\/2020\/05\/livro_reclamacoes.png&#8221; title_text=&#8221;livro_reclamacoes&#8221; url=&#8221;https:\/\/www.livroreclamacoes.pt\/inicio&#8221; url_new_window=&#8221;on&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][\/et_pb_column][et_pb_column type=&#8221;1_3&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.27.4&#8243; link_text_color=&#8221;#000000&#8243; header_3_font=&#8221;|700|||||||&#8221; header_3_text_color=&#8221;#CDA95F&#8221; global_colors_info=&#8221;{}&#8221; link_text_color__hover_enabled=&#8221;on|hover&#8221; link_text_color__hover=&#8221;#009731&#8243;]<\/p>\n<h3>Contacts<\/h3>\n<p>Avenida do Alto da Lixa, n\u00ba 1592, 4615-480 Lixa, Portugal<\/p>\n<p><span>Phone:<\/span><span> <\/span>+351 xxx xxx xx<\/p>\n<p><span>E-Mail:<\/span><span> <\/span><a href=\"mailto:geral@clsrentacar.pt\">geral@clsrentacar.pt<\/a><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.4&#8243; text_text_color=&#8221;#CDA95F&#8221; header_5_font=&#8221;|600|||||||&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h5>Payment methods:<\/h5>\n<p><i class=\"fas fa-credit-card fa-2x\"><\/i><i class=\"fab fa-cc-visa fa-2x\" style=\"padding-left: 0.2em;\"><\/i><i class=\"fab fa-cc-mastercard fa-2x\" style=\"padding-left: 0.2em;\"><\/i><i class=\"fas fa-money-bill-wave fa-2x\" style=\"padding-left: 0.2em;\"><\/i><i class=\"fab fa-cc-paypal fa-2x\" style=\"padding-left: 0.2em;\"><\/i><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.4&#8243; background_color=&#8221;#CDA95F&#8221; custom_padding=&#8221;0px||0px|||&#8221; global_module=&#8221;196&#8243; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row column_structure=&#8221;1_2,1_2&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.27.4&#8243; _dynamic_attributes=&#8221;content&#8221; text_text_color=&#8221;#ffffff&#8221; link_text_align=&#8221;left&#8221; link_text_color=&#8221;#ffffff&#8221; link_text_align_tablet=&#8221;center&#8221; link_text_align_phone=&#8221;center&#8221; link_text_align_last_edited=&#8221;on|tablet&#8221; text_orientation_tablet=&#8221;center&#8221; text_orientation_phone=&#8221;center&#8221; text_orientation_last_edited=&#8221;on|phone&#8221; global_colors_info=&#8221;{}&#8221;]@ET-DC@eyJkeW5hbWljIjp0cnVlLCJjb250ZW50IjoiY3VycmVudF9kYXRlIiwic2V0dGluZ3MiOnsiYmVmb3JlIjoiXHUwMGE5ICIsImFmdGVyIjoiIENMUyBSZW50LWEtQ2FyLiBBbGwgcmlnaHRzIHJlc2VydmVkLiIsImRhdGVfZm9ybWF0IjoiY3VzdG9tIiwiY3VzdG9tX2RhdGVfZm9ybWF0IjoiWSJ9fQ==@[\/et_pb_text][\/et_pb_column][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; text_text_color=&#8221;#ffffff&#8221; link_text_align=&#8221;right&#8221; link_text_color=&#8221;#ffffff&#8221; text_orientation=&#8221;right&#8221; link_text_align_tablet=&#8221;center&#8221; link_text_align_phone=&#8221;center&#8221; link_text_align_last_edited=&#8221;on|tablet&#8221; text_orientation_tablet=&#8221;center&#8221; text_orientation_phone=&#8221;center&#8221; text_orientation_last_edited=&#8221;on|desktop&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p><span>Development: <\/span><a href=\"http:\/\/www.w4msolutions.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">W4M DIGITAL SOLUTIONS<\/a><span> | Design<\/span><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BOOKINGS<!--<div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 w2r_titulo\">\n  <h3><\/h3>\n<\/div>-->\n  \n<div id=\"bodyreserva\" class=\"bodyreserva2 col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"background: rgba(255,255,255,0.6);height: auto;margin-bottom:40px;\">\n  <div class=\"w2r_main_nav col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding:10px;\">\n      <div class=\"selected\"><a href=\"javascript:void(0)\">1.Date and Location<\/a><\/div>\n      <div class=\"w2r_disable\"><a href=\"javascript:void(0)\">2.Vehicle<\/a><\/div>\n      <div class=\"w2r_disable\"><a href=\"javascript:void(0)\">3.Insurances and Extras<\/a><\/div>\n      <div class=\"w2r_disable\"><a href=\"javascript:void(0)\">4.Get Quote \/ Book<\/a><\/div>\n  <\/div>\n  <!--<div class=\"<\/\/?=$cssClass?>col-lg-12 <\/\/?=$cssClass?>col-md-12 <\/\/?=$cssClass?>col-sm-12 <\/\/?=$cssClass?>col-xs-12 w2r_header\">\n    <h4 style=\"margin-top:10px;margin-bottom:10px;\"><\/\/?=$lang[$l]['book_now']?><\/h4>\n  <\/div>-->\n  <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 w2r_main\" style=\"padding-left:0;padding-right:0;margin-top:20px;\">\n    \n      <form  method=\"post\" id=\"w2rForm\" name=\"w2rForm\" action=\"https:\/\/clsrentacar.com\/en\/bookings?step=2#bodyreserva\" class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;\">\n        <div class=\"error-div\" id=\"error-div\"><\/div>\n          <div class=\"w2r_main_data col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;margin-top:20px;margin-bottom: 20px;\">\n       \n            <!-- REGULAR -->\n                <div class=\"row form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 \" style=\"padding-left:0;padding-right:0;\">\n                    \n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12\">\n                            \n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Pick up Location<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"pickup\" id=\"pickup\" class=\"form-control\">\n                                <option value=\"5\">Aeroporto S\u00e1 Carneiro<\/option><option value=\"2\">Amarante - Terminal Rodovi\u00e1rio <\/option><option value=\"1\">Lixa - Av. do Alto da Lixa<\/option><option value=\"4\">Marco Canavezes - Esta\u00e7\u00e3o CP<\/option><option value=\"3\">Vila-Me\u00e3 - Esta\u00e7\u00e3o CP<\/option>                                <\/select>\n                                <span ><i class=\"fa fa-map-marker\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"\/icon_localizacao.png\">--><\/span>                        \n                            <\/div>\n                        <\/div>\n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Pick up date<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <input name=\"pickup_date\"  id=\"pickup_date\" type=\"text\" onfocus=\"blur();\" class=\"form-control\" value=\"2026-04-25\" autocomplete=\"off\"\/>\n                                <span><i class=\"fa fa-calendar\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"\/icon_calendario.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">        \n                                <label>Pick up hour<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"pickup_hour\"  id=\"pickup_hour\" style=\"z-index: 111111111;\" class=\"form-control\"  value=\"15:00\" autocomplete=\"off\"\/>\n                                <\/select>\n                                <span><i class=\"far fa-clock\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"\/icon_relogio.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                    <\/div>\n                    \n                  \n                  \n                  <!-- Dropoff-->\n                  \n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Drop off Location<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"dropoff\" id=\"dropoff\" class=\"form-control\">\n                                    <option value=\"5\">Aeroporto S\u00e1 Carneiro<\/option><option value=\"2\">Amarante - Terminal Rodovi\u00e1rio <\/option><option value=\"1\">Lixa - Av. do Alto da Lixa<\/option><option value=\"4\">Marco Canavezes - Esta\u00e7\u00e3o CP<\/option><option value=\"3\">Vila-Me\u00e3 - Esta\u00e7\u00e3o CP<\/option>                                <\/select>\n                                <span ><i class=\"fa fa-map-marker\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"\/icon_localizacao.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                        \n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                    <label>Drop off date<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <input name=\"dropoff_date\" id=\"dropoff_date\" type=\"text\" onfocus=\"blur();\" class=\"form-control\" value=\"2026-04-28\" autocomplete=\"off\"\/>\n                                <span><i class=\"fa fa-calendar\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"\/icon_calendario.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                        \n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Drop off hour<\/label>\n                            <\/div>   \n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"dropoff_hour\" id=\"dropoff_hour\" class=\"form-control\"  value=\"11:00\" autocomplete=\"off\"\/>\n                                <\/select>\n                                <span><i class=\"far fa-clock\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"\/icon_relogio.png\">--><\/span>\n                            <\/div>  \n                        <\/div>          \n                    <\/div>\n                    \n                       \n                <\/div>\n                  \n\n                <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 button_next\">\n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"margin-top:20px;\">\n                        <button type=\"button\" onclick=\"nextStep()\" class=\"btn btn-primary steps_button\">See availabilities<\/button>\n                    <\/div>\n                <\/div>\n                <input type=\"hidden\" name=\"step\" value=\"2\"\/>\n            \n            <\/div>\n            \n    <\/form>\n  <\/div>\n<\/div>    \n            <script>\n                    way2rentals.jQuery(function(){\n                        way2rentals.jQuery.datetimepicker.setLocale('en');\n                        way2rentals.jQuery( \"#pickup_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n                        way2rentals.jQuery( \"#dropoff_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n                    });\n            <\/script>\n            \t\n\n<script>\n\nwindow.history.pushState(null, \"\", window.location.href);\n\nwindow.onpopstate = function () {\n\n    window.history.pushState(null, \"\", window.location.href);\n\n};\n\n\n\nway2rentals.jQuery(\"#pickup_date\").on(\"keydown\", function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery(\"#dropoff_date\").on(\"keydown\", function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery('#pickup_hour').on('keydown', function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery('#dropoff_hour').on('keydown', function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery(function(){\n    way2rentals.jQuery( \"#pickup_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n    way2rentals.jQuery( \"#dropoff_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n    way2rentals.jQuery('#transition_loader').fadeOut();\n\n    \/*setTimeout(function(){ \n        showPopUp('Aten\u00e7\u00e3o!','Esta p\u00e1gina est\u00e1 a ser visitada por mais  utilizadores'); \n    }, 4000);*\/\n    \n});\n\n\n\nway2rentals.jQuery(\"#pickup\").change(function() {\n     \n\tvar date = new Date(way2rentals.jQuery(\"#pickup_date\").val());\n\tnonWorkingDatesPickup(date);\n});\n\nway2rentals.jQuery(\"#dropoff\").change(function() {\n    \n    var date = new Date(way2rentals.jQuery(\"#dropoff_date\").val());\n    nonWorkingDatesDropoff(date);\n});\n\nway2rentals.jQuery(\"#pickup_date\").change(function() {\n\t \n    if (way2rentals.jQuery('#dropoff_date').val() < way2rentals.jQuery(\"#pickup_date\").val()) {\n       \n    \tvar date = new Date(way2rentals.jQuery(\"#pickup_date\").val());\n        date.setDate(date.getDate() + 1);\n        \n        while (nonWorkingDatesPickup(date)[0] != true) {\n        \tdate.setDate(date.getDate() + 1);\n        }\n        way2rentals.jQuery('#dropoff_date').val(date.toInputFormat());\n    }\n});\n\nDate.prototype.toInputFormat = function() {\n    var yyyy = this.getFullYear().toString();\n    var mm = (this.getMonth()+1).toString(); \/\/ getMonth() is zero-based\n    var dd  = this.getDate().toString();\n    return yyyy + \"-\" + (mm[1]?mm:\"0\"+mm[0]) + \"-\" + (dd[1]?dd:\"0\"+dd[0]); \/\/ padding\n };\n\nfunction nextStep(){\n    var check_dates_filledup = checkData(['pickup_date','dropoff_date', 'pickup_hour', 'dropoff_hour', 'pickup','dropoff']);\n    var check_dates = checkDates('pickup_date','dropoff_date','pickup_hour','dropoff_hour');\n    \/\/var check_dates_range = checkDateRange('pickup_date','dropoff_date','pickup_hour','dropoff_hour');\n    var check_saturdays = checkSaturdays('pickup_date','dropoff_date','pickup_hour','dropoff_hour');\n    var next=true;\n    \n    if(check_dates_filledup == false){\n        next=false;\n        addError(\"- Please make sure all fields are full.<br>\");\n    }\n    \n    if (check_dates == false) {\n        next=false;\n        addError(\"- Please make sure that the pickup date is not longer than the dropoff date and less than the current date.<br>\");\n    }\n    \n    \/*if (check_dates_range == false) {\n        next=false;\n        addError('<br>');\n    }*\/\n\n    if(next == true){\n    \tway2rentals.jQuery('body').append('<div id=\"transition_loader2\" class=\"loading-w2r\">Loading &#8230;<\/div>');\n    \t\/\/way2rentals.jQuery('#w2rForm').submit();\n    \twp.ajax.post( \"w2r_check_schedules_request\", {\n            pickup: way2rentals.jQuery('#pickup').val(),\n            dropoff: way2rentals.jQuery('#dropoff').val(),\n            pickup_date: way2rentals.jQuery('#pickup_date').val(),\n            pickup_hour: way2rentals.jQuery('#pickup_hour').val(),\n            dropoff_date: way2rentals.jQuery('#dropoff_date').val(),\n            dropoff_hour: way2rentals.jQuery('#dropoff_hour').val(),            \n            agreewithage: way2rentals.jQuery('#agreewithage').is(\":checked\")\n            \n        }).done(function(response) {\n        \tresponse = way2rentals.jQuery.parseJSON(response);\n\n            if(response.success == 1){\n                \n\n                way2rentals.jQuery('#w2rForm').submit();\n\n            } else if(response.success == 2) {\n\n                way2rentals.jQuery('#transition_loader').fadeOut();\n                way2rentals.jQuery('#transition_loader2').remove();\n                ConfirmDialog(response.error);\n\n            }else{\n\n            \tway2rentals.jQuery('#transition_loader').fadeOut();\n                way2rentals.jQuery('#transition_loader2').remove();\n            \taddError(response.error);\n\n            }\n    \t});\n    }\n}\n\nfunction ConfirmDialog(message) {\n\n      way2rentals.jQuery('<div><\/div>').appendTo('body')\n\n        .html('<div><p>' + message + '<\/p><\/div>')\n\n        .dialog({\n\n          modal: true,\n\n          title: '',\n\n          zIndex: 10000,\n\n          autoOpen: true,\n\n          width: 'auto',\n\n          resizable: false,\n\n          buttons: {\n\n            \n\n            Cancel: function() {\n\n\n\n              way2rentals.jQuery(this).dialog(\"close\");\n\n            },\n\n            Confirm: function() {\n\n              way2rentals.jQuery('#w2rForm').submit();\n\n\n\n              way2rentals.jQuery(this).dialog(\"close\");\n\n            }\n\n          },\n\n          close: function(event, ui) {\n\n            way2rentals.jQuery(this).remove();\n\n          }\n\n        });\n\n    };\n\nvar entity_out =way2rentals.jQuery.parseJSON('{\"4\":{\"id_local\":\"5\",\"designation\":\"Aeroporto S\\u00e1 Carneiro\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Aeroporto S\\u00e1 Carneiro\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"1\":{\"id_local\":\"2\",\"designation\":\"Amarante - Terminal Rodovi\\u00e1rio \",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Amarante - Terminal Rodovi\\u00e1rio \",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"0\":{\"id_local\":\"1\",\"designation\":\"Lixa - Av. do Alto da Lixa\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Lixa - Av. do Alto da Lixa\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"3\":{\"id_local\":\"4\",\"designation\":\"Marco Canavezes - Esta\\u00e7\\u00e3o CP\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Marco Canavezes - Esta\\u00e7\\u00e3o CP\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"2\":{\"id_local\":\"3\",\"designation\":\"Vila-Me\\u00e3 - Esta\\u00e7\\u00e3o CP\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Vila-Me\\u00e3 - Esta\\u00e7\\u00e3o CP\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}}}');\nvar entity_in =way2rentals.jQuery.parseJSON('{\"4\":{\"id_local\":\"5\",\"designation\":\"Aeroporto S\\u00e1 Carneiro\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Aeroporto S\\u00e1 Carneiro\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"1\":{\"id_local\":\"2\",\"designation\":\"Amarante - Terminal Rodovi\\u00e1rio \",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Amarante - Terminal Rodovi\\u00e1rio \",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"0\":{\"id_local\":\"1\",\"designation\":\"Lixa - Av. do Alto da Lixa\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Lixa - Av. do Alto da Lixa\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"3\":{\"id_local\":\"4\",\"designation\":\"Marco Canavezes - Esta\\u00e7\\u00e3o CP\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Marco Canavezes - Esta\\u00e7\\u00e3o CP\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}},\"2\":{\"id_local\":\"3\",\"designation\":\"Vila-Me\\u00e3 - Esta\\u00e7\\u00e3o CP\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]},\"name\":\"Vila-Me\\u00e3 - Esta\\u00e7\\u00e3o CP\",\"address\":\"Av. do Alto da Lixa, n.\\u00ba 1592\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"21:00\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"19:00\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"ter\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qua\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"qui\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sex\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"19:00\",\"end\":\"21:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}],\"sab\":[{\"begin\":\"07:00\",\"end\":\"09:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"},{\"begin\":\"13:00\",\"end\":\"19:00\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"1\"}]}}}}');\nvar allowed_times_pickup = [];\nvar allowed_times_dropoff = [];\n\n\n    function nonWorkingDatesPickup(date){\n    \tvar day = date.getDay();\n        var closedDates = ['2019-11-12'];\n        var selected_date = way2rentals.jQuery('#pickup_date').val();\n     \n        var selected_station = way2rentals.jQuery('#pickup').val();\n        var closedDays = [];\n        \n        var from = way2rentals.jQuery(\"#pickup_date\").val().split(\"-\");\n        var aux = new Date(from[0], from[1] - 1, from[2]);\n        var day_aux = aux.getDay();\n        \n        allowed_times_pickup = [];\n        way2rentals.jQuery.each( entity_out, function( key, value ) {\n        \tvar aux_is_this_entity = false;\n        \t\n            if('id_local' == 'stationid'){\n                if (value.stationid == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }else{\n                if (value.id_local == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }\n            \n            if (aux_is_this_entity == true) {\n            \t\n                way2rentals.jQuery.each( value.schedule.working_hours, function( key2, value2 ) {\n                    \n                    switch(day_aux) {\n                        case 1:\n                            if(key2 == 'seg'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 2:\n                            if(key2 == 'ter'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 3:\n                            if(key2 == 'qua'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 4:\n                            if(key2 == 'qui'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 5:\n                            if(key2 == 'sex'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 6:\n                            if(key2 == 'sab'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 0:\n                            if(key2 == 'dom'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 7:\n                            if(key2 == 'dom'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                    }\n                });\n                \n                \n                addOptionsToTimeField('pickup_hour', allowed_times_pickup);\n\n                way2rentals.jQuery.each( value.open_days, function( day_abreviation, status ) {\n                  if(status == 0){\n                      switch(day_abreviation) {\n                            case \"sun\":\n                            closedDays.push([0]);\n                            break\n                            case \"mon\":\n                            closedDays.push([1]);\n                            break\n                            case \"tue\":\n                            closedDays.push([2]);\n                            break\n                            case \"wed\":\n                            closedDays.push([3]);\n                            break\n                            case \"thu\":\n                            closedDays.push([4]);\n                            break\n                            case \"fri\":\n                            closedDays.push([5]);\n                            break\n                             case \"sat\":\n                            closedDays.push([6]);\n                            break\n                        }\n                  }\n              });\n                  \n             }\n        })\n        \n        var holidays = way2rentals.jQuery.parseJSON('[]');\n        \n        var datestring = way2rentals.jQuery.datepicker.formatDate('yy-mm-dd', date);\n        if(holidays.indexOf(datestring) != -1){\n            return [false];\n        }\n        \n        \n        for (var i = 0; i < closedDays.length; i++) {\n            if (day == closedDays[i][0]) {\n                return [false];\n            }\n\n        }\n\n        for (i = 0; i < closedDates.length; i++) {\n            if (date.getMonth() == closedDates[i][0] - 1 &&\n            date.getDate() == closedDates[i][1] &&\n            date.getFullYear() == closedDates[i][2]) {\n                return [false];\n            }\n        }\n\n        return [true];\n    }\n\n    function nonWorkingDatesDropoff(date){\n       var day = date.getDay();\n        var closedDates = [];\n        \n        var selected_station = way2rentals.jQuery('#dropoff').val();\n        var closedDays = [];\n        var from = way2rentals.jQuery(\"#dropoff_date\").val().split(\"-\");\n        var aux = new Date(from[0], from[1] - 1, from[2]);\n        var day_aux = aux.getDay();\n        \n        allowed_times_dropoff = [];\n        way2rentals.jQuery.each( entity_in, function( key, value ) {\n        \tvar aux_is_this_entity = false;\n            if('id_local' == 'stationid'){\n                if (value.stationid == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }else{\n                if (value.id_local == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }\n            \n            if (aux_is_this_entity == true) {\n            console.log(day_aux);\n                way2rentals.jQuery.each( value.schedule.working_hours, function( key2, value2 ) {\n                    switch(day_aux) {\n                        case 1:\n                            if(key2 == 'seg'){\n                            \n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 2:\n                            if(key2 == 'ter'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 3:\n                            if(key2 == 'qua'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 4:\n                            if(key2 == 'qui'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 5:\n                            if(key2 == 'sex'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 6:\n                            if(key2 == 'sab'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 0:\n                        \n                            if(key2 == 'dom'){\n                            \n                            \n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 7:\n                        \n                            if(key2 == 'dom'){\n                            \n                            \n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                    }\n                });\n                \n                addOptionsToTimeField('dropoff_hour', allowed_times_dropoff);\n                \n                way2rentals.jQuery.each( value.open_days, function( day_abreviation, status ) {\n                  if(status == 0){\n                      switch(day_abreviation) {\n                            case \"sun\":\n                            closedDays.push([0]);\n                            break\n                            case \"mon\":\n                            closedDays.push([1]);\n                            break\n                            case \"tue\":\n                            closedDays.push([2]);\n                            break\n                            case \"wed\":\n                            closedDays.push([3]);\n                            break\n                            case \"thu\":\n                            closedDays.push([4]);\n                            break\n                            case \"fri\":\n                            closedDays.push([5]);\n                            break\n                             case \"sat\":\n                            closedDays.push([6]);\n                            break\n                        }\n                  }\n              });\n                  \n             }\n        })\n        \n        \n        var holidays = way2rentals.jQuery.parseJSON('[]');\n        \n        var datestring = way2rentals.jQuery.datepicker.formatDate('yy-mm-dd', date);\n        if(holidays.indexOf(datestring) != -1){\n            return [false];\n        }\n        \n        for (var i = 0; i < closedDays.length; i++) {\n            if (day == closedDays[i][0]) {\n                return [false];\n            }\n    \n        }\n    \n        for (i = 0; i < closedDates.length; i++) {\n            if (date.getMonth() == closedDates[i][0] - 1 &&\n            date.getDate() == closedDates[i][1] &&\n            date.getFullYear() == closedDates[i][2]) {\n                return [false];\n            }\n        }\n    \n        return [true];\n    }\n\n    way2rentals.jQuery('#pickup_date').datetimepicker({\n        format:\t'Y-m-d',\n        beforeShowDay: nonWorkingDatesPickup,\n        timepicker:false,\n        minDate:'+1970\/01\/01',\n        onShow:function( ct ){\n        this.setOptions({\n            maxDate: false,\n        })\n        }\n    });\n    \n    way2rentals.jQuery('#dropoff_date').datetimepicker({\n        format:'Y-m-d',\n        timepicker:false,\n        beforeShowDay: nonWorkingDatesDropoff,\n        minDate:'+1970\/01\/01',\n        onShow:function( ct ){\n        this.setOptions({\n        \tminDate:jQuery('#pickup_date').val()?jQuery('#pickup_date').val():false,\n        })\n        }\n    });\n\n    \/*way2rentals.jQuery('#pickup_hour').datetimepicker({\n        format: 'H:i',\n        datepicker: false,\n        timepicker:true,\n        closeOnTimeSelect: false,\n        closeOnWithoutClick: true,\n        onShow:function( ct ){\n            this.setOptions({\n                maxDate: false,\n                allowTimes: allowed_times_pickup,\n           })\n        }\n    });\n\n    way2rentals.jQuery('#dropoff_hour').datetimepicker({\n        format: 'H:i',\n        datepicker: false,\n        timepicker:true,\n        closeOnTimeSelect: false,\n        closeOnWithoutClick: true,\n        onShow:function( ct ){\n            this.setOptions({\n                maxDate: false,\n                allowTimes: allowed_times_dropoff,\n           })\n        }\n    });*\/\n\n    function addOptionsToTimeField(field, options){\n        way2rentals.jQuery('#'+field).empty();\n        var selected = '';\n        switch(field) {\n            case 'pickup_hour':\n                if('0' == '1'){\n                    selected = '0';\n                }else{\n                    selected = '15:00';\n                }\n            break\n            case 'dropoff_hour':\n                if('0' == '1'){\n                    \n                    selected = '0';\n                }else{\n                    selected = '11:00';\n                }\n            break\n        }\n\n        for (var i = 0; i < options.length; i++) {\n\n            var time = options[i];\n            var aux = options[i].split(':');\n        \n            if(aux[0].length == 1){\n                time = '0'+aux[0]+':'+aux[1];\n            }\n\n            if(time == selected){\n                way2rentals.jQuery('#'+field).append('<option selected value=\"'+time+'\">'+time+'<\/option>');\n            } else {\n                way2rentals.jQuery('#'+field).append('<option value=\"'+time+'\">'+time+'<\/option>');\n            }\n        }\n\n    }\n<\/script>About CLS Rent-a-Car At CLS Rent-a-Car, every journey begins with confidence. We are more than just a car hire company: we are partners in your freedom, ready to make every journey simple, safe and memorable. Every car you choose, every service you use, every detail of your journey is handled with care and transparency.Useful LinksFaq&#8217;sTerms [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"<!-- wp:divi\/placeholder \/-->","_et_gb_content_width":"1170","footnotes":""},"class_list":["post-117","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Bookings - CLS Rent-a-Car<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/clsrentacar.com\/en\/reservas\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bookings - CLS Rent-a-Car\" \/>\n<meta property=\"og:description\" content=\"BOOKINGSAbout CLS Rent-a-Car At CLS Rent-a-Car, every journey begins with confidence. We are more than just a car hire company: we are partners in your freedom, ready to make every journey simple, safe and memorable. Every car you choose, every service you use, every detail of your journey is handled with care and transparency.Useful LinksFaq&#039;sTerms [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/clsrentacar.com\/en\/reservas\/\" \/>\n<meta property=\"og:site_name\" content=\"CLS Rent-a-Car\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-28T15:56:36+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/clsrentacar.com\\\/en\\\/reservas\\\/\",\"url\":\"https:\\\/\\\/clsrentacar.com\\\/en\\\/reservas\\\/\",\"name\":\"Bookings - CLS Rent-a-Car\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/clsrentacar.com\\\/en\\\/#website\"},\"datePublished\":\"2020-05-12T14:54:28+00:00\",\"dateModified\":\"2025-08-28T15:56:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/clsrentacar.com\\\/en\\\/reservas\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/clsrentacar.com\\\/en\\\/reservas\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/clsrentacar.com\\\/en\\\/reservas\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\\\/\\\/clsrentacar.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bookings\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/clsrentacar.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/clsrentacar.com\\\/en\\\/\",\"name\":\"CLS Rent-a-Car\",\"description\":\"W4M Rent a car\",\"publisher\":{\"@id\":\"https:\\\/\\\/clsrentacar.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/clsrentacar.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/clsrentacar.com\\\/en\\\/#organization\",\"name\":\"CLS Rent-a-Car\",\"url\":\"https:\\\/\\\/clsrentacar.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/clsrentacar.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/clsrentacar.com\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/Logo_clsrentacar.png\",\"contentUrl\":\"https:\\\/\\\/clsrentacar.com\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/Logo_clsrentacar.png\",\"width\":863,\"height\":451,\"caption\":\"CLS Rent-a-Car\"},\"image\":{\"@id\":\"https:\\\/\\\/clsrentacar.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bookings - CLS Rent-a-Car","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/clsrentacar.com\/en\/reservas\/","og_locale":"en_US","og_type":"article","og_title":"Bookings - CLS Rent-a-Car","og_description":"BOOKINGSAbout CLS Rent-a-Car At CLS Rent-a-Car, every journey begins with confidence. We are more than just a car hire company: we are partners in your freedom, ready to make every journey simple, safe and memorable. Every car you choose, every service you use, every detail of your journey is handled with care and transparency.Useful LinksFaq'sTerms [&hellip;]","og_url":"https:\/\/clsrentacar.com\/en\/reservas\/","og_site_name":"CLS Rent-a-Car","article_modified_time":"2025-08-28T15:56:36+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/clsrentacar.com\/en\/reservas\/","url":"https:\/\/clsrentacar.com\/en\/reservas\/","name":"Bookings - CLS Rent-a-Car","isPartOf":{"@id":"https:\/\/clsrentacar.com\/en\/#website"},"datePublished":"2020-05-12T14:54:28+00:00","dateModified":"2025-08-28T15:56:36+00:00","breadcrumb":{"@id":"https:\/\/clsrentacar.com\/en\/reservas\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/clsrentacar.com\/en\/reservas\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/clsrentacar.com\/en\/reservas\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/clsrentacar.com\/en\/"},{"@type":"ListItem","position":2,"name":"Bookings"}]},{"@type":"WebSite","@id":"https:\/\/clsrentacar.com\/en\/#website","url":"https:\/\/clsrentacar.com\/en\/","name":"CLS Rent-a-Car","description":"W4M Rent a car","publisher":{"@id":"https:\/\/clsrentacar.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/clsrentacar.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/clsrentacar.com\/en\/#organization","name":"CLS Rent-a-Car","url":"https:\/\/clsrentacar.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/clsrentacar.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/clsrentacar.com\/wp-content\/uploads\/2025\/08\/Logo_clsrentacar.png","contentUrl":"https:\/\/clsrentacar.com\/wp-content\/uploads\/2025\/08\/Logo_clsrentacar.png","width":863,"height":451,"caption":"CLS Rent-a-Car"},"image":{"@id":"https:\/\/clsrentacar.com\/en\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/clsrentacar.com\/en\/wp-json\/wp\/v2\/pages\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clsrentacar.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/clsrentacar.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/clsrentacar.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clsrentacar.com\/en\/wp-json\/wp\/v2\/comments?post=117"}],"version-history":[{"count":10,"href":"https:\/\/clsrentacar.com\/en\/wp-json\/wp\/v2\/pages\/117\/revisions"}],"predecessor-version":[{"id":597,"href":"https:\/\/clsrentacar.com\/en\/wp-json\/wp\/v2\/pages\/117\/revisions\/597"}],"wp:attachment":[{"href":"https:\/\/clsrentacar.com\/en\/wp-json\/wp\/v2\/media?parent=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}