//pop-up window featuring shared window for each pop-up
//and a close window feature when page is exited - code used: 
//onunload = "closeMyRemote();checkWin = 0"

var pagevar
var myRemote
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(pagevar) {
myRemote = launch(pagevar,"myRemote","height=200,width=350,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0,z-lock=0",
                    "myWindow");
myRemote.focus();

}

function closeMyRemote() {
if (!myRemote || myRemote.closed){
} else {myRemote.close()}
}

//end hide
