//the javascript window launching functions
function launch(newURL, newName, newFeatures, orgName) {
        var remote = open(newURL, newName, newFeatures);
        if (remote.opener == null)
        remote.opener = window;
        remote.opener.name = orgName;
        remote.focus();
        return remote;
}
function launchRemote( newurl, newname, newfeatures, orgname) {
        myRemote = launch(newurl, newname, newfeatures, orgname);
}
//populate variables
newWin = "fsinfowindow";
parWin = "_self";
opts = 'height=370,width=400,left=312,top=184,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0,dependent=0,titlebar=0,fullscreen=0,location=0';
opts4 = 'height=400,width=400,left=312,top=184,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0,dependent=0,titlebar=0,fullscreen=0,location=0';
opts5 = 'height=500,width=400,left=312,top=184,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0,dependent=0,titlebar=0,fullscreen=0,location=0';
opts6 = 'height=600,width=400,left=312,top=84,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0,dependent=0,titlebar=0,fullscreen=0,location=0';
opts7 = 'height=720,width=400,left=312,top=44,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0,dependent=0,titlebar=0,fullscreen=0,location=0';
opts8 = 'height=300,width=400,left=312,top=184,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,dependent=0,titlebar=0,fullscreen=0,location=0';
opts9 = 'height=590,width=600,left=212,top=184,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0,dependent=0,titlebar=0,fullscreen=0,location=0';
opts5wide = 'height=500,width=510,left=312,top=184,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0,dependent=0,titlebar=0,fullscreen=0,location=0';
opts5s = 'height=500,width=400,left=312,top=184,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,dependent=0,titlebar=0,fullscreen=0,location=0';
opts6wide = 'height=306,width=500,left=350,top=184,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0,dependent=0,titlebar=0,fullscreen=0,location=0';


function openWindow(theURL,winName, iWidth, iHeight) {

  //features = 'width=990,height=450';
  features = 'width=' + iWidth + ',height=' + iHeight;

  features += ",left=0,top=0,screenX=0,screenY=0";

  framestore = window.open(theURL,winName,features);

  framestore.moveTo((screen.availWidth / 2) - 485,(screen.availHeight / 2) - 217);
  
  
}
  
  function openWindow2(theURL,winName, iWidth, iHeight) {

  //telecine = 'width=676,height=560'; 
  features = 'width=' + iWidth + ',height=' + iHeight;
  
  features += ",left=0,top=0,screenX=0,screenY=0";

  framestore = window.open(theURL,winName,features);

  framestore.moveTo((screen.availWidth / 2) - 340,(screen.availHeight / 2) - 220);


}

/** Open a popup window with given properties. */
function openWin(url, win_name, width, height, left, top, scroll) {

  features = 'width=' + width + ',height=' + height;  
  features += ",left="+left+",top="+top+",screenX="+left+",screenY="+top;
  features += ",scrollbars="+scroll;
  framestore = window.open(url, win_name, features);
  framestore.moveTo((screen.availWidth / 2) - left, (screen.availHeight / 2) - top);
}




