// infopopup - to popup an info window on a page

function infopopup(page,name,xsize,ysize,xpos,ypos) {

// default values if xsize + are left empty in calling
if(xsize == null) { xsize = 450; }
if(ysize == null) { ysize = 425; }
if(xpos == null)  { xpos = 255;  }
if(ypos == null)  { ypos = 255;  }

// bring them all together for one attributes string
var attribs = "width=" + xsize + ",height=" + ysize + ",left=" + xpos + ",top=" + ypos + ",scrollbars=yes";

mypopup = window.open(page, name, attribs); // popup the window
mypopup.focus(); // in case the popup is already opened, focus it.
return false;    // prevents browser from following link when using semantic markup
}