function procPais() {
var lista = document.searchBooking.pais;
i = document.searchBooking.pais.selectedIndex;
var dropdownObjectPath = document.searchBooking.comunidad;
var wichDropdown = "comunidad";
var withWhat = lista.options[lista.selectedIndex].value;
actualizaComboPais(wichDropdown, withWhat);
}
function actualizaComboPais(wichDropdown, withWhat) {
o = new Array;
i=0;
if (withWhat == "784") {
o[i++]=new Option("Todas las regiones", "0");
o[i++]=new Option("EMIRATOS ARABES UNIDOS", "ARE");
o[0].selected=true;}
if (withWhat == "724") {
o[i++]=new Option("Seleccione una región", "0");
o[i++]=new Option("ANDALUCIA", "AND");
o[i++]=new Option("CANARIAS", "ICA");
o[i++]=new Option("CATALUÑA", "CAT");
o[i++]=new Option("COMUNIDAD VALENCIANA", "VAL");
o[i++]=new Option("ISLAS BALEARES", "BAL");
o[i++]=new Option("REGION DE MURCIA", "MUR");
o[0].selected=true;}
if (withWhat == "826") {
o[i++]=new Option("Todas las regiones", "0");
o[i++]=new Option("ESCOCIA", "SCT");
o[0].selected=true;}
if (withWhat == "372") {
o[i++]=new Option("Todas las regiones", "0");
o[i++]=new Option("IRLANDA", "IRE");
o[0].selected=true;}
if (withWhat == "504") {
o[i++]=new Option("Todas las regiones", "0");
o[i++]=new Option("MARRUECOS", "MAR");
o[0].selected=true;}
if (withWhat == "0") {
o[i++]=new Option("Todas las regiones","0" );
o[0].selected=true;}
if (i==0) {
dropdownObjectPath = document.searchBooking.comunidad;
eval(document.searchBooking.comunidad.length=o.length);
largestwidth=0;
for (i=0; i < o.length; i++) {
eval(document.searchBooking.comunidad.options[i]=o[i]);
if (o[i].text.length > largestwidth) {
largestwidth=o[i].text.length;
}
}
eval(document.searchBooking.comunidad.length=o.length);
}
else {
dropdownObjectPath = document.searchBooking.comunidad;
eval(document.searchBooking.comunidad.length=o.length);
largestwidth=0;
for (i=0; i < o.length; i++) {
eval(document.searchBooking.comunidad.options[i]=o[i]);
if (o[i].text.length > largestwidth) {
largestwidth=o[i].text.length;
}
}
eval(document.searchBooking.comunidad.length=o.length);
if(o[0].selected == true ){
eval(document.searchBooking.provincia.length=1);
document.searchBooking.provincia[0]=new Option("Todas las Provincias","0");
document.searchBooking.provincia[0].selected=true;
}
if(o[0].selected == true ){
eval(document.searchBooking.campo.length=1);
document.searchBooking.campo[0]=new Option("Seleccione un Establecimiento","0");
document.searchBooking.campo[0].selected=true;
}
}
}
function procComu() {
var lista = document.searchBooking.comunidad;
i = document.searchBooking.comunidad.selectedIndex;
var dropdownObjectPath = document.searchBooking.provincia;
var wichDropdown = "provincia";
var withWhat = lista.options[lista.selectedIndex].value;
actualizaComboComu(wichDropdown, withWhat);
}
function actualizaComboComu(wichDropdown, withWhat) {
o = new Array;
i=0;
if (withWhat == "AND") {
o[i++]=new Option("Todas las Provincias", "0");
o[i++]=new Option("ALMERIA", "ALMERIA");
o[i++]=new Option("CADIZ", "CADIZ");
o[i++]=new Option("HUELVA", "HUELVA");
o[i++]=new Option("MALAGA", "MALAGA");
o[0].selected=true;}
if (withWhat == "ARE") {
o[i++]=new Option("Todas las Provincias", "0");
o[i++]=new Option("DUBAI", "DUBAI");
o[0].selected=true;}
if (withWhat == "BAL") {
o[i++]=new Option("Todas las Provincias", "0");
o[i++]=new Option("ILLES BALEARS", "ILLES BALEARS");
o[0].selected=true;}
if (withWhat == "CAT") {
o[i++]=new Option("Todas las Provincias", "0");
o[i++]=new Option("GIRONA", "GIRONA");
o[0].selected=true;}
if (withWhat == "ICA") {
o[i++]=new Option("Todas las Provincias", "0");
o[i++]=new Option("PALMAS DE GRAN CANARIA, LAS", "PALMAS DE GRAN CANARIA, LAS");
o[i++]=new Option("SANTA CRUZ DE TENERIFE", "SANTA CRUZ DE TENERIFE");
o[0].selected=true;}
if (withWhat == "IRE") {
o[i++]=new Option("Todas las Provincias", "0");
o[i++]=new Option("LEINSTER", "LEINSTER");
o[0].selected=true;}
if (withWhat == "MAR") {
o[i++]=new Option("Todas las Provincias", "0");
o[i++]=new Option("EL JADIDA", "EL JADIDA");
o[0].selected=true;}
if (withWhat == "MUR") {
o[i++]=new Option("Todas las Provincias", "0");
o[i++]=new Option("MURCIA", "MURCIA");
o[0].selected=true;}
if (withWhat == "SCT") {
o[i++]=new Option("Todas las Provincias", "0");
o[i++]=new Option("AYRSHIRE", "AYRSHIRE");
o[i++]=new Option("FIFE", "FIFE");
o[0].selected=true;}
if (withWhat == "VAL") {
o[i++]=new Option("Todas las Provincias", "0");
o[i++]=new Option("ALICANTE / ALACANT", "ALICANTE / ALACANT");
o[i++]=new Option("VALENCIA", "VALENCIA");
o[0].selected=true;}
if (withWhat == "0") {
o[i++]=new Option("Todas las provincias","0" );
o[0].selected=true;}
if (i==0) {
dropdownObjectPath = document.searchBooking.provincia;
eval(document.searchBooking.provincia.length=o.length);
largestwidth=0;
for (i=0; i < o.length; i++) {
eval(document.searchBooking.provincia.options[i]=o[i]);
if (o[i].text.length > largestwidth) {
largestwidth=o[i].text.length;
}
}
eval(document.searchBooking.provincia.length=o.length);
}
else {
dropdownObjectPath = document.searchBooking.provincia;
eval(document.searchBooking.provincia.length=o.length);
largestwidth=0;
for (i=0; i < o.length; i++) {
eval(document.searchBooking.provincia.options[i]=o[i]);
if (o[i].text.length > largestwidth) {
largestwidth=o[i].text.length;
}
}
eval(document.searchBooking.provincia.length=o.length);
}
if(o[0].selected == true ){
eval(document.searchBooking.campo.length=1);
document.searchBooking.campo[0]=new Option("Seleccione un Establecimiento","0");
document.searchBooking.campo[0].selected=true;
}
}
function procProv() {
var lista = document.searchBooking.provincia;
i = document.searchBooking.provincia.selectedIndex;
var dropdownObjectPath = document.searchBooking.campo;
var wichDropdown = "campo";
var withWhat = lista.options[lista.selectedIndex].value;
//actualizaCombo(wichDropdown, withWhat);
}
function actualizaCombo(wichDropdown, withWhat) {
o = new Array;
i=0;
if (withWhat == "ALICANTE / ALACANT") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("GRAN HOTEL VILLAITANA WELLNESS", "WESTINFAUH");
o[i++]=new Option("HOTEL VILLAITANA WELLNESS GOLF", "SHERFAULAH");
}
if (withWhat == "ALMERIA") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("AR HOTEL ALMERIMAR", "ALMERIMARH");
}
if (withWhat == "AYRSHIRE") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("TURNBERRY A LUXURY RESORT", "WESTTURNH");
}
if (withWhat == "CADIZ") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("BARCELO MONTECASTILLO", "MONTECASTH");
}
if (withWhat == "DUBAI") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("BURJ AL ARAB HOTEL", "BURJALARAH");
}
if (withWhat == "EL JADIDA") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("MAZAGAN", "MAZAGBEARH");
}
if (withWhat == "FIFE") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("FAIRMONT SAINT ANDREWS", "SAINTANDRH");
}
if (withWhat == "GIRONA") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("HOTEL RELAIS - TORREMIRONA", "RELAISTORH");
}
if (withWhat == "HUELVA") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("AC NUEVO PORTIL GOLF", "NUEVOPORTH");
}
if (withWhat == "ILLES BALEARS") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("ARABELLA SHERATON GOLF H.S.V", "ARABELLASH");
o[i++]=new Option("CASTILLO HOTEL SON VIDA", "CASTILLOSH");
}
if (withWhat == "LEINSTER") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("PORTMARNOCK HOTEL & GOLF LINKS", "PORTMARNOH");
}
if (withWhat == "MALAGA") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("ATALAYA PARK", "ATALAYAGRH");
o[i++]=new Option("LA CALA RESORT", "CALAGOLFH");
o[i++]=new Option("RIO REAL GOLF& WELLNESS RESORT", "SERIOREALH");
o[i++]=new Option("SUITES HOTEL DUQUESA GOLF", "SUITEDUQGH");
}
if (withWhat == "MURCIA") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("LA MANGA CLUB PRINCIPE FELIPE", "HYATTREGEH");
}
if (withWhat == "PALMAS DE GRAN CANARIA, LAS") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("SHERATON SALOBRE GOLF RESORT", "SHESALOBRH");
}
if (withWhat == "SANTA CRUZ DE TENERIFE") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("ABAMA HOTEL RESORT", "ABAMAH");
o[i++]=new Option("SHERATON LA CALETA RESORT& SPA", "SHELACALEH");
}
if (withWhat == "VALENCIA") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("LAS ARENAS BALNEARIO RESORT", "LARENASBRH");
o[i++]=new Option("OLIVA NOVA BEACH & GOLF RESORT", "OLIVANOVAH");
}
if (withWhat == "0") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
}
if (i==0) {
dropdownObjectPath = document.searchBooking.campo;
eval(document.searchBooking.campo.length=o.length);
largestwidth=0;
for (i=0; i < o.length; i++) {
eval(document.searchBooking.campo.options[i]=o[i]);
if (o[i].text.length > largestwidth) {
largestwidth=o[i].text.length;
}
}
eval(document.searchBooking.campo.length=o.length);
}
else {
dropdownObjectPath = document.searchBooking.campo;
eval(document.searchBooking.campo.length=o.length);
largestwidth=0;
for (i=0; i < o.length; i++) {
eval(document.searchBooking.campo.options[i]=o[i]);
if (o[i].text.length > largestwidth) {
largestwidth=o[i].text.length;
}
}
eval(document.searchBooking.campo.length=o.length);
Trunca_Str(0);}
}

