function popUp ( url, name, width, height, positioner, xOffset, yOffset, features ) 
{
	new popUpObject ( url, name, width, height, positioner, xOffset, yOffset, features );
}

function popUpObject ( url, name, width, height, positioner, xOffset, yOffset, features) 
{
	this.url				 = url;
	this.name				 = name;
	this.width				 = eval (width);
	this.height				 = eval (height);
	this.positioner			 = positioner;
	this.xOffset			 = xOffset;
	this.yOffset			 = yOffset;	
	this.features			 = features;

	this.construct();
}

popUpObject.prototype.construct = function ( )
{	
	if ( this.width != null && this.height != null )
	{
		this.features += ",width=" + this.width + ",height=" + this.height;
	}

	this.positioner( this.xOffset, this.yOffset );

	this.popUpWindow = window.open ( this.url, this.name, this.features );

	this.popUpWindow.focus();
}
