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 PopupMenu(myURL) {
                myRemote = launch(myURL, "popup", "scrollbars=1,width=500,height=500,screenX=50,left=200,screenY=50,top=100", "main");
}


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 PopupMenu1(myURL) {
                myRemote = launch(myURL, "popup", "scrollbars=1,width=450,height=360,screenX=50,left=500,screenY=50,top=300", "main");
}

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 PopupMenu2(myURL) {
                myRemote = launch(myURL, "popup", "scrollbars=1,width=500,height=400,screenX=50,left=200,screenY=50,top=100", "main");
}

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;
}