// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function accountSelected() {
  account_id = $('account_id').getValue();
  location.href = '/accounts/'+account_id;
}

document.observe('dom:loaded', function() {
  $('account_id').observe('change', accountSelected);
});

function submitForm() {
	$('form_submit').hide();
	//$('form_submit')['onclick'] = "alert('foo');";
	$('new_rental_application').submit();
}