// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
// Event.observe(window, 'load', function(){
//     var textile_toolbar = new Control.TextArea.ToolBar.Textile('comment_body',{
//       preview: 'preview',
//           afterPreview: function(){
//           Effect.BlindDown('preview');
//           textile_toolbar.options.afterPreview = Prototype.emptyFunction;
//         }
// 
//       });
//     textile_toolbar.toolbar.toolbar.id = 'textile_toolbar';
// })



var MessagePanel = {} 
MessagePanel  = { 
  disableMessagePanel : function() { 
    Element.hide('iPanelMessageInner'); 
  }
} 

var ExpenseTracker = {} 
ExpenseTracker = { 
  disableExpenseForm: function() { 
    Element.show('form-indicator'); 
    Form.disable('expense-form'); 
  }, 
  
  enableExpenseForm: function(form) { 
    Element.hide('form-indicator'); 
    Form.enable('expense-form'); 
  } 
} 



