var newwindow;
function poptastic(url)
{
	newwindow=window.open(url,'name','height=500,width=500,left=300,top=100,menubar=no,toolbar=no,directories=no,location=no,resizable=no,scrollbars=yes,toolbar=no,status=no');
	if (window.focus) {newwindow.focus()}

}

/*

You have a number of options for the third argument. When you define any of them, the remaining Boolean values (which can be true/false or yes/no or 1/0) are all set to false/no/0. Whichever you choose to use, all of your options go into the same quoted string, with commas between the values, and no spaces are allowed between them.

height: Defines the height of the window in pixels. Percentage values don't work.

width :Defines the width. Again, you'll have no joy with percentages.

left :Supported by version 4 browsers and above, this sets how far removed the window appears from the left of the screen. In pixels.

top :Partner to left, this pushes the window off the top of the screen.

resizable :Set to true or false, this may allow the user to resize the window.

scrollbars :Another Boolean value, this adds scrollbars to the new window. If your content may be longer then the dimensions you've specified, make sure this is set to yes.

toolbar :Specifies whether the basic back/forward toolbar should be visible. If there are links to follow in your new page, set this to yes.

menubar :Specifies whether the main toolbar (File, Edit, ...) is shown.

location :Specifies whether the location toolbar (address bar) is shown.

status :Specifies whether the new window can have a status bar. Best set to yes. For security reasons, Mozilla-based browsers always show the status bar.

directories :Specifies whether the directories toolbar is shown (Links toolbar in IE).

fullscreen :Internet Explorer-only Boolean attribute which may open the window in fullscreen. It's annoying — don't use it.

dependent :Netscape 4-only attribute which makes the popup dependent on the status of the main window. If the main window is closed, the popup closes with it.

screenX & screenY :Old Netscape attributes for defining the window's position on the page. Use left and top in their place.

*/
