fires right after show() method is called for the window (popup) and before the window is shown
some.attachEvent("onBeforeShow", function(){
//... some code here ...
});
The event takes all parameters passed to show method. Return false to block popup displaying.