function saveTopicsCountry() {
  var country = $('countryList').value;
  var topicLists = document.getElementsByClassName('checkBox');

  // Contains selected number of stories.
  var count = $('storyCount').value;

  // Stores checked topics list.
  var topicArr = [];
  for (var i = 0, topicList; topicList = topicLists[i]; i++) {
    if (topicList.checked) {
      topicArr.push(topicList.value);
    }
  }
  var keywords = JSON.parse(window.localStorage.getItem('keywords'));

  // Saves custom topics to local storage(if any).
  if (tempCusTopics.length > 0) {
    if (keywords) {
      keywords = keywords.concat(tempCusTopics);
      window.localStorage.setItem('keywords', JSON.stringify(keywords));
    } else {
      window.localStorage.setItem('keywords', JSON.stringify(tempCusTopics));
    }
    tempCusTopics.splice(0, tempCusTopics.length);
  }

  // Saves checkbox topics(if any).
  if (topicArr.length > 0) {
    window.localStorage.setItem('topics', JSON.stringify(topicArr));
  } else {
    window.localStorage.removeItem('topics');
  }

  window.localStorage.setItem('count', count);
  window.localStorage.setItem('country', country);

  showUserMessages('save_status', 0.5, 'saveStatus');
  $('save_button').disabled = true;
}
Saves checked topic list(if any), Custom topics(if any), number of
stories and country value in local storage.