$(document).ready(function(){
  obj = document.getElementById('filter');
  if(obj) {
    obj.focus();
  }
});

