Hi, I'm new to Java
script with very little knowledge... I have an external javascript file with certain attributes defined to open a file in new window, which I use for viewing maps. However I need to define different attributes for the height and width, as I want users to open video clips in smaller windows. What do I need to do? Many thanks.

Here is the code:

// JavaScript Document
function initpop()
{
var closeElementId='closewindow';
var closeLinkText='close window';
var windowAttributes='width=640,height=620,left=0,top=0,scrollbars=no,location=no';

if(!window.opener)
{
var as,i,popfun
as=document.getElementsByTagName('a');
for (i=0;i<as.length;i++)
{
if(as[i].className=="zoom")
{
popfun=function(){window.open(this.href,'',windowAttributes);return false;};
as[i].onclick=popfun;
as[i].onkeypress=popfun;
}
}
} else {
var closep,closelink,closetext;
closelink=document.createElement('a');
closetext=document.createTextNode(closeLinkText);
closelink.href='#';
closelink.appendChild(closetext);
closelink.onclick=function(){self.close();};
if(document.getElementById('closewindow'))
{
document.getElementById('closewindow').appendChild(closelink);
}
}
}