// Place a hook for on load
//Event.observe(window, 'load',function() { getNotifications();});

// Store the user action for the given notify window
function saveUserAction(user_action)
{	
	if($('notify_id'))
	{
	// Validate user on server
	new Ajax.Request('ajax/notify.php', {
		method: 'post',
		parameters: {notify_id : $('notify_id').value, user_action: user_action}
    });
	}		
}

function closeNotify()
{
	Lustbox.hideBox();
}

function cancelNotify()
{
	// Global for closing windows - stores reason, then closes
	saveUserAction('cancel_btn');
	Lustbox.hideBox();
}
