/* functions related to eMRW popup windows */ /** * modifies 'a' links in the document with a given class name to open in * either a new pop-up window, or an existing specified target window. * @param className CSS class name of a links to be processed * @param targetWindow Window object to be targeted with link URL (optional) */ function popurl(className,targetWindow) { var alinks = document.getElementsByTagName("a"); var alink; var count = 0; for (var x=0; x maxWidth) { maxWidth = elements[x].width; } if(elements[x].height > maxHeight) { maxHeight = elements[x].height; } } var resize = false; var newWidth = myWidth; if(maxWidth > myWidth) { resize = true; if((maxWidth + myBorderW) > self.screen.width) { newWidth = self.screen.width; } else { newWidth = maxWidth + myBorderW; } } var newHeight = myHeight; if(maxHeight > myHeight) { resize = true; if((maxHeight + myBorderH) > self.screen.height) { newHeight = self.screen.height; } else { newHeight = maxHeight + myBorderH; } } if(resize) { window.resizeTo(newWidth,newHeight); } }