jQuery(document).ready( function() {

	dwr.engine.setTextHtmlHandler( function() {
		// if they get back a HTML page saying 'your session is gone', they get redirect home
			document.location = '/';
		});

	dwr.engine.setErrorHandler( function(msg) {

			if (msg == 'result is null') { // session timeout hack on BAL criteria page.
				document.location = '/';
			}
			else
			{
				// redirect to site agnostic error page?  I'll leave that for you
				// csanders @ 8-25-2009
			}
		});


});
