function ChangeLocation() {       
  // Hide any elements that are currently open
  Effect.BlindUp('where_location', {delay:0.0, duration:0.0});      
  Effect.BlindUp('where_postcode', {delay:0.0, duration:0.0});
  Effect.BlindUp('where_idea_store', {delay:0.0, duration:0.0});
  // Now slide down the relevant child options (depending on the selectedIndex ID)
  var subject = document.getElementById('location');
  var selectedIndex = subject.selectedIndex;
  if (selectedIndex == 1)
  {
    Effect.SlideDown('where_location', {delay:0.25, duration:0.5});
  }
  else if (selectedIndex == 2)
  {
    Effect.SlideDown('where_postcode', {delay:0.25, duration:0.5});
  }
  else if (selectedIndex == 3)
  {
    Effect.SlideDown('where_idea_store', {delay:0.25, duration:0.5});
  }
}
function ChangeSubject(number_of_categories) {
  // Hide any elements that are currently open
  for(var i=1; i<=number_of_categories; i++) {
    Effect.Fade('box' + i, {delay:0.0, duration:0.0});
  }
  // Now slide down the relevant child options (depending on the selectedIndex ID)
  var subject = document.getElementById('subjects');
  var selectedIndex = subject.selectedIndex;

  if (selectedIndex > 0 && selectedIndex <= number_of_categories)
  {
    Effect.SlideDown('box' + selectedIndex, {delay:0.25, duration:0.5});
  }
} 
