<script language="javascript" type="text/javascript" src="dialogs.js"></script>
<script language="javascript" type="text/javascript"> fixDialog(); </script>To enable the custom context menu (it remains disabled by default), pass a boolean value of true to fixDialog:
fixDialog(true);
window.showModalDialog('http://throbs.net/', window, 'dialogTop:3px;')
.
(This is often very useful for other reasons as well).