Hi.

I've defined the following function to open a variable number of popups:

function openPopups (aNames)
{
for (var i=1; i <= arguments.length-1; i++) {
arguments[0].push (window.open (arguments[i].sUrl, ' ', 'left=' +
arguments[i].nLeft + ',top=' + arguments[i].nTop + ',width=' +
arguments[i].nWidth + ',height=' + arguments[i].nHeight + ', ' +
arguments[i].sResizable +', ' + arguments[i].sScrollbars + ', ' +
arguments[i].sToolbar));
}
}

The function receives a variable number of arguments, the first of which is an
array (aNames) where the popup windows' names will be stored. The remaining are
objects with all the properties shown in the function window.open: sUrl, nLeft,
nTop, nWidth, nHeight, sResizable, sScrollbars, sToolbar. However, I'd like to
define the objects with only the relevant properties, since many of them won't
need several properties. This doesn't seem to work, and so far I've had to
define every property for every object. Is there anyway I can change the
function so it works and ignores the properties that are not defined? Or is the
problem with the objects? I have defined them all as:

var oPopup1 = {sUrl:'mylink1.html', nWidth:200,...};

Any thoughts? Thank you in advance.