function assigncurrencyvalue(selectedcurrency) { document.getElementById('fldcurrency').value = selectedcurrency; } function changecurrency(selectedlanguage) { var selectedlanguage = selectedlanguage; for(var i = 0; i < document.getElementById('currencylist').options.length; i ++) { if(document.getElementById('currencylist').options[i].title == selectedlanguage) { document.getElementById('currencylist').selectedIndex = i; assigncurrencyvalue(document.getElementById('currencylist').options[i].value); break; } } } function downloadJSAtOnload(srcname) { var element = document.createElement("script"); //element.src = "deferredfunctions.js"; element.src = srcname; document.body.appendChild(element); } var slider_interval = 2; var from_miles_value = 0; var from_miles_min = 0; var from_miles_max = 15; $(function() { downloadJSAtOnload("../js_n/functions_car_mainpage.js"); downloadJSAtOnload("http://www.travelspec.com/sres/maps_cars/include/fmAirport.js"); downloadJSAtOnload("../js_n/calendarTimeValidate.js"); downloadJSAtOnload("../js_n/en/calender2.js"); downloadJSAtOnload("../js_n/jquery.ui.touch-punch.min.js"); downloadJSAtOnload("../js_n/tooltip.js"); /*code for slider for from apt starts here*/ changecurrency(selected_lang); //fetching location based on lat/lon //fetchlocation(); $("#languagelist").msDropdown(); $('#currencylist').msDropdown({showIcon:false}); $('#fldfromtod').selectbox();//for fldfromtod $('#fldtotod').selectbox();//for fldtotod //$(".inline6").colorbox({inline:true, width:"680px", height:"600px"});//#simplemodal-container });