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" ,"157 T-spark","197" ); 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" ,"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" ,"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[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" ,"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" ,"Grande punto","177" ,"Marea","98" ,"Multipla","169" ,"Panda","174" ,"Punto","8" ,"Scudo","138" ,"Seicento","32" ,"Stilo","173" ,"Ulysee","199" ); Locations[1] = new Array("Select Model","0" ,"Escort","2" ,"Fiesta","3" ,"Focus","1" ,"Fusion","207" ,"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" ,"Crv","206" ,"Jazz","134" ,"Prelude","17" ); Locations[22] = new Array("Select Model","0" ,"Accent","87" ,"Amica","120" ,"Coupe","105" ,"Getz","190" ,"Lantra","145" ,"Sonata","125" ); Locations[23] = new Array("Select Model","0" ); Locations[24] = new Array("Select Model","0" ,"S Type","186" ,"Xj6","211" ,"Xj8","212" ); Locations[25] = new Array("Select Model","0" ,"Cherokee Sport","209" ); Locations[26] = new Array("Select Model","0" ,"Carens","147" ,"Rio","204" ,"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" ,"Discovery","46" ,"Freelander","45" ,"Range-rover","47" ); Locations[31] = new Array("Select Model","0" ); 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" ,"323","159" ,"6","195" ,"Mx5","194" ); Locations[37] = new Array("Select Model","0" ,"A140","50" ,"A160","51" ,"A170","52" ,"C180","210" ,"C220","97" ,"C240","167" ,"E280 cdi","155" ,"ML","130" ); Locations[64] = new Array("Select Model","0" ,"Taxi","99" ); Locations[33] = new Array("Select Model","0" ,"Mgf","196" ,"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" ,"Space Star Mirage","201" ); Locations[63] = new Array("Select Model","0" ); Locations[39] = new Array("Select Model","0" ,"Almera","205" ,"Almera Tino","200" ,"Micra","112" ,"Primastar","189" ,"Primera","178" ,"Sunny","183" ,"Terrano","127" ,"X Trail","203" ); 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" ,"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" ); Locations[45] = new Array("Select Model","0" ,"Dhse","208" ); Locations[3] = new Array("Select Model","0" ,"Clio","57" ,"Espace","58" ,"Grand scenic","140" ,"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" ,"Rexton","103" ); Locations[52] = new Array("Select Model","0" ,"Impreza","202" ); Locations[53] = new Array("Select Model","0" ,"Alto","151" ,"Grand vitara","62" ,"Swift","148" ,"Sx4","182" ,"Vitara","60" ,"Wagon r","59" ); Locations[55] = new Array("Select Model","0" ,"Avensis","95" ,"Carina e","104" ,"Corolla","156" ,"Hi Lux Surf","144" ,"Land Cruiser","198" ,"MR2","162" ,"Roadster","175" ,"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" ,"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" ); Locations[60] = new Array("Select Model","0" ); Locations[61] = new Array("Select Model","0" ); function setLocation() { var LocationValue=document.two.City.value 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 } } }