function popUp ( url, name, width, height, xOffset, yOffset, features ) 
{
	new popUpObject ( url, name, width, height, xOffset, yOffset, features );
}

function popUpObject ( url, name, width, height, xOffset, yOffset, features) 
{
	this.url				 = url;
	this.name				 = name;
	this.width				 = eval (width);
	this.height				 = eval (height);
	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 + ",left=" + ( window.screenLeft + this.xOffset ) + ",top=" + ( window.screenTop + this.yOffset );
	}

	this.popUpWindow = window.open ( this.url, this.name, this.features );

	if ( ! this.popUpWindow.opener ) 
	{ 
		this.popUpWindow.opener = self;
	}
	
	this.popUpWindow.resizeTo(this.width,this.height);
	
	this.popUpWindow.moveTo(window.screenLeft + this.xOffset, window.screenTop + this.yOffset);	

	this.popUpWindow.focus();
}
