<!--

reservationRegionarray=[

[[ 'Aalborg', 'Aalborg'],[ 'København', 'Copenhagen'],[ 'Odense', 'Odense'],[ 'Randers', 'Randers'],[ 'Sønderborg', 'Sonderborg'],[ 'Vejle', 'Vejle'],[ 'Århus', 'Arhus']],
[[ 'Helsinki', 'Helsinki'],[ 'Kuopio', 'Kuopio'],[ 'Lahti', 'Lahti'],[ 'Rovaniemi', 'Rovaniemi']],
[[ 'Vilnius', 'Vilnius']],
[[ 'Alta', 'Alta'],[ 'Arendal', 'Arendal'],[ 'Bergen', 'Bergen'],[ 'Bodø', 'Bodo'],[ 'Drammen', 'Drammen'],[ 'Eidfjord/Hardanger', 'Eidfjord'],[ 'Fagernes', 'Fagernes'],[ 'Florø', 'Floro'],[ 'Førde', 'Forde'],[ 'Gjøvik', 'Gjovik'],[ 'Hafjell', 'Lillehammer'],[ 'Hamar', 'Hamar'],[ 'Hammerfest', 'Hammerfest'],[ 'Harstad', 'Harstad'],[ 'Haugesund', 'Haugesund'],[ 'Holmsbu', 'Holmsbu'],[ 'Hønefoss', 'Honefoss'],[ 'Kongsberg', 'Kongsberg'],[ 'Kristiansand', 'Kristiansand'],[ 'Kristiansund', 'Kristiansund'],[ 'Langesund', 'Langesund'],[ 'Larvik', 'Larvik'],[ 'Lillehammer', 'Lillehammer'],[ 'Mo i Rana', 'Mo i Rana'],[ 'Molde', 'Molde'],['Narvik','Narvik'],[ 'Oppdal', 'Oppdal'],[ 'Oslo', 'Oslo'],[ 'Røros', 'Roros'],[ 'Sandefjord', 'Sandefjord'],[ 'Sandnes', 'Sandnes'],[ 'Sarpsborg', 'Sarpsborg'],[ 'Skien', 'Skien'],[ 'Sogndal', 'Sogndal'],[ 'Stavanger', 'Stavanger'],[ 'Steinkjer', 'Steinkjer'],[ 'Stjørdal', 'Stjordal'],[ 'Tromsø', 'Tromso'],[ 'Trondheim', 'Trondheim'],[ 'Tønsberg', 'Tonsberg'],['Ulsteinvik', 'Ulsteinvik'],[ 'Vrådal', 'Vradal'],[ 'Ålesund', 'Alesund']],
[[ 'Arvika', 'Arvika'],[ 'Borås', 'Boras'],[ 'Borlänge', 'Borlange'],[ 'Eskilstuna', 'Eskilstuna'],[ 'Finspång', 'Finspang'],[ 'Göteborg', 'Goteborg'],[ 'Halmstad', 'Halmstad'],[ 'Helsingborg', 'Helsingborg'],[ 'Huskvarna', 'Huskvarna'],[ 'Jönköping', 'Jonkoping'],[ 'Kalmar', 'Kalmar'],[ 'Karlstad', 'Karlstad'],[ 'Kristianstad', 'Kristianstad'],[ 'Linköping', 'Linkoping'],[ 'Luleå', 'Lulea'],[ 'Malmö', 'Malmo'],[ 'Norrköping', 'Norrkoping'],[ 'Nyköping', 'Nykoping'],[ 'Oskarshamn', 'Oskarshamn'],[ 'Skövde', 'Skovde'],[ 'Skellefteå', 'Skelleftea'],[ 'Stenungsund', 'Stenungsund'],[ 'Stockholm', 'Stockholm'],[ 'Strömstad', 'Stromstad'],[ 'Sundsvall', 'Sundsvall'],[ 'Sunne', 'Sunne'],[ 'Säffle', 'Saffle'],[ 'Södertälje', 'Sodertalje'],[ 'Umeå', 'Umea'],[ 'Uppsala', 'Uppsala'],[ 'Varberg', 'Varberg'],[ 'Vänersborg', 'Vanersborg'],[ 'Västerås', 'Vasteras'],[ 'Växjö', 'Vaxjo'],[ 'Visby', 'Visby'],[ 'Örebro', 'Orebro'],[ 'Östersund', 'Ostersund']]];

