// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function submitform()
{
	$('JumpToForm').submit()
}

Event.observe(window, 'load', function() {
	if ( $('date_selectedMonth') != null )
		Event.observe('date_selectedMonth','change',submitform);
		
	if ( $('date_selectedYear') != null )
		Event.observe('date_selectedYear','change',submitform);
		
	if ( $('TransactionTable') != null )
	{
		$('TransactionTable').select('td.tActions').each(function(action_cell){
			$(action_cell).observe('mouseover', function(){
				$(this).down('.action_controls').show();
				$(this).down('.action_message').hide();
			});
			$(action_cell).observe('mouseout', function(){
				$(this).down('.action_controls').hide();
				$(this).down('.action_message').show();
			});
		});
	}
});

