function autotab(current, to){
  if (current.getAttribute && 
    current.value.length==current.getAttribute("maxlength")) {
    to.focus() 
  }
}

function refreshAdminList() {
  element = $('page_options');
  value = element.value;
	new Ajax.Updater('model_list', 
          location.pathname, 
          {
            asynchronous:true, 
            evalScripts:true, 
            onComplete:function(request){
              Streamlined.SortSelector.initialize()
          }, 
          parameters:value + "?authenticity_token=" + Streamlined.AuthenticityToken.from_page()});
}