reservationHotelcodearray=[
[
[[ 'DK023', 'Quality Hotel Aalborg']],
[[ 'DK024', 'Clarion Hotel Copenhagen'],[ 'DK006', 'Clarion Collection Hotel Neptun'],[ 'DK007', 'Comfort Hotel Esplanaden'],[ 'DK009', 'Comfort Hotel Europa'],[ 'DK005', 'Comfort Hotel Excelsior'],[ 'DK025', 'Clarion Collection Hotel Mayfair'],[ 'DK003', 'Comfort Hotel Østerport'],[ 'DK021', 'Quality Airport Hotel Dan'],[ 'DK004', 'Quality Hotel Høje Taastrup'],[ 'DK008', 'Quality Hotel Marina']],
[[ 'DK022', 'Clarion Collection Hotel Plaza'],[ 'DK026', 'Comfort Hotel Windsor']],
[[ 'DK027', 'Clarion Collection Hotel Kronjylland']],
[[ 'DK016', 'Quality Hotel Sønderborg']],
[[ 'DK014', 'Quality Hotel Australia']],
[[ 'DK011', 'Comfort Hotel Atlantic']]],
[
[[ 'FI011', 'Comfort Hotel Pilotti']],
[[ 'FI010', 'Quality Hotel Vuoksenhovi']],
[[ 'FI014', 'Quality Hotel IsoValkeinen']],
[[ 'FI012', 'Comfort Hotel Lahti']],
[[ 'FI015', 'Clarion Hotel Santa Claus']]],
[
[[ 'LT001', 'Quality Hotel Barbacan Palace']]],
[
[[ 'NO082', 'Quality Hotel Vica']],
[[ 'NO038', 'Clarion Collection Hotel Tyholmen']],
[[ 'NO037', 'Clarion Hotel Admiral'],[ 'NO097', 'Clarion Collection Hotel Havnekontoret'],[ 'NO013', 'Comfort Hotel Holberg'],[ 'NO023', 'Quality Hotel Edvard Grieg'],[ 'NO098', 'Clarion Hotel Bergen Airport']],
[[ 'NO073', 'Clarion Collection Hotel Grand']],
[[ 'NO026', 'Clarion Collection Hotel Tollboden']],
[[ 'NO087', 'Quality Hotel & Resort Vøringfoss']],
[[ 'NO059', 'Quality Hotel & Resort Fagernes']],
[[ 'NO058', 'Quality Hotel Florø']],
[[ 'NO049', 'Quality Hotel Førde']],
[[ 'NO047', 'Quality Hotel Grand']],
[[ 'NO010', 'Quality Hotel & Resort Hafjell'],[ 'NO022', 'Quality Hotel & Resort Hunderfossen']],
[[ 'NO069', 'Quality Hotel Astoria']],
[[ 'NO061', 'Quality Hotel Hammerfest']],
[[ 'NO065', 'Quality Hotel Arcticus']],
[[ 'NO027', 'Clarion Collection Hotel Amanda']],
[[ 'NO093', 'Quality Spa & Resort Holmsbu']],
[[ 'NO046', 'Quality Hotel Ringerike']],
[[ 'NO052', 'Quality Hotel Grand']],
[[ 'NO039', 'Clarion Hotel Ernst'],[ 'NO068', 'Comfort Hotel Skagerak'],[ 'NO018', 'Quality Hotel & Resort Kristiansand']],
[[ 'NO074', 'Comfort Hotel Fosna'],[ 'NO089', 'Quality Hotel Grand']],
[[ 'NO034', 'Quality Hotel & Resort Skjærgården']],
[[ 'NO048', 'Quality Hotel Grand Farris'],[ 'NO099', 'Quality Hotel Grand Royal']],
[[ 'NO028', 'Clarion Collection Hotel Hammer']],
[[ 'NO081', 'Comfort Hotel Ole Tobias']],
[[ 'NO075', 'Comfort Hotel Nobel'],[ 'NO088', 'Quality Hotel Alexandra']],
[[ 'NO099', 'Quality Hotel Grand Royal']],
[[ 'NO072', 'Quality Hotel Oppdal']],
[[ 'NO096', 'Clarion Collection Hotel Bastion'],[ 'NO036', 'Clarion Hotel Royal Christiania'],[ 'NO020', 'Comfort Hotel Børsparken'],[ 'NO094', 'Clarion Collection Hotel Gabelshus'],[ 'NO060', 'Clarion Collection Hotel Savoy'], [ 'NO070', 'Clarion Hotel Oslo Airport'],[ 'NO014', 'Quality Airport Hotel Gardermoen'],[ 'NO076', 'Quality Hotel Leangkollen'],[ 'NO003', 'Quality Hotel Mastemyr'],[ 'NO040', 'Quality Hotel Olavsgaard']],
[[ 'NO045', 'Quality Hotel & Resort Røros']],
[[ 'NO025', 'Clarion Collection Hotel Atlantic']],
[[ 'NO019', 'Quality Hotel Residence']],
[[ 'NO078', 'Quality Hotel & Resort Sarpsborg']],
[[ 'NO090', 'Clarion Collection Hotel Bryggeparken']],
[[ 'NO062', 'Quality Hotel Sogndal']],
[[ 'NO079', 'Clarion Hotel Stavanger'],[ 'NO071', 'Comfort Hotel Grand'],[ 'NO015', 'Quality Airport Hotel Stavanger']],
[[ 'NO053', 'Quality Hotel Grand']],
[[ 'NO002', 'Quality Airport Hotel Værnes']],
[[ 'NO086', 'Clarion Hotel Bryggen'],[ 'NO067', 'Comfort Hotel Saga'],[ 'NO029', 'Clarion Collection Hotel With']],
[[ 'NO032', 'Clarion Collection Hotel Grand Olav'],[ 'NO030', 'Clarion Collection Hotel Bakeriet'],[ 'NO092', 'Comfort Hotel Park'],[ 'NO017', 'Quality Hotel Augustin'],[ 'NO001', 'Quality Hotel Panorama']],
[[ 'NO091', 'Quality Hotel Tønsberg']],
[[ 'NO010', 'Quality Hotel Ulstein']],
[[ 'NO057', 'Quality Straand Hotel & Resort']],
[[ 'NO024', 'Clarion Collection Bryggen'],[ 'NO042', 'Comfort Hotel Scandinavie'],[ 'NO010', 'Quality Hotel Ulstein']]],
[
[[ 'SE069', 'Comfort Hotel Bristol']],
[[ 'SE079', 'Comfort Hotel Jazz']],
[[ 'SE050', 'Quality Hotel Galaxen']],
[[ 'SE027', 'Clarion Collection Hotel Bolinder Munktell'],[ 'SE062', 'Quality Hotel Statt']],
[[ 'SE063', 'Quality Hotel de Geer'], [ 'SE036', 'Quality Hotel Ekoxen']],
[[ 'SE078', 'Comfort Hotel City Center'],[ 'SE074', 'Clarion Collection Hotel Odin'],[ 'SE032', 'Quality Hotel 11'],[ 'SE028', 'Quality Hotel Panorama'],[ 'SE045', 'Quality Hotel Winn ']],
[[ 'SE072', 'Clarion Collection Hotel Norre Park'],[ 'SE010', 'Quality Hotel Halmstad']],
[[ 'SE046', 'Comfort Hotel Nouveau']],
[[ 'SE045', 'Quality Hotel Winn '], [ 'SE026', 'Comfort Hotel Victoria'],[ 'SE008', 'Quality Hotel Jönköping']],
[[ 'SE026', 'Comfort Hotel Victoria'],[ 'SE008', 'Quality Hotel Jönköping'],[ 'SE044', 'Quality Hotel Winn']],
[[ 'SE025', 'Clarion Collection Hotel Packhuset']],
[[ 'SE024', 'Clarion Collection Hotel Bilan'],[ 'SE057', 'Clarion Collection Hotel Drott']],
[[ 'SE031', 'Quality Hotel Grand']],
[[ 'SE036', 'Quality Hotel Ekoxen'],[ 'SE063', 'Quality Hotel de Geer']],
[[ 'SE053', 'Comfort Hotel Luleå'],[ 'SE052', 'Quality Hotel Luleå']],
[[ 'SE056', 'Clarion Collection Hotel Malmö'],[ 'SE029', 'Comfort Hotel Malmö'],[ 'SE033', 'Quality Hotel Konserthuset']],
[[ 'SE063', 'Quality Hotel de Geer'], [ 'SE036', 'Quality Hotel Ekoxen']],
[[ 'SE023', 'Clarion Collection Hotel Kompaniet']],
[[ 'SE022', 'Clarion Collection Hotel Post']],
[[ 'SE021', 'Clarion Collection Hotel Majoren'],[ 'SE065', 'Quality Hotel Prisma']],
[[ 'SE077', 'Quality Hotel Statt']],
[[ 'SE041', 'Quality Hotel & Resort Stenungsbaden']],
[[ 'SE059', 'Clarion Hotel Stockholm'],[ 'SE070', 'Clarion Collection Hotel Karlaplan'],[ 'SE030', 'Comfort Hotel Stockholm'],[ 'SE018', 'Clarion Collection Hotel Tapto'],[ 'SE064', 'Clarion Collection Hotel Wellington'],[ 'SE040', 'Quality Hotel Globe'],[ 'SE038', 'Quality Hotel Nacka'],[ 'SE039', 'Quality Hotel Prince Philip'],[ 'SE007', 'Quality Airport Hotel Arlanda']],
[[ 'SE073', 'Quality Spa & Resort Strömstad']],
[[ 'SE076', 'Clarion Collection Hotel Grand'],[ 'SE037', 'Comfort Hotel Sundsvall']],
[[ 'SE043', 'Quality Hotel Selma Lagerlöf'],[ 'SE042', 'Quality Spa & Resort Selma Lagerlöf']],
[[ 'SE061', 'Comfort Hotel Royal']],
[[ 'SE066', 'Quality Hotel Park']],
[[ 'SE019', 'Clarion Collection Hotel Uman']],
[[ 'SE085', 'Clarion Hotel Gillet']],
[[ 'SE020', 'Clarion Collection Hotel Fregatten']],
[[ 'SE047', 'Quality Hotel Vänersborg']],
[[ 'SE049', 'Clarion Collection Hotel Etage'],[ 'SE067', 'Quality Hotel Västerås']],
[[ 'SE068', 'Quality Hotel Konserthuset'],[ 'SE051', 'Quality Hotel Växjö']],
[[ 'SE080', 'Clarion Hotel Wisby']],
[[ 'SE009', 'Quality Hotel Örebro']],
[[ 'SE087', 'Clarion Hotel Grand']]]];


