// Modified from example at: http://forums.devarticles.com/archive/t-6487
//
// Usage Example:
// Then add your link in the body of your document as below:
// <a href="http://www.w3.org/WAI/[/url]" 
// onclick="popUpWin(this.href,'standard',640,480);return false;" 
// onkeypress="popUpWin(this.href,'standard',640,480);return false;" 
// title="Link open's in a new window">Web Accessibility Initiative (WAI)</a>
function popUpWin(url, type, title, strWidth, strHeight)
{
	if (type == "fullScreen" )
	{
		strWidth = screen.availWidth - 10;
		strHeight = screen.availHeight - 160;
	}

	var tools="";

	if (type == "standard" || type == "fullScreen" ) 
	{
		tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0";
	}
	
	if (type == "console" ) 
	{
		tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
	}
	
	newWindow = window.open(url, title, tools);

	newWindow.focus();
}