how to access jquery beforeunload-bind form element?
===

I'm using jQuery to display a message before a form is posted, using this technique:

    $(window).bind("beforeunload", function()
    {
    	form = ... // how to access the submitted $("#form")?
    	return "Are you sure you want to submit this form?"
    }

Since $(this) apparently is the window element, how can I find out what form on the page was attempted to be submitted?

Thanks.