if (loc == "en"){
//english
var selectplace = 'Select Place';
var cntryfirst = 'Select Country First';
var placefirst = 'Select Place/\Town First';
var selecthotel = 'All Hotels/\Select Hotel';

} else if (loc =="sv"){
//swedish
var selectplace = 'Välj Ort';
var cntryfirst = 'Välj Land F&ouml;rst';
var placefirst = 'Välj Ort F&ouml;rst';
var selecthotel = 'All Hotels/\Select Hotel';
}else if (loc == "da"){
//danish
var selectplace = 'Vælg Sted/\By';
var cntryfirst = 'Vælg Land Først';
var placefirst = 'Vælg Sted/\By Først';
var selecthotel = 'All Hotels/\Select Hotel';
} else if (loc == "no"){ 
//norwegian
var selectplace = 'Velg Sted';
var cntryfirst = 'Velg Land Først';
var placefirst = 'Velg Sted Først';
var selecthotel = 'All Hotels/\Select Hotel';
}

function addOpt( selection, optiontext, optionvalue, pos ) {
	//document.all.debug.innerHTML=document.all.debug.innerHTML+(selection+''+optiontext+''+optionvalue)+'<br>';
    var daOption = new Option( optiontext, optionvalue, false, false)
    selection.options[pos] = daOption;
}
function clearSelect( selection ) {
  for (i = selection.options.length; i >= 0; i--) {
    selection.options[i] = null;
  }
}
function setRegionList( countryidx ) {
 if( countryidx < 0 ) return;
  selection = document.forms.availability.destination;
  clearSelect( selection );
  addOpt( selection, selectplace, -1, 0 );
  curregarray = reservationRegionarray[countryidx]; 
  for( i=0; i<curregarray.length; i++ ) {
    addOpt( selection, curregarray[i][0], curregarray[i][1], i+1 );
  }
  selection.options[0].selected = true;
}
function setHotelList( countryidx, regionidx ) {
  if( countryidx < 0 ) return;
  if( regionidx < 0 ) return;
  selection = document.forms.availability.hotel;
  clearSelect( selection );
  addOpt( selection, selecthotel, -1, 0 );
  curhotelarray = reservationHotelcodearray[countryidx][regionidx]; 
  for( i=0; i<curhotelarray.length; i++ ) {
    addOpt( selection, curhotelarray[i][1], curhotelarray[i][0], i+1 );
  }
}
function resetRegion() {
  selection = document.forms.availability.destination;
  clearSelect( selection );
  addOpt( selection, cntryfirst, -1, 0 );
  addOpt( selection, '', -1, 1 );
  addOpt( selection, '', -1, 2 );
  addOpt( selection, '', -1, 3 );
  addOpt( selection, '', -1, 4 );
  addOpt( selection, '', -1, 5 );
}
function resetHotel() {
  selection = document.forms.availability.hotel;
  clearSelect( selection );
  addOpt( selection, placefirst, -1, 0 );
  addOpt( selection, '', -1, 1 );
  addOpt( selection, '', -1, 2 );
  addOpt( selection, '', -1, 3 );
  addOpt( selection, '', -1, 4 );
  addOpt( selection, '', -1, 5 );
}
//-->
