Enter your vehicle listing. Bold fields are required. Do not post carrier availability, items for sale or other information.
Use My Vehicles to edit, assign and remove listings and to track your dispatched vehicles
Dane pojazdu
Wystaw ładunek
Wystaw ładunek i zapisz dane do zlecenia
' + html + '
');
}
function removep(v) {
var c = $('f_add_count').innerHTML;
c = parseInt(c) - 1;
$('f_add_count').update(c);
$('add' + v).remove()
}
function paym(v) {
if (v == 1) {
if ($('f_quick_pay').checked == true) {
$('f_comchek').checked = false;
$('f_pay').hide();
} else {
$('f_pay').show();
}
} else if (v == 2) {
if ($('f_comchek').checked == true) {
$('f_quick_pay').checked = false;
$('f_pay').hide();
} else {
$('f_pay').show();
}
}
}
function infoprice(r1, r2, m) {
new Ajax.Request('/pl/produkt/cena', {
method: "post",
postBody: "r1=" + r1 + "&r2=" + r2 + "&m=" + m,
onComplete: function (request) {
$('infoprice').update(request.responseText);
}
});
$('infoprice').show();
}
var cal = Calendar.setup({
min: 20241005,
onSelect: function(cal) { cal.hide() }
});
cal.manageFields("f_data_publikacji", "f_data_publikacji", "%Y-%m-%d");
//sugest
var tablica2 = [];
;
tablica2["acura"] = ["cl","integra","legend","mdx","nsx","other","rdx","rl","rsx","tl","tsx","vigor","zdx"];
;
tablica2["aixam"] = ["a721","a741","a751","city","coupe","crossline","crossover","gto","other","roadline","scouty","scouty-r"];
;
tablica2["alfa-romeo"] = ["145","146","147","155","156","159","164","166","33","4c","75","90","alfasud","alfetta","brera","crosswagon","giulia","giulietta","gt","gtv","mito","other","rs","spider","sportwagon","sprint"];
;
tablica2["aro"] = ["10 - 4","11 - 4","243","246","dragon","m-461","muscel","other","seria-10","seria-240","seria-320","spartana"];
;
tablica2["asia"] = ["rocsta"];
;
tablica2["aston-martin"] = ["bulldog","cygnet","db","db-mk-iii","db1","db2","db4","db5","db6","db7","db9","db9-volante","dbs","lagonda","one-77","other","rapide","v12-vanquish","v12-vantage","v8","v8-vantage","v8-vantage-roadster","v8-zagato","vanquish","vantage","virage","volatne"];
;
tablica2["audi"] = ["100","200","80","90","a1","a2","a3","a4","a4-allroad","a5","a6","a6-allroad","a7","a8","cabriolet","coupe","other","q3","q5","q7","quattro","r8","rs-q3","rs2","rs3","rs4","rs5","rs6","rs7","s1","s2","s3","s4","s5","s6","s7","s8","sq5","tt","tt-rs","tt-s","v8"];
;
tablica2["austin"] = ["allegro","ambasador","healey","maxi","metro","mini","montego","other"];
;
tablica2["autobianchi"] = ["bianchina"];
;
tablica2["bentley"] = ["arnage","azure","bentayga","brooklands","continental-flying-spur","continental-gt","eight","mulsanne","other","turbo-r","turbo-rt","turbo-s"];
;
tablica2["bmw"] = ["1m","i3","i8","m3","m4","m5","m6","other","seria-1","seria-2","seria-3","seria-4","seria-5","seria-6","seria-7","seria-8","x1","x3","x4","x5","x5-m","x6","x6-m","z1","z3","z4","z4-m","z8"];
;
tablica2["brilliance"] = ["bc3","bs2","bs4","bs6","other"];
;
tablica2["bugatti"] = ["eb-110","other","veyron"];
;
tablica2["buick"] = ["centurion","century","electra","enclave","lacrosse","le-sabre","lucerne","other","park-avenue","reatta","regal","rendezvous","riviera","roadmaster","skyhawk","skylark"];
;
tablica2["cadillac"] = ["allante","bls","brougham","cimarron","cts","deville","dts","eldorado","escalade","fleetwood","other","seville","srx","sts","sts-v","xlr","xlr-v"];
;
tablica2["caterham"] = ["academy","csr","other","roadsport","seven","super-seven"];
;
tablica2["chatenet"] = ["barooder","ch26","ch30","ch32","other","speedino"];
;
tablica2["chevrolet"] = ["1500","2500","3500","alero","apache","astro","avalanche","aveo","bel-air","beretta","blazer","c-10","c-20","c-30","camaro","caprice","captiva","cavalier","celebrity","chevelle","chevy-van","citation","cobalt","colorado","corsica","corvette","cruze","el-camino","epica","equinox","evanda","express","g","hhr","impala","k1500","k30","kalos","lacetti","lumina","malibu","matiz","monte-carlo","monza","nova","nubira","orlando","other","rezzo","s-10","silverado","spark","spectrum","ssr","suburban","tacuma","tahoe","trailblazer","trans-sport","traverse","trax","venture","volt"];
;
tablica2["chrysler"] = ["300c","300m","aspen","caravan","concorde","crossfire","daytona","es","grand-voyager","gs","gts","le-baron","lhs","neon","new-yorker","other","pacifica","prowler","pt-cruiser","saratoga","sebring","stratus","town-country","valiant","viper","vision","voyager"];
;
tablica2["citroen"] = ["2-cv","ax","axel","berlingo","bx","c-crosser","c-elysee","c1","c2","c3","c3-picasso","c3-pluriel","c4","c4-aircross","c4-cactus","c4-grand-picasso","c4-picasso","c5","c6","c8","cx","ds","ds3","ds4","ds5","evasion","gsa","jumper","jumpy-combi","nemo","other","saxo","sm","visa","xantia","xm","xsara","xsara-picasso","zx"];
;
tablica2["comarth"] = ["s1"];
;
tablica2["dacia"] = ["1300","1310","1400","1410","dokker","dokker-van","duster","lodgy","logan","logan-van","nova","other","pick-up","sandero","sandero-stepway","solenza","super-nova"];
;
tablica2["daewoo"] = ["chairman","cielo","espero","evanda","kalos","korando","lacetti","lanos","leganza","matiz","musso","nexia","nubira","other","racer","rezzo","tacuma","tico"];
;
tablica2["daihatsu"] = ["applause","charade","charmant","copen","cuore","feroza","fourtrak","freeclimber","gran-move","hijet","materia","move","other","rocky","sirion","sportrak","terios","trevis","yrv"];
;
tablica2["de-lorean"] = ["dmc-12","other"];
;
tablica2["dfsk"] = ["double-cab","mini-bus","mini-van","pick-up"];
;
tablica2["dkw"] = ["other"];
;
tablica2["dodge"] = ["avenger","caliber","caravan","challenger","charger","dakota","dart","daytona","diplomat","durango","dynasty","grand-caravan","hornet","intrepid","journey","magnum","monaco","neon","nitro","omni","other","ram","spirit","stealth","stratus","viper"];
;
tablica2["eagle"] = ["medallion","other","premier","summit","talon","vision"];
;
tablica2["faw"] = ["hq"];
;
tablica2["ferrari"] = ["208","248","250","288","308","328","330","348","360","365","400","412","456","488","458-italia","512","575","599gtb","612","750","california","daytona","dino-gt4","enzo","f12berlinetta","f355","f360","f40","f430","f50","f550","ff","laferrari","mondial","other","superamerica","testarossa"];
;
tablica2["fiat"] = ["124","125p","126","127","128","130","131","132","500","500l","500x","600","850","albea","barchetta","brava","bravo","cinquecento","coupe","croma","dino","doblo","ducato","fiorino","freemont","grande-punto","idea","linea","marea","multipla","other","palio","panda","punto","punto-2012","punto-evo","qubo","regata","ritmo","scudo","sedici","seicento","siena","spider-europa","stilo","strada","tempra","tipo","ulysse","uno","x-1"];
;
tablica2["ford"] = ["aerostar","aspire","b-max","bronco","c-max","capri","contour","cougar","courier","crown","econoline","econovan","ecosport","edge","escape","escort","excursion","expedition","explorer","f150","f250","f350","fairlane","falcon","festiva","fiesta","five-hundred","focus","focus-c-max","freestar","freestyle","fusion","galaxy","granada","grand c-max","gt","ka","kuga","maverick","mercury","mondeo","mustang","orion","other","probe","puma","ranchero","ranger","s-max","scorpio","sierra","streetka","taunus","taurus","tempo","thunderbird","tourneo-connect","tourneo-courier","tourneo-custom","transit","transit-connect","transit-courier","transit-custom","windstar"];
;
tablica2["galloper"] = ["other","super-exceed"];
;
tablica2["gaz"] = ["67","69","other"];
;
tablica2["geely"] = ["ck"];
;
tablica2["gmc"] = ["acadia","envoy","other","safari","savana","sierra","sonoma","syclone","typhoon","vandura","yukon"];
;
tablica2["gonow"] = ["altul"];
;
tablica2["grecav"] = ["sonique"];
;
tablica2["gwm"] = ["altul","cowry","haval-h5","hover","steed","voleex"];
;
tablica2["holden"] = ["adventra","astra","barina","berlina","calais","caprice","captiva","colorado","commodore","crewman","cruze","epica","jackaroo","monaro","sportwagon","statesman","ute","viva"];
;
tablica2["honda"] = ["accord","aerodeck","city","civic","concerto","cr-v","cr-z","crx","element","fr-v","hr-v","insight","integra","jazz","legend","logo","nsx","odyssey","other","pilot","prelude","ridgeline","s-2000","shuttle","stream"];
;
tablica2["hummer"] = ["h1","h2","h3","other"];
;
tablica2["hyundai"] = ["accent","atos","avante","azera","coupe","elantra","equus","excel","galloper","genesis","genesis-coupe","getz","grand-santa-fe","grandeur","h-1","h-1-starex","h200","i10","i20","i25","i30","i40","ix20","ix35","ix55","lantra","matrix","other","pony","s-coupe","santa-fe","santamo","sonata","sonica","terracan","trajet","tucson","veloster","veracruz","xg-30","xg-350"];
;
tablica2["infiniti"] = ["ex","fx","g","i30","i35","j30","m","other","q30","q45","q50","q60","q70","qx","qx50","qx70"];
;
tablica2["isuzu"] = ["campo","d-max","gemini","midi","other","pick-up","trooper"];
;
tablica2["iveco"] = ["massif"];
;
tablica2["jaguar"] = ["daimler","e-type","f-type","f-pace","mk-ii","other","s-type","s-type-r","x-type","xe","xf","xj","xj12","xjsc","xk","xk8"];
;
tablica2["jeep"] = ["cherokee","cj","comanche","commander","compass","grand-cherokee","liberty","other","patriot","renegade","wagoneer","willys","wrangler"];
;
tablica2["kaipan"] = ["47","other"];
;
tablica2["kia"] = ["asia-rocsta","besta","carens","carnival","ceed","cerato","clarus","elan","joice","leo","magentis","mentor","opirus","optima","other","picanto","pregio","pride","pro-ceed","retona","rio","roadster","rocsta","sedona","sephia","shuma","sorento","soul","spectra","sportage","venga"];
;
tablica2["lada"] = ["110","111","1117","1118","1119","112","1200","1300","1500","2101","2103","2104","2105","2106","2107","2108","2109","2110","2111","2112","2170","aleko","forma","kalina","niva","nova","other","priora","samara"];
;
tablica2["lamborghini"] = ["aventador","countach","diablo","espada","gallardo","huracan","jalpa","lm","miura","murcielago","other","urraco"];
;
tablica2["lancia"] = ["beta","dedra","delta","flamina","fulvia","gamma","kappa","lybra","musa","other","phedra","prisma","stratos","thema","thesis","voyager","ypsilon","zeta"];
;
tablica2["land-rover"] = ["defender","discovery","discovery-sport","freelander","other","range-rover","range-rover-evoque","range-rover-sport"];
;
tablica2["lexus"] = ["ct","es","gs","gx","hs-250h","is","lfa","ls","lx","nx","other","rc","rx","sc"];
;
tablica2["ligier"] = ["altul","ambra","nova","optima","other","x-too"];
;
tablica2["lincoln"] = ["aviator","continental","ls","mark","mark-lt","mkx","mkz","navigator","other","town-car"];
;
tablica2["lotus"] = ["340r","cortina","elan","elise","elite","esprit","europa","evora","excel","exige","other","super-seven","v8"];
;
tablica2["lti"] = ["fairway","tx2","tx4"];
;
tablica2["luaz"] = ["969","altul"];
;
tablica2["mahindra"] = ["other"];
;
tablica2["maruti"] = ["800","other"];
;
tablica2["maserati"] = ["222","224","228","3200","418","420","4200","422","424","430","biturbo","coupe","ghibli","grancabrio","gransport","granturismo","indy","karif","mc-stradale","mc12","merak","other","quattroporte","shamal","spyder"];
;
tablica2["maybach"] = ["57","62","other"];
;
tablica2["mazda"] = ["121","2","3","323","323f","5","6","626","929","bongo","bt-50","cx-3","cx-5","cx-7","cx-9","demio","millenia","mpv","mx-3","mx-5","mx-6","other","premacy","protege","rx-6","rx-7","rx-8","seria-b","seria-e","tribute","xedos"];
;
tablica2["mclaren"] = ["altul","mp4-12c"];
;
tablica2["mercedes-benz"] = ["180","190","200","219","220","230","240","250","260","270","280","290","300","320","350","380","400","416","420","450","500","560","600","klasa-a","klasa-b","klasa-c","citan","cl","cla","clc","clk","cls","klasa-e","klasa-g","gl","gla","glc","gle","glk","gls","ml","mb-100","monarch","other","klasa-r","klasa-s","sl","slc","slk","slr","sprinter","klasa-v","vaneo","vario","viano","vito","w123","w124-1984-1993"];
;
tablica2["mercury"] = ["comet","cougar","marauder","mariner","marquis","milan","montego","monterey","mountaineer","other","sable","tracer","villager","zephyr"];
;
tablica2["mg"] = ["f","mga","mgb","mgf","midget","montego","other","td","tf","zr","zs","zt"];
;
tablica2["microcar"] = ["ligier","m-go","other"];
;
tablica2["mini"] = ["1000","1300","clubman","cooper","cooper-s","countryman","one","other","paceman"];
;
tablica2["mitsubishi"] = ["3000gt","asx","canter","carisma","colt","cordia","cosmos","diamante","eclipse","endeavor","fto","galant","galloper","grandis","i-miev","l200","l300","l400","lancer","lancer-evolution","montero","other","outlander","pajero","pajero-pinin","santamo","sapporo","sigma","space-gear","space-runner","space-star","space-wagon","starion","tredia"];
;
tablica2["morgan"] = ["aero-8","other","plus-4","plus-8","roadster"];
;
tablica2["moskwicz"] = ["1500","2138","2140","2141","2142","400","401","402","403","404","407","408","410","411","412","415","416","420","422","423","426","427","432","433","434","444","aleko","g1","g2","g3","g4","g5"];
;
tablica2["nissan"] = ["100-nx","200-sx","240-sx","280-zx","300-zx","350-z","370-z","almera","almera-tino","altima","armada","bluebird","cherry","cube","frontier","gt-r","interstar","juke","king-cab","kubistar","laurel","leaf","maxima","micra","murano","navara","note","np300-pickup","nv200","other","pathfinder","patrol","pickup","pixo","prairie","primastar","primera","pulsar","qashqai","qashqai-2","quest","rogue","sentra","serena","silvia","skyline","stanza","sunny","terrano","tiida","titan","trade","urvan","vanette","x-trail","xterra"];
;
tablica2["nsu"] = ["1000","other","ro-80"];
;
tablica2["nysa"] = ["other","seria-500","seria-n"];
;
tablica2["oldsmobile"] = ["alero","aurora","bravada","custom-cruiser","cutlass","delta-88","eighty-eight","intrigue","other","regency","silhouette","supreme","toronado"];
;
tablica2["oltcit"] = ["club","other","special"];
;
tablica2["opel"] = ["adam","agila","ampera","antara","arena","ascona","astra","calibra","campo","cascada","combo","commodore","corsa","diplomat","frontera","gt","insignia","kadett","manta","meriva","mokka","monterey","monza","movano","nova","omega","other","pick-up-sportcap","rekord","senator","signum","sintra","speedster","tigra","vectra","vivaro","zafira"];
;
tablica2["peugeot"] = ["1007","104","106","107","108","2008","204","205","206","206-cc","206-plus","207","207-cc","208","3008","301","304","305","306","307","307-cc","308","308-cc","309","395","4007","4008","404","405","406","407","5008","504","505","508","604","605","607","806","807","bipper","expert","other","partner","rcz"];
;
tablica2["piaggio"] = ["other","porter"];
;
tablica2["plymouth"] = ["belvedere","caravelle","duster","fury","gran-fury","grand-voyager","gtx","horizon","laser","other","prowler","road-runner","satellite","superbird","turismo","valiant","voyager"];
;
tablica2["polonez"] = ["2015-01-05","2015-01-06","atu","caro","other"];
;
tablica2["pontiac"] = ["1000","6000","bonneville","catalina","chieftain","fiero","firebird","g6","grand-am","grand-prix","gto","le-mans","montana","other","solstice","sunbird","sunfire","trans-am","trans-sport","vibe"];
;
tablica2["porsche"] = ["356","911","912","914","924","928","944","959","962","968","boxster","carrera-gt","cayenne","cayman","macan","other","panamera"];
;
tablica2["proton"] = ["other","seria-300","seria-400"];
;
tablica2["rayton-fissore"] = ["magnum"];
;
tablica2["renault"] = ["10","11","12","14","18","19","20","21","25","30","4","5","8","9","alpine-a110","alpine-a310","alpine-v6","avantime","captur","clio","coupe","espace","express","fluence","fuego","grand-espace","grand-scenic","kadjar","kangoo","koleos","laguna","latitude","master","megane","modus","other","safrane","scenic","scenic-conquest","scenic-rx4","symbol","talisman","thalia","trafic","twingo","twizy","vel-satis","wind"];
;
tablica2["rolls-royce"] = ["corniche","flying-spur","ghost","other","park-ward","phantom","silver-cloud","silver-down","silver-seraph","silver-shadow","silver-spirit","silver-spur","touring-limousine"];
;
tablica2["rover"] = ["100","111","114","115","200","213","214","216","218","220","25","400","414","416","418","420","45","600","618","620","623","75","800","820","825","827","city-rover","metro","mg","mini","montego","other","sd","streetwise"];
;
tablica2["saab"] = ["9-2x","9-3","9-5","9-7x","90","900","9000","96","other"];
;
tablica2["santana"] = ["other","ps-10","ps-300","ps-350"];
;
tablica2["saturn"] = ["astra","aura","ion-quad-coupe","ion-sedan","other","outlook","relay","sc","sky","sl","sw","vue"];
;
tablica2["scion"] = ["tc","xa","xb","xd"];
;
tablica2["seat"] = ["alhambra","altea","altea-xl","arosa","cordoba","exeo","ibiza","inca","leon","malaga","marbella","mii","other","ronda","terra","toledo"];
;
tablica2["shuanghuan"] = ["sceo"];
;
tablica2["skoda"] = ["100","105","120","130","135","citigo","fabia","favorit","felicia","forman","octavia","other","praktik","rapid","roomster","superb","yeti"];
;
tablica2["smart"] = ["crossblade","forfour","fortwo","other","roadster","roomster"];
;
tablica2["ssangyong"] = ["actyon","family","korrando","kyron","musso","other","rexton","rodius","tivoli"];
;
tablica2["subaru"] = ["1800-coupe","b9-tribeca","baja","brz","forester","g3x-justy","impreza","justy","legacy","leone","levork","other","outback","svx","trezia","tribeca","vivio","xt","xv"];
;
tablica2["suzuki"] = ["alto","baleno","cappucino","carry","celerio","grand-vitara","ignis","jimny","kizashi","liana","lj","other","reno","samurai","sj","splash","super-carry","swift","sx4","sx4-s-cross","vitara","wagon-r","x-90","xl7"];
;
tablica2["syrena"] = ["101","102","103","104","105","bosto","other","r-20"];
;
tablica2["talbot"] = ["horizon","other","rancho","samba"];
;
tablica2["tarpan"] = ["233","235","237","honker","other"];
;
tablica2["tata"] = ["indica","indigo","nano","other","safari","xenon"];
;
tablica2["tatra"] = ["other","t613","t613-4","t700"];
;
tablica2["tavria"] = ["other","zaz-1102","zaz-1103","zaz-1105"];
;
tablica2["tesla"] = ["model-s","roadster"];
;
tablica2["toyota"] = ["4-runner","auris","avalon","avensis","avensis-verso","aygo","camry","camry-solara","carina","celica","corolla","corolla-verso","cressida","crown","dyna","fj","gt86","hiace","highlander","hilux","iq","land-cruiser","lite-ace","matrix","mr2","other","paseo","picnic","previa","prius","rav4","sequoia","sienna","starlet","supra","tacoma","tercel","tundra","urban-cruiser","venza","verso","verso-s","yaris","yaris-verso"];
;
tablica2["trabant"] = ["601","other","p-50"];
;
tablica2["triumph"] = ["dolomite","moss","other","spitfire","tr3","tr4","tr5","tr6","tr7","tr8"];
;
tablica2["tvr"] = ["cerbera","chimaera","griffith","other","tamora","tasmin","tuscan","vixen"];
;
tablica2["uaz"] = ["3153","3162","452","469-b","other"];
;
tablica2["vauxhall"] = ["astra","frontera","omega","vectra"];
;
tablica2["volkswagen"] = ["181","amarok","beetle","bora","buggy","caddy","california","caravelle","cc","corrado","crafter","eos","fox","garbus","golf","golf-plus","golf-sportsvan","golf-sportvan","iltis","jetta","kafer","karmann-ghia","lupo","multivan","new-beetle","other","passat","passat-cc","phaeton","polo","santana","scirocco","sharan","tiguan","touareg","touran","transporter","up","vento"];
;
tablica2["volvo"] = ["240","244","245","262","264","340","360","440","460","480","740","744","745","760","780","850","855","940","944","945","960","965","amazon","c30","c70","other","polar","s40","s60","s70","s80","s90","v40","v50","v60","v70","v90","xc-60","xc-70","xc-90"];
;
tablica2["warszawa"] = ["203","204","223","224","m-20","other","pick-up"];
;
tablica2["wartburg"] = ["2015-01-03","311","312","313","353","other"];
;
tablica2["weismann"] = ["mf-25","mf-28","mf-3","mf-30","mf-35","mf-4"];
;
tablica2["wolga"] = ["2410","gaz-21","gaz-24","other"];
;
tablica2["yugo"] = ["102","florida","koral","other"];
;
tablica2["zaporozec"] = ["965","968","other"];
;
tablica2["zastawa"] = ["1100","750","other"];
;
tablica2["zuk"] = ["other"];
var tablica = Array("acura","aixam","alfa-romeo","aro","asia","aston-martin","audi","austin","autobianchi","bentley","bmw","brilliance","bugatti","buick","cadillac","caterham","chatenet","chevrolet","chrysler","citroen","comarth","dacia","daewoo","daihatsu","de-lorean","dfsk","dkw","dodge","eagle","faw","ferrari","fiat","ford","galloper","gaz","geely","gmc","gonow","grecav","gwm","holden","honda","hummer","hyundai","infiniti","isuzu","iveco","jaguar","jeep","kaipan","kia","lada","lamborghini","lancia","land-rover","lexus","ligier","lincoln","lotus","lti","luaz","mahindra","maruti","maserati","maybach","mazda","mclaren","mercedes-benz","mercury","mg","microcar","mini","mitsubishi","morgan","moskwicz","nissan","nsu","nysa","oldsmobile","oltcit","opel","peugeot","piaggio","plymouth","polonez","pontiac","porsche","proton","rayton-fissore","renault","rolls-royce","rover","saab","santana","saturn","scion","seat","shuanghuan","skoda","smart","ssangyong","subaru","suzuki","syrena","talbot","tarpan","tata","tatra","tavria","tesla","toyota","trabant","triumph","tvr","uaz","vauxhall","volkswagen","volvo","warszawa","wartburg","weismann","wolga","yugo","zaporozec","zastawa","zuk");
var start = function(){
var suggest = new Suggest.LocalMulti("f_model1", "suggesta1", tablica2[$F('f_make1')], {dispAllKey: true,dispMax: 10, highlight: true});
var select = $('f_make1');
var change = function(){
setTimeout(function() {
var select = $('f_make1');
if (tablica2[select.value] != undefined) {
suggest.candidateList = tablica2[select.value];
} else {
suggest.candidateList = [];
}
}, 500);
};
select.addEventListener ?
select.addEventListener('change', change, false) :
select.attachEvent('change', change);
};
window.addEventListener ?
window.addEventListener('load', start, false) :
window.attachEvent('onload', start);
new Suggest.Local("f_make1", "suggest1", tablica, {dispMax: 10, highlight: true});
var map = null;
var directionDisplay;
var directionsService = new google.maps.DirectionsService();
function compIsType(t, s) {
for(z = 0; z < t.length; ++z)
if(t[z] == s)
return true;
return false;
}
function initialize() {
directionsDisplay = new google.maps.DirectionsRenderer();
var chicago = new google.maps.LatLng(41.850033, -87.6500523);
var mapOptions = {
zoom: 8,
center: chicago,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
//Find From location
var options = {
types: ['(regions)']
};
var fromText = document.getElementById('f_organization_city');
var fromAuto = new google.maps.places.Autocomplete(fromText, options);
fromAuto.bindTo('bounds', map);
google.maps.event.addListener(fromAuto, 'place_changed', function() {
var place = fromAuto.getPlace();
var a = place.address_components;
var city, state, country;
for(i = 0; i < a.length; ++i)
{
var t = a[i].types;
if(compIsType(t, 'administrative_area_level_1'))
state = a[i].long_name; //store the state
else if(compIsType(t, 'locality'))
city = a[i].long_name; //store the city
else if(compIsType(t, 'country'))
country = a[i].long_name; //store the country
}
document.getElementById('f_organization_city').value = city + ', ' + country;
$$('#f_organization_region option[data-name="' + country + '"]')[0].selected = true;
});
//Find To location
var toText = document.getElementById('f_destination_city');
var toAuto = new google.maps.places.Autocomplete(toText, options);
toAuto.bindTo('bounds', map);
google.maps.event.addListener(toAuto, 'place_changed', function() {
var place = toAuto.getPlace();
var a = place.address_components;
var city, state, country;
for(i = 0; i < a.length; ++i)
{
var t = a[i].types;
if(compIsType(t, 'administrative_area_level_1'))
state = a[i].long_name; //store the state
else if(compIsType(t, 'locality'))
city = a[i].long_name; //store the city
else if(compIsType(t, 'country'))
country = a[i].long_name; //store the country
}
document.getElementById('f_destination_city').value = city + ', ' + country;
$$('#f_delivery_region option[data-name="' + country + '"]')[0].selected = true;
});
}
initialize();
//-->