window.addEvent('unload', function() {
// ----- beg google maps -----
	if ($('map_canvas_deal_detail'))
		GUnload(); // this is to prevent memory leaks but commented out by jdm because [think https load/unload]
// ----- end google maps -----

// ----- beg google maps -----
	if ($('title'))
		if ($('title').value == '') {
			new Request({
				method: 'post',
				url: '_inc/del_empty_deal.php',
				async: 'false'
			}).send('id=<?php echo($inv_id); ?>');
			/*
			new Ajax('_inc/nav_body.php',
				{	method: 'post',
					update: 'div_nav',
					onComplete: function() {  },
					data: {  }
				}).request();
			*/
			// alert('title is blank');
		}
// ----- end google maps -----
});