function procTipoO() {
var lista = document.searchBooking.tipoO;
i = document.searchBooking.tipoO.selectedIndex;
var dropdownObjectPath = document.searchBooking.PaisO;
var wichDropdown = "paisO";
var withWhat = lista.options[lista.selectedIndex].value;
actualizaComboTipoO(wichDropdown, withWhat);
}
function actualizaComboTipoO(wichDropdown, withWhat) {
o = new Array;
i=0;
if (withWhat == "O1+1") {
o[i++]=new Option("Seleccione el pais", "0");
o[i++]=new Option("ESPAÑA", "724");
o[i++]=new Option("ESTADOS UNIDOS", "840");
o[i++]=new Option("FRANCIA", "250");
o[i++]=new Option("ITALIA", "380");
o[i++]=new Option("MARRUECOS", "504");
o[i++]=new Option("PORTUGAL", "620");
o[0].selected=true;}
if (withWhat == "O2+1") {
o[i++]=new Option("Seleccione el pais", "0");
o[i++]=new Option("ESPAÑA", "724");
o[i++]=new Option("ITALIA", "380");
o[i++]=new Option("PORTUGAL", "620");
o[0].selected=true;}
if (withWhat == "O2+2") {
o[i++]=new Option("Seleccione el pais", "0");
o[i++]=new Option("ESPAÑA", "724");
o[i++]=new Option("FRANCIA", "250");
o[i++]=new Option("PORTUGAL", "620");
o[0].selected=true;}
if (withWhat == "OGG") {
o[i++]=new Option("Seleccione el pais", "0");
o[i++]=new Option("EMIRATOS ARABES UNIDOS", "784");
o[i++]=new Option("ESPAÑA", "724");
o[i++]=new Option("ESTADOS UNIDOS", "840");
o[i++]=new Option("FRANCIA", "250");
o[i++]=new Option("IRLANDA", "372");
o[i++]=new Option("ITALIA", "380");
o[i++]=new Option("MAURICIO", "480");
o[i++]=new Option("PORTUGAL", "620");
o[0].selected=true;}
if (withWhat == "OMV") {
o[i++]=new Option("Seleccione el pais", "0");
o[i++]=new Option("EMIRATOS ARABES UNIDOS", "784");
o[i++]=new Option("ESPAÑA", "724");
o[i++]=new Option("ESTADOS UNIDOS", "840");
o[i++]=new Option("FRANCIA", "250");
o[i++]=new Option("GRAN BRETAÑA", "826");
o[i++]=new Option("IRLANDA", "372");
o[i++]=new Option("ITALIA", "380");
o[i++]=new Option("MARRUECOS", "504");
o[i++]=new Option("PORTUGAL", "620");
o[i++]=new Option("TUNEZ", "788");
o[i++]=new Option("TURQUIA", "792");
o[0].selected=true;}
if (withWhat == "OVEG") {
o[i++]=new Option("Seleccione el pais", "0");
o[i++]=new Option("CUBA", "192");
o[i++]=new Option("EMIRATOS ARABES UNIDOS", "784");
o[i++]=new Option("ESPAÑA", "724");
o[i++]=new Option("ESTADOS UNIDOS", "840");
o[i++]=new Option("GRAN BRETAÑA", "826");
o[i++]=new Option("MAURICIO", "480");
o[i++]=new Option("PORTUGAL", "620");
o[i++]=new Option("REPUBLICA DOMINICANA", "214");
o[i++]=new Option("TURQUIA", "792");
o[0].selected=true;}
if (withWhat == "0") {
o[i++]=new Option("Selecciona un Pais","0" );
o[0].selected=true;}
if (i==0) {
dropdownObjectPath = document.searchBooking.paisO;
eval(document.searchBooking.paisO.length=o.length);
largestwidth=0;
for (i=0; i < o.length; i++) {
eval(document.searchBooking.paisO.options[i]=o[i]);
if (o[i].text.length > largestwidth) {
largestwidth=o[i].text.length;
}
}
eval(document.searchBooking.paisO.length=o.length);
}
else {
dropdownObjectPath = document.searchBooking.paisO;
eval(document.searchBooking.paisO.length=o.length);
largestwidth=0;
for (i=0; i < o.length; i++) {
eval(document.searchBooking.paisO.options[i]=o[i]);
if (o[i].text.length > largestwidth) {
largestwidth=o[i].text.length;
}
}
eval(document.searchBooking.paisO.length=o.length);
if(o[0].selected == true ){
eval(document.searchBooking.comunidadO.length=1);
document.searchBooking.comunidadO[0]=new Option("Seleccione la Comunidad","0");
document.searchBooking.comunidadO[0].selected=true;
}
if(o[0].selected == true ){
eval(document.searchBooking.provinciaO.length=1);
document.searchBooking.provinciaO[0]=new Option("Seleccione la Provincia","0");
document.searchBooking.provinciaO[0].selected=true;
}
if(o[0].selected == true ){
}
}
}
function procPaisO() {
var lista = document.searchBooking.paisO;
i = document.searchBooking.paisO.selectedIndex;
var dropdownObjectPath = document.searchBooking.comunidadO;
var wichDropdown = "comunidadO";
var withWhat = lista.options[lista.selectedIndex].value;
actualizaComboPaisO(wichDropdown, withWhat);
}
function actualizaComboPaisO(wichDropdown, withWhat) {
o = new Array;
i=0;
if (withWhat == "192") {
o[i++]=new Option("Seleccione la región", "0");
o[i++]=new Option("CUBA", "CUB");
o[0].selected=true;}
if (withWhat == "784") {
o[i++]=new Option("Seleccione la región", "0");
o[i++]=new Option("EMIRATOS ARABES UNIDOS", "ARE");
o[0].selected=true;}
if (withWhat == "724") {
o[i++]=new Option("Seleccione la región", "0");
o[i++]=new Option("ANDALUCIA", "AND");
o[i++]=new Option("ARAGON", "ARA");
o[i++]=new Option("CANARIAS", "ICA");
o[i++]=new Option("CANTABRIA", "CAN");
o[i++]=new Option("CASTILLA LA MANCHA", "CLM");
o[i++]=new Option("CASTILLA Y LEON", "CYL");
o[i++]=new Option("CATALUÑA", "CAT");
o[i++]=new Option("COMUNIDAD DE MADRID", "MAD");
o[i++]=new Option("COMUNIDAD VALENCIANA", "VAL");
o[i++]=new Option("GALICIA", "GAL");
o[i++]=new Option("ISLAS BALEARES", "BAL");
o[i++]=new Option("PAIS VASCO", "VAS");
o[i++]=new Option("PRINCIPADO DE ASTURIAS", "AST");
o[i++]=new Option("REGION DE MURCIA", "MUR");
o[0].selected=true;}
if (withWhat == "840") {
o[i++]=new Option("Seleccione la región", "0");
o[i++]=new Option("FLORIDA", "FL");
o[i++]=new Option("INDIANA", "IN");
o[0].selected=true;}
if (withWhat == "250") {
o[i++]=new Option("Seleccione la región", "0");
o[i++]=new Option("AQUITANIA", "B");
o[i++]=new Option("LANGUEDOC-ROSELLON", "K");
o[0].selected=true;}
if (withWhat == "826") {
o[i++]=new Option("Seleccione la región", "0");
o[i++]=new Option("ESCOCIA", "SCT");
o[i++]=new Option("INGLATERRA", "ENG");
o[0].selected=true;}
if (withWhat == "372") {
o[i++]=new Option("Seleccione la región", "0");
o[i++]=new Option("IRLANDA", "IRE");
o[0].selected=true;}
if (withWhat == "380") {
o[i++]=new Option("Seleccione la región", "0");
o[i++]=new Option("LOMBARDIA", "LOM");
o[i++]=new Option("TOSCANA", "TOS");
o[0].selected=true;}
if (withWhat == "504") {
o[i++]=new Option("Seleccione la región", "0");
o[i++]=new Option("MARRUECOS", "MAR");
o[0].selected=true;}
if (withWhat == "480") {
o[i++]=new Option("Seleccione la región", "0");
o[i++]=new Option("MAURICIO, ISLA DE", "480");
o[0].selected=true;}
if (withWhat == "620") {
o[i++]=new Option("Seleccione la región", "0");
o[i++]=new Option("ALGARVE", "ALG");
o[i++]=new Option("DUERO LITORAL", "DOU");
o[i++]=new Option("ESTREMADURA", "EST");
o[i++]=new Option("MIÑO", "MIN");
o[0].selected=true;}
if (withWhat == "214") {
o[i++]=new Option("Seleccione la región", "0");
o[i++]=new Option("REPUBLICA DOMINICANA", "DOM");
o[0].selected=true;}
if (withWhat == "788") {
o[i++]=new Option("Seleccione la región", "0");
o[i++]=new Option("TUNEZ", "TUN");
o[0].selected=true;}
if (withWhat == "792") {
o[i++]=new Option("Seleccione la región", "0");
o[i++]=new Option("TURQUIA", "TUR");
o[0].selected=true;}
if (withWhat == "0") {
o[i++]=new Option("Selecciona una Comunidad","0" );
o[0].selected=true;}
if (i==0) {
dropdownObjectPath = document.searchBooking.comunidadO;
eval(document.searchBooking.comunidadO.length=o.length);
largestwidth=0;
for (i=0; i < o.length; i++) {
eval(document.searchBooking.comunidadO.options[i]=o[i]);
if (o[i].text.length > largestwidth) {
largestwidth=o[i].text.length;
}
}
eval(document.searchBooking.comunidadO.length=o.length);
}
else {
dropdownObjectPath = document.searchBooking.comunidadO;
eval(document.searchBooking.comunidadO.length=o.length);
largestwidth=0;
for (i=0; i < o.length; i++) {
eval(document.searchBooking.comunidadO.options[i]=o[i]);
if (o[i].text.length > largestwidth) {
largestwidth=o[i].text.length;
}
}
eval(document.searchBooking.comunidadO.length=o.length);
if(o[0].selected == true ){
eval(document.searchBooking.provinciaO.length=1);
document.searchBooking.provinciaO[0]=new Option("Seleccione la Provincia","0");
document.searchBooking.provinciaO[0].selected=true;
}
if(o[0].selected == true ){
}
}
}
function procComuO() {
var lista = document.searchBooking.comunidadO;
i = document.searchBooking.comunidadO.selectedIndex;
var dropdownObjectPath = document.searchBooking.provinciaO;
var wichDropdown = "provinciaO";
var withWhat = lista.options[lista.selectedIndex].value;
actualizaComboComuO(wichDropdown, withWhat);
}
function actualizaComboComuO(wichDropdown, withWhat) {
o = new Array;
i=0;
if (withWhat == "480") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("BEL OMBRE", "490");
o[i++]=new Option("BLACK RIVER", "483");
o[i++]=new Option("FLACQ", "484");
o[i++]=new Option("GRAND PORT", "481");
o[0].selected=true;}
if (withWhat == "ALG") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("FARO", "80");
o[0].selected=true;}
if (withWhat == "AND") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("ALMERIA", "04");
o[i++]=new Option("CADIZ", "11");
o[i++]=new Option("HUELVA", "21");
o[i++]=new Option("MALAGA", "29");
o[i++]=new Option("SEVILLA", "41");
o[0].selected=true;}
if (withWhat == "ARA") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("HUESCA", "22");
o[i++]=new Option("ZARAGOZA", "50");
o[0].selected=true;}
if (withWhat == "ARE") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("DUBAI", "02");
o[0].selected=true;}
if (withWhat == "AST") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("ASTURIAS", "33");
o[0].selected=true;}
if (withWhat == "B") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("DORDOGNE", "24");
o[i++]=new Option("GIRONDE", "33");
o[i++]=new Option("PYRENEES-ATLANTIQUES", "64");
o[0].selected=true;}
if (withWhat == "BAL") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("ILLES BALEARS", "07");
o[0].selected=true;}
if (withWhat == "CAN") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("CANTABRIA", "39");
o[0].selected=true;}
if (withWhat == "CAT") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("BARCELONA", "08");
o[i++]=new Option("GIRONA", "17");
o[i++]=new Option("TARRAGONA", "43");
o[0].selected=true;}
if (withWhat == "CLM") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("TOLEDO", "45");
o[0].selected=true;}
if (withWhat == "CUB") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("MATANZAS", "04");
o[0].selected=true;}
if (withWhat == "CYL") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("AVILA", "05");
o[i++]=new Option("SALAMANCA", "37");
o[0].selected=true;}
if (withWhat == "DOM") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("BAVARO", "04");
o[0].selected=true;}
if (withWhat == "DOU") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("PORTO (OPORTO)", "40");
o[0].selected=true;}
if (withWhat == "ENG") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("CHESHIRE", "CHE");
o[0].selected=true;}
if (withWhat == "EST") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("LEIRIA", "24");
o[i++]=new Option("LISBOA", "11");
o[0].selected=true;}
if (withWhat == "FL") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("FLORIDA", "09");
o[0].selected=true;}
if (withWhat == "GAL") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("LUGO", "27");
o[i++]=new Option("PONTEVEDRA", "36");
o[0].selected=true;}
if (withWhat == "ICA") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("FUERTEVENTURA-LAS PALMAS", "351");
o[i++]=new Option("LA GOMERA-STA CRUZ DE TENERIFE", "381");
o[i++]=new Option("LANZAROTE-LAS PALMAS", "355");
o[i++]=new Option("PALMAS DE GRAN CANARIA, LAS", "35");
o[i++]=new Option("SANTA CRUZ DE TENERIFE", "38");
o[0].selected=true;}
if (withWhat == "IN") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("INDIANA", "14");
o[0].selected=true;}
if (withWhat == "IRE") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("CO. DUBLIN", "07");
o[i++]=new Option("LEINSTER", "01");
o[0].selected=true;}
if (withWhat == "K") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("AUDE", "11");
o[i++]=new Option("HERAULT", "34");
o[0].selected=true;}
if (withWhat == "LOM") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("VARESE", "VA");
o[0].selected=true;}
if (withWhat == "MAD") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("MADRID", "28");
o[0].selected=true;}
if (withWhat == "MAR") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("AGADIR", "02");
o[i++]=new Option("MARRAKECH", "23");
o[0].selected=true;}
if (withWhat == "MIN") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("VIANA DO CASTELO", "49");
o[0].selected=true;}
if (withWhat == "MUR") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("MURCIA", "30");
o[0].selected=true;}
if (withWhat == "SCT") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("FIFE", "FIF");
o[i++]=new Option("LOTHIAN REGION", "LTN");
o[0].selected=true;}
if (withWhat == "TOS") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("FIRENZE", "FI");
o[i++]=new Option("GROSSETO", "GR");
o[i++]=new Option("LUCCA", "LU");
o[i++]=new Option("PISA", "PI");
o[i++]=new Option("PRATO", "PO");
o[0].selected=true;}
if (withWhat == "TUN") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("MONASTIR", "02");
o[i++]=new Option("TUNEZ", "01");
o[0].selected=true;}
if (withWhat == "TUR") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("ANATOLIA", "02");
o[0].selected=true;}
if (withWhat == "VAL") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("ALICANTE / ALACANT", "03");
o[i++]=new Option("CASTELLON / CASTELLO", "12");
o[i++]=new Option("VALENCIA", "46");
o[0].selected=true;}
if (withWhat == "VAS") {
o[i++]=new Option("Seleccione la Provincia", "0");
o[i++]=new Option("ALAVA", "01");
o[0].selected=true;}
if (withWhat == "0") {
o[i++]=new Option("Selecciona una provincia","0" );
o[0].selected=true;}
if (i==0) {
dropdownObjectPath = document.searchBooking.provinciaO;
eval(document.searchBooking.provinciaO.length=o.length);
largestwidth=0;
for (i=0; i < o.length; i++) {
eval(document.searchBooking.provinciaO.options[i]=o[i]);
if (o[i].text.length > largestwidth) {
largestwidth=o[i].text.length;
}
}
eval(document.searchBooking.provinciaO.length=o.length);
}
else {
dropdownObjectPath = document.searchBooking.provinciaO;
eval(document.searchBooking.provinciaO.length=o.length);
largestwidth=0;
for (i=0; i < o.length; i++) {
eval(document.searchBooking.provinciaO.options[i]=o[i]);
if (o[i].text.length > largestwidth) {
largestwidth=o[i].text.length;
}
}
eval(document.searchBooking.provinciaO.length=o.length);
}
if(o[0].selected == true ){
}
}
function procProvO() {
var lista = document.searchBooking.provinciaO;
i = document.searchBooking.provinciaO.selectedIndex;
var withWhat = lista.options[lista.selectedIndex].value;
}
function actualizaComboO(wichDropdown, withWhat) {
o = new Array;
i=0;
if (withWhat == "ALAVA") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
o[i++]=new Option("VILLA DE LAGUARDIA", "0800146OGG");
o[i++]=new Option("VILLA DE LAGUARDIA", "0800147OGG");
o[i++]=new Option("VILLA DE LAGUARDIA", "0800327OGG");
}
if (withWhat == "0") {
o[i++]=new Option("Seleccione un Establecimiento", "0");
}
if (i==0) {
dropdownObjectPath = document.searchBooking.campoO;
eval(document.searchBooking.campoO.length=o.length);
largestwidth=0;
for (i=0; i < o.length; i++) {
eval(document.searchBooking.campoO.options[i]=o[i]);
if (o[i].text.length > largestwidth) {
largestwidth=o[i].text.length;
}
}
eval(document.searchBooking.campoO.length=o.length);
}
else {
dropdownObjectPath = document.searchBooking.campoO;
eval(document.searchBooking.campoO.length=o.length);
largestwidth=0;
for (i=0; i < o.length; i++) {
eval(document.searchBooking.campoO.options[i]=o[i]);
if (o[i].text.length > largestwidth) {
largestwidth=o[i].text.length;
}
}
eval(document.searchBooking.campoO.length=o.length);
Trunca_Str(0);}
}
