var city_SuburbPairs=new Array();city_SuburbPairs.adl=["zeadlt50^^","zeadlc60^^","zeadlc81^^","zeadlc80^^","zeadlc83^^"];city_SuburbPairs.wsy=["zewsyc60^D^"];city_SuburbPairs.abx=["zeabxt50^^","zeabxc60^^","zeabxs60^^"];city_SuburbPairs.asp=["zeaspt50^^","zeaspc60^^"];city_SuburbPairs.arm=["zearmt50^D^"];city_SuburbPairs.avv=["zeavvt50 ^D^"];city_SuburbPairs.ayq=["zeayqt50^^","zeayqc60^^"];city_SuburbPairs.bnk=["zebnkt50^^","zebnkc60^^"];city_SuburbPairs.bwu=["zebwuc60^^"];city_SuburbPairs.bhs=["zebhst50^^","zebhsc60^^"];city_SuburbPairs.bne=["zebnet50^^","zebnen60^^","zebnen61^^","zebnec60^^","zebnew01^^","zebnew60^^","zebnew02^^","zebnec62^^"];city_SuburbPairs.bhq=["zebhqt50^^","zebhqc60^^"];city_SuburbPairs.bme=["zebmet50^D^"];city_SuburbPairs.buy=["zebuyc60^D^"];city_SuburbPairs.bdb=["zebdbt50^D^"];city_SuburbPairs.bwt=["zebwtt50^^","zebwtc60^^"];city_SuburbPairs.qyn=["zeqync60^D^"];city_SuburbPairs.cns=["zecnst50^^","zecnsc60^^"];city_SuburbPairs.cbr=["zecbrt50^^","zecbrc80^^","zecbrc60^^","zecbrs61^^","zecbrn60^^"];city_SuburbPairs.ces=["zecesc60^D^"];city_SuburbPairs.caz=["zecazt50^^","zecazc60^^"];city_SuburbPairs.cfs=["zecfst50^^","zecfsc60^^"];city_SuburbPairs.xco=["zexcoc60^D^"];city_SuburbPairs.ool=["zeoolt50^D^"];city_SuburbPairs.cwt=["zecwtc60^^"];city_SuburbPairs.drw=["zedrwt50^^","zedrwc60^^"];city_SuburbPairs.dpo=["zedpot50^^","zedpoc60^^","zedpoc61^^"];city_SuburbPairs.dbo=["zedbot50^^","zedboc60^^"];city_SuburbPairs.emd=["zeemdt50^^","zeemdc60^^"];city_SuburbPairs.exm=["zeexmt50^D^"];city_SuburbPairs.gex=["zegexc60^^","zegexr01^^"];city_SuburbPairs.get=["zegett50^^","zegetc60^^"];city_SuburbPairs.glt=["zegltt50^^","zegltt52^^"];city_SuburbPairs.gfn=["zegfnt50^^","zegfnc60^^"];city_SuburbPairs.gff=["zegfft50^D^"];city_SuburbPairs.guy=["zeguyc60^D^"];city_SuburbPairs.hlt=["zehltc60^D^"];city_SuburbPairs.hvb=["zehvbt50^^","zehvbc60^^"];city_SuburbPairs.hba=["zehbat50^^","zehbac60^^"];city_SuburbPairs.kgi=["zekgit50^^","zekgic60^^"];city_SuburbPairs.kgc=["zekgct50^^","zekgcc60^^","zekgcp01^^"];city_SuburbPairs.kta=["zektat50^D^"];city_SuburbPairs.ktr=["zektrt50^^","zektrc60^^"];city_SuburbPairs.knx=["zeknzt50^D^"];city_SuburbPairs.lst=["zelstt50^^","zelstc60^^"];city_SuburbPairs.qle=["zeqlet50^^","zeqlec60^^"];city_SuburbPairs.lsy=["zelsyt50^^","zelsyc60^^"];city_SuburbPairs.mky=["zemkyt50^D^"];city_SuburbPairs.mtl=["zemtlc60^D^"];city_SuburbPairs.mcy=["zemcyt50^^","zemcyn60^^"];city_SuburbPairs.mbh=["zembhc60^D^"];city_SuburbPairs.mel=["zemelt50^^","zemelw04^^","zemelw61^^","zemele63^^","zemeln61^^","zemelw03^^","zemeln63^^","zemelc60^^","zemele64^^","zemele61^^","zemeln60^^","zemeln01^^","zemebt51^^","zemels60^^","zemeln02^^","zemelc61^^","zemeln64^^","zemeln62^^","zemels65^^","zemels64^^","zemelw02^^"];city_SuburbPairs.mim=["zemimt50^^","zemimc60^^"];city_SuburbPairs.mql=["zemqlt50^D^"];city_SuburbPairs.mbw=["zembwc60^D^"];city_SuburbPairs.mrz=["zemrzt50^^","zemrzc60^^"];city_SuburbPairs.mya=["zemyat50^D^"];city_SuburbPairs.mgb=["zemgbt50^^","zemgbt51^^"];city_SuburbPairs.isa=["zeisat50^^","zeisac60^^"];city_SuburbPairs.dge=["zedget50^D^"];city_SuburbPairs.nac=["zenacc60^D^"];city_SuburbPairs.naa=["zenaat50^^","zenaac60^^"];city_SuburbPairs.nra=["zenrao88^D^"];city_SuburbPairs.ntl=["zentlc60^^","zentls60^^","zentls01^^","zentlw60^^","zentlt50^^"];city_SuburbPairs.zne=["zeznet50^D^"];city_SuburbPairs.noa=["zenoac60^D^"];city_SuburbPairs.olp=["zeolpt51^D^"];city_SuburbPairs.oag=["zeoagt50^^","zeoagc60^^"];city_SuburbPairs.pbo=["zepbot50^D^"];city_SuburbPairs.pke=["zepket50^^","zepkec60^^"];city_SuburbPairs.per=["zepert50^^","zeperc60^^","zepers61^^","zepers60^^","zeperc70^^","zeperc80^^"];city_SuburbPairs.pug=["zepugc60^D^"];city_SuburbPairs.phe=["zephet50^D^"];city_SuburbPairs.pqq=["zepqqt50^^","zepqqc60^^"];city_SuburbPairs.ptj=["zeptjt50^^","zeptjc60^^"];city_SuburbPairs.ppp=["zepppt50^D^"];city_SuburbPairs.rok=["zerokt50^^","zerokt51^^","zerokc61^^"];city_SuburbPairs.sxe=["zesxec60^D^"];city_SuburbPairs.sht=["zeshtc60^D^"];city_SuburbPairs.six=["zesixc60^D^"];city_SuburbPairs.syd=["zesydt50^^","zesydw01^^","zesydn61^^","zesydc81^^","zesydn60^^","zesyds63^^","zesyds01^^","zesydn63^^","zesydc60^^","zesydw62^^","zesydw65^^","zesydw64^^","zesydw60^^","zesydw59^^","zesydw63^^","zesyds60^^"];city_SuburbPairs.tmw=["zetmwt50^^","zesydc60^^"];city_SuburbPairs.twb=["zetwbc60^D^"];city_SuburbPairs.tsv=["zetsvt50^D^"];city_SuburbPairs.tgn=["zetgnc60^^","zetgnw60^^"];city_SuburbPairs.tum=["zetumc60^D^"];city_SuburbPairs.wga=["zewgat50^^","zewgac60^^","zewgae60^^"];city_SuburbPairs.wgt=["zewgtc60^D^"];city_SuburbPairs.wmb=["zewmbc60^D^"];city_SuburbPairs.wwy=["zewwyt50^^","zewwyc60^^"];city_SuburbPairs.wya=["zewyat50^^","zewyac60^^"];city_SuburbPairs.nga=["zengac60^D^"];var suburb_port=new Array();suburb_port.zeabxt50="Airport";suburb_port.zeabxc60="City";suburb_port.zeabxs60="Wodonga";suburb_port.zeadlt50="Airport";suburb_port.zeadlc60="City";suburb_port.zeadlc81="Klemzig";suburb_port.zeadlc80="Klemzig 4WD & Trucks";suburb_port.zeadlc83="Plymton";suburb_port.zearmt50="Airport";suburb_port.zeaspt50="Airport";suburb_port.zeaspc60="City";suburb_port["zeavvt50 "]="Airport";suburb_port.zeayqt50="Airport";suburb_port.zeayqc60="City";suburb_port.zebdbt50="Airport";suburb_port.zebhqt50="Airport";suburb_port.zebhqc60="City";suburb_port.zebhst50="Airport";suburb_port.zebhsc60="City";suburb_port.zebmet50="Airport";suburb_port.zebnet50="Airport";suburb_port.zebnen60="Boondall";suburb_port.zebnen61="Boondall Trucks";suburb_port.zebnec60="City";suburb_port.zebnew01="Ipswich";suburb_port.zebnew60="Rocklea";suburb_port.zebnew02="Slacks Creek";suburb_port.zebnec62="Surfers Paradise";suburb_port.zebnkt50="Airport";suburb_port.zebnkc60="City";suburb_port.zebuyc60="City";suburb_port.zebwtt50="Airport";suburb_port.zebwtc60="City";suburb_port.zebwuc60="City";suburb_port.zecazt50="Airport";suburb_port.zecazc60="City";suburb_port.zecbrt50="Airport";suburb_port.zecbrc80="Canberra 4WDs & Trucks";suburb_port.zecbrc60="City";suburb_port.zecbrs61="Queanbeyan";suburb_port.zecbrn60="Yass";suburb_port.zecesc60="City";suburb_port.zecfst50="Airport";suburb_port.zecfsc60="City";suburb_port.zecnst50="Airport";suburb_port.zecnsc60="City";suburb_port.zecwtc60="City";suburb_port.zedbot50="Airport";suburb_port.zedboc60="City";suburb_port.zedget50="Airport";suburb_port.zedpot50="Airport";suburb_port.zedpoc60="City";suburb_port.zedpoc61="Ferry Terminal";suburb_port.zedrwt50="Airport";suburb_port.zedrwc60="City";suburb_port.zeemdt50="Airport";suburb_port.zeemdc60="City";suburb_port.zeexmt50="Airport";suburb_port.zegett50="Airport";suburb_port.zegetc60="City";suburb_port.zegexc60="City";suburb_port.zegexr01="Lorne";suburb_port.zegfft50="Airport";suburb_port.zegfnt50="Airport";suburb_port.zegfnc60="City";suburb_port.zegltt50="Airport";suburb_port.zegltt52="Gladstone Trucks";suburb_port.zeguyc60="City";suburb_port.zehbat50="Airport";suburb_port.zehbac60="City";suburb_port.zehltc60="City";suburb_port.zehvbt50="Airport";suburb_port.zehvbc60="City";suburb_port.zeisat50="Airport";suburb_port.zeisac60="City";suburb_port.zekgct50="Airport";suburb_port.zekgcc60="City";suburb_port.zekgcp01="Pennishaw Wharf";suburb_port.zekgit50="Airport";suburb_port.zekgic60="City";suburb_port.zeknzt50="Airport";suburb_port.zektat50="Airport";suburb_port.zektrt50="Airport";suburb_port.zektrc60="City";suburb_port.zelstt50="Airport";suburb_port.zelstc60="City";suburb_port.zelsyt50="Airport";suburb_port.zelsyc60="City";suburb_port.zembhc60="City";suburb_port.zembwc60="City";suburb_port.zemcyt50="Airport";suburb_port.zemcyn60="Noosa";suburb_port.zemelt50="Airport";suburb_port.zemelw04="Bacchus Marsh";suburb_port.zemelw61="Ballarat";suburb_port.zemele63="Balwyn";suburb_port.zemeln61="Bendigo";suburb_port.zemelw03="Brooklyn Trucks";suburb_port.zemeln63="Castlemaine";suburb_port.zemelc60="City";suburb_port.zemele64="Clayton";suburb_port.zemele61="Dandenong";suburb_port.zemeln60="Echuca";suburb_port.zemeln01="Essendon";suburb_port.zemebt51="Essendon Airport";suburb_port.zemels60="Frankston";suburb_port.zemeln02="Kyneton";suburb_port.zemelc61="Micham";suburb_port.zemeln64="North Melbourne";suburb_port.zemeln62="Preston";suburb_port.zemels65="South Yarra";suburb_port.zemels64="Werribee";suburb_port.zemelw02="West Melbourne Trucks";suburb_port.zemgbt50="Airport";suburb_port.zemgbt51="Mt Gambier Trucks";suburb_port.zemimt50="Airport";suburb_port.zemimc60="City";suburb_port.zemkyt50="Airport";suburb_port.zemqlt50="Airport";suburb_port.zemrzt50="Airport";suburb_port.zemrzc60="City";suburb_port.zemtlc60="City";suburb_port.zemyat50="Airport";suburb_port.zenaat50="Airport";suburb_port.zenaac60="City";suburb_port.zenacc60="City";suburb_port.zengac60="City";suburb_port.zenoac60="City";suburb_port.zenrao88="Airport";suburb_port.zentlc60="City";suburb_port.zentls60="Gosford";suburb_port.zentls01="Gosford Trucks";suburb_port.zentlw60="Muswellbrook";suburb_port.zentlt50="Williamtown Airport";suburb_port.zeoagt50="Airport";suburb_port.zeoagc60="City";suburb_port.zeolpt51="City";suburb_port.zeoolt50="Airport";suburb_port.zepbot50="Airport";suburb_port.zepert50="Airport";suburb_port.zeperc60="City";suburb_port.zepers61="Mandurah";suburb_port.zepers60="Melville";suburb_port.zeperc70="Osborne Park";suburb_port.zeperc80="Welshpool 4WDs & Trucks";suburb_port.zephet50="Airport";suburb_port.zepket50="Airport";suburb_port.zepkec60="City";suburb_port.zepppt50="Airport";suburb_port.zepqqt50="Airport";suburb_port.zepqqc60="City";suburb_port.zeptjt50="Airport";suburb_port.zeptjc60="City";suburb_port.zepugc60="City";suburb_port.zeqlet50="Airport";suburb_port.zeqlec60="City";suburb_port.zeqync60="City";suburb_port.zerokt50="Airport";suburb_port.zerokt51="Rockhampton Airport Trucks";suburb_port.zerokc61="Rockhampton City  Trucks";suburb_port.zeshtc60="City";suburb_port.zesixc60="City";suburb_port.zesxec60="City";suburb_port.zesydt50="Airport";suburb_port.zesydw01="Arncliffe";suburb_port.zesydn61="Artarmon";suburb_port.zesydc81="Botany Trucks & 4WDs";suburb_port.zesydn60="Brookvale";suburb_port.zesyds63="Campbelltown";suburb_port.zesyds01="Campbelltown Trucks";suburb_port.zesydn63="Castle Hill";suburb_port.zesydc60="City";suburb_port.zesydw62="Five Dock";suburb_port.zesydw65="Granville";suburb_port.zesydw64="Lithgow";suburb_port.zesydw60="Penrith";suburb_port.zesydw59="Richmond";suburb_port.zesydw63="Smithfield";suburb_port.zesyds60="Wollongong";suburb_port.zetgnc60="City";suburb_port.zetgnw60="Warragul";suburb_port.zetmwt50="Airport";suburb_port.zetsvt50="Airport";suburb_port.zetumc60="City";suburb_port.zetwbc60="City";suburb_port.zewgat50="Airport";suburb_port.zewgac60="City";suburb_port.zewgae60="Gundagai";suburb_port.zewgtc60="City";suburb_port.zewmbc60="City";suburb_port.zewsyc60="City";suburb_port.zewwyt50="Airport";suburb_port.zewwyc60="City";suburb_port.zewyat50="Airport";suburb_port.zewyac60="City";suburb_port.zexcoc60="City";suburb_port.zeznet50="Airport";var city_port=new Array();city_port.adl="Adelaide ";city_port.wsy="Airlie Beach";city_port.abx="Albury";city_port.asp="Alice Springs";city_port.arm="Armidale";city_port.avv="Avalon";city_port.ayq="Ayers Rock";city_port.bnk="Ballina";city_port.bwu="Bankstown";city_port.bhs="Bathurst";city_port.bne="Brisbane";city_port.bhq="Broken Hill";city_port.bme="Broome ";city_port.buy="Bunbury";city_port.bdb="Bundaberg";city_port.bwt="Burnie";city_port.qyn="Byron Bay";city_port.cns="Cairns";city_port.cbr="Canberra";city_port.ces="Cessnock";city_port.caz="Cobar";city_port.caz="Cobar ";city_port.cfs="Coffs Harbour";city_port.xco="Colac";city_port.ool="Coolangatta";city_port.cwt="Cowra";city_port.drw="Darwin";city_port.dpo="Devonport ";city_port.dbo="Dubbo ";city_port.emd="Emerald";city_port.exm="Exmouth";city_port.gex="Geelong";city_port.get="Geraldton";city_port.glt="Gladstone";city_port.gfn="Grafton";city_port.gff="Griffith ";city_port.guy="Gunnehdah";city_port.hlt="Hamilton";city_port.hvb="Hervey Bay";city_port.hba="Hobart";city_port.kgi="Kalgoorlie";city_port.kgc="Kangaroo Island";city_port.kgc="Kangaroo Island ";city_port.kta="Karratha";city_port.ktr="Kartherine";city_port.ktr="Katherine";city_port.knx="Kununurra ";city_port.lst="Launceston";city_port.qle="Leeton";city_port.lsy="Lismore";city_port.mky="Mackay";city_port.mtl="Maitland";city_port.mcy="Maroochydore";city_port.mbh="Maryborough";city_port.mel="Melbourne";city_port.mim="Merimbula";city_port.mql="Mildura";city_port.mbw="Moorabbin";city_port.mrz="Moree";city_port.mya="Moruya ";city_port.mgb="Mt Gambier";city_port.isa="Mt Isa";city_port.dge="Mudgee";city_port.nac="Naracoorte";city_port.naa="Narrabri";city_port.nra="Narrandera";city_port.ntl="Newcastle";city_port.zne="Newman";city_port.noa="Nowra";city_port.olp="Olympic Dam";city_port.oag="Orange";city_port.pbo="Paraburdoo";city_port.pke="Parkes";city_port.per="Perth";city_port.pug="Port Augusta";city_port.phe="Port Headland";city_port.pqq="Port Macquarie";city_port.ptj="Portland";city_port.ppp="Proserpine ";city_port.rok="Rockhampton";city_port.rok="Rockhampton ";city_port.sxe="Sale";city_port.sht="Shepparton";city_port.six="Singleton";city_port.syd="Sydney";city_port.tmw="Tamworth";city_port.twb="Toowoomba";city_port.tsv="Townsville";city_port.tgn="Traralgon";city_port.tum="Tumut";city_port.wga="Wagga Wagga";city_port.wgt="Wangaratta";city_port.wmb="Warrnambool";city_port.wwy="West Wyalong";city_port.wya="Whyalla";city_port.nga="Young";var headerConst=new Array();headerConst[0]=["Select a City","selectacity"];headerConst[1]=["---------------","separator"];var headerConstg=new Array();headerConstg[0]=["Select a Location","  "];headerConstg[1]=["---------------","  "];var carsPromoDropdown=new hertz();function hertz(){}hertz.prototype.populateCarPromoPickupOptions=function(id){var citySuburbPair;var carSuburb;if(id=="carPickUp"){citySuburbPair="city_SuburbPairs";carSuburb="carPickUpSuburb"}if(id=="carDropOff"){citySuburbPair="city_SuburbPairs";carSuburb="carDropOffSuburb"}var pickupList=document.getElementById(id);var i=0;var m=0;var carPickupArray=new Array();var pickupCityCode;for(var pickupCityCode in eval(citySuburbPair)){pickupCityCode=pickupCityCode;carPickupArray[i++]=[eval("city_port")[pickupCityCode],pickupCityCode]}var singleCity=false;if(carPickupArray.length==1){singleCity=true}if(singleCity){pickupList.options[0]=new Option(carPickupArray[0][0],carPickupArray[0][1]);this.populatePickupCarPromoToOptions(carPickupArray[0][1],carSuburb)}else{for(i=0;i<headerConst.length;i++){pickupList.options[i]=new Option(headerConst[i][0],headerConst[i][1])}for(var j=0;j<carPickupArray.length;j++){pickupList.options[i++]=new Option(carPickupArray[j][0],carPickupArray[j][1])}this.populatePickupCarPromoToOptions(null,carSuburb)}};hertz.prototype.populatePickupCarPromoToOptions=function(selected,id){var citySuburbPair;var carSuburb;if(id=="carPickUpSuburb"){citySuburbPair="city_SuburbPairs";carSuburb="carPickUpSuburb"}if(id=="carDropOffSuburb"){citySuburbPair="city_SuburbPairs";carSuburb="carDropOffSuburb"}var pickupList=document.getElementById(id);if(eval(pickupList)){pickupList.options.length=0;var singleCity=false;if(selected=="selectacity"||selected=="separator"||selected=="each"){selected=null}if(null!=selected){var toArray=new Array();var defaultValue=new Array();var m=0;if(eval(citySuburbPair)[selected].length>=1&&eval(citySuburbPair)[selected][0]!=null&&eval(citySuburbPair)[selected][0]!=""){for(var i=0;i<eval(citySuburbPair)[selected].length;i++){if(eval(citySuburbPair)[selected][i].split("^")[1]=="D"||eval(citySuburbPair)[selected][i].split("^")[1]=="d"){defaultValue[0]=[eval("suburb_port")[eval(citySuburbPair)[selected][i].split("^")[0]],eval(citySuburbPair)[selected][i]]}toArray[i]=[eval("suburb_port")[eval(citySuburbPair)[selected][i].split("^")[0]],eval(citySuburbPair)[selected][i]]}if(toArray!=null&&toArray.length==1){singleCity=true}}}if(singleCity){var k=0;for(k;k<headerConstg.length;k++){pickupList.options[k]=new Option(headerConstg[k][0],headerConstg[k][1])}pickupList.options[k]=new Option(toArray[0][0],toArray[0][1].split("^")[0]);if(defaultValue!=null&&defaultValue!=""){for(var i=0;i<pickupList.options.length;++i){if(pickupList.options[i].value==defaultValue[0][1].split("^")[0]){pickupList.options.selectedIndex=i;break}}}}else{var i=0;for(i;i<headerConstg.length;i++){pickupList.options[i]=new Option(headerConstg[i][0],headerConstg[i][1])}if(null!=toArray){for(var j=0;j<toArray.length;j++){pickupList.options[i++]=new Option(toArray[j][0],toArray[j][1].split("^")[0])}}if(defaultValue!=null&&defaultValue!=""){for(var i=0;i<pickupList.options.length;++i){if(pickupList.options[i].value==defaultValue[0][1].split("^")[0]){pickupList.options.selectedIndex=i;break}}}}}};function updateDropoffDropdown(a){carsPromoDropdown.populatePickupCarPromoToOptions(a.value,"carDropOffSuburb")}function updatePickupDropdown(a){carsPromoDropdown.populatePickupCarPromoToOptions(a.value,"carPickUpSuburb")}hertz.prototype.populateCarVendorPickupOptions=function(e){var c=document.getElementById(e);var d=new Array();d[1]=["Hertz","ZE"];var b=0;for(var a=1;a<d.length;a++){c.options[b++]=new Option(d[a][0],d[a][1])}};
