function moveToError(){
  if ($('error')){
    $('error').scrollTo();
  }
}

Event.observe(window, 'load', moveToError);
