// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function jumpTo(element){
  location=element.value;
}

function jumpToTarget(element, target){
  // window.open(element.value, target,'scrollbars=yes'); // need to look into target
  window.open(element.value, 'new_window','scrollbars=yes'); // need to look into target
}

Ajax.Responders.register({ 
 onCreate: function() { 
   if (Ajax.activeRequestCount > 0) 
     Element.show('form-indicator'); 
 }, 
 onComplete: function() { 
   if (Ajax.activeRequestCount == 0) 
     Element.hide('form-indicator'); 
 } 
}); 
