function popupWindow(url, width, height, scrollbars, left, top, id)
{
	width = width || 500;
	height = height || 500;
	scrollbars = scrollbars || 'yes';
	left = left || screen.width / 2 - width / 2;
	top = top || screen.height / 2 - height / 2;

	day = new Date();

	if (!id)
	{
		id = day.getTime();
	}

	eval("page" + id + " = window.open(url, '" + id + "','scrollbars="+ scrollbars +",width="+ width +",height="+ height +",left = "+ left +",top = "+ top +"');");
	eval("page" + id +".focus()");
	
	return false;
}

function popupImage(image)
{
	popupWindow('popupimage.php?image=' + image, 300, 100, 'no')
}
