// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function stopHere()
{
return;
}

function getComponent()
{
if (document.getElementById('component_name')) 
return document.getElementById('component_name').get('text');

return;
}

function delete_messages(thepath) {
  var answer = confirm ('Are you sure want to move selected messages to trash?');
  if (answer) { 
    window.addEvent('domready', function() {
      $('delete_messages_form').send(thepath);
    })
  }	
}
