
/** This is a generated JavaScript. Do not edit!!! */

var city_SuburbPairs=new Array();
city_SuburbPairs["adl"]=["zdadlt01^^","zdadlc01^^","zdadls01^^","zdadln01^^","zdadln03^^"];
city_SuburbPairs["abx"]=["zdabxc01^^"];
city_SuburbPairs["axl"]=["zdaxlc01^^"];
city_SuburbPairs["asp"]=["zdaspt01^^","zdaspc01^^"];
city_SuburbPairs["arm"]=["zdarmt01^^","zdarmc01^^"];
city_SuburbPairs["avv"]=["zdavvt01^^"];
city_SuburbPairs["bsj"]=["zdbsjc01^^"];
city_SuburbPairs["meb"]=["zdmebe01^^"];
city_SuburbPairs["bnk"]=["zdbnko01^^","zdbnkc01^^"];
city_SuburbPairs["bwu"]=["zdbwus01^^"];
city_SuburbPairs["bci"]=["zdbcic01^^"];
city_SuburbPairs["bhs"]=["zdbhst01^^","zdbhsc01^^"];
city_SuburbPairs["zbl"]=["zdzblc01^^"];
city_SuburbPairs["blt"]=["zdblto01^^","zdbltc01^^"];
city_SuburbPairs["bne"]=["zdbnet01^^","zdbnen02^^","zdbnen04^^","zdbnes04^^","zdbnec01^^","zdbnee01^^","zdbnew04^^","zdbnee02^^","zdbnen03^^","zdbnes03^^"];
city_SuburbPairs["buy"]=["zdbuyc01^^"];
city_SuburbPairs["bdb"]=["zdbdbt01^^","zdbdbc01^^"];
city_SuburbPairs["bwt"]=["zdbwtc01^^","zdbwtt01^^"];
city_SuburbPairs["ast"]=["zdastc90^^"];
city_SuburbPairs["cns"]=["zdcnst01^^","zdcnsc01^^"];
city_SuburbPairs["cud"]=["zdcudc01^^"];
city_SuburbPairs["cbr"]=["zdcbrt01^^","zdcbrc01^^","zdcbrn01^^"];
city_SuburbPairs["cvq"]=["zdcvqt01^^","zdcvqc01^^"];
city_SuburbPairs["csi"]=["zdcsic01^^"];
city_SuburbPairs["ced"]=["zdcedo01^^","zdcedc01^^"];
city_SuburbPairs["ctl"]=["zdctlt01^^"];
city_SuburbPairs["cmq"]=["zdcmqc01^^"];
city_SuburbPairs["cnj"]=["zdcnjt01^^","zdcnjc02^^"];
city_SuburbPairs["caz"]=["zdcazc01^^"];
city_SuburbPairs["cfs"]=["zdcfst01^^","zdcfsc01^^"];
city_SuburbPairs["xco"]=["zdxcoc01^^"];
city_SuburbPairs["ool"]=["zdoolt01^^"];
city_SuburbPairs["dby"]=["zddbyc01^^"];
city_SuburbPairs["drw"]=["zddrwt01^^","zddrwc01^^"];
city_SuburbPairs["dpo"]=["zddpot01^^","zddpoc01^^","zddpoc02^^"];
city_SuburbPairs["dbo"]=["zddbot01^^","zddboc01^^"];
city_SuburbPairs["dya"]=["zddyac01^^"];
city_SuburbPairs["emd"]=["zdemdt01^^","zdemdc01^^","zdemds01^^","zdemdn01^^"];
city_SuburbPairs["exm"]=["zdexmc01^^"];
city_SuburbPairs["gex"]=["zdgexc01^^"];
city_SuburbPairs["get"]=["zdgett01^^","zdgetc01^^"];
city_SuburbPairs["glt"]=["zdgltt01^^","zdgltc01^^","zdglte01^^"];
city_SuburbPairs["gli"]=["zdglic01^^"];
city_SuburbPairs["sfp"]=["zdsfpc01^^"];
city_SuburbPairs["gos"]=["zdgosc01^^"];
city_SuburbPairs["gfn"]=["zdgfnc01^^"];
city_SuburbPairs["gff"]=["zdgffc01^^"];
city_SuburbPairs["guh"]=["zdguhc01^^"];
city_SuburbPairs["gyp"]=["zdgypc01^^"];
city_SuburbPairs["hvb"]=["zdhvbt01^^","zdhvbc01^^","zdhvbc02^^"];
city_SuburbPairs["hba"]=["zdhbat01^^","zdhbac01^^"];
city_SuburbPairs["kgi"]=["zdkgit01^^","zdkgic01^^"];
city_SuburbPairs["kta"]=["zdktat01^^","zdktac01^^"];
city_SuburbPairs["kgy"]=["zdkgyc01^^"];
city_SuburbPairs["kgc"]=["zdkgco01^^","zdkgcc01^^","zdkgcc02^^"];
city_SuburbPairs["lst"]=["zdlstt01^^","zdlstc01^^"];
city_SuburbPairs["lea"]=["zdleat01^^"];
city_SuburbPairs["lsy"]=["zdlsyt01^^","zdlsyc01^^"];
city_SuburbPairs["lre"]=["zdlrec01^^"];
city_SuburbPairs["mky"]=["zdmkyt01^^","zdmkyc01^^"];
city_SuburbPairs["mcy"]=["zdmcyt01^^","zdmcyc01^^"];
city_SuburbPairs["mbh"]=["zdmbht01^^"];
city_SuburbPairs["mel"]=["zdmelt01^^","zdmeln01^^","zdmeln02^^","zdmele01^^","zdmele03^^","zdmele08^^","zdmelc01^^","zdmele04^^","zdmele05^^","zdmelw04^^","zdmels02^^","zdmelw02^^","zdmels04^^","zdmele02^^","zdmels03^^","zdmels06^^"];
city_SuburbPairs["mbw"]=["zdmbwt01^^","zdmbww03^^","zdmbwn03^^","zdmbwn08^^","zdmbwn09^^"];
city_SuburbPairs["mmm"]=["zdmmmc01^^"];
city_SuburbPairs["mql"]=["zdmqlt01^^","zdmqlc01^^"];
city_SuburbPairs["moo"]=["zdmooc01^^"];
city_SuburbPairs["mov"]=["zdmovt01^^","zdmovc01^^"];
city_SuburbPairs["mrz"]=["zdmrzt01^^","zdmrzc01^^"];
city_SuburbPairs["ong"]=["zdongc01^^"];
city_SuburbPairs["mgb"]=["zdmgbt01^^"];
city_SuburbPairs["isa"]=["zdisat01^^","zdisac98^^"];
city_SuburbPairs["naa"]=["zdnaac01^^"];
city_SuburbPairs["ntl"]=["zdntlt01^^","zdntlc01^^"];
city_SuburbPairs["zne"]=["zdznet01^^"];
city_SuburbPairs["nsv"]=["zdnsvc01^^"];
city_SuburbPairs["olp"]=["zdolpo01^^","zdolpw01^^"];
city_SuburbPairs["pbo"]=["zdpbot01^^"];
city_SuburbPairs["per"]=["zdpert01^^","zdpere01^^","zdperc97^^","zdperc01^^","zdpers03^^","zdpero99^^","zdpers04^^"];
city_SuburbPairs["pug"]=["zdpugc01^^"];
city_SuburbPairs["pti"]=["zdptic01^^"];
city_SuburbPairs["phe"]=["zdphet01^^","zdphec01^^"];
city_SuburbPairs["plo"]=["zdplot01^^","zdploc01^^"];
city_SuburbPairs["pqq"]=["zdpqqt01^^","zdpqqc01^^"];
city_SuburbPairs["uir"]=["zduirc01^^"];
city_SuburbPairs["epr"]=["zdeprw01^^"];
city_SuburbPairs["rok"]=["zdrokt01^^","zdrokc01^^","zdrokn01^^"];
city_SuburbPairs["rma"]=["zdrmac01^^"];
city_SuburbPairs["sxe"]=["zdsxec01^^"];
city_SuburbPairs["six"]=["zdsixc01^^"];
city_SuburbPairs["shq"]=["zdshqc01^^"];
city_SuburbPairs["syd"]=["zdsydt01^^","zdsydn03^^","zdsydw01^^","zdsyds02^^","zdsydc03^^","zdsydc01^^","zdsydn02^^","zdsydc02^^","zdsydw02^^"];
city_SuburbPairs["tmw"]=["zdtmwt01^^","zdtmwc01^^"];
city_SuburbPairs["tro"]=["zdtrot01^^","zdtroc99^^"];
city_SuburbPairs["thg"]=["zdthgt01^^"];
city_SuburbPairs["twb"]=["zdtwbc01^^","zdtwbe01^^"];
city_SuburbPairs["tsv"]=["zdtsvt01^^","zdtsvc01^^"];
city_SuburbPairs["tgn"]=["zdtgnc01^^"];
city_SuburbPairs["wga"]=["zdwgat01^^","zdwgac01^^"];
city_SuburbPairs["waz"]=["zdwazc02^^"];
city_SuburbPairs["wya"]=["zdwyao01^^","zdwyac01^^"];
city_SuburbPairs["wol"]=["zdwolc01^^"];
var suburb_port=new Array();
suburb_port["zdadlt01"]="Airport";
suburb_port["zdadlc01"]="City";
suburb_port["zdadls01"]="Reynella ";
suburb_port["zdadln01"]="Roxby Downs ";
suburb_port["zdadln03"]="Salisbury";
suburb_port["zdabxc01"]="City";
suburb_port["zdaxlc01"]="Alexandria";
suburb_port["zdaspt01"]="Airport";
suburb_port["zdaspc01"]="City";
suburb_port["zdarmt01"]="Airport";
suburb_port["zdarmc01"]="City";
suburb_port["zdavvt01"]="Airport";
suburb_port["zdbsjc01"]="City";
suburb_port["zdmebe01"]="City";
suburb_port["zdbnko01"]="Airport";
suburb_port["zdbnkc01"]="Ballina ";
suburb_port["zdbwus01"]="Revesby";
suburb_port["zdbcic01"]="City";
suburb_port["zdbhst01"]="Airport";
suburb_port["zdbhsc01"]="City";
suburb_port["zdzblc01"]="City";
suburb_port["zdblto01"]="Airport";
suburb_port["zdbltc01"]="City";
suburb_port["zdbnet01"]="Airport";
suburb_port["zdbnen02"]="Boondall";
suburb_port["zdbnen04"]="Burpengary";
suburb_port["zdbnes04"]="Capalaba";
suburb_port["zdbnec01"]="City";
suburb_port["zdbnee01"]="Hamilton";
suburb_port["zdbnew04"]="Ipswich";
suburb_port["zdbnee02"]="Logan";
suburb_port["zdbnen03"]="Redcliffe";
suburb_port["zdbnes03"]="Rocklea";
suburb_port["zdbuyc01"]="City";
suburb_port["zdbdbt01"]="Airport";
suburb_port["zdbdbc01"]="City";
suburb_port["zdbwtc01"]="City";
suburb_port["zdbwtt01"]="Wynyard Airport";
suburb_port["zdastc90"]="City";
suburb_port["zdcnst01"]="Airport";
suburb_port["zdcnsc01"]="City";
suburb_port["zdcudc01"]="Caloundra ";
suburb_port["zdcbrt01"]="Airport";
suburb_port["zdcbrc01"]="City";
suburb_port["zdcbrn01"]="Goulburn";
suburb_port["zdcvqt01"]="Airport";
suburb_port["zdcvqc01"]="City";
suburb_port["zdcsic01"]="Airport";
suburb_port["zdcedo01"]="Airport";
suburb_port["zdcedc01"]="City";
suburb_port["zdctlt01"]="City";
suburb_port["zdcmqc01"]="Clemont ";
suburb_port["zdcnjt01"]="Airport";
suburb_port["zdcnjc02"]="City";
suburb_port["zdcazc01"]="City";
suburb_port["zdcfst01"]="Airport";
suburb_port["zdcfsc01"]="City";
suburb_port["zdxcoc01"]="City";
suburb_port["zdoolt01"]="Airport";
suburb_port["zddbyc01"]="City";
suburb_port["zddrwt01"]="Airport";
suburb_port["zddrwc01"]="City";
suburb_port["zddpot01"]="Airport";
suburb_port["zddpoc01"]="City";
suburb_port["zddpoc02"]="Devonport Ferry";
suburb_port["zddbot01"]="Airport";
suburb_port["zddboc01"]="City";
suburb_port["zddyac01"]="City";
suburb_port["zdemdt01"]="Airport";
suburb_port["zdemdc01"]="City";
suburb_port["zdemds01"]="Springsure";
suburb_port["zdemdn01"]="Tieri";
suburb_port["zdexmc01"]="City";
suburb_port["zdgexc01"]="City";
suburb_port["zdgett01"]="Airport";
suburb_port["zdgetc01"]="City";
suburb_port["zdgltt01"]="Airport";
suburb_port["zdgltc01"]="City";
suburb_port["zdglte01"]="Moura ";
suburb_port["zdglic01"]="City";
suburb_port["zdsfpc01"]="Surfers Paradise";
suburb_port["zdgosc01"]="City";
suburb_port["zdgfnc01"]="City";
suburb_port["zdgffc01"]="City";
suburb_port["zdguhc01"]="City";
suburb_port["zdgypc01"]="City";
suburb_port["zdhvbt01"]="Airport";
suburb_port["zdhvbc01"]="City";
suburb_port["zdhvbc02"]="Fraser Coast";
suburb_port["zdhbat01"]="Airport";
suburb_port["zdhbac01"]="City";
suburb_port["zdkgit01"]="Airport";
suburb_port["zdkgic01"]="City";
suburb_port["zdktat01"]="Airport";
suburb_port["zdktac01"]="City";
suburb_port["zdkgyc01"]="City";
suburb_port["zdkgco01"]="Airport";
suburb_port["zdkgcc01"]="City";
suburb_port["zdkgcc02"]="Penneshaw Ferry";
suburb_port["zdlstt01"]="Airport";
suburb_port["zdlstc01"]="City";
suburb_port["zdleat01"]="City";
suburb_port["zdlsyt01"]="Airport";
suburb_port["zdlsyc01"]="City";
suburb_port["zdlrec01"]="City";
suburb_port["zdmkyt01"]="Airport";
suburb_port["zdmkyc01"]="City";
suburb_port["zdmcyt01"]="Airport";
suburb_port["zdmcyc01"]="City";
suburb_port["zdmbht01"]="Airport";
suburb_port["zdmelt01"]="Airport";
suburb_port["zdmeln01"]="Airport West";
suburb_port["zdmeln02"]="Bendigo";
suburb_port["zdmele01"]="Box Hill ";
suburb_port["zdmele03"]="Camberwell";
suburb_port["zdmele08"]="Campbellfield ";
suburb_port["zdmelc01"]="City";
suburb_port["zdmele04"]="Clayton ";
suburb_port["zdmele05"]="Dandenong ";
suburb_port["zdmelw04"]="Footscray ";
suburb_port["zdmels02"]="Frankston";
suburb_port["zdmelw02"]="Hoppers Crossing";
suburb_port["zdmels04"]="Preston";
suburb_port["zdmele02"]="Richmond ";
suburb_port["zdmels03"]="Southbank";
suburb_port["zdmels06"]="Sunshine";
suburb_port["zdmbwt01"]="Airport";
suburb_port["zdmbww03"]="Bayswater City";
suburb_port["zdmbwn03"]="Croydon City";
suburb_port["zdmbwn08"]="Highett City";
suburb_port["zdmbwn09"]="South Yarra";
suburb_port["zdmmmc01"]="City";
suburb_port["zdmqlt01"]="Airport";
suburb_port["zdmqlc01"]="City";
suburb_port["zdmooc01"]="City";
suburb_port["zdmovt01"]="Airport";
suburb_port["zdmovc01"]="City";
suburb_port["zdmrzt01"]="Airport";
suburb_port["zdmrzc01"]="City";
suburb_port["zdongc01"]="City";
suburb_port["zdmgbt01"]="Airport";
suburb_port["zdisat01"]="Airport";
suburb_port["zdisac98"]="City";
suburb_port["zdnaac01"]="City";
suburb_port["zdntlt01"]="Airport";
suburb_port["zdntlc01"]="City";
suburb_port["zdznet01"]="City";
suburb_port["zdnsvc01"]="City";
suburb_port["zdolpo01"]="Airport";
suburb_port["zdolpw01"]="Coober Pedy";
suburb_port["zdpbot01"]="City";
suburb_port["zdpert01"]="Airport";
suburb_port["zdpere01"]="Balcatta";
suburb_port["zdperc97"]="Belmont";
suburb_port["zdperc01"]="City";
suburb_port["zdpers03"]="Fremantle";
suburb_port["zdpero99"]="Perth Airport 4WDs";
suburb_port["zdpers04"]="Redcliffe";
suburb_port["zdpugc01"]="City";
suburb_port["zdptic01"]="City";
suburb_port["zdphet01"]="Airport";
suburb_port["zdphec01"]="City";
suburb_port["zdplot01"]="Airport";
suburb_port["zdploc01"]="City";
suburb_port["zdpqqt01"]="Airport";
suburb_port["zdpqqc01"]="City";
suburb_port["zduirc01"]="City";
suburb_port["zdeprw01"]="City";
suburb_port["zdrokt01"]="Airport";
suburb_port["zdrokc01"]="City";
suburb_port["zdrokn01"]="Yeppoon";
suburb_port["zdrmac01"]="City";
suburb_port["zdsxec01"]="City";
suburb_port["zdsixc01"]="City";
suburb_port["zdshqc01"]="Ashmore";
suburb_port["zdsydt01"]="Airport";
suburb_port["zdsydn03"]="Artarmon";
suburb_port["zdsydw01"]="Blacktown";
suburb_port["zdsyds02"]="Campbelltown";
suburb_port["zdsydc03"]="Gladesville";
suburb_port["zdsydc01"]="Kings Cross";
suburb_port["zdsydn02"]="Manly";
suburb_port["zdsydc02"]="North Sydney";
suburb_port["zdsydw02"]="Parramatta";
suburb_port["zdtmwt01"]="Airport";
suburb_port["zdtmwc01"]="City";
suburb_port["zdtrot01"]="Airport";
suburb_port["zdtroc99"]="City";
suburb_port["zdthgt01"]="Airport";
suburb_port["zdtwbc01"]="City";
suburb_port["zdtwbe01"]="Gatton";
suburb_port["zdtsvt01"]="Airport";
suburb_port["zdtsvc01"]="City";
suburb_port["zdtgnc01"]="City";
suburb_port["zdwgat01"]="Airport";
suburb_port["zdwgac01"]="City";
suburb_port["zdwazc02"]="City";
suburb_port["zdwyao01"]="Airport";
suburb_port["zdwyac01"]="City";
suburb_port["zdwolc01"]="City";
var city_port=new Array();
city_port["adl"]="Adelaide";
city_port["abx"]="Albury";
city_port["axl"]="Alexandria";
city_port["asp"]="Alice Springs";
city_port["arm"]="Armidale";
city_port["avv"]="Avalon";
city_port["bsj"]="Bairnsdale";
city_port["meb"]="Ballarat";
city_port["bnk"]="Ballina";
city_port["bwu"]="Bankstown";
city_port["bci"]="Barcaldine";
city_port["bhs"]="Bathurst";
city_port["zbl"]="Bioela";
city_port["blt"]="Blackwater";
city_port["bne"]="Brisbane";
city_port["buy"]="Bunbury";
city_port["bdb"]="Bundaberg";
city_port["bwt"]="Burnie";
city_port["ast"]="Burswood";
city_port["cns"]="Cairns";
city_port["cud"]="Caloundra";
city_port["cbr"]="Canberra";
city_port["cvq"]="Carnarvon";
city_port["csi"]="Casino";
city_port["ced"]="Ceduna";
city_port["ctl"]="Charleville";
city_port["cmq"]="Clermont";
city_port["cnj"]="Cloncurry";
city_port["caz"]="Cobar";
city_port["cfs"]="Coffs Harbour";
city_port["xco"]="Colac";
city_port["ool"]="Coolangatta";
city_port["dby"]="Dalby";
city_port["drw"]="Darwin";
city_port["dpo"]="Devonport";
city_port["dbo"]="Dubbo";
city_port["dya"]="Dysart";
city_port["emd"]="Emerald";
city_port["exm"]="Exmouth";
city_port["gex"]="Geelong";
city_port["get"]="Geraldton";
city_port["glt"]="Gladstone";
city_port["gli"]="Glen Innes";
city_port["sfp"]="Gold Coast";
city_port["gos"]="Gosford";
city_port["gfn"]="Grafton";
city_port["gff"]="Griffith";
city_port["guh"]="Gunnedah";
city_port["gyp"]="Gympie";
city_port["hvb"]="Hervey Bay";
city_port["hba"]="Hobart";
city_port["kgi"]="Kalgoorlie";
city_port["kta"]="Karratha";
city_port["kgy"]="Kingaroy";
city_port["kgc"]="Kingscote";
city_port["lst"]="Launceston";
city_port["lea"]="Learmonth";
city_port["lsy"]="Lismore";
city_port["lre"]="Longreach";
city_port["mky"]="Mackay";
city_port["mcy"]="Maroochydore";
city_port["mbh"]="Maryborough";
city_port["mel"]="Melbourne";
city_port["mbw"]="Mentone";
city_port["mmm"]="Middlemount";
city_port["mql"]="Mildura";
city_port["moo"]="Moomba";
city_port["mov"]="Moranbah";
city_port["mrz"]="Moree";
city_port["ong"]="Mornington";
city_port["mgb"]="Mt Gambier";
city_port["isa"]="Mt Isa";
city_port["naa"]="Narrabri";
city_port["ntl"]="Newcastle";
city_port["zne"]="Newman";
city_port["nsv"]="Noosa";
city_port["olp"]="Olympic Dam";
city_port["pbo"]="Paraburdoo";
city_port["per"]="Perth";
city_port["pug"]="Port Augusta";
city_port["pti"]="Port Douglas";
city_port["phe"]="Port Hedland";
city_port["plo"]="Port Lincoln";
city_port["pqq"]="Port Macquarie";
city_port["uir"]="Quirindi";
city_port["epr"]="Ravensthorpe";
city_port["rok"]="Rockhampton";
city_port["rma"]="Roma";
city_port["sxe"]="Sale";
city_port["six"]="Singleton";
city_port["shq"]="Southport";
city_port["syd"]="Sydney";
city_port["tmw"]="Tamworth";
city_port["tro"]="Taree";
city_port["thg"]="Thangool";
city_port["twb"]="Toowoomba";
city_port["tsv"]="Townsville";
city_port["tgn"]="Traralgon";
city_port["wga"]="Wagga Wagga";
city_port["waz"]="Warwick";
city_port["wya"]="Whyalla";
city_port["wol"]="Wollongong";
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  free_upgrade();

function free_upgrade(){}
/** Fuction for populating pickup dropdown starts */
free_upgrade.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]);//text, value
 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]);//text, value
 }
 this.populatePickupCarPromoToOptions(null,carSuburb);
}
}
free_upgrade.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]);//text, value

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(obj){
carsPromoDropdown.populatePickupCarPromoToOptions(obj.value,'carDropOffSuburb');
}

function updatePickupDropdown(obj){
carsPromoDropdown.populatePickupCarPromoToOptions(obj.value,'carPickUpSuburb');
}free_upgrade.prototype.populateCarVendorPickupOptions=function(id) {

var car_vendorList = document.getElementById(id);
var car_vendor=new Array();
car_vendor[1]=["Budget","ZD"];
var i=0;

for (var j = 1; j < car_vendor.length; j++) {
 car_vendorList.options[i++] = new Option(car_vendor[j][0],car_vendor[j][1]);//text, value
 }
}












/** Fuction for populating pickup dropdown Ends */

