// Remote window script
function HC_openWin(newURL, newName, newFeatures, orgName) {
  var newWin = open(newURL, newName, newFeatures);
  if (newWin.opener == null)
    newWin.opener = window;
  newWin.opener.name = orgName;
  return newWin
}
// Change opening window, and close remote
function HC_doOpener(aURL){
  window.opener.location.href = aURL;
  window.close()
}
// Open centered remote
function HC_doOpenRemote(aURL, newName, aHEIGHT, aWIDTH, aFeatures, orgName){
  if (aHEIGHT == "*"){ aHEIGHT = (screen.availHeight - 80) };
  if (aWIDTH == "*"){ aWIDTH = (screen.availWidth - 30) };
  var newFeatures = "height=" + aHEIGHT + ",innerHeight=" + aHEIGHT;
  newFeatures += ",width=" + aWIDTH + ",innerWidth=" + aWIDTH;
  if (window.screen){
    var ah = (screen.availHeight - 30);
    var aw = (screen.availWidth - 10);
    var xc = (( aw - aWIDTH ) / 2);
    var yc = (( ah - aHEIGHT ) /  2);
    newFeatures += ",left=" + xc + ",screenX=" + xc;
    newFeatures += ",top=" + yc + ",screenY=" + yc;
    newFeatures += "," + aFeatures
  };
  var newWin = HC_openWin(aURL, newName, newFeatures, orgName);
  newWin.focus();
  return newWin
}
function doMovie(aURL){HC_doOpenRemote(aURL,"Movie",320,400,"","Schedules")}
function doMov(aURL){HC_doOpenRemote(aURL,"Movie",210,200,"","Schedules")}


