function cyo_durations(h)
{
d = document.getElementById('durations');
s = "";
d.innerHTML = s;
}
function cyo_destinations(ho)
{
if(ho)
{
document.getElementById('destination_ho').disabled='';
document.getElementById('destination').disabled='yes';
}
else
{
document.getElementById('destination_ho').disabled='yes';
document.getElementById('destination').disabled='';
}
}
function cyo_search_select(search_type)
{
switch(search_type)
{
case "holiday":
showfields = Array("title_holiday","search_destination","search_town","search_depart_date","search_airport","search_duration","search_flexibility","search_hotel_stars","search_hotel_board");
hidefields = Array("search_destination_ho","title_hotel","title_flight");
for (var n=0; n
Holidays to this destination are seasonal and operate only during the May to October period. If you are looking for a winter sun holidays we have a full programme of unbeatable deals to winter sun destinations such as the Canaries, Caribbean, Cyprus, Egypt, Madeira, Malta, Morocco, Costa del Sol, Costa Blanca, and Tunisia.
'; document.getElementById('error_text').style.display = 'block'; lon(); return false; } document.body.style.cursor = 'wait'; return true; } } seasons = new Array(); towns = new Array(); seasons['FUE'] = Array('0','0'); seasons['FUE'] = Array('0','0'); towns['FUE'] = Array("Antigua","Caleta de Fuste","Corralejo","Costa Calma","Playa de Jandia"); towns['FUE'] = Array("Antigua","Caleta de Fuste","Corralejo","Costa Calma","Playa de Jandia"); seasons['RMF'] = Array('0','0'); seasons['RMF'] = Array('0','0'); towns['RMF'] = Array("El Quseir"); towns['RMF'] = Array("El Quseir"); seasons['SID'] = Array('0','0'); seasons['SID'] = Array('0','0'); towns['SID'] = Array(); towns['SID'] = Array(); seasons['BCN'] = Array('0','0'); seasons['BCN'] = Array('0','0'); towns['BCN'] = Array(); towns['BCN'] = Array(); seasons['AMS'] = Array('0','0'); seasons['AMS'] = Array('0','0'); towns['AMS'] = Array(); towns['AMS'] = Array(); seasons['DUB'] = Array('0','0'); seasons['DUB'] = Array('0','0'); towns['DUB'] = Array(); towns['DUB'] = Array(); seasons['MAD'] = Array('0','0'); seasons['MAD'] = Array('0','0'); towns['MAD'] = Array(); towns['MAD'] = Array(); seasons['CDG'] = Array('0','0'); seasons['CDG'] = Array('0','0'); towns['CDG'] = Array(); towns['CDG'] = Array(); seasons['PRG'] = Array('0','0'); seasons['PRG'] = Array('0','0'); towns['PRG'] = Array(); towns['PRG'] = Array(); seasons['FCO'] = Array('0','0'); seasons['FCO'] = Array('0','0'); towns['FCO'] = Array(); towns['FCO'] = Array(); seasons['VCE'] = Array('0','0'); seasons['VCE'] = Array('0','0'); towns['VCE'] = Array(); towns['VCE'] = Array(); seasons['GVA'] = Array('0','0'); seasons['GVA'] = Array('0','0'); towns['GVA'] = Array(); towns['GVA'] = Array(); seasons['MXP'] = Array('0','0'); seasons['MXP'] = Array('0','0'); towns['MXP'] = Array(); towns['MXP'] = Array(); seasons['MUC'] = Array('0','0'); seasons['MUC'] = Array('0','0'); towns['MUC'] = Array(); towns['MUC'] = Array(); seasons['SXF'] = Array('0','0'); seasons['SXF'] = Array('0','0'); towns['SXF'] = Array(); towns['SXF'] = Array(); seasons['CGN'] = Array('0','0'); seasons['CGN'] = Array('0','0'); towns['CGN'] = Array(); towns['CGN'] = Array(); seasons['NCE'] = Array('0','0'); seasons['NCE'] = Array('0','0'); towns['NCE'] = Array(); towns['NCE'] = Array(); seasons['ATH'] = Array('0','0'); seasons['ATH'] = Array('0','0'); towns['ATH'] = Array(); towns['ATH'] = Array(); seasons['BUD'] = Array('0','0'); seasons['BUD'] = Array('0','0'); towns['BUD'] = Array(); towns['BUD'] = Array(); seasons['CPH'] = Array('0','0'); seasons['CPH'] = Array('0','0'); towns['CPH'] = Array(); towns['CPH'] = Array(); seasons['SAW'] = Array('0','0'); seasons['SAW'] = Array('0','0'); towns['SAW'] = Array(); towns['SAW'] = Array(); seasons['LIS'] = Array('0','0'); seasons['LIS'] = Array('0','0'); towns['LIS'] = Array(); towns['LIS'] = Array(); seasons['NAP'] = Array('0','0'); seasons['NAP'] = Array('0','0'); towns['NAP'] = Array(); towns['NAP'] = Array(); seasons['SPU'] = Array('0','0'); seasons['SPU'] = Array('0','0'); towns['SPU'] = Array(); towns['SPU'] = Array(); seasons['TLL'] = Array('0','0'); seasons['TLL'] = Array('0','0'); towns['TLL'] = Array(); towns['TLL'] = Array(); seasons['VLC'] = Array('0','0'); seasons['VLC'] = Array('0','0'); towns['VLC'] = Array(); towns['VLC'] = Array(); seasons['WAW'] = Array('0','0'); seasons['WAW'] = Array('0','0'); towns['WAW'] = Array(); towns['WAW'] = Array(); seasons['KRK'] = Array('0','0'); seasons['KRK'] = Array('0','0'); towns['KRK'] = Array(); towns['KRK'] = Array(); seasons['BRU'] = Array('0','0'); seasons['BRU'] = Array('0','0'); towns['BRU'] = Array(); towns['BRU'] = Array(); seasons['MRS'] = Array('0','0'); seasons['MRS'] = Array('0','0'); towns['MRS'] = Array(); towns['MRS'] = Array(); seasons['RAK'] = Array('0','0'); seasons['RAK'] = Array('0','0'); towns['RAK'] = Array(); towns['RAK'] = Array(); seasons['PSA'] = Array('0','0'); seasons['PSA'] = Array('0','0'); towns['PSA'] = Array(); towns['PSA'] = Array(); seasons['PSA'] = Array('0','0'); seasons['PSA'] = Array('0','0'); towns['PSA'] = Array(); towns['PSA'] = Array(); seasons['SFB'] = Array('0','0'); seasons['SFB'] = Array('0','0'); towns['SFB'] = Array("Fort Lauderdale","Fort Myers","International Drive","Key Largo","Key West","Kissimmee","Miami","Orlando","Sanibel","Winter Garden"); towns['SFB'] = Array("Fort Lauderdale","Fort Myers","International Drive","Key Largo","Key West","Kissimmee","Miami","Orlando","Sanibel","Winter Garden"); seasons['GOI'] = Array('0','0'); seasons['GOI'] = Array('0','0'); towns['GOI'] = Array("Arossim","Arpora","Baga","Bogmalo","Calangute","Candolim","Cavelossim","Mobor","Panjim","Sernabatim","Utorda","Vainguinim","Varca"); towns['GOI'] = Array("Arossim","Arpora","Baga","Bogmalo","Calangute","Candolim","Cavelossim","Mobor","Panjim","Sernabatim","Utorda","Vainguinim","Varca"); seasons[''] = Array('0','0'); seasons['*CIS'] = Array('0','0'); towns[''] = Array(); towns['*CIS'] = Array(); seasons[''] = Array('0','0'); seasons['*CAR'] = Array('0','0'); towns[''] = Array(); towns['*CAR'] = Array(); seasons[''] = Array('0','0'); seasons['*EGP'] = Array('0','0'); towns[''] = Array(); towns['*EGP'] = Array(); seasons[''] = Array('401','1027'); seasons['*GAI'] = Array('401','1027'); towns[''] = Array(); towns['*GAI'] = Array(); seasons[''] = Array('501','1025'); seasons['*ITN'] = Array('501','1025'); towns[''] = Array(); towns['*ITN'] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons['*ESM'] = Array('0','0'); towns[''] = Array(); towns['*ESM'] = Array(); seasons[''] = Array('0','0'); seasons['*TUR'] = Array('0','0'); towns[''] = Array(); towns['*TUR'] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons[''] = Array('0','0'); towns[''] = Array(); towns[''] = Array(); seasons[''] = Array('0','0'); seasons['*ESB'] = Array('0','0'); towns[''] = Array(); towns['*ESB'] = Array(); seasons['LPA'] = Array('0','0'); seasons['LPA'] = Array('0','0'); towns['LPA'] = Array("Arguineguin","Las Palmas","Maspalomas","Meloneras","Playa del Ingles","Puerto Rico","San Agustin","Sonnenland"); towns['LPA'] = Array("Arguineguin","Las Palmas","Maspalomas","Meloneras","Playa del Ingles","Puerto Rico","San Agustin","Sonnenland"); seasons['LXR'] = Array('0','0'); seasons['LXR'] = Array('0','0'); towns['LXR'] = Array("Aswan"); towns['LXR'] = Array("Aswan"); seasons['TCP'] = Array('0','0'); seasons['TCP'] = Array('0','0'); towns['TCP'] = Array("Taba Heights"); towns['TCP'] = Array("Taba Heights"); seasons['CFU'] = Array('501','1024'); seasons['CFU'] = Array('501','1024'); towns['CFU'] = Array("Acharavi","Agios Ioannis","Corfu Town","Dassia","Gouvia","Paleokastritsa","Perama"); towns['CFU'] = Array("Acharavi","Agios Ioannis","Corfu Town","Dassia","Gouvia","Paleokastritsa","Perama"); seasons['HER'] = Array('329','1024'); seasons['HER'] = Array('329','1024'); towns['HER'] = Array("Agia Pelagia","Agios Nikolaos","Amoudara","Chania","Elounda","Fodele","Georgioupolis","Gouves","Heraklion","Hersonissos","Malia","Rethymnon","Sissi"); towns['HER'] = Array("Agia Pelagia","Agios Nikolaos","Amoudara","Chania","Elounda","Fodele","Georgioupolis","Gouves","Heraklion","Hersonissos","Malia","Rethymnon","Sissi"); seasons['SKG'] = Array('501','1024'); seasons['SKG'] = Array('501','1024'); towns['SKG'] = Array(); towns['SKG'] = Array(); seasons['EFL'] = Array('501','1024'); seasons['EFL'] = Array('501','1024'); towns['EFL'] = Array(); towns['EFL'] = Array(); seasons['KGS'] = Array('501','1024'); seasons['KGS'] = Array('501','1024'); towns['KGS'] = Array("Kardamena","Kos Town","Marmari","Mastihari","Psalidi"); towns['KGS'] = Array("Kardamena","Kos Town","Marmari","Mastihari","Psalidi"); seasons['RHO'] = Array('331','1024'); seasons['RHO'] = Array('331','1024'); towns['RHO'] = Array("Faliraki","Ixia","Kiotari","Kolymbia","Lindos","Rhodes Town","Tholos","Trianta"); towns['RHO'] = Array("Faliraki","Ixia","Kiotari","Kolymbia","Lindos","Rhodes Town","Tholos","Trianta"); seasons['JTR'] = Array('501','1024'); seasons['JTR'] = Array('501','1024'); towns['JTR'] = Array(); towns['JTR'] = Array(); seasons['ZTH'] = Array('501','1024'); seasons['ZTH'] = Array('501','1024'); towns['ZTH'] = Array("Argassi","Kalamaki","Kypseli","Laganas","Vassilikos"); towns['ZTH'] = Array("Argassi","Kalamaki","Kypseli","Laganas","Vassilikos"); seasons['ACE'] = Array('0','0'); seasons['ACE'] = Array('0','0'); towns['ACE'] = Array("Costa Calero","Costa Teguise","Matagorda","Playa Blanca","Playa de Los Pocillos","Puerto del Carmen"); towns['ACE'] = Array("Costa Calero","Costa Teguise","Matagorda","Playa Blanca","Playa de Los Pocillos","Puerto del Carmen"); seasons['NAP'] = Array('501','1101'); seasons['NAP'] = Array('501','1101'); towns['NAP'] = Array("Amalfi","Capri","Positano","Sorrento"); towns['NAP'] = Array("Amalfi","Capri","Positano","Sorrento"); seasons['FNC'] = Array('0','0'); seasons['FNC'] = Array('0','0'); towns['FNC'] = Array("Canico","Funchal","Garajau","Machico"); towns['FNC'] = Array("Canico","Funchal","Garajau","Machico"); seasons['MLA'] = Array('0','0'); seasons['MLA'] = Array('0','0'); towns['MLA'] = Array("Bugibba","Gozo","Mellieha","Paceville","Paradise Bay","Qawra","Salina","Sliema","St Georges","St Julians","St Pauls","Valletta"); towns['MLA'] = Array("Bugibba","Gozo","Mellieha","Paceville","Paradise Bay","Qawra","Salina","Sliema","St Georges","St Julians","St Pauls","Valletta"); seasons['AGA'] = Array('0','0'); seasons['AGA'] = Array('0','0'); towns['AGA'] = Array(); towns['AGA'] = Array(); seasons['FAO'] = Array('0','0'); seasons['FAO'] = Array('0','0'); towns['FAO'] = Array("Albufeira","Almancil","Altura","Alvor","Balaia","Cabanas","Carvoeira","Faro","Lagos","Monte Gordo","Montechoro","Portimao","Praia da Luz","Praia da Oura","Praia da Rocha","Quarteira","Quinta do Lago","Tavira","Vale do Lobo","Vilamoura"); towns['FAO'] = Array("Albufeira","Almancil","Altura","Alvor","Balaia","Cabanas","Carvoeira","Faro","Lagos","Monte Gordo","Montechoro","Portimao","Praia da Luz","Praia da Oura","Praia da Rocha","Quarteira","Quinta do Lago","Tavira","Vale do Lobo","Vilamoura"); seasons['ALC'] = Array('0','0'); seasons['ALC'] = Array('0','0'); towns['ALC'] = Array("Albir","Alicante","Altea","Benidorm","Calpe","Denia","Javea","La Cala","La Sella","Levante"); towns['ALC'] = Array("Albir","Alicante","Altea","Benidorm","Calpe","Denia","Javea","La Cala","La Sella","Levante"); seasons['GRO'] = Array('501','1025'); seasons['GRO'] = Array('501','1025'); towns['GRO'] = Array("Blanes","Calella","Lloret de Mar","Malgrat de Mar","Pineda de Mar","Platja d''Aro","Santa Susanna","Tossa de Mar"); towns['GRO'] = Array("Blanes","Calella","Lloret de Mar","Malgrat de Mar","Pineda de Mar","Platja d''Aro","Santa Susanna","Tossa de Mar"); seasons['LEI'] = Array('504','1020'); seasons['LEI'] = Array('504','1020'); towns['LEI'] = Array("Aguadulce","Almerimar","Cabo de Gata","Mojacar","Roquetas de Mar"); towns['LEI'] = Array("Aguadulce","Almerimar","Cabo de Gata","Mojacar","Roquetas de Mar"); seasons['AGP'] = Array('0','0'); seasons['AGP'] = Array('0','0'); towns['AGP'] = Array("Algeciras","Benahavis","Benalmadena","Fuengirola","Guadalmina","Malaga","Marbella","Mijas","Nerja","Puerto Banus","Ronda","San Pedro","Torremolinos"); towns['AGP'] = Array("Algeciras","Benahavis","Benalmadena","Fuengirola","Guadalmina","Malaga","Marbella","Mijas","Nerja","Puerto Banus","Ronda","San Pedro","Torremolinos"); seasons['REU'] = Array('403','1025'); seasons['REU'] = Array('403','1025'); towns['REU'] = Array("Cambrils","La Pineda","Port Aventura","Salou","Sitges"); towns['REU'] = Array("Cambrils","La Pineda","Port Aventura","Salou","Sitges"); seasons['TFS'] = Array('0','0'); seasons['TFS'] = Array('0','0'); towns['TFS'] = Array("Costa Adeje","Costa del Silencio","El Medano","Golf del Sur","Las Caletillas","Los Cristianos","Playa de la Arena","Playa de las Americas","Playa Paraiso","Puerto de la Cruz","Puerto Santiago","Santa Ursula"); towns['TFS'] = Array("Costa Adeje","Costa del Silencio","El Medano","Golf del Sur","Las Caletillas","Los Cristianos","Playa de la Arena","Playa de las Americas","Playa Paraiso","Puerto de la Cruz","Puerto Santiago","Santa Ursula"); seasons['AGP'] = Array('0','0'); seasons['AGP'] = Array('0','0'); towns['AGP'] = Array(); towns['AGP'] = Array(); seasons['XRY'] = Array('519','930'); seasons['XRY'] = Array('519','930'); towns['XRY'] = Array(); towns['XRY'] = Array(); seasons['IBZ'] = Array('425','1024'); seasons['IBZ'] = Array('425','1024'); towns['IBZ'] = Array("Cala Llonga","Es Cana","Ibiza Town","San Antonio","San Antonio Bay","Talamanca"); towns['IBZ'] = Array("Cala Llonga","Es Cana","Ibiza Town","San Antonio","San Antonio Bay","Talamanca"); seasons['PMI'] = Array('301','1231'); seasons['PMI'] = Array('301','1231'); towns['PMI'] = Array("Alcudia","Cala Bona","Cala Millor","Calas de Mallorca","El Arenal","Illetas","Magalluf","Palma","Palma Nova","Puerto Pollensa","Sa Coma","Santa Ponsa"); towns['PMI'] = Array("Alcudia","Cala Bona","Cala Millor","Calas de Mallorca","El Arenal","Illetas","Magalluf","Palma","Palma Nova","Puerto Pollensa","Sa Coma","Santa Ponsa"); seasons['MAH'] = Array('429','1026'); seasons['MAH'] = Array('429','1026'); towns['MAH'] = Array("Binibeca","Cala Blanca","Cala Galdana","Cala n Bosch","Cala n Porter","Cala Santandria","Ciutadella","Mahon","Punta Prima","Santo Tomas","Son Bou"); towns['MAH'] = Array("Binibeca","Cala Blanca","Cala Galdana","Cala n Bosch","Cala n Porter","Cala Santandria","Ciutadella","Mahon","Punta Prima","Santo Tomas","Son Bou"); seasons['MIR'] = Array('0','0'); seasons['MIR'] = Array('0','0'); towns['MIR'] = Array("Hammamet","Mahdia","Port el Kantaoui","Skanes","Sousse"); towns['MIR'] = Array("Hammamet","Mahdia","Port el Kantaoui","Skanes","Sousse"); seasons['BJV'] = Array('401','1025'); seasons['BJV'] = Array('401','1025'); towns['BJV'] = Array("Altinkum","Gumbet","Kusadasi"); towns['BJV'] = Array("Altinkum","Gumbet","Kusadasi"); seasons['DLM'] = Array('401','1031'); seasons['DLM'] = Array('401','1031'); towns['DLM'] = Array("Fethiye","Icmeler","Marmaris","Olu Deniz"); towns['DLM'] = Array("Fethiye","Icmeler","Marmaris","Olu Deniz"); seasons['AYT'] = Array('301','1115'); seasons['AYT'] = Array('301','1115'); towns['AYT'] = Array("Alanya","Belek","Kemer","Side"); towns['AYT'] = Array("Alanya","Belek","Kemer","Side"); seasons['CUN'] = Array('0','0'); seasons['CUN'] = Array('0','0'); towns['CUN'] = Array("Cancun","Riviera Maya"); towns['CUN'] = Array("Cancun","Riviera Maya"); seasons['BGI'] = Array('0','0'); seasons['BGI'] = Array('0','0'); towns['BGI'] = Array(); towns['BGI'] = Array(); seasons['ANU'] = Array('0','0'); seasons['ANU'] = Array('0','0'); towns['ANU'] = Array(); towns['ANU'] = Array(); seasons['VRA'] = Array('0','0'); seasons['*CUB'] = Array('0','0'); towns['VRA'] = Array(); towns['*CUB'] = Array(); seasons['MBJ'] = Array('0','0'); seasons['MBJ'] = Array('0','0'); towns['MBJ'] = Array(); towns['MBJ'] = Array(); seasons['GND'] = Array('0','0'); seasons['GND'] = Array('0','0'); towns['GND'] = Array(); towns['GND'] = Array(); seasons['TAB'] = Array('0','0'); seasons['TAB'] = Array('0','0'); towns['TAB'] = Array(); towns['TAB'] = Array(); seasons['UVF'] = Array('0','0'); seasons['UVF'] = Array('0','0'); towns['UVF'] = Array(); towns['UVF'] = Array(); seasons['POP'] = Array('0','0'); seasons['*DOM'] = Array('0','0'); towns['POP'] = Array("Bayahibe","Boca Chica","Cabarete","Cabeza Toro","Cofresi","Costa Dorada","Costambar","Higuey","Juan Dolio","La Romana","Luperon","Maimon","Playa Bavaro","Playa Dorada","Puerto Plata","Punta Cana","Rio San Juan","Samana","San Juan","Santo Domingo","Sosua","Uvero Alto"); towns['*DOM'] = Array("Bayahibe","Boca Chica","Cabarete","Cabeza Toro","Cofresi","Costa Dorada","Costambar","Higuey","Juan Dolio","La Romana","Luperon","Maimon","Playa Bavaro","Playa Dorada","Puerto Plata","Punta Cana","Rio San Juan","Samana","San Juan","Santo Domingo","Sosua","Uvero Alto"); seasons['SPU'] = Array('506','1007'); seasons['SPU'] = Array('506','1007'); towns['SPU'] = Array(); towns['SPU'] = Array(); seasons['LCA'] = Array('0','0'); seasons['*MAC'] = Array('0','0'); towns['LCA'] = Array("Ayia Napa","Kakopetria","Larnaca","Limassol","Nissi Beach","Paphos","Polis","Protaras"); towns['*MAC'] = Array("Ayia Napa","Kakopetria","Larnaca","Limassol","Nissi Beach","Paphos","Polis","Protaras"); seasons['HRG'] = Array('0','0'); seasons['HRG'] = Array('0','0'); towns['HRG'] = Array("El Gouna","Makadi Bay","Soma Bay"); towns['HRG'] = Array("El Gouna","Makadi Bay","Soma Bay"); seasons['SSH'] = Array('0','0'); seasons['SSH'] = Array('0','0'); towns['SSH'] = Array("Dahab","Habada","Naama Bay","Nabq","Nosrani Bay","Om El Sid","Ras Um Sid","Sharks Bay"); towns['SSH'] = Array("Dahab","Habada","Naama Bay","Nabq","Nosrani Bay","Om El Sid","Ras Um Sid","Sharks Bay"); function check_seasoning(){ then = document.getElementById('depart_date').value; y = then.split('-'); if(y[1].indexOf('0') == 0){ y[1] = y[1].substring(2,1); } then = y[1]+""+y[0]; destination_field = 'destination'; if(document.getElementById('cyo-mode-hotel').checked) { destination_field = 'destination_ho'; } d = document.getElementById(destination_field).value; if(seasons[d][0] > 0 && seasons[d][1] > 0){ if(parseInt(seasons[d][0]) < parseInt(then) && parseInt(then) < parseInt(seasons[d][1])){ return true; } else { return false; } } else { return true; } } function find_towns(d,v){ if(towns[d]) { r = '"; document.getElementById('destination_town').disabled = false; } else { r = ''; } document.getElementById('destination_town_container').innerHTML = r; if(v){ document.getElementById('destination_town').value = v; } } // If they choose a town, we don't want to be specific on board/rating any more, as you're unlikely to get results if you're to specific. function toggle_hotel_opts(v){ document.getElementById('hotel_board').disabled = (v?true:false); document.getElementById('hotel_stars').disabled = (v?true:false); } function lon() { document.getElementById('errorContainer').style.display = 'block'; document.getElementById('destination').style.visibility = 'hidden'; document.getElementById('destination_ho').style.visibility = 'hidden'; document.getElementById('bf_airport').style.visibility = 'hidden'; document.getElementById('duration').style.visibility = 'hidden'; document.getElementById('flexibility').style.visibility = 'hidden'; document.getElementById('party_adults').style.visibility = 'hidden'; document.getElementById('party_children').style.visibility = 'hidden'; document.getElementById('party_infants').style.visibility = 'hidden'; document.getElementById('hotel_stars').style.visibility = 'hidden'; document.getElementById('hotel_board').style.visibility = 'hidden'; return true; } function loff() { document.getElementById('errorContainer').style.display = 'none'; document.getElementById('destination').style.visibility = 'visible'; document.getElementById('destination_ho').style.visibility = 'visible'; document.getElementById('bf_airport').style.visibility = 'visible'; document.getElementById('duration').style.visibility = 'visible'; document.getElementById('flexibility').style.visibility = 'visible'; document.getElementById('party_adults').style.visibility = 'visible'; document.getElementById('party_children').style.visibility = 'visible'; document.getElementById('party_infants').style.visibility = 'visible'; document.getElementById('hotel_stars').style.visibility = 'visible'; document.getElementById('hotel_board').style.visibility = 'visible'; return true; }