function suggestSef(fromId, toId) {
  input = document.getElementById(fromId).value;
  
  temp = input.replace(/[ÅÄåä]/g, 'a');
  temp = temp.replace(/[Öö]/g, 'o');
  temp = temp.toLowerCase();
  temp = temp.replace(/\s/g, '_');
  temp = temp.replace(/[\-_]+/g, '_');
  
  outputField = document.getElementById(toId);
  
  outputField.value = temp.replace(/[^a-z0-9_\-]/g, '');
}

function useGet() {
  form = document.getElementById('adminForm');
  form.method = 'get';
}

function jq(myid) { 
  return myid.replace(/(:|\.)/g,'\\$1');
}

var tempIdGen = {
  counter: 0,
  next: function() {
    return 'temp'+(this.counter++);
  }
};
