function jsCargaRegiones(valorPais, nombreForm, nombreCombo, paraBuscadores){var i, j, nuevo, tamano; var hayRegiones = false; var noHay, mSeleccione, vRegiones; if (paraBuscadores){noHay = 'All';mSeleccione = 'All';}else{mSeleccione = '- Select a country -';noHay = ' ';}switch (valorPais) {case "-1": vRegiones = new Array (mSeleccione, -1); break; case "124": hayRegiones = true; vRegiones = new Array ("Alberta", 597, "British Columbia", 598, "Manitoba", 599, "New Brunswick", 600, "Newfoundland", 601, "Northwest Territories", 602, "Nova Scotia", 603, "Nunavut", 604, "Ontario", 605, "Prince Edward Island", 606, "Quebec", 607, "Saskatchewan", 608, "Yukon Territory", 609); break; case "250": hayRegiones = true; vRegiones = new Array ("Alsace", 1047, "Aquitaine", 1048, "Auvergne", 1049, "Basse-Normandie", 1050, "Bourgogne", 1051, "Bretagne", 1052, "Centre", 1053, "Champagne-Ardenne", 1054, "Corse", 1055, "Franche-Comte", 1056, "Haute-Normandie", 1057, "Ile-de-France", 1058, "Languedoc-Roussillon", 1059, "Limousin", 1060, "Lorraine", 1061, "Midi-Pyrenees", 1062, "Nord-Pas-de-Calais", 1063, "Pays de la Loire", 1064, "Picardie", 1065, "Poitou-Charentes", 1066, "Provence-Alpes-Cote d'Azur", 1067, "Rhone-Alpes", 1068); break; case "276": hayRegiones = true; vRegiones = new Array ("Baden-Wuerttemberg", 1153, "Bayern", 1154, "Berlin", 1155, "Brandenburg", 1156, "Bremen", 1157, "Hamburg", 1158, "Hessen", 1159, "Mecklenburg-Vorpommern", 1160, "Niedersachsen", 1161, "Nordrhein-Westfalen", 1162, "Rheinland-Pfalz", 1163, "Saarland", 1164, "Sachsen", 1165, "Sachsen-Anhalt", 1166, "Schleswig-Holstein", 1167, "Thueringen", 1168); break; case "724": hayRegiones = true; vRegiones = new Array ("A Coruña", 15, "Álava", 1, "Albacete", 2, "Alicante", 3, "Almería", 4, "Asturias", 33, "Ávila", 5, "Badajoz", 6, "Baleares", 7, "Barcelona", 8, "Burgos", 9, "Cáceres", 10, "Cádiz", 11, "Cantabria", 39, "Castellón", 12, "Ceuta", 51, "Ciudad Real", 13, "Córdoba", 14, "Cuenca", 16, "Girona", 17, "Granada", 18, "Guadalajara", 19, "Guipúzcoa", 20, "Huelva", 21, "Huesca", 22, "Jaén", 23, "La Rioja", 26, "Las Palmas", 35, "León", 24, "Lleida", 25, "Lugo", 27, "Madrid", 28, "Málaga", 29, "Melilla", 52, "Murcia", 30, "Navarra", 31, "Ourense", 32, "Palencia", 34, "Pontevedra", 36, "Salamanca", 37, "Segovia", 40, "Sevilla", 41, "Soria", 42, "Tarragona", 43, "Tenerife", 38, "Teruel", 44, "Toledo", 45, "Valencia", 46, "Valladolid", 47, "Vizcaya", 48, "Zamora", 49, "Zaragoza", 50); break; case "826": hayRegiones = true; vRegiones = new Array ("Barking and Dagenham", 3725, "Barnet", 3726, "Barnsley", 3727, "Bath and North East Somerset", 3728, "Bedfordshire", 3729, "Bexley", 3730, "Birmingham", 3731, "Blackburn with Darwen", 3732, "Blackpool", 3733, "Bolton", 3734, "Bournemouth", 3735, "Bracknell Forest", 3736, "Bradford", 3737, "Brent", 3738, "Brighton and Hove", 3739, "Bromley", 3741, "Buckinghamshire", 3742, "Bury", 3743, "Calderdale", 3744, "Cambridgeshire", 3745, "Camden", 3746, "Cheshire", 3747, "City of Bristol", 3740, "City of Kingston upon Hull", 3784, "City of London", 3796, "Cornwall", 3748, "Coventry", 3749, "Croydon", 3750, "Cumbria", 3751, "Darlington", 3752, "Derby", 3753, "Derbyshire", 3754, "Devon", 3755, "Doncaster", 3756, "Dorset", 3757, "Dudley", 3758, "Durham", 3759, "Ealing", 3760, "East Riding of Yorkshire", 3761, "East Sussex", 3762, "Enfield", 3763, "Essex", 3764, "Gateshead", 3765, "Gloucestershire", 3766, "Greenwich", 3767, "Hackney", 3768, "Halton", 3769, "Hammersmith and Fulham", 3770, "Hampshire", 3771, "Haringey", 3772, "Harrow", 3773, "Hartlepool", 3774, "Havering", 3775, "Herefordshire", 3776, "Hertfordshire", 3777, "Hillingdon", 3778, "Hounslow", 3779, "Isle of Wight", 3780, "Islington", 3781, "Kensington and Chelsea", 3782, "Kent", 3783, "Kingston upon Thames", 3785, "Kirklees", 3786, "Knowsley", 3787, "Lambeth", 3788, "Lancashire", 3789, "Leeds", 3790, "Leicester", 3791, "Leicestershire", 3792, "Lewisham", 3793, "Lincolnshire", 3794, "Liverpool", 3795, "Luton", 3797, "Manchester", 3798, "Medway", 3799, "Merton", 3800, "Middlesbrough", 3801, "Milton Keynes", 3802, "Newcastle upon Tyne", 3803, "Newham", 3804, "Norfolk", 3805, "North East Lincolnshire", 3807, "North Lincolnshire", 3808, "North Somerset", 3809, "North Tyneside", 3810, "North Yorkshire", 3812, "Northamptonshire", 3806, "Northumberland", 3811, "Nottingham", 3813, "Nottinghamshire", 3814, "Oldham", 3815, "Oxfordshire", 3816, "Peterborough", 3817, "Plymouth", 3818, "Poole", 3819, "Portsmouth", 3820, "Reading", 3821, "Redbridge", 3822, "Redcar and Cleveland", 3823, "Richmond upon Thames", 3824, "Rochdale", 3825, "Rotherham", 3826, "Rutland", 3827, "Salford", 3828, "Sandwell", 3830, "Sefton", 3831, "Sheffield", 3832, "Shropshire", 3829, "Slough", 3833, "Solihull", 3834, "Somerset", 3835, "South Gloucestershire", 3838, "South Tyneside", 3839, "Southampton", 3836, "Southend-on-Sea", 3837, "Southwark", 3840, "St. Helens", 3842, "Staffordshire", 3841, "Stockport", 3843, "Stockton-on-Tees", 3844, "Stoke-on-Trent", 3845, "Suffolk", 3846, "Sunderland", 3847, "Surrey", 3848, "Sutton", 3849, "Swindon", 3850, "Tameside", 3851, "Telford and Wrekin", 3852, "Thurrock", 3853, "Torbay", 3854, "Tower Hamlets", 3855, "Trafford", 3856, "Wakefield", 3857, "Walsall", 3858, "Waltham Forest", 3859, "Wandsworth", 3860, "Warrington", 3861, "Warwickshire", 3862, "West Berkshire", 3863, "West Sussex", 3865, "Westminster", 3864, "Wigan", 3866, "Wiltshire", 3867, "Windsor and Maidenhead", 3868, "Wirral", 3869, "Wokingham", 3870, "Wolverhampton", 3871, "Worcestershire", 3872, "York", 3873); break; case "840": hayRegiones = true; vRegiones = new Array ("Alabama", 3954, "Alaska", 3955, "Arizona", 3956, "Arkansas", 3957, "California", 3958, "Colorado", 3959, "Connecticut", 3960, "Delaware", 3961, "District of Columbia", 3962, "Florida", 3963, "Georgia", 3964, "Hawaii", 3965, "Idaho", 3966, "Illinois", 3967, "Indiana", 3968, "Iowa", 3969, "Kansas", 3970, "Kentucky", 3971, "Louisiana", 3972, "Maine", 3973, "Maryland", 3974, "Massachusetts", 3975, "Michigan", 3976, "Minnesota", 3977, "Mississippi", 3978, "Missouri", 3979, "Montana", 3980, "Nebraska", 3981, "Nevada", 3982, "New Hampshire", 3983, "New Jersey", 3984, "New Mexico", 3985, "New York", 3986, "North Carolina", 3987, "North Dakota", 3988, "Ohio", 3989, "Oklahoma", 3990, "Oregon", 3991, "Pennsylvania", 3992, "Rhode Island", 3993, "South Carolina", 3994, "South Dakota", 3995, "Tennessee", 3996, "Texas", 3997, "Utah", 3998, "Vermont", 3999, "Virginia", 4000, "Washington", 4001, "West Virginia", 4002, "Wisconsin", 4003, "Wyoming", 4004); break; default: vRegiones = new Array (noHay, 0); break; } document.forms[nombreForm].elements[nombreCombo].length = 0; j = 0; if ((paraBuscadores) && (hayRegiones) && (valorPais != -1)) {nuevo = new Option(noHay, 0,false,false); document.forms[nombreForm].elements[nombreCombo].options[0] = nuevo; j++; } tamano = vRegiones.length; for (i=0; i<tamano; i+=2) {nuevo = new Option(vRegiones[i],vRegiones[i+1],false,false); document.forms[nombreForm].elements[nombreCombo].options[j] = nuevo; j++; }document.forms[nombreForm].elements[nombreCombo].selectedIndex = 0; }