 function ShowRow(location) {
  
   for(var row in AllRows) {
      elem = document.getElementById('row_'+row);
      elem.style.display = "none";
    }    
    
   rows = LocationRows[location];
   for(var row in rows) {
      elem = document.getElementById('row_'+row);
      elem.style.display = "";
    }
    
  }
  
  function ShowDepartures(boat,itinerary) {
    dep = document.getElementById('departure');
    dep.options.length = 0;
    i = 0;
    list = Departures[itinerary];
    for(var row in list) {
      dep.options[i++] = new Option(list[row]['date'],list[row]['name']);
    }
    if(dep.options.length == 0) {
      var value = 'No Departure dates for Cruise #'+itinerary;
      dep.options[i++] = new Option('-- No Departure Dates Available --', value);
    } 
    hideCabins();
    
    elem = document.getElementById('cabin_'+boat);
    elem.style.display = "";
    elem = document.getElementById('select_cabins');
    elem.style.display = "";
  }
  
  function hideCabins() {
    elem = document.getElementById('cabin_CP');
    elem.style.display = "none";
    elem = document.getElementById('cabin_OP');
    elem.style.display = "none";
    
  }
  
  /*
  function nice_date(date) {
  
  var dows = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
  var moys = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aus','Sep','Oct','Nov','Dec');
  
    cfdate = new Date();
    cfdate.setDate(parseInt(date.substring(8,10)));
    cfdate.setMonth(parseInt(date.substring(5,7))-1);
    cfdate.setYear(parseInt(date.substring(0,4)));
    return dows[cfdate.getDay()]+' '+cfdate.getDate()+', '+moys[cfdate.getMonth()]+' '+date.substring(0,4);
  }*/
  
  
  