// (c) Copyright, DTLink, LLC 1997-2005
//     http://www.dtlink.com
//
// NewWindow.js
//
//		Create a new window.
//
// REVISION HISTORY/COMMENTS:
//
// 8 April 1998 YmL:
//   . added support for Netscape 4.0 mostly involving changes to the open
//     window calls.
//
// 26 Oct 2001 YmL:
//		. broke this function out into a separate include file.
//
// 2005-06-22 YmL:
//	.	now always generates a new window but suffixing a random number on the name.
//
// 2008-11-18 YmL:
//	.	added newbrowser parm.

function NewWindow( url, name, width, height, newbrowser )
{

var r = Math.floor(Math.random() * ( 1000 + 1));

var features = "";

if (( typeof( newbrowser ) == 'undefined' ) || ( newbrowser == false ))
	{
	features = "scrollbars=1,width=" + width + ",height=" + height + ",resizable=1,location=0";
	}
	
newwin = window.open( url, name + "_" + r, features )

}

function noop()
{
// do nothing function to try to avoid javascript: new window problems.
}
