function launch(newURL, newName, newFeatures, orgName) { var remote = open(newURL, newName, newFeatures); if (remote.opener == null) remote.opener = window; remote.opener.name = orgName; return remote; } function launchRemote(pImageName, pWidth, pHeight, pIssueNumber, pPageNumber) { var theURL = "http://www.SpilledMilk.com/images/"; var theTitle = "CiCi Miniseries: Issue #"; var theOptions= "alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=0,status=0,titlebar=1,toolbar=0,z-lock=0"; var theImage = pImageName; var theIssue = "1"; var thePage = "1"; theTitle = theIssue + " Page " + thePage; theURL += theImage; pWidth = parseInt(pWidth); pHeight = parseInt(pHeight); pWidth += 20; pHeight += 30; theOptions += ",width=" + pWidth + ",height=" + pHeight; myRemote = launch(theURL , "theTitle" , theOptions, "myWindow"); }