Međunarodni vlakovi Hrvatskih željeznica (HŽ-a) | Putovnica.net (2024)

Pronađi najpovoljniji smještaj ›
⇣ Pronađi najpovoljnije letove⇣

' + item.desc +', ' + item.countryname + '

' + item.id + '+' + item.alias + '' + item.type + '').data("ui-autocomplete-item", item).appendTo(ul);}});});$(function() {$( ".autocompletes2" ).autocomplete({source: function (request, response) {$.ajax({url: "/php/acmbrodovi.php?lang="+lang,dataType: "json",data: { v1: request.term },success: function (data) {response(data);}});},open: function (event, ui) { focusedlabel2 = ""; focusedid2 = ""; focusedsearchtype2 = "";},focus: function (event, ui) {event.preventDefault();$("#place_2").val( "" );$("#place_2_alt").val( "" );$(this).val(ui.item.name); var menu = $(this).data("uiAutocomplete").menu.element; focusedlabel2 = menu.find("li:has(a.ui-state-focus) .item-label")[0].textContent; focusedid2 = menu.find("li:has(a.ui-state-focus) .item-id")[0].textContent; focusedsearchtype2 = menu.find("li:has(a.ui-state-focus) .item-search-type")[0].textContent;},select: function (event, ui) {event.preventDefault();$(this).val(ui.item.name);$("#" + this.id + "alt").val(ui.item.id + '+' + ui.item.alias);}}).each(function() {$(this).data("uiAutocomplete")._renderItem = function (ul, item) {return $("

  • ").append('

    ' + item.name + '' + item.desc +', ' + item.countryname + '' + item.id + '+' + item.alias + '' + item.type + '

    ').data("ui-autocomplete-item", item).appendTo(ul);}});});}if ( vrsta2 == "cestarine" ) {$(function() {$( ".autocompletes1" ).autocomplete({source: function (request, response) {$.ajax({url: "/php/acmcst.php?lang="+lang,dataType: "json",data: { v1: request.term },success: function (data) {response(data);}});},open: function (event, ui) { focusedlabel1 = ""; focusedid1 = ""; focusedsearchtype1 = "";},focus: function (event, ui) {event.preventDefault();$("#place_1").val( "" );$("#place_1_alt").val( "" );$(this).val(ui.item.name); var menu = $(this).data("uiAutocomplete").menu.element; focusedlabel1 = menu.find("li:has(a.ui-state-focus) .item-label")[0].textContent; focusedid1 = menu.find("li:has(a.ui-state-focus) .item-id")[0].textContent; focusedsearchtype1 = menu.find("li:has(a.ui-state-focus) .item-search-type")[0].textContent;},select: function (event, ui) {event.preventDefault();$(this).val(ui.item.name);$("#" + this.id + "alt").val(ui.item.alias);}}).each(function() {$(this).data("uiAutocomplete")._renderItem = function (ul, item) {return $("

  • ").append('

    ' + item.name + '' + item.alias + '' + item.type + '

    ').data("ui-autocomplete-item", item).appendTo(ul);}});});$(function() {$( ".autocompletes2" ).autocomplete({source: function (request, response) {$.ajax({url: "/php/acmcst.php?lang="+lang,dataType: "json",data: { v1: request.term },success: function (data) {response(data);}});},open: function (event, ui) { focusedlabel2 = ""; focusedid2 = ""; focusedsearchtype2 = "";},focus: function (event, ui) {event.preventDefault();$("#place_2").val( "" );$("#place_2_alt").val( "" );$(this).val(ui.item.name); var menu = $(this).data("uiAutocomplete").menu.element; focusedlabel2 = menu.find("li:has(a.ui-state-focus) .item-label")[0].textContent; focusedid2 = menu.find("li:has(a.ui-state-focus) .item-id")[0].textContent; focusedsearchtype2 = menu.find("li:has(a.ui-state-focus) .item-search-type")[0].textContent;},select: function (event, ui) {event.preventDefault();$(this).val(ui.item.name);$("#" + this.id + "alt").val(ui.item.alias);}}).each(function() {$(this).data("uiAutocomplete")._renderItem = function (ul, item) {return $("

  • ").append('

    ' + item.name + '' + item.alias + '' + item.type + '

    ').data("ui-autocomplete-item", item).appendTo(ul);}});});}if ( vrsta2 == "auto" || vrsta2 == "bus" || vrsta2 == "vlak" ) {$(function() {$( ".autocompletes1" ).autocomplete({source: function (request, response) {$.ajax({url: "/php/acml.php?lang="+lang,dataType: "json",data: { v1: request.term },success: function (data) {response(data);}});},open: function (event, ui) { focusedlabel1 = ""; focusedid1 = ""; focusedsearchtype1 = "";},focus: function (event, ui) {event.preventDefault();$("#place_1").val( "" );$("#place_1_alt").val( "" );$(this).val(ui.item.name); var menu = $(this).data("uiAutocomplete").menu.element; focusedlabel1 = menu.find("li:has(a.ui-state-focus) .item-label")[0].textContent; focusedid1 = menu.find("li:has(a.ui-state-focus) .item-id")[0].textContent; focusedsearchtype1 = menu.find("li:has(a.ui-state-focus) .item-search-type")[0].textContent;},select: function (event, ui) {event.preventDefault();$(this).val(ui.item.name);$('#trazilicaprijevoza').attr( 'data-llp', ui.item.alias);$("#" + this.id + "alt").val(ui.item.alias);}}).each(function() {$(this).data("uiAutocomplete")._renderItem = function (ul, item) {return $("

  • ").append('

    ' + item.name + '' + item.location + '' + item.alias + '' + item.type + '

    ').data("ui-autocomplete-item", item).appendTo(ul);}});});$(function() {$( ".autocompletes2" ).autocomplete({source: function (request, response) {$.ajax({url: "/php/acml.php?lang="+lang,dataType: "json",data: { v1: request.term },success: function (data) {response(data);}});},open: function (event, ui) { focusedlabel2 = ""; focusedid2 = ""; focusedsearchtype2 = "";},focus: function (event, ui) {event.preventDefault();$("#place_2").val( "" );$("#place_2_alt").val( "" );$(this).val(ui.item.name); var menu = $(this).data("uiAutocomplete").menu.element; focusedlabel2 = menu.find("li:has(a.ui-state-focus) .item-label")[0].textContent; focusedid2 = menu.find("li:has(a.ui-state-focus) .item-id")[0].textContent; focusedsearchtype2 = menu.find("li:has(a.ui-state-focus) .item-search-type")[0].textContent;},select: function (event, ui) {event.preventDefault();$(this).val(ui.item.name);$('#trazilicaprijevoza').attr( 'data-lld', ui.item.alias);$("#" + this.id + "alt").val(ui.item.alias);}}).each(function() {$(this).data("uiAutocomplete")._renderItem = function (ul, item) {return $("

  • ").append('

    ' + item.name + '' + item.location + '' + item.alias + '' + item.type + '

    ').data("ui-autocomplete-item", item).appendTo(ul);}});});}if ( vrsta2 == "rent-a-car" ) {$(function() {$( ".autocompletes1" ).autocomplete({source: function (request, response) {$.ajax({url: "/php/acm_car_hire.php?lang="+lang,dataType: "json",data: { v1: request.term },success: function (data) {response(data);}});},open: function (event, ui) { focusedlabel1 = ""; focusedid1 = ""; focusedsearchtype1 = "";},focus: function (event, ui) {event.preventDefault();$("#gacomp11").val( "" );$("#gacomp11alt").val( "" );$(this).val(ui.item.display_name); var menu = $(this).data("uiAutocomplete").menu.element; focusedlabel1 = menu.find("li:has(a.ui-state-focus) .item-label2")[0].textContent; focusedid1 = menu.find("li:has(a.ui-state-focus) .item-id")[0].textContent;},select: function (event, ui) {event.preventDefault();var kratica = ui.item.localised_geo_type;if ( $( '#tab2' ).hasClass( "checked" ) ) {$('#gacomp11').val(ui.item.display_name + ' (' + kratica + ', ' + ui.item.country +')');$('#gacomp11alt').val(ui.item.individual_id);} else {$(this).val(ui.item.display_name + ' (' + kratica + ', ' + ui.item.country +')');$("#" + this.id + "alt").val(ui.item.individual_id);}}}).each(function() {$(this).data("uiAutocomplete")._renderItem = function (ul, item) {var kratica = item.localised_geo_type;return $("

  • ").append('

    ' + item.display_name + '' + kratica + '' + item.country + '' + item.individual_id + '' + item.display_name + ' (' + kratica + ', ' + item.country +')

    ').data("ui-autocomplete-item", item).appendTo(ul);}});});$(function() {$( ".autocompletes2" ).autocomplete({source: function (request, response) {$.ajax({url: "/php/acm_car_hire.php?lang="+lang,dataType: "json",data: { v1: request.term },success: function (data) {response(data);}});},open: function (event, ui) { focusedlabel2 = ""; focusedid2 = ""; focusedsearchtype2 = "";},focus: function (event, ui) {event.preventDefault();$("#gacomp22").val( "" );$("#gacomp22alt").val( "" );$(this).val(ui.item.display_name); var menu = $(this).data("uiAutocomplete").menu.element; focusedlabel2 = menu.find("li:has(a.ui-state-focus) .item-label2")[0].textContent; focusedid2 = menu.find("li:has(a.ui-state-focus) .item-id")[0].textContent;},select: function (event, ui) {event.preventDefault();var kratica = ui.item.localised_geo_type;if ( $( '#tab2' ).hasClass( "checked" ) ) {$('#gacomp22').val(ui.item.display_name + ' (' + kratica + ', ' + ui.item.country +')');$('#gacomp22alt').val(ui.item.individual_id);} else {$(this).val(ui.item.display_name + ' (' + kratica + ', ' + ui.item.country +')');$("#" + this.id + "alt").val(ui.item.individual_id);}}}).each(function() {$(this).data("uiAutocomplete")._renderItem = function (ul, item) {var kratica = item.localised_geo_type;return $("

  • ").append('

    ' + item.display_name + '' + kratica + '' + item.country + '' + item.individual_id + '' + item.display_name + ' (' + kratica + ', ' + item.country +')

    ').data("ui-autocomplete-item", item).appendTo(ul);}});});function istalokacija() {$('#tab2').addClass("checked");$('#cont-return-dest').addClass("hide-element");$('#trazilicaprijevoza .mjesta').removeClass("povratno");$('#trazilicaprijevoza .mjesta').addClass("jednosmjerno");$('#gacomp22').val( $('#gacomp11').val() );$('#gacomp22alt').val( $('#gacomp11alt').val() );}function drugalokacija() {$('#tab2').removeClass("checked");$('#cont-return-dest').removeClass("hide-element");$('#trazilicaprijevoza .mjesta').removeClass("jednosmjerno");$('#trazilicaprijevoza .mjesta').addClass("povratno");$('#drugomjesto').val("false");}$('#tab2').click(function() {if ( $( '#tab2' ).hasClass( "checked" ) ) {drugalokacija();} else {istalokacija();}});}if ( vrsta2 == "avion" ) {$(document).ready(function () {if (lang == "hr") {$( "body" ).append( '

    Odabir određenog datuma

    Ako vas zanima točno određeni nadnevak te želite provjerite trenutačne cijene karata, na kalendaru odaberite željeni datum polaska i, ako se radi o povratnom putovanju, datum dolaska.

    Fleksibilni datumi (pronalazak najpovoljnijih cijena)

    Ako ste fleksibilni oko datuma putovanja, na kalendaru kliknite na \'Cijeli mjesec\' i odaberite željeni mjesec ili odaberite opciju \'Bilo kada\'. Nakon što kliknete na \'Pronađi prijevoz\', učitat će vam se popis najpovoljnijih ponuda koje su pronašli drugi korisnici u proteklih 15 dana. Ponude mogu, ali ne moraju biti aktualne, a trenutačnu cijenu možete provjeriti klikom na cijenu označenu zelenom bojom.

    Zračna luka, grad ili država

    Moguće je pretraživati polaske između zračnih luka, gradova i država. Ako je u pretragu uključena država (npr. Zagreb - Njemačka), moguće je pregledati ponude koje su prethodno pronašli drugi korisnici, dok se za relacije između gradova i zračnih luka može pregledati i najpovoljnije ponude koje su pronašli drugi korisnici, ali i aktualne cijene za određeni dan.

    ' );} else if (lang == "en") {$( "body" ).append( '

    Specific date

    If you are interested in a specific date and want to check the current ticket prices, select the desired departure date and, if you need return ticket, the date of your return flight.

    Flexible dates (finding the best prices)

    If you are flexible about your travel date, on the calendar click \'Whole Month\' and select the month you want, or select \'Any time\'. Once you click \'Find transport\', a list of the best offers found by other users in the past 15 days will be loaded. Offers may, but need not, be current, and you can check the current price by clicking the price highlighted in green color.

    Airport, city or country

    It is possible to search for departures between airports, cities and countries. If a country is included in the search (e. g. Zagreb - Germany), it is possible to browse the offers previously found by other users. For relationships between cities and airports you can also check the best offers found by other users, as well as the current prices for a specific day.

    ' );}$(function() {$( "#dialog" ).dialog({ autoOpen: false}); $( "#tab3" ).click(function() { $( "#dialog" ).dialog( "open" );});});});var vrstadatuma = $ ( '#trazilicaprijevoza' ).attr( 'data-date1' );var vrstadatumapol = $ ( '#trazilicaprijevoza' ).attr( 'data-date1' );var vrstadatumadol = $ ( '#trazilicaprijevoza' ).attr( 'data-date1' );var searchtype = $ ( '#trazilicaprijevoza' ).attr( 'data-date2' );var vrstasmjera = $ ( '#trazilicaprijevoza' ).attr( 'data-dir' );var trip_type = $ ( '#trazilicaprijevoza' ).attr( 'data-ft' );var focusedsearchtype0 = $ ( '#trazilicaprijevoza' ).attr( 'data-fst' );var focusedsearchtypearray = focusedsearchtype0.split('+');var focusedsearchtype1 = focusedsearchtypearray[0];var focusedsearchtype2 = focusedsearchtypearray[1];if ( vrstadatuma == 'dan' ) {datumpolaska1 = $('#date_1').val();datumpolaska2 = $('#date_1_alt').val();if ( vrstasmjera == 'return' ) {datumpovratka1 = $('#date_2').val();datumpovratka2 = $('#date_2_alt').val();}}if ( vrstadatuma == 'mjesec' ) {datamonth1 = $('#date_1_alt').val();datamonth2 = $('#date_1').val();if ( vrstasmjera == 'return' ) {datamonth4 = $('#date_2_alt').val();datamonth5 = $('#date_2').val();}}if ( vrstadatuma == 'anytime' ) {datamonth1 = $('#date_1_alt').val();datamonth2 = $('#date_1').val();if ( vrstasmjera == 'return' ) {datamonth4 = $('#date_2_alt').val();datamonth5 = $('#date_2').val();}}if (trip_type == "one_way") { jednosmjerno();}if (trip_type == "return") { povratno();}function next12months() { var now = new Date(); var month1 = now.getMonth(); var year = now.getFullYear();if (lang == "hr") { var names = ['Siječanj', 'Veljača', 'Ožujak', 'Travanj', 'Svibanj', 'Lipanj', 'Srpanj', 'Kolovoz', 'Rujan', 'Listopad', 'Studeni', 'Prosinac'];} else if (lang == "en") { var names = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];} else if (lang == "de") { var names = ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'];} var res = []; for (var i = 0; i < 13; ++i) { var month2 = month1 + 1;if ( month2 < 10 ) {month2 = month1 + 1;month2 = '0' + month2;} res.push('

    ' + names[month1] + ' ' + year + '.

    '); if (++month1 === 12) { month1 = 0; ++year; } } return '

    ' + res + '

    ';}function listmonths() {$("#ui-datepicker-div .ui-datepicker-header").addClass("hide-element");$("#ui-datepicker-div .ui-datepicker-calendar").addClass("hide-element");$("#ui-datepicker-div .anytime.anytime-1").addClass("hide-element");$( ".list-months" ).addClass("hide-element");$( ".list-dates" ).removeClass("hide-element");$("#ui-datepicker-div .months12").removeClass("hide-element");$("#ui-datepicker-div .anytime.anytime-2").removeClass("hide-element");}function listdates() {$("#ui-datepicker-div .ui-datepicker-header").removeClass("hide-element");$("#ui-datepicker-div .ui-datepicker-calendar").removeClass("hide-element");$("#ui-datepicker-div .anytime.anytime-2").addClass("hide-element");$( ".list-months" ).removeClass("hide-element");$( ".list-dates" ).addClass("hide-element");$("#ui-datepicker-div .months12").addClass("hide-element");$("#ui-datepicker-div .anytime.anytime-1").removeClass("hide-element");}function jednosmjerno() { $('#tab2').removeClass("checked"); $('#tab1').addClass("checked");$("#date_2").val("");$("#date_2_alt").val("");vrstasmjera = 'one_way';$("#trip_type").val("one_way");}function povratno() { $('#tab1').removeClass("checked"); $('#tab2').addClass("checked");// Za vrstu datuma = danif ( vrstadatuma == 'dan' ) {if ( vrstadatumapol == 'dan' && vrstadatumadol == 'dan' && typeof datumpovratka1 == 'undefined' ) {datumpovratka1 = datumpolaska1;datumpovratka2 = datumpolaska2;$("#date_2").val(datumpovratka1);$("#date_2_alt").val(datumpovratka2);}if ( vrstadatumapol == 'dan' && vrstadatumadol == 'mjesec' || vrstadatumapol == 'dan' && vrstadatumadol == 'anytime' ) {datumpovratka1 = datumpolaska1;datumpovratka2 = datumpolaska2;$("#date_2").val(datumpovratka1);$("#date_2_alt").val(datumpovratka2);}if ( vrstadatumapol == 'mjesec' && vrstadatumadol == 'dan' || vrstadatumapol == 'anytime' && vrstadatumadol == 'dan' ) {datumpolaska1 = datumpovratka1;datumpolaska2 = datumpovratka2;$("#date_1").val(datumpolaska1);$("#date_1_alt").val(datumpolaska2);}if ( typeof datumpolaska1 == 'undefined' && typeof datumpolaska2 == 'undefined' ) {datumpolaska1 = $('#date_1').val();datumpolaska2 = $('#date_1_alt').val();}if ( typeof datumpovratka1 != 'undefined' && typeof datumpovratka2 != 'undefined' ) {// Je li datum polaska veci od datuma dolaska?if ( datumpolaska2 > datumpovratka2 ) {$("#date_2").val(datumpolaska1);$("#date_2_alt").val(datumpolaska2);} else {$("#date_2").val(datumpovratka1);$("#date_2_alt").val(datumpovratka2);}}}if ( vrstadatuma == 'mjesec' ) {if ( vrstadatumapol == 'dan' && vrstadatumadol == 'mjesec' ) {datamonth1 = datamonth4;datamonth2 = datamonth5;$("#date_1").val(datamonth2);$("#date_1_alt").val(datamonth1);}if ( vrstadatumapol == 'mjesec' && vrstadatumadol == 'dan' ) {datamonth4 = datamonth1;datamonth5 = datamonth2;$("#date_2").val(datamonth5);$("#date_2_alt").val(datamonth4);}if ( typeof datamonth1 != 'undefined' && typeof datamonth4 == 'undefined' ) {datamonth4 = datamonth1;datamonth5 = datamonth2;}if ( typeof vrstaklika == 'undefined' ) {vrstaklika = 'polazak';}if ( typeof datamonth1 == 'undefined' && typeof datamonth4 != 'undefined' ) {datamonth1 = datamonth4;datamonth2 = datamonth5;}if ( datamonth1 == 'anytime' && datamonth4 != 'anytime' ) {datamonth1 = datamonth4;datamonth2 = datamonth5;$("#date_1").val( datamonth5 );$("#date_1_alt").val( datamonth4 );}if ( datamonth1 != 'anytime' && datamonth4 == 'anytime' ) {datamonth4 = datamonth1;datamonth5 = datamonth2;$("#date_2").val( datamonth2 );$("#date_2_alt").val( datamonth1 );}if ( vrstaklika == 'polazak' ) {if ( datamonth1 > datamonth4 ) {$("#date_2").val( datamonth2 );$("#date_2_alt").val( datamonth1 );}}if ( vrstaklika == 'povratak' ) {if ( datamonth4 < datamonth1 ) {$("#date_1").val( datamonth5 );$("#date_1_alt").val( datamonth4 );}}if ($.trim($("#date_2_alt").val()) == "" ) {$("#date_2").val( datamonth5 );$("#date_2_alt").val( datamonth4 );}}if ( vrstadatuma == 'anytime' ) {$("#date_1").val( prijevodanytime );$("#date_1_alt").val( 'anytime' );$("#date_2").val( prijevodanytime );$("#date_2_alt").val( 'anytime' );}vrstasmjera = 'return';$("#trip_type").val("return");}function selectanytime() {vrstadatuma = 'anytime';$("#date_1").val( prijevodanytime );$("#date_1_alt").val( 'anytime' );$("#date_1").datepicker("hide");if ( vrstasmjera == 'return' ) {$("#date_2").val( prijevodanytime );$("#date_2_alt").val( 'anytime' );$("#date_2").datepicker("hide");}}months12 = '

    ' + next12months() + '

    ' + prijevoddate + '

    ' + prijevodanytime + '

    ';months12 = months12.replace(/\,/g, "");$( "#date_1" ).datepicker({dateFormat: "dd. mm. yy.",defaultDate: "+1w",changeMonth: true,showOtherMonths: true,selectOtherMonths: true,numberOfMonths: 1,minDate: "0",maxDate: "+1y",altField: "#date_1_alt",altFormat: "yy-mm-dd",onSelect: function( selectedDate ) {vrstadatuma = 'dan';vrstadatumapol = 'dan';$( "#date_2" ).datepicker( "option", "minDate", selectedDate );datumpolaska1 = $("#date_1").datepicker({ dateFormat: "dd. mm. yy." }).val();datumpolaska2 = $("#date_1_alt").datepicker({ dateFormat: "yy-mm-dd" }).val();if ( vrstasmjera == 'return' ) {povratno();}}});$('#date_1').focus(function() {if ($ ( '#ui-datepicker-div' ).find( '.list-months' ).length != 0) {} else {$( '#ui-datepicker-div' ).append( '

    ' + prijevodmonth + '

    ' + prijevodanytime + '

    ' );}if ($ ( '#ui-datepicker-div' ).find( '.months12' ).length != 0) {} else {$( '#ui-datepicker-div' ).append( months12 );}$('.list-months').click(function() {listmonths();});$('.list-dates').click(function() {listdates();});$ ( '.months12-month' ).click(function() {vrstadatuma = 'mjesec';vrstadatumapol = 'mjesec';vrstaklika = 'polazak';datamonth1 = $ ( this ).attr( 'data-month1' );datamonth2 = $ ( this ).attr( 'data-month2' );$("#date_1").val( datamonth2 );$("#date_1_alt").val( datamonth1 );$("#date_1").datepicker("hide");if ( vrstasmjera == 'return' ) {povratno();}});$ ( '.anytime-1' ).click(function() {selectanytime();});$ ( '.anytime-2' ).click(function() {selectanytime();});});$( "#date_2" ).datepicker({dateFormat: "dd. mm. yy.",defaultDate: "+2w",changeMonth: true,showOtherMonths: true,selectOtherMonths: true,numberOfMonths: 1,minDate: "0",maxDate: "+1y",altField: "#date_2_alt",altFormat: "yy-mm-dd",onSelect: function( selectedDate ) {vrstadatuma = 'dan';vrstadatumadol = 'dan';datumpovratka1 = $("#date_2").datepicker({ dateFormat: "dd. mm. yy." }).val();datumpovratka2 = $("#date_2_alt").datepicker({ dateFormat: "yy-mm-dd" }).val();povratno();}});if ($.trim($("#date_1").val()) == "" ) {vrstadatuma = 'dan';$("#date_1").datepicker("setDate", "7");datumpolaska1 = $("#date_1").datepicker({ dateFormat: "dd. mm. yy." }).val();datumpolaska2 = $("#date_1_alt").datepicker({ dateFormat: "yy-mm-dd" }).val();$("#date_2").datepicker("setDate", "14");datumpovratka1 = $("#date_2").datepicker({ dateFormat: "dd. mm. yy." }).val();datumpovratka2 = $("#date_2_alt").datepicker({ dateFormat: "yy-mm-dd" }).val();}$('#date_2').focus(function() {if ($ ( '#ui-datepicker-div' ).find( '.list-months' ).length != 0) {} else {$( '#ui-datepicker-div' ).append( '

    ' + prijevodmonth + '

    ' + prijevodanytime + '

    ' );}if ($ ( '#ui-datepicker-div' ).find( '.months12' ).length != 0) {} else {$( '#ui-datepicker-div' ).append( months12 );}$('.list-months').click(function() {listmonths();});$('.list-dates').click(function() {listdates();});$ ( '.months12-month' ).click(function() {vrstadatuma = 'mjesec';vrstadatumadol = 'mjesec';vrstaklika = 'povratak';if ( typeof datamonth1 == 'undefined' && typeof datamonth2 == 'undefined' ) {datamonth1 = $ ( this ).attr( 'data-month1' );datamonth2 = $ ( this ).attr( 'data-month2' );}datamonth4 = $ ( this ).attr( 'data-month1' );datamonth5 = $ ( this ).attr( 'data-month2' );$("#date_2").val( datamonth5 );$("#date_2_alt").val( datamonth4 );$("#date_2").datepicker("hide");povratno();});$ ( '.anytime-1' ).click(function() {selectanytime();});$ ( '.anytime-2' ).click(function() {selectanytime();});});$('#tab1').click(function() {jednosmjerno();});$('#tab2').click(function() {povratno();});$(".prijevoz-trazilica-form .datum .empty").click(function() {jednosmjerno();});$(".prijevoz-trazilica-form .mjesto .empty").click(function() {focusedsearchtype2 = 'browse';if (lang == "hr") {$("#place_2").val( 'Bilo kamo' );$("#place_2_alt").val( 'bilo-kamo+bilo-kamo' );} else if (lang == "en") {$("#place_2").val( 'Anywhere' );$("#place_2_alt").val( 'anywhere+anywhere' );}});$(function() {$( ".autocompletes1" ).autocomplete({source: function (request, response) {$.ajax({url: "/php/acmletovi.php?lang="+lang,dataType: "json",data: { v1: request.term },success: function (data) {var id1 = 'anywhere';var data = $.grep(data, function(e){ return e.id != id1;});var id2 = 'bilo-kamo';var data = $.grep(data, function(e){ return e.id != id2;});response(data);}});},open: function (event, ui) { focusedlabel1 = ""; focusedid1 = ""; focusedsearchtype1 = "";},focus: function (event, ui) {event.preventDefault();$("#place_1").val( "" );$("#place_1_alt").val( "" );$(this).val(ui.item.name); var menu = $(this).data("uiAutocomplete").menu.element; focusedlabel1 = menu.find("li:has(a.ui-state-focus) .item-label")[0].textContent; focusedid1 = menu.find("li:has(a.ui-state-focus) .item-id")[0].textContent; focusedsearchtype1 = menu.find("li:has(a.ui-state-focus) .item-search-type")[0].textContent;},select: function (event, ui) {event.preventDefault();$(this).val(ui.item.name);$("#" + this.id + "alt").val(ui.item.id + '+' + ui.item.alias);}}).each(function() {$(this).data("uiAutocomplete")._renderItem = function (ul, item) {return $("

  • ").append('

    ' + item.name + '' + item.label + '' + item.id + '+' + item.alias + '' + item.type + '

    ').data("ui-autocomplete-item", item).appendTo(ul);}});});$(function() {$( ".autocompletes2" ).autocomplete({source: function (request, response) {$.ajax({url: "/php/acmletovi.php?lang="+lang,dataType: "json",data: { v1: request.term },success: function (data) {response(data);}});},open: function (event, ui) { focusedlabel2 = ""; focusedid2 = ""; focusedsearchtype2 = "";},focus: function (event, ui) {event.preventDefault();$("#place_2").val( "" );$("#place_2_alt").val( "" );$(this).val(ui.item.name); var menu = $(this).data("uiAutocomplete").menu.element; focusedlabel2 = menu.find("li:has(a.ui-state-focus) .item-label")[0].textContent; focusedid2 = menu.find("li:has(a.ui-state-focus) .item-id")[0].textContent; focusedsearchtype2 = menu.find("li:has(a.ui-state-focus) .item-search-type")[0].textContent;},select: function (event, ui) {event.preventDefault();$(this).val(ui.item.name);$("#" + this.id + "alt").val(ui.item.id + '+' + ui.item.alias);}}).each(function() {$(this).data("uiAutocomplete")._renderItem = function (ul, item) {return $("

  • ").append('

    ' + item.name + '' + item.label + '' + item.id + '+' + item.alias + '' + item.type + '

    ').data("ui-autocomplete-item", item).appendTo(ul);}});});}if ( vrsta2 == "auto" ) {if( $('#place_1_alt').val() !='' && $('#place_2_alt').val() !='' ) {document.getElementById("potrosnjalitara").innerHTML = ': ' + document.getElementById('slider1').value + ' l/100 km';var fuel_price_initial = (document.getElementById('slider2').value).replace(/\./g, ",");document.getElementById("cijenagoriva").innerHTML = ': ' + fuel_price_initial + ' €/l';function calculate(value){var distance = $ ( '#trazilicaprijevoza' ).attr( 'data-pud' ); value = value.replace(/\./g, ",");document.getElementById("potrosnjalitara").innerHTML = ': ' + value + ' l/100 km';calculate3(distance);}function calculate2(value){var distance = $ ( '#trazilicaprijevoza' ).attr( 'data-pud' ); value = value.replace(/\./g, ",");document.getElementById("cijenagoriva").innerHTML = ': ' + value + ' €/l';calculate3(distance);}function calculate3(distance){ var dist = distance;dist2 = Math.round(dist / 1000); distair = $ ( '#trazilicaprijevoza' ).attr( 'data-ds' ); distair = distair + ' km'; var potrosnja = document.getElementById('slider1').value; var cijenagoriva = document.getElementById('slider2').value; var trosak2 = ((dist / 1000) * cijenagoriva * potrosnja * 0.01).toFixed(4); var trosak3 = parseFloat(trosak2).toLocaleString("hr", {minimumFractionDigits: 2, maximumFractionDigits: 2}) + ' €';if (lang == "hr") { document.getElementById("directions-stats").innerHTML = ''+dist2+' km

    '+distair+'

    '+trosak3+'';} else if (lang == "en") { document.getElementById("directions-stats").innerHTML = ''+dist2+' km

    '+distair+'

    '+trosak3+'';}}var polazak = $('#place_1_alt').val();var dolazak = $('#place_2_alt').val();}}appdata.valueno1 = 'neutral';appdata.valueno2 = 'neutral';function initMap1() {$('#place_1, #gacomp11').keypress(function(event) { if (event.keyCode == 13) { event.preventDefault(); }});$("#place_1, #gacomp11").focusout(function() {selectfirst1();});$('#place_2, #gacomp22').keypress(function(event) { if (event.keyCode == 13) { event.preventDefault(); }});$("#place_2, #gacomp22").focusout(function() {selectfirst2();});if ( vrsta2 == "auto" ) { initMap2();}}if ( vrsta2 == "auto" || vrsta2 == "avion" || vrsta2 == "brod" || vrsta2 == "cestarine" || vrsta2 == "bus" || vrsta2 == "vlak" ) {function selectfirst1() {if ( focusedlabel1.trim() ) {$("#place_1").val( focusedlabel1 );$("#place_1_alt").val( focusedid1 );} else {$("#place_1").val( $("ul.ui-autocomplete:first .ui-menu-item:first .item-label").text() );$("#place_1_alt").val( $("ul.ui-autocomplete:first .ui-menu-item:first .item-id").text() );focusedsearchtype1 = $("ul.ui-autocomplete:first .ui-menu-item:first .item-search-type").text();}}function selectfirst2() {if ( focusedlabel2.trim() ) {$("#place_2").val( focusedlabel2 );$("#place_2_alt").val( focusedid2 );} else {$("#place_2").val( $("ul.ui-autocomplete:eq(1) .ui-menu-item:first .item-label").text() );$("#place_2_alt").val( $("ul.ui-autocomplete:eq(1) .ui-menu-item:first .item-id").text() );focusedsearchtype2 = $("ul.ui-autocomplete:eq(1) .ui-menu-item:first .item-search-type").text();}}}if ( vrsta2 == "rent-a-car" ) {function selectfirst1() {if ( focusedlabel1.trim() ) {if ( $( '#tab2' ).hasClass( "checked" ) ) {$("#gacomp11").val( focusedlabel1 );$("#gacomp11alt").val( focusedid1 );$("#gacomp22").val( focusedlabel1 );$("#gacomp22alt").val( focusedid1 );} else {$("#gacomp11").val( focusedlabel1 );$("#gacomp11alt").val( focusedid1 );$("#gacomp22").val( focusedlabel1 );$("#gacomp22alt").val( focusedid1 );}} else {if ( $( '#tab2' ).hasClass( "checked" ) ) {$("#gacomp11").val( $("ul.ui-autocomplete:first .ui-menu-item:first .item-label2").text() );$("#gacomp11alt").val( $("ul.ui-autocomplete:first .ui-menu-item:first .item-id").text() );$("#gacomp22").val( $("ul.ui-autocomplete:first .ui-menu-item:first .item-label2").text() );$("#gacomp22alt").val( $("ul.ui-autocomplete:first .ui-menu-item:first .item-id").text() );} else {$("#gacomp11").val( $("ul.ui-autocomplete:first .ui-menu-item:first .item-label2").text() );$("#gacomp11alt").val( $("ul.ui-autocomplete:first .ui-menu-item:first .item-id").text() );}}}function selectfirst2() {if ( focusedlabel2.trim() ) {$("#gacomp22").val( focusedlabel2 );$("#gacomp22alt").val( focusedid2 );} else {$("#gacomp22").val( $("ul.ui-autocomplete:eq(1) .ui-menu-item:first .item-label2").text() );$("#gacomp22alt").val( $("ul.ui-autocomplete:eq(1) .ui-menu-item:first .item-id").text() );}}}if ( vrsta2 == "auto" ) {appdata.izbjegavaj_cestarine = $ ( '#trazilicaprijevoza' ).attr( 'data-avoid_tolls' );if ( appdata.izbjegavaj_cestarine === 'da' ) {$('#tab1').addClass("checked");}$('#tab1').click(function() {if ( $( '#tab1' ).hasClass( "checked" ) ) {$('#tab1').removeClass("checked");appdata.izbjegavaj_cestarine = 'ne';$('#avoid_tolls').val('ne');} else {$('#tab1').addClass("checked");appdata.izbjegavaj_cestarine = 'da';$('#avoid_tolls').val('da');}});function initMap2() {if( $('#place_1_alt').val() !='' && $('#place_2_alt').val() !='' ) {if ( $ ( '#trazilicaprijevoza' ).attr( 'data-pud' ) !== 'x' ) {$( ".displaymap-note" ).addClass( "hide-element" );var pud = $ ( '#trazilicaprijevoza' ).attr( 'data-pud' );$("#loadingmessage1").remove();calculate3(pud);$(".displaymap").click(function() {$.ajax({url: '/php/tt0-displaymap.php',data: {"vz": "d", "lang": lang, "po": polazak, "do": dolazak, "pk": coord_dep, "dk": coord_arr }});loaddirections();});} else {$.ajax({url: '/php/tt0-displaymap.php',data: {"vz": "n", "lang": lang, "po": polazak, "do": dolazak, "pk": coord_dep, "dk": coord_arr }});loaddirections();}}}function loaddirections() {//console.log(appdata.izbjegavaj_cestarine);function loadScripts(scripts) {var deferred = jQuery.Deferred();function loadScript(i) {if (i < scripts.length) {jQuery.ajax({ url: scripts[i], dataType: "script", cache: true, success: function() { loadScript(i + 1); }});} else {deferred.resolve();}}loadScript(0);return deferred;}var scrs1 = loadScripts(["https://js.api.here.com/v3/3.0/mapsjs-core.js","https://js.api.here.com/v3/3.0/mapsjs-service.js","https://js.api.here.com/v3/3.0/mapsjs-ui.js","https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"]).done(function() {});$('head').append('

    ');jQuery.when(scrs1).done(function() {if ( typeof(H.Map) == "function" ) {$( "#map" ).removeClass( "margin0b" ).addClass( "directionsmap" );$(".displaymap").remove();$( ".displaymap-note" ).removeClass( "hide-element" );var Utils = {locationToWaypointString: function(coordinates) {return 'geo!' + coordinates.lat + ',' + coordinates.lng;},formatDistance: function(distanceInMeters) {if (distanceInMeters < 1000) {return distanceInMeters + 'm';} else {return Math.round(distanceInMeters / 1000) + ' km';}},formatDuration: function(durationInSeconds) {var sec_num = parseInt(durationInSeconds, 10);var hours = Math.floor(sec_num / 3600);var minutes = Math.floor((sec_num - (hours * 3600)) / 60);if (hours > 0) {return hours + ' h ' + minutes + ' min';} else {return minutes + ' min';}}};function HERERoutesPanel(routes, options) {if (appdata.izbjegavaj_cestarine === 'ne'){if (lang == "hr") {appdata.prijevod_ponudene_rute = 'Ponuđene rute';} else if (lang == "en") {appdata.prijevod_ponudene_rute = 'Alternative routes';}}if (appdata.izbjegavaj_cestarine === 'da'){if (lang == "hr") {appdata.prijevod_ponudene_rute = 'Ponuđene rute (uključena je opcija \'Izbjegavaj cestarine\')';} else if (lang == "en") {appdata.prijevod_ponudene_rute = 'Alternative routes (option \'Avoid tolls\' is active)';}}var selectedRoute;var selectedRouteElement;var render = function(routes) {var routeList = document.querySelector('#route-panel ul');routeList.innerHTML += '

    ' + appdata.prijevod_ponudene_rute + '

    ';routes.forEach(function(route, i) {routeList.appendChild(renderRouteElement(route, i));});};var counter = 0;var renderRouteElement = function(route, i) {counter++;var element = document.createElement('li');if ( counter === 1 ) {element.classList.add('selected');}var routeSummary = route.route.summary;element.innerHTML = renderRouteTitle(routeSummary, i);var maneuvers = route.route.leg[0].maneuver;routeInstructionsContainer.innerHTML += renderManeuvers(maneuvers);element.addEventListener('click', function() {var routeLineStyles = {normal: { strokeColor: 'rgba(119, 119, 119, 0.5)', lineWidth: 5 },selected: { strokeColor: 'rgba(60, 143, 255, 0.7)', lineWidth: 5 }};routes.forEach(function(route, i) {route.routeLine.setStyle(routeLineStyles.normal).setZIndex(1);});if (selectedRoute) { selectedRouteElement.classList.remove('selected');}$("#route-panel li").removeClass('selected');element.classList.add('selected');selectedRoute = route;selectedRouteElement = element;if (options.onRouteSelection) { options.onRouteSelection(selectedRoute);}}, false);return element;};var renderRouteTitle = function(routeSummary, i) {return ['' + (i + 1) + '. // ',Utils.formatDistance(routeSummary.distance) + ', ',Utils.formatDuration(routeSummary.travelTime)].join('');};var renderManeuvers = function(maneuvers) {return ['

      ', maneuvers.map(function(maneuver) { return '
    1. ' + maneuver.instruction + '
    2. '; }).join(''),'

    '].join('');};render(routes);}function onRouteSelection(selectedRoute) {route = selectedRoute.route;$('#trazilicaprijevoza').attr( 'data-pud', route.summary.distance);var pud = $ ( '#trazilicaprijevoza' ).attr( 'data-pud' );calculate3(pud);var routeLineStyles = {normal: { strokeColor: 'rgba(119, 119, 119, 0.5)', lineWidth: 5 },selected: { strokeColor: 'rgba(60, 143, 255, 1)', lineWidth: 5 }};selectedRoute.routeLine.setStyle(routeLineStyles.normal).setZIndex(1);if (selectedRoute) {selectedRoute.routeLine.setStyle(routeLineStyles.selected).setZIndex(10);}map.setViewBounds(selectedRoute.routeLine.getBounds(), true);addManueversToPanel(route);};if (appdata.izbjegavaj_cestarine === 'ne'){function calculateRoute (platform) {var router = platform.getRoutingService(),routeOptions = {mode: 'fastest;car',representation: 'display',alternatives: '3',routeattributes : 'waypoints,summary,shape,legs',maneuverattributes: 'direction,action',waypoint0: coord_dep,waypoint1: coord_arr};router.calculateRoute(routeOptions, onSuccess, onError);}}if (appdata.izbjegavaj_cestarine === 'da'){function calculateRoute (platform) {var router = platform.getRoutingService(),routeOptions = {mode: 'fastest;car;motorway:-3',representation: 'display',alternatives: '3',routeattributes : 'waypoints,summary,shape,legs',maneuverattributes: 'direction,action',waypoint0: coord_dep,waypoint1: coord_arr};router.calculateRoute(routeOptions, onSuccess, onError);}}function onSuccess(result) {//console.log(result);if (result.response.route) {var routeLineGroup = new H.map.Group();var count = 0;var routes = result.response.route.map(function(route) {count++;if ( count === 1 ) {var routeLine = addRouteShapeToMap1(route);} else {var routeLine = addRouteShapeToMap(route);} routeLineGroup.addObject(routeLine); return { route: route, routeLine: routeLine };});map.addObject(routeLineGroup);map.setViewBounds(routeLineGroup.getBounds());this.routePanel = new HERERoutesPanel(routes, { onRouteSelection: onRouteSelection });}var routestart = result.response.route[0];$('#trazilicaprijevoza').attr( 'data-pud', routestart.summary.distance);var pud = $ ( '#trazilicaprijevoza' ).attr( 'data-pud' );calculate3(pud);//addRouteShapeToMap(routestart);addManueversToMap(routestart);addWaypointsToPanel(routestart.waypoint);addManueversToPanel(routestart);}function onError(error) {alert('Ne možemo prikazati kartu / upute koje ste zatražili. Ako mislite da se radi o pogrešci u radu sustava, molimo vas kontaktirajte nas.');}var mapContainer = document.getElementById('map');var routeInstructionsContainer = document.getElementById('directions-panel');var platform = new H.service.Platform({app_id: 'lKBYFHRiaxleWuRC0Qko',app_code: 'cmUHHV3rMfk7tqbdx9LE8w',useCIT: true,useHTTPS: true});var pixelRatio = window.devicePixelRatio || 1;var defaultLayers = platform.createDefaultLayers({tileSize: pixelRatio === 1 ? 256 : 512,ppi: pixelRatio === 1 ? undefined : 320});var mapOptions = {center: {lat:45.1, lng:15.2},zoom: 13,pixelRatio: pixelRatio};var map = new H.Map(mapContainer,defaultLayers.normal.map,mapOptions);var behavior = new H.mapevents.Behavior(new H.mapevents.MapEvents(map));var ui = H.ui.UI.createDefault(map, defaultLayers);var mapSettings = ui.getControl('mapsettings');var zoom = ui.getControl('zoom');var scalebar = ui.getControl('scalebar');mapSettings.setAlignment('top-right');zoom.setAlignment('bottom-right');scalebar.setAlignment('bottom-right');var bubble;function openBubble(position, text){ if(!bubble){bubble = new H.ui.InfoBubble(position,{content: text});ui.addBubble(bubble);} else {bubble.setPosition(position);bubble.setContent(text);bubble.open();}}function addRouteShapeToMap1(route){var lineString = new H.geo.LineString(),routeShape = route.shape,polyline;routeShape.forEach(function(point) {var parts = point.split(',');lineString.pushLatLngAlt(parts[0], parts[1]);});polyline = new H.map.Polyline(lineString, {style: {lineWidth: 5,strokeColor: 'rgba(60, 143, 255, 1)'},arrows: { fillColor: 'black', frequency: 4, width: 2, length: 2 }});map.addObject(polyline);map.setViewBounds(polyline.getBounds(), true);return polyline.setZIndex(10);}function addRouteShapeToMap(route){var lineString = new H.geo.LineString(),routeShape = route.shape,polyline;routeShape.forEach(function(point) {var parts = point.split(',');lineString.pushLatLngAlt(parts[0], parts[1]);});polyline = new H.map.Polyline(lineString, {style: {lineWidth: 5,strokeColor: 'rgba(119, 119, 119, 0.5)'},arrows: { fillColor: 'black', frequency: 4, width: 2, length: 2 }});map.addObject(polyline);map.setViewBounds(polyline.getBounds(), true);return polyline;}function addManueversToMap(route){var svgMarkup = '

    ',dotIcon = new H.map.Icon(svgMarkup, {anchor: {x:8, y:8}}),group = new H.map.Group(),i,j;for (i = 0; i < route.leg.length; i += 1) {for (j = 0; j < route.leg[i].maneuver.length; j += 1) {maneuver = route.leg[i].maneuver[j];var marker = new H.map.Marker({ lat: maneuver.position.latitude, lng: maneuver.position.longitude} , {icon: dotIcon});marker.instruction = maneuver.instruction;group.addObject(marker);}}group.addEventListener('tap', function (evt) {map.setCenter(evt.target.getPosition());openBubble( evt.target.getPosition(), evt.target.instruction);}, false);map.addObject(group);}function addWaypointsToPanel(waypoints){var nodeH3 = document.createElement('h3'),waypointLabels = [],i; for (i = 0; i < waypoints.length; i += 1) {waypointLabels.push(waypoints[i].label) } nodeH3.textContent = waypointLabels.join(' -> ');routeInstructionsContainer.innerHTML = '';//routeInstructionsContainer.appendChild(nodeH3);}function addManueversToPanel(route){$("#loadingmessage1").remove();var nodeOL = document.createElement('ol'),i,j;nodeOL.style.marginLeft ='30px';nodeOL.style.marginRight ='30px';nodeOL.className = 'directions';for (i = 0; i < route.leg.length; i += 1) {for (j = 0; j < route.leg[i].maneuver.length; j += 1) {maneuver = route.leg[i].maneuver[j];var li = document.createElement('li'), spanArrow = document.createElement('span'), spanInstruction = document.createElement('span');spanArrow.className = 'arrow ' + maneuver.action;spanInstruction.innerHTML = maneuver.instruction;li.appendChild(spanArrow);li.appendChild(spanInstruction);nodeOL.appendChild(li);}}routeInstructionsContainer.innerHTML = "";routeInstructionsContainer.appendChild(nodeOL);}calculateRoute (platform);}});}}function ga_event( lbl ) {if(window.ga && ga.create) {ga('send', 'event', {eventCategory: 'Letovi',eventAction: 'Search',eventLabel: lbl,transport: 'beacon'}); } else { //console.log(0); }}if (lang == "hr") {if (vrsta2 == "avion") {$( "#button-trazi" ).click(function() {if ( $.trim($('#place_1').val()) != '' && $.trim($('#place_2').val()) != '' && $.trim($('#date_1').val()) != '' ) {if ( $.trim($('#place_1').val()) == $.trim($('#place_2').val()) || $.trim($('#place_1_alt').val()) == $.trim($('#place_2_alt').val()) ) {alert ('Molimo odaberite različita mjesta polaska i dolaska.');return false;}if ( $.trim($('#place_1_alt').val()) == "" || $.trim($('#place_2_alt').val()) == "" ) {alert ('Molimo odaberite mjesta polaska i dolaska.');return false;}if( vrstadatuma == 'dan' && focusedsearchtype1 == 'search' && focusedsearchtype2 == 'search' ){if($.trim($('#place_1_alt').val()) != $.trim($('#place_2_alt').val()) ){var place_1_alt = $('#place_1_alt').val();var place_2_alt = $('#place_2_alt').val();var place_1_altarray = place_1_alt.split('+');var id1 = place_1_altarray[0];var place_2_altarray = place_2_alt.split('+');var id2 = place_2_altarray[0];window.open('/ponude/ponuda?t=ln_s0&i1=' + id1 + '&i2=' + id2 + '&d1=' + document.getElementById('date_1_alt').value + '&d2=' + document.getElementById('date_2_alt').value, '_blank');ga_event('ln_s0');} else {alert ('Molimo odaberite različita mjesta polaska i dolaska.');}} else if ( vrstadatuma == 'mjesec' || vrstadatuma == 'anytime' || focusedsearchtype1 == 'browse' || focusedsearchtype2 == 'browse' ) {var place_1_alt = $('#place_1_alt').val().toLowerCase();var place_2_alt = $('#place_2_alt').val().toLowerCase();var place_1_altarray = place_1_alt.split('+');var id1 = place_1_altarray[0];var alias1 = place_1_altarray[1];var place_2_altarray = place_2_alt.split('+');var id2 = place_2_altarray[0];var alias2 = place_2_altarray[1];document.getElementById('trazilicaprijevoza').action = 'https://www.putovnica.net/prijevoz/letovi/' + id1 + '/' + id2 + '/jeftini-letovi-avio-karte-' + alias1 + '-' + alias2$( "#trazilicaprijevoza" ).submit();}} else {alert ('Sljedeća polja moraju biti popunjena: Polazno mjesto, Odredište i datum polaska.');}});}if (vrsta2 == "brod") {$( "#button-trazi" ).click(function() {if ( $.trim($('#place_1').val()) != '' && $.trim($('#place_2').val()) != '' && $.trim($('#date_1').val()) != '' ) {if ( $.trim($('#place_1').val()) == $.trim($('#place_2').val()) || $.trim($('#place_1_alt').val()) == $.trim($('#place_2_alt').val()) ) {alert ('Molimo odaberite različita mjesta polaska i dolaska.');return false;}if ( $.trim($('#place_1_alt').val()) == "" || $.trim($('#place_2_alt').val()) == "" ) {alert ('Molimo odaberite mjesta polaska i dolaska.');return false;}var place_1_alt = $('#place_1_alt').val().toLowerCase();var place_2_alt = $('#place_2_alt').val().toLowerCase();var place_1_altarray = place_1_alt.split('+');var id1 = place_1_altarray[0];var alias1 = place_1_altarray[1];var place_2_altarray = place_2_alt.split('+');var id2 = place_2_altarray[0];var alias2 = place_2_altarray[1];document.getElementById('trazilicaprijevoza').action = 'https://www.putovnica.net/prijevoz/brodski-prijevoz/' + alias1 + '/' + alias2 + '/trajekt-katamaran-brod-' + alias1 + '-' + alias2 + '-plovidbeni-vozni-red-cijena'$( "#trazilicaprijevoza" ).submit();} else {alert ('Sljedeća polja moraju biti popunjena: Polazno mjesto, Odredište i datum polaska.');}});}if (vrsta2 == "cestarine") {$( "#button-trazi" ).click(function() {if ( $.trim($('#place_1').val()) != '' && $.trim($('#place_2').val()) != '' ) {if ( $.trim($('#place_1').val()) == $.trim($('#place_2').val()) || $.trim($('#place_1_alt').val()) == $.trim($('#place_2_alt').val()) ) {if ( $.trim($('#place_1').val()) == 'Krčki most' && $.trim($('#place_2').val()) == 'Krčki most' ) {} else {alert ('Molimo odaberite različita mjesta polaska i dolaska.');return false;}}if ( $.trim($('#place_1_alt').val()) == "" || $.trim($('#place_2_alt').val()) == "" ) {alert ('Molimo odaberite mjesta polaska i dolaska.');return false;}var place_1_alt = $('#place_1_alt').val().toLowerCase();var place_2_alt = $('#place_2_alt').val().toLowerCase();var alias1 = place_1_alt;var alias2 = place_2_alt;document.getElementById('trazilicaprijevoza').action = 'https://www.putovnica.net/prijevoz/cestarine/' + alias1 + '/' + alias2 + '/cestarina-' + alias1 + '-' + alias2 + '-cijena'$( "#trazilicaprijevoza" ).submit();} else {alert ('Sljedeća polja moraju biti popunjena: Polazno mjesto i Odredište.');}});}if (vrsta2 == "rent-a-car") {$( "#button-trazi" ).click(function() {if ( $( '#tab2' ).hasClass( "checked" ) ) {if($.trim($('#gacomp11alt').val()) != '' && $.trim($('#d1').val()) != '' && $.trim($('#d2').val()) != '' ){window.open('/ponude/ponuda?t=r1&i1=' + document.getElementById('gacomp11alt').value + '&i2=' + document.getElementById('gacomp11alt').value+ '&d1=' + document.getElementById('d1alt').value + '&d2=' + document.getElementById('d2alt').value + '&chpt=' + document.getElementById('vrijeme1').value + '&chdot=' + document.getElementById('vrijeme2').value + '&chag=' + '25-70', '_blank');} else {alert('Sljedeća polja moraju biti popunjena: mjesto preuzimanja, mjesto povrata, datum preuzimanja i datum povrata');}}else {if($.trim($('#gacomp11alt').val()) != '' && $.trim($('#gacomp22').val()) != '' && $.trim($('#d1').val()) != '' && $.trim($('#d2').val()) != '' ){window.open('/ponude/ponuda?t=r1&i1=' + document.getElementById('gacomp11alt').value + '&i2=' + document.getElementById('gacomp22alt').value+ '&d1=' + document.getElementById('d1alt').value + '&d2=' + document.getElementById('d2alt').value + '&chpt=' + document.getElementById('vrijeme1').value + '&chdot=' + document.getElementById('vrijeme2').value + '&chag=' + '25-70', '_blank');} else {alert('Sljedeća polja moraju biti popunjena: mjesto preuzimanja, mjesto povrata, datum preuzimanja i datum povrata');}}});}if ( vrsta2 == "auto" || vrsta2 == "bus" || vrsta2 == "vlak" ) {$( "#button-trazi" ).click(function() {if ( $.trim($('#place_1_alt').val()) == $.trim($('#place_2_alt').val()) ) {alert ('Molimo odaberite različita mjesta polaska i dolaska.');return false;}if ( $.trim($('#place_1_alt').val()) == "" || $.trim($('#place_2_alt').val()) == "" ) {alert ('Molimo odaberite mjesta polaska i dolaska.');return false;}if ( vrsta2 == "auto" ) {if( $.trim($('#place_1_alt').val()) != '' && $.trim($('#place_2_alt').val()) != '' ){if ( $('#place_1_alt').val() != $('#place_2_alt').val() ) {document.getElementById('trazilicaprijevoza').action = 'https://www.putovnica.net/prijevoz/auto/' + $('#place_1_alt').val() + '/' + $('#place_2_alt').val() + '/plan-puta-' + $('#place_1_alt').val() + '-' + $('#place_2_alt').val() + '-udaljenost-cijena-goriva'$( "#trazilicaprijevoza" ).submit();}}else {alert ('Molimo popunite sva polja');}} else {if($.trim($('#place_1_alt').val()) != '' && $.trim($('#place_2_alt').val()) != '' && $.trim($('#date_1').val()) != '' ){if ( $('#place_1_alt').val() != $('#place_2_alt').val() ) {if ( vrsta2 == "bus" ) {document.getElementById('trazilicaprijevoza').action = 'https://www.putovnica.net/prijevoz/autobus/' + $('#place_1_alt').val() + '/' + $('#place_2_alt').val() + '/autobus-' + $('#place_1_alt').val() + '-' + $('#place_2_alt').val() + '-vozni-red-cijena'$( "#trazilicaprijevoza" ).submit();}if ( vrsta2 == "vlak" ) {document.getElementById('trazilicaprijevoza').action = 'https://www.putovnica.net/prijevoz/vlak/' + $('#place_1_alt').val() + '/' + $('#place_2_alt').val() + '/vlak-' + $('#place_1_alt').val() + '-' + $('#place_2_alt').val() + '-vozni-red-cijena'$( "#trazilicaprijevoza" ).submit();}}}else {alert ('Molimo popunite sva polja');}}});}} else if (lang == "en") {if ( vrsta2 == "avion") {$( "#button-trazi" ).click(function() {if($.trim($('#place_1').val()) != '' && $.trim($('#place_2').val()) != '' && $.trim($('#date_1').val()) != '' ){if ( $.trim($('#place_1').val()) == $.trim($('#place_2').val()) || $.trim($('#place_1_alt').val()) == $.trim($('#place_2_alt').val()) ) {alert ('Please select different places of departure and arrival.');return false;}if ( $.trim($('#place_1_alt').val()) == "" || $.trim($('#place_2_alt').val()) == "" ) {alert ('Please select places of departure and arrival.');return false;}if( vrstadatuma == 'dan' && focusedsearchtype1 == 'search' && focusedsearchtype2 == 'search' ){if($.trim($('#place_1_alt').val()) != $.trim($('#place_2_alt').val()) ){var place_1_alt = $('#place_1_alt').val();var place_2_alt = $('#place_2_alt').val();var place_1_altarray = place_1_alt.split('+');var id1 = place_1_altarray[0];var place_2_altarray = place_2_alt.split('+');var id2 = place_2_altarray[0];window.open('/ponude/ponuda?t=ln_s0&i1=' + id1 + '&i2=' + id2 + '&d1=' + document.getElementById('date_1_alt').value + '&d2=' + document.getElementById('date_2_alt').value, '_blank');ga_event('ln_s0');} else {alert ('Please select different places of departure and arrival.');}} else if ( vrstadatuma == 'mjesec' || vrstadatuma == 'anytime' || focusedsearchtype1 == 'browse' || focusedsearchtype2 == 'browse' ) {var place_1_alt = $('#place_1_alt').val().toLowerCase();var place_2_alt = $('#place_2_alt').val().toLowerCase();var place_1_altarray = place_1_alt.split('+');var id1 = place_1_altarray[0];var alias1 = place_1_altarray[1];var place_2_altarray = place_2_alt.split('+');var id2 = place_2_altarray[0];var alias2 = place_2_altarray[1];document.getElementById('trazilicaprijevoza').action = 'https://www.putovnica.net/en/transport/flights/' + id1 + '/' + id2 + '/cheap-flights-tickets-' + alias1 + '-' + alias2$( "#trazilicaprijevoza" ).submit();}} else {alert ('Please fill in at least these fields: place of departure, destination and date of departure.');}});}if ( vrsta2 == "cestarine") {$( "#button-trazi" ).click(function() {if ( $.trim($('#place_1').val()) != '' && $.trim($('#place_2').val()) != '' ) {if ( $.trim($('#place_1').val()) == $.trim($('#place_2').val()) || $.trim($('#place_1_alt').val()) == $.trim($('#place_2_alt').val()) ) {if ( $.trim($('#place_1').val()) == 'Krk bridge' && $.trim($('#place_2').val()) == 'Krk bridge' ) {} else {alert ('Please select different places of departure and arrival.');return false;}}if ( $.trim($('#place_1_alt').val()) == "" || $.trim($('#place_2_alt').val()) == "" ) {alert ('Please select places of departure and arrival.');return false;}var place_1_alt = $('#place_1_alt').val().toLowerCase();var place_2_alt = $('#place_2_alt').val().toLowerCase();var alias1 = place_1_alt;var alias2 = place_2_alt;document.getElementById('trazilicaprijevoza').action = 'https://www.putovnica.net/en/transport/tolls/' + alias1 + '/' + alias2 + '/toll-' + alias1 + '-' + alias2 + '-price'$( "#trazilicaprijevoza" ).submit();} else {alert ('Please fill in at least these fields: place of departure and destination.');}});}if ( vrsta2 == "auto" || vrsta2 == "bus" || vrsta2 == "vlak" ) {$( "#button-trazi" ).click(function() {if ( $.trim($('#place_1_alt').val()) == $.trim($('#place_2_alt').val()) ) {alert ('Please select different places of departure and arrival.');return false;}if ( $.trim($('#place_1_alt').val()) == "" || $.trim($('#place_2_alt').val()) == "" ) {alert ('Please select places of departure and arrival.');return false;}if ( vrsta2 == "auto" ) {if( $.trim($('#place_1_alt').val()) != '' && $.trim($('#place_2_alt').val()) != '' ){document.getElementById('trazilicaprijevoza').action = 'https://www.putovnica.net/en/transport/car/' + $('#place_1_alt').val() + '/' + $('#place_2_alt').val() + '/route-planner-' + $('#place_1_alt').val() + '-' + $('#place_2_alt').val() + '-distance-fuel-price'$( "#trazilicaprijevoza" ).submit();} else {alert ('Please fill in all the fields');}} else {if($.trim($('#place_1_alt').val()) != '' && $.trim($('#place_2_alt').val()) != '' && $.trim($('#date_1').val()) != '' ){if ( vrsta2 == "bus" ) {document.getElementById('trazilicaprijevoza').action = 'https://www.putovnica.net/en/transport/bus/' + $('#place_1_alt').val() + '/' + $('#place_2_alt').val() + '/bus-' + $('#place_1_alt').val() + '-' + $('#place_2_alt').val() + '-timetable-price'$( "#trazilicaprijevoza" ).submit();}if ( vrsta2 == "vlak" ) {document.getElementById('trazilicaprijevoza').action = 'https://www.putovnica.net/en/transport/train/' + $('#place_1_alt').val() + '/' + $('#place_2_alt').val() + '/train-' + $('#place_1_alt').val() + '-' + $('#place_2_alt').val() + '-timetable-price'$( "#trazilicaprijevoza" ).submit();}} else {alert ('Please fill in all the fields');}}});}}if (lang !== "hr") {if ( vrsta2 == "brod") {$( "#button-trazi" ).click(function() {if ( $.trim($('#place_1').val()) != '' && $.trim($('#place_2').val()) != '' && $.trim($('#date_1').val()) != '' ) {if ( $.trim($('#place_1').val()) == $.trim($('#place_2').val()) || $.trim($('#place_1_alt').val()) == $.trim($('#place_2_alt').val()) ) {alert (err_2);return false;}if ( $.trim($('#place_1_alt').val()) == "" || $.trim($('#place_2_alt').val()) == "" ) {alert (err_1);return false;}var place_1_alt = $('#place_1_alt').val().toLowerCase();var place_2_alt = $('#place_2_alt').val().toLowerCase();var place_1_altarray = place_1_alt.split('+');var id1 = place_1_altarray[0];var alias1 = place_1_altarray[1];var place_2_altarray = place_2_alt.split('+');var id2 = place_2_altarray[0];var alias2 = place_2_altarray[1];document.getElementById('trazilicaprijevoza').action = 'https://www.putovnica.net/' + lang + '/' + tr_cat + '/' + alias1 + '/' + alias2 + '/' + tr_types + '-' + alias1 + '-' + alias2 + '-' + tr_ttpr;$( "#trazilicaprijevoza" ).submit();} else {alert (err_3 + ': ' + field_1 + ', ' + field_2 + ', ' + field_3 + '.');}});}if ( vrsta2 == "rent-a-car") {$( "#button-trazi" ).click(function() {if ( $( '#tab2' ).hasClass( "checked" ) ) {if($.trim($('#gacomp11alt').val()) != '' && $.trim($('#d1').val()) != '' && $.trim($('#d2').val()) != '' ){window.open('/ponude/ponuda?t=r1&i1=' + document.getElementById('gacomp11alt').value + '&i2=' + document.getElementById('gacomp11alt').value+ '&d1=' + document.getElementById('d1alt').value + '&d2=' + document.getElementById('d2alt').value + '&chpt=' + document.getElementById('vrijeme1').value + '&chdot=' + document.getElementById('vrijeme2').value + '&chag=' + '25-70', '_blank');} else {alert('Please fill in at least these fields: pick-up location, drop-off location (if different than pick-up location), pick-up date and drop-off date.');}}else {if($.trim($('#gacomp11alt').val()) != '' && $.trim($('#gacomp22').val()) != '' && $.trim($('#d1').val()) != '' && $.trim($('#d2').val()) != '' ){window.open('/ponude/ponuda?t=r1&i1=' + document.getElementById('gacomp11alt').value + '&i2=' + document.getElementById('gacomp22alt').value+ '&d1=' + document.getElementById('d1alt').value + '&d2=' + document.getElementById('d2alt').value + '&chpt=' + document.getElementById('vrijeme1').value + '&chdot=' + document.getElementById('vrijeme2').value + '&chag=' + '25-70', '_blank');} else {alert('Please fill in at least these fields: pick-up location, drop-off location (if different than pick-up location), pick-up date and drop-off date.');}}});}}$(window).load(function(){initMap1();$(".swap").click(function () {if ( $('#place_2_alt').val().indexOf(tr_anywhere) > -1 ) {if (lang == "hr") {alert ('\'Bilo kamo\' može biti odabrano samo kao odredište, ali ne i kao polazno mjesto.');} else if (lang === "de") {alert ('\'Irgendwo\' kann nur als Ziel ausgewählt werden und kann nicht als Abfahrtsort ausgewählt werden');}else if (lang === "it") {alert ('\'Dovunque\' può essere selezionato solo come destinazione e non può essere selezionato come luogo di partenza.');}else if (lang === "pl") {alert ('\'Gdziekolwiek\' można wybrać tylko jako miejsce docelowe i nie można go wybrać jako miejsca wyjazdu.');}else if (lang === "sl") {alert ('\'Kamor koli\' izberete lahko le kot destinacijo, ampak ne kot mesto odhoda.');}else {alert ('\'Anywhere\' can be selected only as the destination and it can\'t be selected as the place of departure.');}return false;} else {$('#place_1').val([$('#place_2').val(), $('#place_2').val($('#place_1').val())][0])$('#place_1_alt').val([$('#place_2_alt').val(), $('#place_2_alt').val($('#place_1_alt').val())][0])$('#coord_dep').val([$('#coord_arr').val(), $('#coord_arr').val($('#coord_dep').val())][0])}});});}

  • Međunarodni vlakovi Hrvatskih željeznica (HŽ-a) | Putovnica.net (2024)

    References

    Top Articles
    Smartfind Express Chesterfield
    Polar Seltzer Wiki
    3 Tick Granite Osrs
    Chs.mywork
    Printable Whoville Houses Clipart
    What spices do Germans cook with?
    Access-A-Ride – ACCESS NYC
    Costco The Dalles Or
    Miss Carramello
    Hallowed Sepulchre Instances &amp; More
    WK Kellogg Co (KLG) Dividends
    Ncaaf Reference
    Select Truck Greensboro
    Shuiby aslam - ForeverMissed.com Online Memorials
    Erskine Plus Portal
    Magic Mike's Last Dance Showtimes Near Marcus Cedar Creek Cinema
    Walmart End Table Lamps
    Alexandria Van Starrenburg
    2016 Ford Fusion Belt Diagram
    Lesson 8 Skills Practice Solve Two-Step Inequalities Answer Key
    Directions To 401 East Chestnut Street Louisville Kentucky
    Inside the life of 17-year-old Charli D'Amelio, the most popular TikTok star in the world who now has her own TV show and clothing line
    Free Online Games on CrazyGames | Play Now!
    Breckie Hill Mega Link
    BMW K1600GT (2017-on) Review | Speed, Specs & Prices
    Bekijk ons gevarieerde aanbod occasions in Oss.
    A Cup of Cozy – Podcast
    University Of Michigan Paging System
    New Stores Coming To Canton Ohio 2022
    Insidious 5 Showtimes Near Cinemark Southland Center And Xd
    Mercedes W204 Belt Diagram
    2430 Research Parkway
    Word Trip Level 359
    Fbsm Greenville Sc
    Mgm Virtual Roster Login
    Muma Eric Rice San Mateo
    oklahoma city community "puppies" - craigslist
    The Bold And The Beautiful Recaps Soap Central
    Acadis Portal Missouri
    Delaware judge sets Twitter, Elon Musk trial for October
    Craigslist List Albuquerque: Your Ultimate Guide to Buying, Selling, and Finding Everything - First Republic Craigslist
    Bismarck Mandan Mugshots
    Bones And All Showtimes Near Johnstown Movieplex
    Second Chance Apartments, 2nd Chance Apartments Locators for Bad Credit
    2 Pm Cdt
    Cnp Tx Venmo
    Mcalister's Deli Warrington Reviews
    Lamp Repair Kansas City Mo
    Dicks Mear Me
    Mcoc Black Panther
    Lebron James Name Soundalikes
    Heat Wave and Summer Temperature Data for Oklahoma City, Oklahoma
    Latest Posts
    Article information

    Author: Moshe Kshlerin

    Last Updated:

    Views: 5379

    Rating: 4.7 / 5 (77 voted)

    Reviews: 92% of readers found this page helpful

    Author information

    Name: Moshe Kshlerin

    Birthday: 1994-01-25

    Address: Suite 609 315 Lupita Unions, Ronnieburgh, MI 62697

    Phone: +2424755286529

    Job: District Education Designer

    Hobby: Yoga, Gunsmithing, Singing, 3D printing, Nordic skating, Soapmaking, Juggling

    Introduction: My name is Moshe Kshlerin, I am a gleaming, attractive, outstanding, pleasant, delightful, outstanding, famous person who loves writing and wants to share my knowledge and understanding with you.