sWZBaseFolder = "controlmin"; sWZ = window.location.href; iWZ = sWZ.indexOf(sWZBaseFolder) + sWZBaseFolder.length + 1; sWZBase = sWZ.substring(0,iWZ); Locations=new Array(); Locations[0]=new Array("-","0"); Locations[67] = new Array("Select Model","0" ); Locations[5] = new Array("Select Model","0" ); Locations[6] = new Array("Select Model","0" ); Locations[7] = new Array("Select Model","0" ); Locations[8] = new Array("Select Model","0" ,"100","20" ,"100 avant","21" ,"80","18" ,"90","19" ,"A2","37" ,"A3","131" ,"A4","23" ,"A4 avant","22" ,"A5","229" ,"A6","24" ,"A6 avant","25" ,"A8","26" ,"S3","128" ,"S4","143" ,"TT","85" ); Locations[9] = new Array("Select Model","0" ); Locations[11] = new Array("Select Model","0" ); Locations[10] = new Array("Select Model","0" ,"116","135" ,"118","42" ,"316","115" ,"318","41" ,"320","40" ,"323","206" ,"325","164" ,"330","39" ,"520I","14" ,"525","106" ,"528","116" ,"X5","96" ,"Z3","38" ); Locations[12] = new Array("Select Model","0" ); Locations[13] = new Array("Select Model","0" ); Locations[68] = new Array("Select Model","0" ,"Kalos","212" ,"Tacuma","226" ); Locations[66] = new Array("Select Model","0" ,"Neon","141" ,"PT Cruiser","168" ); Locations[14] = new Array("Select Model","0" ,"AX","16" ,"Berlingo","114" ,"BX","15" ,"C1","88" ,"C2","89" ,"C3","90" ,"C4","91" ,"C5","92" ,"C5 VTR","211" ,"C6","198" ,"C8","199" ,"Saxo","113" ,"Xantia","124" ,"Xsara","93" ,"Xsara picasso","94" ,"ZX","126" ); Locations[15] = new Array("Select Model","0" ,"Lanos","154" ,"Nubria","137" ,"Tacuma","166" ); Locations[16] = new Array("Select Model","0" ,"GRAND MOVE","188" ); Locations[18] = new Array("Select Model","0" ); Locations[19] = new Array("Select Model","0" ); Locations[20] = new Array("Select Model","0" ,"Brava","9" ,"Bravo","153" ,"Doblo","197" ,"Grande punto","177" ,"Idea","223" ,"Marea","98" ,"Multipla","169" ,"Panda","174" ,"Punto","8" ,"Scudo","138" ,"Seicento","32" ,"Stilo","173" ,"Ulysse","202" ); Locations[1] = new Array("Select Model","0" ,"Escort","2" ,"Fiesta","3" ,"Focus","1" ,"Fusion","208" ,"Galaxy","44" ,"KA","28" ,"Mondeo","12" ,"Probe","122" ,"Puma","43" ); Locations[17] = new Array("Select Model","0" ); Locations[21] = new Array("Select Model","0" ,"Civic","132" ,"HR-V","230" ,"Jazz","134" ,"Prelude","17" ,"VTR Firestorm","224" ); Locations[22] = new Array("Select Model","0" ,"Accent","87" ,"Amica","120" ,"Coupe","105" ,"Getz","190" ,"Lantra","145" ,"Matrix","200" ,"Santa Fe","204" ,"Sonata","125" ); Locations[23] = new Array("Select Model","0" ); Locations[24] = new Array("Select Model","0" ,"S Type","186" ); Locations[25] = new Array("Select Model","0" ,"Cherokee","225" ); Locations[26] = new Array("Select Model","0" ,"Carens","147" ,"Cerato","220" ,"Rio","217" ,"Sorento","133" ); Locations[27] = new Array("Select Model","0" ); Locations[28] = new Array("Select Model","0" ); Locations[29] = new Array("Select Model","0" ); Locations[30] = new Array("Select Model","0" ,"Defender","196" ,"Discovery","46" ,"Freelander","45" ,"Range-rover","47" ); Locations[31] = new Array("Select Model","0" ,"IS","222" ); Locations[32] = new Array("Select Model","0" ); Locations[34] = new Array("Select Model","0" ); Locations[35] = new Array("Select Model","0" ); Locations[4] = new Array("Select Model","0" ,"2","231" ,"323","159" ,"6","195" ,"Mx5","194" ,"RX8","209" ); Locations[37] = new Array("Select Model","0" ,"A140","50" ,"A160","51" ,"A170","52" ,"C200","221" ,"C220","97" ,"C240","167" ,"CLS 320","228" ,"E280 cdi","155" ,"ML","130" ); Locations[64] = new Array("Select Model","0" ,"Taxi","99" ); Locations[33] = new Array("Select Model","0" ,"TF","54" ,"ZR","53" ,"ZS","181" ,"ZT","55" ); Locations[65] = new Array("Select Model","0" ,"Cooper","109" ,"Cooper s","121" ,"One","110" ); Locations[38] = new Array("Select Model","0" ,"Carisma","119" ,"Pajero","48" ,"Shogun","49" ,"Shogun pinin","187" ); Locations[63] = new Array("Select Model","0" ); Locations[39] = new Array("Select Model","0" ,"Almera","227" ,"Micra","112" ,"Primastar","189" ,"Primera","178" ,"Sunny","183" ,"Terrano","127" ); Locations[40] = new Array("Select Model","0" ); Locations[42] = new Array("Select Model","0" ); Locations[41] = new Array("Select Model","0" ,"1007","78" ,"106","31" ,"107","77" ,"206","30" ,"206 coupe convertable","101" ,"206 Sw","214" ,"207","79" ,"306","81" ,"307","80" ,"307 sw","139" ,"405","13" ,"406","82" ,"407","83" ,"407 sw","170" ,"807","84" ,"Partner","142" ); Locations[43] = new Array("Select Model","0" ,"Boxster","86" ); Locations[44] = new Array("Select Model","0" ,"Satria","201" ); Locations[45] = new Array("Select Model","0" ); Locations[3] = new Array("Select Model","0" ,"19","205" ,"Clio","57" ,"Espace","58" ,"Grand Espace","210" ,"Grand Scenic","140" ,"Kangoo","216" ,"Kangoo commercial","111" ,"Laguna","10" ,"Master","191" ,"Megane","11" ,"Megane convertable","163" ,"Megane coupe","129" ,"Megane Scenic","56" ,"Modus","192" ,"Scenic","149" ,"Traffic","150" ); Locations[46] = new Array("Select Model","0" ); Locations[47] = new Array("Select Model","0" ,"100","165" ,"216","180" ,"25","136" ,"400","176" ,"45","172" ,"75","117" ,"Streetwise","146" ); Locations[48] = new Array("Select Model","0" ,"9-3","107" ); Locations[49] = new Array("Select Model","0" ,"Altea","160" ,"Arosa","65" ,"Cordoba","123" ,"Ibiza","63" ,"Leon","64" ); Locations[50] = new Array("Select Model","0" ,"Fabia","193" ,"Felicia","118" ); Locations[51] = new Array("Select Model","0" ,"Korando","207" ,"Rexton","103" ); Locations[52] = new Array("Select Model","0" ); Locations[53] = new Array("Select Model","0" ,"Alto","151" ,"Grand vitara","62" ,"Ignis","218" ,"Swift","148" ,"Sx4","182" ,"Vitara","60" ,"Wagon r","59" ); Locations[55] = new Array("Select Model","0" ,"Avensis","95" ,"Carina e","104" ,"Celica","219" ,"Corolla","156" ,"Hi Lux Surf","144" ,"MR2","162" ,"Roadster","175" ,"Starlet","213" ,"Supra","161" ,"Yaris","179" ); Locations[56] = new Array("Select Model","0" ); Locations[54] = new Array("Select Model","0" ); Locations[2] = new Array("Select Model","0" ,"Agila","70" ,"Astra","66" ,"Brava","171" ,"Cavalier","4" ,"Corsa","7" ,"Frontera","68" ,"Meriva","203" ,"Nova","6" ,"Omega","69" ,"Tigra","100" ,"Vectra","5" ,"Vivaro","185" ,"Zafira","67" ); Locations[57] = new Array("Select Model","0" ); Locations[58] = new Array("Select Model","0" ,"Beetle","152" ,"Bora","74" ,"Fox","73" ,"Golf","27" ,"Lupo","72" ,"Passat","75" ,"Polo","71" ,"Sharan","76" ); Locations[59] = new Array("Select Model","0" ,"460","184" ,"C70","158" ,"V40","102" ,"V50","157" ,"V70","215" ); Locations[60] = new Array("Select Model","0" ); Locations[61] = new Array("Select Model","0" ); function setLocation() { var myString = document.two.City.value; var mySplitResult = myString.split("|"); var LocationValue=mySplitResult[0] var LocationName=Locations[LocationValue] document.two.Location.length=0 var j=0 if (!LocationName) { document.two.Location.options[0]=new Option("Select Model") document.two.Location.options[0].value=all } else { for (var i=1;i<=LocationName.length/2;i++) { document.two.Location.options[i-1]=new Option(LocationName[j]) document.two.Location.options[i-1].value=LocationName[j] j=j+2 } } }