// (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.

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

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

newwin = window.open( url, name + "_" + r,"scrollbars=yes,width=" + width + ",height=" + height + ",resizable=yes")

if ( navigator.userAgent.substring( 0, 31 ) != "Mozilla/4.0 (compatible; MSIE 4")
   {

   // the following causes either an access error or an illegal MSIE killing
   // instruction . . . so we only do this if /NOT/ running under MSIE 4.x

   newwin.creator = self
   newwin.focus()
 
   }  // end of if we're not running MSIE 4.x

}

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