/*---------------------------------------------------------------------------*\
title			:	popupimage
Source			:	popupimage.js
Copyright		:	(C) Ronnie
Developed by		:	Ronnie
Last Modified by	:	Ronnie
Version			:	1.00
CVS			:	Revision: 1.00 Date: 12/03/04
Description		:	opens a new window with content

var settings = 'height=' + h + ',width=' + w + ',top=' + ypos + ',left=' + xpos + ',scrollbars=' + scroll + ',resizable'
/*---------------------------------------------------------------------------*/

var win = null;

function popupimage(myurl, w, h, myname)
{
	centerpop (myurl, myname, w, h, false);
}
function centerpop(myurl, myname, w, h, scroll){
	var xpos = (screen.width) ? (screen.width - w) / 2 : 0;
	var ypos = (screen.height) ? (screen.height - h) / 2 : 0;
	var settings = 'height=' + h + ',width=' + w + ',top=' + ypos + ',left=' + xpos + ',scrollbars=yes' +' ,resizable'
	win = window.open(myurl,myname,settings)
}

