<!--
function _popItUp()
{
	if( this.windowRef != null && this.windowRef.location != null )
	{
		this.windowRef.close();
		this.windowRef = null;
	}
	setTimeout(this.objName + '.openWindow()', 400);
	return false
}

function _get_features()
{
	return "'" +  this.features + this.get_dimensions() + this.topLeftCoords + "'"
}

function _setFeatures(str)
{
	this.features = str;
}

function _openWindow()
{
	this.windowRef = window.open(this.filename, "_" + this.objName + "_", this.get_features() );
}

function _setFilename(filename)
{
	this.filename = filename;
}

function _setTopLeftCoords(top, left)
{
	if( this.ns4 )
	{
		this.top = "screenY=" + top;
		this.left = "screenX=" + left;
	}
	else
	{
		this.top = "top=" + top;
		this.left = "left=" + left;
	}
	this.topLeftCoords = "," + this.left + "," + this.top;
}

function _get_dimensions()
{
	return ",width=" + this.width + "," + "height=" + this.height
}

function _setDimensions(w, h)
{	
	this.width 	= w;
	this.height = h;
	if( this.ns4 )
	{
		this.width 	= w - 12;
		this.height = h - 31; 
	}
}

function NewWindow(objName)
{	
	this.width 			= 300;
	this.height			= 300;
	this.topLeftCoords	= "";
	this.objName 		= objName;
	this.windowRef 		= null;
	this.filename 		= "";
	this.features 		= "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no";
	this.get_dimensions = _get_dimensions;
	this.setDimensions  = _setDimensions;
	this.setFeatures			= _setFeatures;
	this.popItUp 			= _popItUp;
	this.openWindow 			= _openWindow;
	this.setFilename 		= _setFilename;
	this.get_features 		= _get_features;
	this.ns4 				= (navigator.appName == 'Netscape')
	this.ie4 				= (navigator.appName == 'Microsoft Internet Explorer')
	this.setTopLeftCoords 	= _setTopLeftCoords;
}
//-->