// this is my first experiement with jquery
// my link classes uses it for dom/events/ajax management
var link = 
{
	init: function()
	{
		// add event to divs with class backlink		
		$('div.backLink').html('Back');
		$('div.backLink').bind('click', function() { history.go(-1); });

		// add event to links with delete
		$('a').filter(function() 
		{
			if($(this).html() == 'Delete')
			{				
				return true;
			}
		}).bind('click', function() 
		{ 
			return(confirm('Are you sure you want to delete this item?  This action is final.')); 
		});		
	}
}

// add to document after dom is loaded
$(document).ready(function() { link.init(); });
