The solution Nitros posted works (if you change the functions name from open() to something like openit()), however will be blocked by almost all modern browsers (ie, ff, chrome, etc...).
You can't generate a standard popup through onload methods these days without it being blocked. You need user interaction such as a click.