// Change the current language
function changeLang(lang, story) {
  //alert('Change language to "' + lang + '".');  
  window.location.href = 'index.php?websiteLang=' + lang + '&StoryID=' + story;  
}

// load Story
function story(storyid) {
  window.location.href = 'index.php?StoryID=' + storyid;
}

// change Download Language
function changeDLlanguage(slLanguages) {  
  // hide all DIVs:
  values = slLanguages.options;
  for (var i = 0; i < values.length; i++) {
    div = 'div_' + values[i].value;
    document.getElementById(div).style.display = "none"; 
  }
  
  // show correct DIV:
  div = div = 'div_' + slLanguages.options[slLanguages.selectedIndex].value;
  document.getElementById(div).style.display = "block";
}
