Deals, offers and tips monthly to
your inbox





countriesddl_js

var CountryDDLID; var CountryFirstOption; var ResortDDLID; var ResortFirstOptionWithoutCountry; var ResortFirstOptionWithCountry; var ResortEmpty; var HREFNewWindow = false; var HREFPrefix = ''; var HREFSuffix = ''; function ChangeCountry(ddl) { var resortsddl = document.getElementById(ResortDDLID); if (ddl.selectedIndex > 0)//BECAUSE ZERO IS THE CHOOSE COUNTRY OPTION { var iCountryIndex = (ddl.selectedIndex - 1); resortsddl.options.length = 0; if (aCou[iCountryIndex][1].length > 0) { resortsddl.options[0] = new Option(ResortFirstOptionWithCountry, ''); for (var i = 0; i < acou[icountryindex][1].length;="" i++)="" {="" resortsddl.options[resortsddl.options.length]="new" option(acou[icountryindex][1][i][0],="" '/resorts/'="" +="" acou[icountryindex][1][i][2]="" +="" '/'="" +="" acou[icountryindex][1][i][1]="" +="" '/index.htm');="" }="" }="" else="" {="" resortsddl.options[0]="new" option(resortempty,="" '');="" }="" }="" else="" {="" resortsddl.options.length="0;" resortsddl.options[0]="new" option(resortfirstoptionwithoutcountry,="" '');="" }="" }="" function="" resortchosen(ddl)="" {="" var="" v="ddl.options[ddl.selectedIndex].value;" if="" (v.length=""> 0) { if(HREFNewWindow == true) { window.open(HREFPrefix + v + HREFSuffix); } else { location.href = HREFPrefix + v + HREFSuffix; } } } function PopulateCountriesDDL(ddlid) { var ddl = document.getElementById(ddlid); ddl.options.length = 0 ddl.options[0] = new Option(CountryFirstOption, ''); for (var i = 0; i < acou.length;="" i++)="" {="" ddl.options[ddl.options.length]="new" option(acou[i][0][1],="" acou[i][0][0]);="" }="" }=""> DO NOT REMOVE THIS LINE - FOR OMNI BUILD >
 

Ski Essentials

Ski Essentials