function openUp(which, windowTitle, width, height, scrollFlag, statusFlag) {
  if (scrollFlag)
    scrollbarStatus = "yes";
  else
    scrollbarStatus = "no";
  if (statusFlag)
    statusbarStatus = "yes";
  else
    statusbarStatus = "no";
  theWindow = window.open(which, windowTitle, "toolbar=no,location=no,directories=no,status=" + statusbarStatus + ",menubar=yes,scrollbars=" + scrollbarStatus + ",resizable=yes,width=" + width + ",height=" + height);
  theWindow.focus();
  return false;
}

function openComments (url, targetwindow) {
  commentWindow = window.open(url, targetwindow, 'width=490,height=550,scrollbars=yes,status=yes,resizable=yes');
  commentWindow.focus();
  return false;
}

function OpenTrackback (c) {
    window.open(c, 'trackback', 'width=480,height=480,scrollbars=yes,status=yes');
}

function switchBack(where) {
  if (window.opener) {
    self.close();
  }
  else {
    window.location = where;
  }
  return false;
}


