function selectContinent(cont, filenamecolumn, target) {  
  document.getElementById(target).options.length = 0;
  document.getElementById(target).options[0] = new Option('--- Válassz országot ---', '-');
  c = 1;
  for (i = 0; i < countries.length; i++) {
    if (countries[i][2] != cont) { continue; }
    document.getElementById(target).options[c] = new Option(countries[i][1], countries[i][filenamecolumn]);
    c++;
  }
  
  if ((target == 'countrySelect') || (target == 'weathercountrySelect')) {
    $(".uticel_kereso_box .jquery-selectbox:last").unselectbox();
    $(".uticel_kereso_box select:last").selectbox();
  }
  else if (target == 'todocountrySelect') {
    $(".todo_page .small .jquery-selectbox:last").unselectbox();
    $(".todo_page .small select:last").selectbox();
  }
  else {    
    $(".box .select .jquery-selectbox").unselectbox();
    $(".box select").selectbox();
  }
}

function selectweatherContinent(cont, filenamecolumn, target) {  
  document.getElementById(target).options.length = 0;
  document.getElementById(target).options[0] = new Option('--- Válassz országot ---', '-');
  c = 1;
  for (i = 0; i < weathercountries.length; i++) {
    if (weathercountries[i][2] != cont) { continue; }
    document.getElementById(target).options[c] = new Option(weathercountries[i][1], weathercountries[i][4]);
    c++;
  }
  
  $(".uticel_kereso_box .jquery-selectbox:last").unselectbox();
  $(".uticel_kereso_box select:last").selectbox();
}
