I've found a bunch of stuff online about opening a new window that is centered... but I want to center a current window (that is a popup, but I want to center it from within the page). I know how to resize from within the page. How do I center it?

Oh, and I'd also like to know how to take away the scrollbars, toolbars, statusbar, etc of the current window.

BTW, this is the code I use (and it works) to resize the window. I want to add on to it to do the other stuff as well:

Code:
 <script language="JavaScript">
window.resizeTo(500,100)
</script>